Archicad C++ API
About Archicad add-on development using the C++ API.

cannot open file ACAP_STATD.lib

RAFD
Participant

Does anyone know how to fix this? I tried to correct the path by removing Win but instead of fixing the error I got hundreds more.

RAFD_0-1718269975789.png

 

23 REPLIES 23

Please PM me your whole project if possible...

Here's the problem from the beginning sir Akos.

 

I got this errors while building add-on for AC27

RAFD_0-1718691026118.png

 

to fix this I add the folder link then I got this new errors

RAFD_1-1718691097250.png

 

I include the ACAPI_MigrationHeader.hpp file then this errors appear

RAFD_2-1718691159351.png

 

I commend the errors in Migration file that's end in this last error

RAFD_3-1718691250835.png

 

I got stock here. When I input the correct path, 600 errors more appears

 

By the way sir Akos, It's a working add-on in AC26 and I'm converting it to AC27. Thank you.

LChen
Graphisoft
Graphisoft

Hi, As I mentioned before, the place of ACAP_STATD.lib has been changed from AC27, please delete WIN\ in the file path of VS project.

HTH

RAFD
Participant

Hi LChen, As I mentioned before I already done that and got this 634 errors

RAFD_0-1718761477793.png

I even tried removing the repeated header but nothing change

LChen
Graphisoft
Graphisoft

Hi, Could you share your whole VS project with us?

RAFD
Participant

how about this error?

 

RAFD_0-1718767587293.png

 

LChen
Graphisoft
Graphisoft

I'm not sure, it seems resource build failed.

RAFD
Participant

Here's the error in output while building it.

 

1>The system cannot find the path specified.
1>D:\Visual Studio 2022\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066: Custom build for 'D:\Users\10025371\TG2T2_Label_Manager\Build\CMakeFiles\c529940aa37135851de05f42f8203d83\AddOnResources.stamp.rule;D:\Users\10025371\TG2T2_Label_Manager\Build\CMakeFiles\36bfbb01dc6dd801ef6d76a10cd99d79\AddOnResources.rule' exited with code 3.
1>Done building project "AddOnResources.vcxproj" -- FAILED.

LChen
Graphisoft
Graphisoft

Could you build Examples project for AC27 without any error?