Welcome, Guest
Username: Password: Remember me
CodeTyphon Cross-Build Development, discussions and problems
  • Page:
  • 1

TOPIC:

Android linking failure on Mint 9 years 11 months ago #6477

  • Ignobilis
  • Ignobilis's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
Hi, I am having a problem which is similar to some others that I have seen on other forum posts.

I am running Mint 16 and wanting to compile for Android 4.2. All my settings are as described in the tutorial.

Errors are as follows:
Compile Project, OS: android, CPU: arm, Target: project1: Exit code 256, Errors: 1
/usr/lib/codetyphon/fpc/fpc32/bin/i386-linux/arm-android-ld: cannot find crtbegin_dynamic.o
/usr/lib/codetyphon/fpc/fpc32/bin/i386-linux/arm-android-ld: cannot find -ljnigraphics
/usr/lib/codetyphon/fpc/fpc32/bin/i386-linux/arm-android-ld: cannot find -llog
/usr/lib/codetyphon/fpc/fpc32/bin/i386-linux/arm-android-ld: skipping incompatible /usr/lib/i386-linux-gnu//libc.so when searching for -lc
/usr/lib/codetyphon/fpc/fpc32/bin/i386-linux/arm-android-ld: skipping incompatible /usr/lib/i386-linux-gnu//libc.a when searching for -lc
/usr/lib/codetyphon/fpc/fpc32/bin/i386-linux/arm-android-ld: cannot find -lc
/usr/lib/codetyphon/fpc/fpc32/bin/i386-linux/arm-android-ld: skipping incompatible /usr/lib/i386-linux-gnu//libc.so when searching for -lc
/usr/lib/codetyphon/fpc/fpc32/bin/i386-linux/arm-android-ld: skipping incompatible /usr/lib/i386-linux-gnu//libc.a when searching for -lc
/usr/lib/codetyphon/fpc/fpc32/bin/i386-linux/arm-android-ld: cannot find -lc
project1.lpr(22,0) Error: Error while linking

I understand that my gcc version is probably part of the problem, but I do not know how to fix it.

My current gcc version is:

~ $ gcc --version
gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1

I would sincerely appreciate any assistance on resolving this problem.

Thank you in advance.

ignobilis

Please Log in or Create an account to join the conversation.

Last edit: by Ignobilis.

Android linking failure on Mint 9 years 11 months ago #6479

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Sir
did you download OS-libraries for Android 4.2 ?
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Android linking failure on Mint 9 years 11 months ago #6480

  • Ignobilis
  • Ignobilis's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
Thank you again for your quick response.

I followed the instructions in the tutorial:

1. I downloaded the Android 4.2 library for ARM
2. I did a build of the cross element ARM Android (it appears in the Status on CTC)
3. I downloaded Android SDK and NDK and installed in two folders
4. In IDE I set target OS and target CPU
5. In IDE I set the library path to location of Android 4 ARM lib
6. In IDE I changed widget type to customdrawn
7. In IDE excluded debugging info from executable

I think that was everything. Is there something else I should do?

I am going to try to setup my Windows CT setup as well to try the cross build.

Please Log in or Create an account to join the conversation.

Last edit: by Ignobilis.

Android linking failure on Mint 9 years 11 months ago #6481

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
No, I think all are OK
one question: do you use Ubuntu with Unity Desktop?
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

Android linking failure on Mint 9 years 11 months ago #6482

  • Ignobilis
  • Ignobilis's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
No, it is Cinnamon. - Wrong, it is MATE (I used Cinnamon before, but not anymore).

Please Log in or Create an account to join the conversation.

Last edit: by Ignobilis.
  • Page:
  • 1