-
Notifications
You must be signed in to change notification settings - Fork 67
Description
macOS 14.7.2 Sonoma
cmake version 4.0.2
GNU Make 3.81
New App
When building a new app these are the commands I run
cmake -G "Unix Makefiles" -S . -B build -DCMAKE_INSTALL_PREFIX=/usr/local/nappgui -DCMAKE_OSX_DEPLOYMENT_TARGET=11.0 -DCMAKE_ARCHITECTURE=x64
cmake --build build --config Debug
When I open the app in build/Debug/bin it says this:
"You can’t open the application “napphello” because it may be damaged or incomplete."
If I build with -G Xcode then I get a working app. I want to build with Unix Makefiles so I can generate a compile_commands.json using CMAKE_EXPORT_COMPILE_COMMANDS so my IDE can have proper linting and code completion. I don't want to use Xcode.
SDK
I tried to build the SDK using -G "Unix Makefiles" and it failed. Using -G Xcode worked.
I ran this command:
nappgui_src % cmake -G "Unix Makefiles" -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_OSX_DEPLOYMENT_TARGET=11.0 -DCMAKE_ARCHITECTURE=x64
And I got this error:
[ 88%] Linking CXX static library ../Debug/lib/libcore.a
[ 88%] Built target core
CMake Error: nrc/CMakeFiles/nrc.dir/flags.make:9: *** missing separator. Stop.
gmake[1]: *** [CMakeFiles/Makefile2:272: nrc/CMakeFiles/nrc.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
CMake Error at prj/NAppGenerateTools.cmake:67 (message):
Abort
Call Stack (most recent call first):
CMakeLists.txt:56 (nap_generate_tools)
-- Configuring incomplete, errors occurred!