Replies: 3 comments 4 replies
-
please provide full logs |
Beta Was this translation helpful? Give feedback.
-
I saw GLFW_INCLUDE_NONE is defined, but I cannot find it in your provided xmake.lua
|
Beta Was this translation helpful? Give feedback.
-
it works for me on my macos.
[ 50%]: cache compiling.release src/main.cpp
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -c -Qunused-argument
s -target x86_64-apple-macos15.1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/D
eveloper/SDKs/MacOSX15.1.sdk -Isrc -DENGINE_ROOT_DIR=\"/private/tmp/test\" -DNOMINMAX -DGLM_ENABLE_EXPERIMENTAL -
DGLFW_INCLUDE_VULKAN -DGLFW_EXPOSE_NATIVE_WIN32 -DVK_USE_PLATFORM_WIN32_KHR -DVK_NO_PROTOTYPES -DIMGUI_DEFINE_MAT
H_OPERATORS -DGLFW_INCLUDE_NONE -DGL_SILENCE_DEPRECATION -framework Cocoa -framework IOKit -framework OpenGL -isy
stem /Users/ruki/.xmake/packages/g/glm/1.0.1/0f715c4cc6014c1cb44ef7926f0e090a/include -isystem /Users/ruki/.xmake
/packages/g/glfw/3.4/271d9849b1d440aa90104648b74310d7/include -isystem /Users/ruki/.xmake/packages/v/volk/1.3.290
+0/e58152f18b744dbab8dfd54e2d04c425/include -isystem /Users/ruki/.xmake/packages/v/vulkan-headers/1.3.290+0/c7bc6
57a94154a8c877999855162d4c5/include -isystem /Users/ruki/.xmake/packages/s/spirv-cross/1.3.268+0/e6221815ef5a44c8
90219bbdf61134da/include -isystem /Users/ruki/.xmake/packages/s/stb/2024.06.01/c5dad42a0d624f5a9cc4dce48178a35e/i
nclude -isystem /Users/ruki/.xmake/packages/s/stb/2024.06.01/c5dad42a0d624f5a9cc4dce48178a35e/include/stb -isyste
m /Users/ruki/.xmake/packages/a/assimp/v5.4.3/70c2032c2cae4584891588798ee17240/include -isystem /Users/ruki/.xmak
e/packages/m/minizip/v1.2.13/d1916a67b92342b78e85cd63eb5d6d72/include -isystem /Users/ruki/.xmake/packages/m/mini
zip/v1.2.13/d1916a67b92342b78e85cd63eb5d6d72/include/minizip -isystem /Users/ruki/.xmake/packages/z/zlib/v1.3.1/3
323a56e4f3c40c2895f732924aff059/include -o build/.objs/test_app/macosx/x86_64/release/src/main.cpp.o src/main.cpp
[ 75%]: archiving.release libtest_app.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar -cr build/macosx/x86_64
/release/libtest_app.a build/.objs/test_app/macosx/x86_64/release/src/main.cpp.o
[100%]: build ok, spent 0.221s
|
Beta Was this translation helpful? Give feedback.
-
My complex project report error about definition is not be used, for example:
In this case,
GLM_ENABLE_EXPERIMENTAL
is not defined.But i am sured that it is writed in xmake.lua.
So I create a new project, only one source file, and keep most of my xmake.lua code.
The only source file:
The xmake.lua from my complex project
Then the minimum project build success.
I didn't simplify my xmake.lua. Because I want to show there is no more code to influent building.
By the way, I output the compile_command.json for my complex project, there is no
GLM_ENABLE_EXPERIMENTAL
. But in my minimum project, it shows up.So the reason is double checked, the definition is not used when compiling. Why? Is anywhere my code affect the building?
Beta Was this translation helpful? Give feedback.
All reactions