Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Issue with config codeblock to build file (.so)
(1/1)
console:
Hi all,
I try config code block to build file (.so) but not successful with some error.
I use android-ndk-r7.
This is log:
--- Code: ----------------- Build: Android-Debug in jni ---------------
[ 20.0%] Compiling: ..\android-receiver.cpp
[ 40.0%] Compiling: ..\app-android.cpp
[ 60.0%] Compiling: ..\app-quake3.cpp
[ 80.0%] Compiling: ..\CIrrDeviceAndroid.cpp
[100.0%] Linking dynamic library: ..\..\libs\armeabi\libjni.so
C:/DevTools/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: unrecognized option '--output-def=..\..\libs\armeabi\libjni.so.def'
C:/DevTools/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: use the --help option for usage information
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 4 seconds)
0 errors, 0 warnings
--- End code ---
Hope to receive help from peoples
Thanks all. :)
MortenMacFly:
Why don't you first READ what you post? Especially this:
--- Quote from: console on March 10, 2012, 02:07:52 pm ---
--- Code: ---ld.exe: unrecognized option '--output-def=..\..\libs\armeabi\libjni.so.def'
ld.exe: use the --help option for usage information
--- End code ---
--- End quote ---
console:
I don't know how to fix this error. What I must be config to build file (.so) by codeblock :( ?
Thanks.
MortenMacFly:
--- Quote from: console on March 10, 2012, 03:24:22 pm ---I don't know how to fix this bug. What I must be config to build file (.so) by codeblock :( ?
Thanks.
--- End quote ---
I don't know what compiler you've selected, hopefully an ARM based one. If so, go to the global compiler options -> select your compiler -> switch to tab "other settings" -> click on "Advanced options" -> On the tab "commands" select "Link object files to dynamic library" -> remove the option "-Wl,--output-def=$def_output".
Notice that this is ONLY A WILD GUESS! Consult the compiler documentation how to do it properly. Ask in the compiler forum (not the C::B forum) for additional help.
console:
--- Quote from: MortenMacFly on March 10, 2012, 03:31:30 pm ---
--- Quote from: console on March 10, 2012, 03:24:22 pm ---I don't know how to fix this bug. What I must be config to build file (.so) by codeblock :( ?
Thanks.
--- End quote ---
I don't know what compiler you've selected, hopefully an ARM based one. If so, go to the global compiler options -> select your compiler -> switch to tab "other settings" -> click on "Advanced options" -> On the tab "commands" select "Link object files to dynamic library" -> remove the option "-Wl,--output-def=$def_output".
Notice that this is ONLY A WILD GUESS! Consult the compiler documentation how to do it properly. Ask in the compiler forum (not the C::B forum) for additional help.
--- End quote ---
Thank you very much. :)
Navigation
[0] Message Index
Go to full version