Forum > Android
The application can not find ld-linux.so.3
Rustam Asmandiarov:
Hello! I compiled the application for the management and tested on the Samsung Galaxy s 2 i9100G application will not run. According tried on the emulator, just does not start, logcat brought this:
Здраствуйте! Я скомпилировал приложение по руководству и протестировал на Samsung Galaxy s 2 i9100G приложение не запустилось. По пробовал на Эмуляторе, точно так же не запустилось, logcat вывел это:
I/lclapp ( 291): Trying to load liblclapp.so
D/dalvikvm( 291): Trying to load lib /data/data/com.pascal.lcltest/lib/liblclapp.so 0x40514330
E/lclapp ( 291): WARNING: Could not load liblclapp.so
W/System.err( 291): java.lang.UnsatisfiedLinkError: Cannot load library: link_image[1962]: 32 could not load needed library 'ld-linux.so.3' for 'liblclapp.so' (load_library[1104]: Library 'ld-linux.so.3' not found)
W/System.err( 291): at java.lang.Runtime.loadLibrary(Runtime.java:434)
W/System.err( 291): at java.lang.System.loadLibrary(System.java:554)
W/System.err( 291): at com.pascal.lcltest.LCLActivity.<clinit>(LCLActivity.java:621)
W/System.err( 291): at java.lang.Class.newInstanceImpl(Native Method)
downloaded to the device ld-linux.so.3 not an option, since all mashines on which the library no need to install root
загружать на аппарат ld-linux.so.3 не выход, так как на всех апаратах на которых нету этой библиотеки потребуется установить root
When you compile the project androidlcltest.lpi the error appears the lack of ld-linux.so.3. To solve this problem, I used binutils-arm-linux-gnueabi and linked into
sudo ln-s / usr/arm-linux-gnueabi/lib/ld-linux.so.3 / lib/ld-linux.so.3
After the project is compiled without-WR but the phone does not start and the emulator does not start.
При компиляции проекта androidlcltest.lpi появилась ошибка отсутсвия ld-linux.so.3. Для решения проблемы я использовал binutils-arm-linux-gnueabi и прилинковал
sudo ln -s /usr/arm-linux-gnueabi/lib/ld-linux.so.3 /lib/ld-linux.so.3
После проект скомпилировался без параметра -WR но на телефоне не запустилось и эмуляторе не запустился.
What do I do?
lazarus: 0.9.31.33575
FPC:2.7.1
felipemdc:
FPC 2.6 and 2.7 are both broken for Android. You *must* use FPC 2.5.1 from 19th January 2011 as explained here:
http://wiki.lazarus.freepascal.org/Custom_Drawn_Interface/Android#Free_Pascal_Bugs_on_Android_Support
Also don't download libraries from the device and don't do " sudo ln -s", all imaginable libraries that you could ever need come in the Android NDK, as explained here:
http://wiki.lazarus.freepascal.org/Custom_Drawn_Interface/Android#Compiling_the_example_LCL_Android_Application
and see here the build option to make it skip the wrong libraries:
http://wiki.lazarus.freepascal.org/Custom_Drawn_Interface/Android#The_indispensable_build_options
Rustam Asmandiarov:
And you do not have SVN version of this boot? I do not know how to link the compiled version of the compiler to ensure that there is.
I just use this guide
http://wiki.lazarus.freepascal.org/Setup_Cross_Compile_For_ARM
and it seems to me clear and the instructions for android
http://wiki.lazarus.freepascal.org/Custom_Drawn_Interface/Android # The_indispensable_build_options
Yes, I use the NDK and SDK
--- Quote from: felipemdc on November 17, 2011, 08:38:44 am ---
--- Quote from: Rustam Asmandiarov on November 17, 2011, 08:28:48 am ---Prompt please link to the repository Compiler 2.5.1
--- End quote ---
2.5.1 from 19th January is the Free Pascal Trunk from 19th January:
http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/
Here you can check which revisions match it. For example this one matches it:
http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=rev&revision=16750
You can download this with these commands:
svn checkout http://svn.freepascal.org/svn/fpc/trunk fpctrunk
cd fpctrunk
svn up -r 16750
In the beginning of February a Android break was introduced, so I would only use revision from January as a starting point.
After you download the sources from January to need to modify them in your local copy or copy them to a new repository of your own to work on them, which you can open for example in sourceforge.
--- End quote ---
I found your old post, this is what you need?
felipemdc:
--- Quote from: Rustam Asmandiarov on February 17, 2012, 08:15:20 am ---And you do not have SVN version of this boot?
--- End quote ---
The exact revision number? I don't remember, one can use viewcv to see which revision corresponds to 19th january:
http://svn.freepascal.org/cgi-bin/viewvc.cgi/?root=fpc
--- Quote --- I do not know how to link the compiled version of the compiler to ensure that there is.
--- End quote ---
I haven't understood this sentense.
--- Quote ---I found your old post, this is what you need?
--- End quote ---
Yes, that shows one possible revision to use.
Rustam Asmandiarov:
Maybe that's it?
http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=rev&revision=16795
Navigation
[0] Message Index
[#] Next page