Defold Unable to Build After Dropping SDK

2 posts (showing 1-2)
dan.base11studios

Market Level 0Community Level 0
1 posts

I am developing a Defold application and put the "extension" folder from the Defold SDK into my application. Once I do a "Build and Launch" in Defold, I get the below error in the build process. Any suggestions?

Build server output: clang++ -c -arch x86_64 -target x86_64-apple-darwin12 -isysroot /opt/MacOSX10.12.sdk/ -m64 -O2 -g -mmacosx-version-min=10.7 -DDM_PLATFORM_OSX   -Iupload/enhance_extension/include/   -I/var/extender/sdk/7ba1ba8d65588009458c7f389307d1943d25a683/defoldsdk//include -I/var/extender/sdk/7ba1ba8d65588009458c7f389307d1943d25a683/defoldsdk//sdk/include  upload/enhance_extension/src/enhance_ios.mm -obuild/enhance_ios.mm_0.o

clang++ -c -arch x86_64 -target x86_64-apple-darwin12 -isysroot /opt/MacOSX10.12.sdk/ -m64 -O2 -g -mmacosx-version-min=10.7 -DDM_PLATFORM_OSX   -Iupload/enhance_extension/include/   -I/var/extender/sdk/7ba1ba8d65588009458c7f389307d1943d25a683/defoldsdk//include -I/var/extender/sdk/7ba1ba8d65588009458c7f389307d1943d25a683/defoldsdk//sdk/include  upload/enhance_extension/src/enhance_android.cpp -obuild/enhance_android.cpp_1.o

clang++ -c -arch x86_64 -target x86_64-apple-darwin12 -isysroot /opt/MacOSX10.12.sdk/ -m64 -O2 -g -mmacosx-version-min=10.7 -DDM_PLATFORM_OSX   -Iupload/enhance_extension/include/   -I/var/extender/sdk/7ba1ba8d65588009458c7f389307d1943d25a683/defoldsdk//include -I/var/extender/sdk/7ba1ba8d65588009458c7f389307d1943d25a683/defoldsdk//sdk/include  upload/enhance_extension/src/enhance_osx.mm -obuild/enhance_osx.mm_2.o In file included from upload/enhance_extension/src/enhance_osx.mm:4: In file included from upload/enhance_extension/src/enhance_internal.h:4: In file included from /var/extender/sdk/7ba1ba8d65588009458c7f389307d1943d25a683/defoldsdk//include/dmsdk/sdk.h:11: /var/extender/sdk/7ba1ba8d65588009458c7f389307d1943d25a683/defoldsdk//include/dmsdk/dlib/log.h:109:2: warning: "DLIB_LOG_DOMAIN is not defined" [-W#warnings] #warning "DLIB_LOG_DOMAIN is not defined"  ^ 1 warning generated.

clang++ -c -arch x86_64 -target x86_64-apple-darwin12 -isysroot /opt/MacOSX10.12.sdk/ -m64 -O2 -g -mmacosx-version-min=10.7 -DDM_PLATFORM_OSX   -Iupload/enhance_extension/include/   -I/var/extender/sdk/7ba1ba8d65588009458c7f389307d1943d25a683/defoldsdk//include -I/var/extender/sdk/7ba1ba8d65588009458c7f389307d1943d25a683/defoldsdk//sdk/include  upload/enhance_extension/src/enhance.cpp -obuild/enhance.cpp_3.o In file included from upload/enhance_extension/src/enhance.cpp:4: In file included from upload/enhance_extension/src/enhance_internal.h:4: In file included from /var/extender/sdk/7ba1ba8d65588009458c7f389307d1943d25a683/defoldsdk//include/dmsdk/sdk.h:11: /var/extender/sdk/7ba1ba8d65588009458c7f389307d1943d25a683/defoldsdk//include/dmsdk/dlib/log.h:109:2: warning: "DLIB_LOG_DOMAIN is not defined" [-W#warnings] #warning "DLIB_LOG_DOMAIN is not defined"  ^ 1 warning generated.

llvm-ar rcs /tmp/job7439485270590656943/build/lib438db46d-9eab-4598-a039-e2d3106edcbf.a build/enhance_ios.mm_0.o build/enhance_android.cpp_1.o build/enhance_osx.mm_2.o build/enhance.cpp_3.o 

clang++ -c -arch x86_64 -target x86_64-apple-darwin12 -isysroot /opt/MacOSX10.12.sdk/ -m64 -O2 -g -mmacosx-version-min=10.7 -DDM_PLATFORM_OSX     -I/var/extender/sdk/7ba1ba8d65588009458c7f389307d1943d25a683/defoldsdk//include -I/var/extender/sdk/7ba1ba8d65588009458c7f389307d1943d25a683/defoldsdk//sdk/include  build/main.cpp -obuild/main_tmpdd1ae7d6-9ea0-4165-b3b3-0e85185c2b34.o

clang++ -arch x86_64 -target x86_64-apple-darwin12 -isysroot /opt/MacOSX10.12.sdk/ -m64 -O2 -g -mmacosx-version-min=10.7 -o build/dmengine  -L/tmp/job7439485270590656943/build   -l438db46d-9eab-4598-a039-e2d3106edcbf  -F/tmp/job7439485270590656943/build   -framework Foundation -framework AppKit -framework Cocoa -framework OpenGL -framework OpenAL -framework AGL -framework IOKit -framework Carbon -framework CoreVideo  -L/var/extender/sdk/7ba1ba8d65588009458c7f389307d1943d25a683/defoldsdk//lib/x86_64-darwin -L/var/extender/sdk/7ba1ba8d65588009458c7f389307d1943d25a683/defoldsdk//ext/lib/x86_64-darwin  -lengine -lwebviewext -ladtruthext -lprofilerext -lfacebookext -liapext -lpushext -liacext -lrecord -lgameobject -lddf -lresource -lgamesys -lgraphics -lphysics -lBulletDynamics -lBulletCollision -lLinearMath -lBox2D -lrender -lscript -llua -lextension -lhid -linput -lparticle -lrig -ldlib -ldmglfw -lgui -ltracking -lcrashext -lsound -ltremolo -lvpx -lliveupdate  build/main_tmpdd1ae7d6-9ea0-4165-b3b3-0e85185c2b34.o  Undefined symbols for architecture x86_64:   "_Defold_EnhanceInAppPurchases_attemptPurchase", referenced from:       __ZL22EnhanceAttemptPurchaseP9lua_State in lib438db46d-9eab-4598-a039-e2d3106edcbf.a(enhance.cpp_3.o)   "_Defold_EnhanceInAppPurchases_consume", referenced from:       __ZL14EnhanceConsumeP9lua_State in lib438db46d-9eab-4598-a039-e2d3106edcbf.a(enhance.cpp_3.o)   "_Defold_EnhanceInAppPurchases_getDisplayPrice", referenced from:       __ZL22EnhanceGetDisplayPriceP9lua_State in lib438db46d-9eab-4598-a039-e2d3106edcbf.a(enhance.cpp_3.o)   "_Defold_EnhanceInAppPurchases_getOwnedItemCount", referenced from:       __ZL24EnhanceGetOwnedItemCountP9lua_State in lib438db46d-9eab-4598-a039-e2d3106edcbf.a(enhance.cpp_3.o)   "_Defold_EnhanceInAppPurchases_isItemOwned", referenced from:       __ZL18EnhanceIsItemOwnedP9lua_State in lib438db46d-9eab-4598-a039-e2d3106edcbf.a(enhance.cpp_3.o)   "_Defold_EnhanceInAppPurchases_isSupported", referenced from:       __ZL21EnhanceIAPIsSupportedP9lua_State in lib438db46d-9eab-4598-a039-e2d3106edcbf.a(enhance.cpp_3.o)   "_Defold_EnhanceInAppPurchases_restorePurchases", referenced from:       __ZL23EnhanceRestorePurchasesP9lua_State in lib438db46d-9eab-4598-a039-e2d3106edcbf.a(enhance.cpp_3.o)   "_Defold_Enhance_hideBannerAd", referenced from:       __ZL19EnhanceHideBannerAdP9lua_State in lib438db46d-9eab-4598-a039-e2d3106edcbf.a(enhance.cpp_3.o)   "_Defold_Enhance_isBannerAdReady", referenced from:       __ZL22EnhanceIsBannerAdReadyP9lua_State in lib438db46d-9eab-4598-a039-e2d3106edcbf.a(enhance.cpp_3.o)   "_Defold_Enhance_isOfferwallReady", referenced from:       __ZL23EnhanceIsOfferwallReadyP9lua_State in lib438db46d-9eab-4598-a039-e2d3106edcbf.a(enhance.cpp_3.o)   "_Defold_Enhance_isSpecialOfferReady", referenced from:       __ZL26EnhanceIsSpecialOfferReadyP9lua_State in lib438db46d-9eab-4598-a039-e2d3106edcbf.a(enhance.cpp_3.o)   "_Defold_Enhance_pumpEvents", referenced from:       __Z15UpdateExtensionPN11dmExtension6ParamsE in lib438db46d-9eab-4598-a039-e2d3106edcbf.a(enhance.cpp_3.o)   "_Defold_Enhance_showBannerAd", referenced from:       __ZL19EnhanceShowBannerAdP9lua_State in lib438db46d-9eab-4598-a039-e2d3106edcbf.a(enhance.cpp_3.o)   "_Defold_Enhance_showOfferwall", referenced from:       __ZL20EnhanceShowOfferwallP9lua_State in lib438db46d-9eab-4598-a039-e2d3106edcbf.a(enhance.cpp_3.o)   "_Defold_Enhance_showSpecialOffer", referenced from:       __ZL23EnhanceShowSpecialOfferP9lua_State in lib438db46d-9eab-4598-a039-e2d3106edcbf.a(enhance.cpp_3.o) ld: symbol(s) not found for architecture x86_64 clang-3.9: error: linker command failed with exit code 1 (use -v to see invocation)

posted 2017-09-07T22:08:56-07:00
FGL_Kacper

FGL AdminCommunity Level 0
12 posts

Hello Dan,

It looks like you are trying to build your application for Mac OS. Please note Enhance library will work only for Android/iOS builds.

Let me know if you still have any issues.

Thanks,

Kacper

posted 2017-09-08T14:34:36-07:00