Hello Mathias,
thank you for the reply. However, I’m trying to build a sample project taken from manuals pages and I’ve got this error:
clang++ -c -arch x86_64 -target x86_64-apple-darwin11 -isysroot /opt/MacOSX.sdk/ -m64 -O2 -g -mmacosx-version-min=10.7 -DDM_PLATFORM_OSX -stdlib=libc++ -I/tmp/upload4455052575334162150/luasec/include -I/var/extender/sdk/1afccdb2cd42ca3bc7612a0496dfa6d434a8ebf9/defoldsdk/include -I/var/extender/sdk/1afccdb2cd42ca3bc7612a0496dfa6d434a8ebf9/defoldsdk/sdk/include /tmp/upload4455052575334162150/luasec/src/luasec.cpp -o/var/extender/builds/build5370711675559338880/luasec.cpp_0.o
In file included from /tmp/upload4455052575334162150/luasec/src/luasec.cpp:6:
In file included from /var/extender/sdk/1afccdb2cd42ca3bc7612a0496dfa6d434a8ebf9/defoldsdk/include/dmsdk/sdk.h:11:
/var/extender/sdk/1afccdb2cd42ca3bc7612a0496dfa6d434a8ebf9/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 /var/extender/builds/build5370711675559338880/lib19035937-37f7-43a7-a607-cf3b5358876c.a /var/extender/builds/build5370711675559338880/luasec.cpp_0.o
clang++ -c -arch x86_64 -target x86_64-apple-darwin11 -isysroot /opt/MacOSX.sdk/ -m64 -O2 -g -mmacosx-version-min=10.7 -DDM_PLATFORM_OSX -stdlib=libc++ -I/var/extender/sdk/1afccdb2cd42ca3bc7612a0496dfa6d434a8ebf9/defoldsdk/include -I/var/extender/sdk/1afccdb2cd42ca3bc7612a0496dfa6d434a8ebf9/defoldsdk/sdk/include /var/extender/builds/build5370711675559338880/main.cpp -o/var/extender/builds/build5370711675559338880/main_tmpf7f59c31-b35d-48ff-90c5-748495bcd480.o
clang++ -arch x86_64 -target x86_64-apple-darwin11 -isysroot /opt/MacOSX.sdk/ -m64 -O2 -g -mmacosx-version-min=10.7 -o /var/extender/builds/build5370711675559338880/dmengine -ObjC -L/var/extender/builds/build5370711675559338880 -lz -lc++ -lsqlite3 -l19035937-37f7-43a7-a607-cf3b5358876c -F/var/extender/builds/build5370711675559338880 -framework Foundation -framework AppKit -framework Cocoa -framework OpenGL -framework OpenAL -framework AGL -framework IOKit -framework Carbon -framework CoreVideo -L/var/extender/sdk/1afccdb2cd42ca3bc7612a0496dfa6d434a8ebf9/defoldsdk/lib/x86_64-darwin -L/var/extender/sdk/1afccdb2cd42ca3bc7612a0496dfa6d434a8ebf9/defoldsdk/ext/lib/x86_64-darwin -lengine -ladtruthext -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 /var/extender/builds/build5370711675559338880/main_tmpf7f59c31-b35d-48ff-90c5-748495bcd480.o
Undefined symbols for architecture x86_64:
"_luasec", referenced from:
__Z17dmExportedSymbolsv in main_tmpf7f59c31-b35d-48ff-90c5-748495bcd480.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)
luasec.cpp is the same of myextension.cpp file. I suspect there may be something wrong in my system… maybe my lua include/lib files?
G.