cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Archicad C++ API
About Archicad add-on development using the C++ API.
SOLVED!

Cannot generate example projects for AC27

YourQS
Booster

I am trying to set up the CMake environment for AC27 example projects


I have followed the web example of how to set up the CMake environment, but without success:

Clone the repo with

git clone (message won't allow me to insert html) --recurse-submodules

Run the build script

python Tools/BuildAddOn.py --configFile config.json --acVersion 26 27

 

I get the following output:

Downloading API.Development.Kit.WIN.26.7000.zip

Extracting API.Development.Kit.WIN.26.7000.zip

Downloading API.Development.Kit.WIN.27.3001.zip

Extracting API.Development.Kit.WIN.27.3001.zip

[WinError 2] The system cannot find the file specified


This indicates that I have downloaded the repo fine, because it finds the tools folder and the Python script. The problem is I have no idea what "the file specified" is, because there is no log file. Running the script in verbose mode gives me this:

import 'tarfile' # <_frozen_importlib_external.SourceFileLoader object at 0x000001BB2FD06D50>
[WinError 2] The system cannot find the file specified

 

Can anyone help with getting the example projects set up?

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
YourQS
Booster

Hi, Chris has helped me with this issue and it is now resolved.   The problem was I didn't have a path to CMake.exe

View solution in original post

4 REPLIES 4
Archein
Contributor

Have you ever add your python to the path in enviroment variables.

Hi, yes I have.

LChen
Graphisoft
Graphisoft

Hi, Could you login from Archicad API site and download Devkit from web?

 

Solution
YourQS
Booster

Hi, Chris has helped me with this issue and it is now resolved.   The problem was I didn't have a path to CMake.exe