Build Error on macOS Mojave 10.14.5

#1

When I build I get this error. Please help. Thanks! :slight_smile:
I have Defold 1.2.158

clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
ld: warning: object file (/usr/local/extender/sdk/3d63d0509cc828c9555afc149cccfea0f7f83c97/defoldsdk//ext/lib/x86_64-darwin/libunwind.a(UnwindLevel1.c.o)) was built for newer OSX version (10.13) than being linked (10.7)
ld: warning: object file (/usr/local/extender/sdk/3d63d0509cc828c9555afc149cccfea0f7f83c97/defoldsdk//ext/lib/x86_64-darwin/libunwind.a(UnwindLevel1-gcc-ext.c.o)) was built for newer OSX version (10.13) than being linked (10.7)
ld: warning: object file (/usr/local/extender/sdk/3d63d0509cc828c9555afc149cccfea0f7f83c97/defoldsdk//ext/lib/x86_64-darwin/libunwind.a(libunwind.cpp.o)) was built for newer OSX version (10.13) than being linked (10.7)
ld: warning: object file (/usr/local/extender/sdk/3d63d0509cc828c9555afc149cccfea0f7f83c97/defoldsdk//ext/lib/x86_64-darwin/libunwind.a(UnwindRegistersSave.S.o)) was built for newer OSX version (10.13) than being linked (10.7)
ld: warning: object file (/usr/local/extender/sdk/3d63d0509cc828c9555afc149cccfea0f7f83c97/defoldsdk//ext/lib/x86_64-darwin/libunwind.a(UnwindRegistersRestore.S.o)) was built for newer OSX version (10.13) than being linked (10.7)
ld: warning: object file (/usr/local/extender/sdk/3d63d0509cc828c9555afc149cccfea0f7f83c97/defoldsdk//ext/lib/x86_64-darwin/libunwind.a(Unwind_AppleExtras.cpp.o)) was built for newer OSX version (10.13) than being linked (10.7)
Undefined symbols for architecture x86_64:
“dmProfiler::RenderProfiler(dmProfile::Profile*, dmGraphics::Context*, dmRender::RenderContext*, dmRender::FontMap*)”, referenced from:
dmEngine::Step(dmEngine::Engine*) in libengine_release.a(engine_4.o)
“dmProfiler::ToggleProfiler()”, referenced from:
dmEngine::Dispatch(dmMessage::Message*, void*) in libengine_release.a(engine_4.o)
“dmProfiler::SetUpdateFrequency(unsigned int)”, referenced from:
dmEngine::Init(dmEngine::Engine*, int, char**) in libengine_release.a(engine_4.o)
dmEngine::Dispatch(dmMessage::Message*, void*) in libengine_release.a(engine_4.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

1 Like

#2

I think we need more information - I’m guessing you are building extensions, and if so, which ones? It’d be great if you could provide a small repro case.

2 Likes

#3

Sorry, I’m new here. Can you give me details how to provide a small repro case for you?

0 Likes

#4

Strip down your project to the bare minimum needed to reproduce the problem, then zip that and share it. Exclude .git, .internal and the build folder from the zip file.

0 Likes

#5

This error leads me to believe you are using an game.appmanifest?
And in it you probably remove the profiler library, but don’t actually add the. profiler_null library?
Could this be it?

2 Likes

#6

I see. Great help! Thanks a lot! :slight_smile:

0 Likes