We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

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

CMake Failed to detect Archicad version (C++ Addon)

Fatih Emre Kursun
Participant

Hi,

 

When i try to enter this commands;

 

mkdir Build

cd Build
cmake -G "Visual Studio 16 2019" -A "x64" -DAC_API_DEVKIT_DIR="C:\API Development Kit 25.3002" ..
cd ..

 

I'm getting this error and i couldnt solve it;

 

C:\ArchicadAddonCmake\Build>cmake -G "Visual Studio 16 2019" -A "x64" -DAC_API_DEVKIT_DIR="C:\API Development Kit 25.3002" ..
CMake Error at CMakeLists.txt:59 (message):
Failed to detect Archicad version, please check the value of the
AC_API_DEVKIT_DIR variable.


-- Configuring incomplete, errors occurred!

 

Can you help me please

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Fatih Emre Kursun
Participant

Okey solved,

 

i added \Support and now working 

Like this;

mkdir Build
cd Build


cmake -G "Visual Studio 16 2019" -A "x64" -DAC_API_DEVKIT_DIR="C:\Program Files\Graphisoft\API Development Kit 25.3002\Support" ..
cd ..

 

 

View solution in original post

1 REPLY 1
Solution
Fatih Emre Kursun
Participant

Okey solved,

 

i added \Support and now working 

Like this;

mkdir Build
cd Build


cmake -G "Visual Studio 16 2019" -A "x64" -DAC_API_DEVKIT_DIR="C:\Program Files\Graphisoft\API Development Kit 25.3002\Support" ..
cd ..