I can’t build my project; unknown source error
Describe the bug (REQUIRED)
I was able to build my project on Defold 1.7.0 but when i updated to 1.8.0 i get the error:
Unknown source
lld-link: error: undefined symbol: public: void __cdecl b2Body::SetTransform(struct b2Vec2 const &, float)
>>> referenced by D:\a\defold\defold\engine\gamesys\src\gamesys\scripts\box2d\script_box2d_body.cpp:105
>>> libscript_box2d.lib(script_box2d_body.cpp.2.o):(int __cdecl dmGameSystem::Body_SetTransform(struct lua_State *))
lld-link: error: undefined symbol: public: void __cdecl b2Body::ResetMassData(void)
>>> referenced by D:\a\defold\defold\engine\gamesys\src\gamesys\scripts\box2d\script_box2d_body.cpp:330
>>> libscript_box2d.lib(script_box2d_body.cpp.2.o):(int __cdecl dmGameSystem::Body_SetFixedRotation(struct lua_State *))
>>> referenced by D:\a\defold\defold\tmp\dynamo_home\ext\include\Box2D\Dynamics\b2Body.h:684
>>> libscript_box2d.lib(script_box2d_body.cpp.2.o):(public: void __cdecl b2Body::SetFixedRotation(bool))
lld-link: error: undefined symbol: public: void __cdecl b2Body::SetType(enum b2BodyType)
>>> referenced by D:\a\defold\defold\engine\gamesys\src\gamesys\scripts\box2d\script_box2d_body.cpp:279
>>> libscript_box2d.lib(script_box2d_body.cpp.2.o):(int __cdecl dmGameSystem::Body_SetType(struct lua_State *))
lld-link: error: undefined symbol: public: void __cdecl b2Body::SetActive(bool)
>>> referenced by D:\a\defold\defold\engine\gamesys\src\gamesys\scripts\box2d\script_box2d_body.cpp:364
>>> libscript_box2d.lib(script_box2d_body.cpp.2.o):(int __cdecl dmGameSystem::Body_SetActive(struct lua_State *))
lld-link: error: undefined symbol: public: void __cdecl b2Body::Dump(void)
>>> referenced by D:\a\defold\defold\engine\gamesys\src\gamesys\scripts\box2d\script_box2d_body.cpp:466
>>> libscript_box2d.lib(script_box2d_body.cpp.2.o):(int __cdecl dmGameSystem::Body_Dump(struct lua_State *))
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
com.defold.extender.ExtenderException: java.io.IOException: windres -i /var/extender/sdk/fd1ad4c17bfdcd890ea7176f2672c35102384419/defoldsdk//lib/x86_64-win32/engine.rc -O coff -o build/dmengine.res
clang++ -DDLIB_LOG_DOMAIN="UNKNOWN" -DDDF_EXPOSE_DESCRIPTORS -DDM_PLATFORM_WINDOWS -D_CRT_SECURE_NO_WARNINGS -D_CRT_USE_BUILTIN_OFFSETOF -D_WINSOCK_DEPRECATED_NO_WARNINGS -D__STDC_LIMIT_MACROS -DWINVER=0x0600 -DWIN32 -DNOMINMAX -target x86_64-pc-win32-msvc -m64 -O2 -g -gcodeview -O2 -Wall -Werror=format -fvisibility=hidden -nostdinc++ -nostdinc++ -isystem /usr/lib/llvm-17/lib/clang/17/include -isystem /opt/platformsdk/Win32/MicrosoftVisualStudio2022/VC/Tools/MSVC/14.37.32822//include -isystem /opt/platformsdk/Win32/MicrosoftVisualStudio2022/VC/Tools/MSVC/14.37.32822//atlmfc/include -isystem /opt/platformsdk/Win32/WindowsKits/10//Include/10.0.20348.0/ucrt -isystem /opt/platformsdk/Win32/WindowsKits/10//Include/10.0.20348.0/winrt -isystem /opt/platformsdk/Win32/WindowsKits/10//Include/10.0.20348.0/um -isystem /opt/platformsdk/Win32/WindowsKits/10//Include/10.0.20348.0/shared -I/var/extender/sdk/fd1ad4c17bfdcd890ea7176f2672c35102384419/defoldsdk//include -I/var/extender/sdk/fd1ad4c17bfdcd890ea7176f2672c35102384419/defoldsdk//sdk/include -I/var/extender/sdk/fd1ad4c17bfdcd890ea7176f2672c35102384419/defoldsdk//ext/include build/main.cpp -c -o build/main_tmp0.o
clang++ -o build/dmengine.exe -target x86_64-pc-win32-msvc -m64 -O2 -g -O2 -fuse-ld=lld -Wl,/entry:mainCRTStartup -Wl,/safeseh:no -L/tmp/job6918143678218281068/build -lOpenGL32 -ldelayimp -lUser32 -lshell32 -lXinput9_1_0 -ldinput8 -ldxguid -lOpenAL32 -lWS2_32 -liphlpapi -lDbgHelp -lAdvAPI32 -lPsapi -lGdi32 -llibliveupdate_null.lib -llibphysics_null.lib -L/var/extender/sdk/fd1ad4c17bfdcd890ea7176f2672c35102384419/defoldsdk//lib/x86_64-win32 -L/var/extender/sdk/fd1ad4c17bfdcd890ea7176f2672c35102384419/defoldsdk//ext/lib/x86_64-win32 -L/opt/platformsdk/Win32/MicrosoftVisualStudio2022/VC/Tools/MSVC/14.37.32822//lib/x64 -L/opt/platformsdk/Win32/MicrosoftVisualStudio2022/VC/Tools/MSVC/14.37.32822//atlmfc/lib/x64 -L/opt/platformsdk/Win32/WindowsKits/10//Lib/10.0.20348.0/ucrt/x64 -L/opt/platformsdk/Win32/WindowsKits/10//Lib/10.0.20348.0/um/x64 -llibengine -llibengine_service -llibmbedtls -llibzip -llibprofile -llibremotery -llibprofilerext -llibrecord -llibgameobject -llibddf -llibresource -llibgamesys -llibscript_box2d -llibgraphics -llibgraphics_transcoder_basisu -llibbasis_transcoder -llibplatform -llibrender -llibscript -llibluajit-5.1 -llibextension -llibhid -llibinput -llibparticle -llibrig -llibdlib -llibdmglfw -llibgui -llibcrashext -llibsound -lvpx build/main_tmp0.o build/dmengine.res
So i just skipped 1.8.0 and was waiting for 1.8.1, hoping the problem would resolve by itself but this didn’t. Yes, i can wait longer but i’m afraid that won’t happen
To Reproduce (REQUIRED)
Steps to reproduce the behavior:
- Update to 1.8.0 or 1.8.1
- Just try to build my game
Expected behaviour (REQUIRED)
I expected i’m able to build my game
Defold version (REQUIRED):
1.8.0; 1.8.1
Platforms (REQUIRED):
OS: Windows 11