Hello,
Well, maybe another future tutorial. For the moment, i’m stuck.
The Urho3D build with -DURHO3D_LUA works like a charm (except it’s slow, relative to C++ or AngelScript samples).
Then I’ve decided to build Urho3D with LuaJIT support.
I tried with these parameters:
./cmake_gcc.sh -DURHO3D_LUA=0 -DURHO3D_LUAJIT=1
I get no warnings for x86 (native) build, but for Android:
Android build
================================================================================
CMake Error at ThirdParty/LuaJIT/CMakeLists.txt:169 (message):
The configuration cannot be done now because the target-specific
'buildvm-android' tool has not been built yet. However, the specific
target architecture information is now saved. Reconfigure the desktop
native build to incorporate the saved information by calling the respective
batch/shell script for native build (it might be the same script as this
one). Then run make or the equivalent command to actually build the
missing tool natively. Finally, after the tool is built, come back to call
this batch/shell script again to complete this configuration.
-- Configuring incomplete, errors occurred!
See also "/home/zakk/sources/Urho3D/android-Build/CMakeFiles/CMakeOutput.log".
I’ve checked the CMakeOutput.log and didn’t find anything odd.
And indeed, when i try to build LuaJIT (~/sources/Urho3D/Build/ThirdParty/LuaJIT), x86 static lib is generated, but troubles rise with buildvm-android. (i know, i’ve been warned).
The LuaJIT static library for x86 succeed.
Scanning dependencies of target buildvm-android
[100%] Building C object ThirdParty/LuaJIT/generated/buildvm-android/CMakeFiles/buildvm-android.dir/home/zakk/sources/Urho3D/Source/Thir
dParty/LuaJIT/src/host/buildvm.c.o
[100%] Building C object ThirdParty/LuaJIT/generated/buildvm-android/CMakeFiles/buildvm-android.dir/home/zakk/sources/Urho3D/Source/Thir
dParty/LuaJIT/src/host/buildvm_asm.c.o
[100%] Building C object ThirdParty/LuaJIT/generated/buildvm-android/CMakeFiles/buildvm-android.dir/home/zakk/sources/Urho3D/Source/Thir
dParty/LuaJIT/src/host/buildvm_peobj.c.o
[100%] Building C object ThirdParty/LuaJIT/generated/buildvm-android/CMakeFiles/buildvm-android.dir/home/zakk/sources/Urho3D/Source/Thir
dParty/LuaJIT/src/host/buildvm_lib.c.o
[100%] Building C object ThirdParty/LuaJIT/generated/buildvm-android/CMakeFiles/buildvm-android.dir/home/zakk/sources/Urho3D/Source/Thir
dParty/LuaJIT/src/host/buildvm_fold.c.o
Linking C executable /home/zakk/sources/Urho3D/Bin/buildvm-android
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.1/../../../../lib/libdl.so when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.1/../../../../lib/libdl.a when searching for -ldl
/usr/bin/ld: skipping incompatible /lib/../lib/libdl.so when searching for -ldl
/usr/bin/ld: skipping incompatible /lib/../lib/libdl.a when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/../lib/libdl.so when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/../lib/libdl.a when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.1/../../../libdl.so when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.1/../../../libdl.a when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/libdl.so when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/libdl.a when searching for -ldl
/usr/bin/ld: cannot find -ldl
(cut the rest)
What can i do or try ?
Thank you.