Forum > Android

The application can not find

(1/5) > >>

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

D/dalvikvm(  291): Trying to load lib /data/data/com.pascal.lcltest/lib/ 0x40514330

E/lclapp  (  291): WARNING: Could not load

W/System.err(  291): java.lang.UnsatisfiedLinkError: Cannot load library: link_image[1962]:    32 could not load needed library '' for '' (load_library[1104]: Library '' not found)

W/System.err(  291):    at java.lang.Runtime.loadLibrary(

W/System.err(  291):    at java.lang.System.loadLibrary(

W/System.err(  291):    at com.pascal.lcltest.LCLActivity.<clinit>(

W/System.err(  291):    at java.lang.Class.newInstanceImpl(Native Method)

downloaded to the device not an option, since all mashines on which the library no need to install root
загружать на аппарат не выход, так как на всех апаратах на которых нету этой библиотеки потребуется установить root

When you compile the project androidlcltest.lpi the error appears the lack of To solve this problem, I used binutils-arm-linux-gnueabi and linked into
  sudo ln-s / usr/arm-linux-gnueabi/lib/ / lib/
After the project is compiled without-WR but the phone does not start and the emulator does not start.

При компиляции проекта androidlcltest.lpi появилась ошибка отсутсвия Для решения проблемы я использовал binutils-arm-linux-gnueabi и прилинковал
 sudo ln -s /usr/arm-linux-gnueabi/lib/ /lib/
После проект скомпилировался без параметра -WR  но на телефоне не запустилось и эмуляторе не запустился.

What do I do?

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:

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:

and see here the build option to make it skip the wrong libraries:

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
and it seems to me clear and the instructions for 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:

Here you can check which revisions match it. For example this one matches it:

You can download this with these commands:

svn checkout 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?


--- 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:

--- 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?


[0] Message Index

[#] Next page

Go to full version