BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

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

When I try to open cmakelist.txt for element_test I get an error.

LeeJaeYoung
Virtuoso

LeeJaeYoung_0-1666502345284.png

 

 

LeeJaeYoung_0-1666498851021.png

 

When I try to open element_text I get an error.
What should I do?

 

 

AC27 on window 11
1 ACCEPTED SOLUTION

Accepted Solutions
Solution

A stranger in Korea offered to help me, so I took the time to solve it remotely.
I couldn't find an article saying that I have to install python and he said that python was not installed, and installing python solved the problem.

AC27 on window 11

View solution in original post

12 REPLIES 12
Karl Ottenstein
Moderator

Since I don't know of anyone who speaks Korean here other than you, perhaps you could translate the error message?  There's no reason that any .txt file should not open, much less a makefile ... unless you have a permissions problem.

 

One of the forum moderators
AC 27 USA and earlier   •   macOS Ventura 13.6.6, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB

no problem

AC27 on window 11

I'll try saying it another way:  why do you think anyone here can read your Korean screenshots and offer help?  Please translate any screenshots containing Korean, or if not possible, find a Korean C++ dev forum to seek assistance since you are new to C++ and the development process.

 

An active developer here might be able to address the between-the-lines issue of why you cannot just use CMake and had to install a Linux subsystem.

One of the forum moderators
AC 27 USA and earlier   •   macOS Ventura 13.6.6, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
dushyant
Enthusiast

Builds ok here on Visual Studio 2019:

>------ Build All started: Project: Element_Test, Configuration: x64-Debug ------
  [1/23] Compiling resources...
  Element_Test.grc
  Element_TestFix.grc
  Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
  
  Copyright (C) Microsoft Corporation.  All rights reserved.
  
  
  [2/23] Building CXX object CMakeFiles\AddOn.dir\Src\Element_Modify_Polygon.cpp.obj
  [3/23] Building CXX object CMakeFiles\AddOn.dir\Src\Element_Modify_ChangeParameters.cpp.obj
  [4/23] Building CXX object CMakeFiles\AddOn.dir\Src\APISpeedTest.cpp.obj
  [5/23] Building CXX object CMakeFiles\AddOn.dir\Src\Element_Edit.cpp.obj
  [6/23] Building CXX object CMakeFiles\AddOn.dir\Src\APICommon.c.obj
  [7/23] Building CXX object CMakeFiles\AddOn.dir\Src\Element_Hotlink.cpp.obj
  [8/23] Building CXX object CMakeFiles\AddOn.dir\Src\Element_Batch_Create.cpp.obj
  [9/23] Building CXX object CMakeFiles\AddOn.dir\Src\Dumper.cpp.obj
  [10/23] Building CXX object CMakeFiles\AddOn.dir\Src\Element_Modify_2DElements.cpp.obj
  [11/23] Building CXX object CMakeFiles\AddOn.dir\Src\Element_Basics.cpp.obj
  [12/23] Building CXX object CMakeFiles\AddOn.dir\Src\Element_Set.cpp.obj
  [13/23] Building CXX object CMakeFiles\AddOn.dir\Src\Element_SolidLink.cpp.obj
  [14/23] Building CXX object CMakeFiles\AddOn.dir\Src\Element_Modify_ModelElements.cpp.obj
  [15/23] Building CXX object CMakeFiles\AddOn.dir\Src\Element_Modify_Dimensions.cpp.obj
  [16/23] Building CXX object CMakeFiles\AddOn.dir\Src\Element_Test.cpp.obj
  [17/23] Building CXX object CMakeFiles\AddOn.dir\Src\Element_Tools.cpp.obj
  [18/23] Building CXX object CMakeFiles\AddOn.dir\Src\Element_Tips.cpp.obj
  [19/23] Building CXX object CMakeFiles\AddOn.dir\Src\PropertyUtils.cpp.obj
  [20/23] Building CXX object CMakeFiles\AddOn.dir\Src\Element_Snippets.cpp.obj
  [21/23] Building CXX object CMakeFiles\AddOn.dir\Src\Element_Trim.cpp.obj
  [22/23] Building CXX object CMakeFiles\AddOn.dir\Src\UserItemDialog.cpp.obj
  [23/23] Linking CXX shared library Element_Test.apx

Build All succeeded.

 

Can you share your CMakeLists.txt? (first 25 lines should help)

LeeJaeYoung
Virtuoso

....

AC27 on window 11

Change line# 6/7 to:

 

target_compile_options (${target} PUBLIC /W2 /wd4996 /Zc:wchar_t-)

 

You need "C++ CMake tools for Windows", which you already seem to have. You don't need a Linux Dev. Environment.

no problem

AC27 on window 11

Did you try to "Rebuild All" after changing the CMakeLists.txt?

I succeeded in changing everything in visual studio to english. I hope to see you again.

AC27 on window 11
Learn and get certified!