Cross compile lazarus / 43-Android ---------------------------------------------------------------------- Microges2000 · 2012-03-22 07:09 Dear, I do not know if you know Codetrypoon... however. I tried the cross compile from Windows 32 bit to Linux and work well but I have a little problem. If I set how operating sistem Linux and I try to compile a empy library the linker give the following error Options changed, recompiling clean with -B C:\codetyphon\fpc\bin\i386-win32\arm-linux-ld.exe: warning: link.res contains output sections; did you forget -T? C:\codetyphon\fpc\bin\i386-win32\arm-linux-ld.exe: cannot find /lib/ld-linux.so.3 test1.lpr(16,32) Error: Error while linking test1.lpr(16,32) Fatal: There were 1 errors compiling module, stopping but if I simple trasform the word Library in Program all work well. Someone have idea? Thanks, David ---------------------------------------------------------------------- Andru · 2012-03-22 07:30 You need to specify a path to libdl.so from Android NDK via Custom Options of project. Something like this: Code: [Select]-FL${LazarusDir}..\android- ndk-r7\platforms\android-3\arch-arm\usr\lib\libdl.so[code] ---------------------------------------------------------------------- Microges2000 · 2012-03-22 07:47 Quote from: Andru on March 22, 2012, 08:30:21 amYou need to specify a path to libdl.so from Android NDK via Custom Options of project. Something like this: Code: [Select]-FL${LazarusDir}..\android- ndk-r7\platforms\android-3\arch-arm\usr\lib\libdl.so[code] Very very Thanks ---------------------------------------------------------------------- Microges2000 · 2012-03-22 08:58 Another little thing If i try to perform ant command I have the follow error BUILD FAILED C:\codetyphon\lazarus\examples\androidlcl\android\build.xml:83: Cannot find C:\Programmi\Android\android-sdk-windows\tools\ant\build.xml imported from C:\codetyphon\lazarus\examples\androidlcl\android\build.xml the problem is that into android-sdk-windows\tools\ant the file build.xml dont exist. I tried to copy the file from android-sdk-linux but do not work Some idea? ---------------------------------------------------------------------- LA.Center · 2012-03-31 18:33 the ant needs a build.xml and some property files, I sugest that you copy those file from an existing android project. I have attached them (remove .txt from all attached files) -> IMPORTANT: you have to adjust the path in local.properties file pointing to your android SDK. I have a question though, how did you get the cross-compiler to work on win32, I tried it a couple of times and it failed. Which version of CodeTyphon are you using? ---------------------------------------------------------------------- Leledumbo · 2012-04-01 03:42 QuoteI have a question though, how did you get the cross-compiler to work on win32, I tried it a couple of times and it failed.I don't use the codetyphon version, but the cross compiler indeed works in win32. How? The same way it works on lin32.