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

TOPIC:

cannot build for Raspberry Pi2 9 years 5 months ago #7454

  • test
  • test's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
Hi,
For past 2 days I've been struggling with making CT cross-compile for Raspberry Pi2. Basically I was following this guide 386-cross-build-for-rasberry-pi just changing RapberryPi to RapberryPi2, but encountered two problems:
1. when I try to make console app everything builds just fine but when i upload compiled project I get this error:
-bash: ./project1.o: cannot execute binary file
2. when I try to make GUI app it's the same behaviour (compiles but I get "cannot execute binary file" error). However when I try to test options I get this warning:
WARNING: library search path does not exist: c:\codetyphon\typhon\lcl\interfaces\opt\gnome\lib
HINT: using config file C:\codetyphon\fpc\fpc32\bin\i386-win32\fpc.cfg
WARNING: ppu exists twice: C:\codetyphon\fpc\fpc32\units\arm-linux\fv\dialogs.ppu, c:\codetyphon\typhon\lcl\units\arm-linux\dialogs.ppu
WARNING: ppu exists twice: C:\codetyphon\fpc\fpc32\units\arm-linux\fv\menus.ppu, c:\codetyphon\typhon\lcl\units\arm-linux\menus.ppu

In both cases there is also problem with debugging, I get error:
Error creating process... (error 193)
I thought QEMU should be executed now... I am using CT 5.3 on WIn 8.1 Pro 64 bit and get those errors with both 32bit and 64bit versions of CT.

I don't know what am I doing wrong, already tried all solutions you gave for similar problems on this forum, I have even recompiled everything 3 times just to be sure and still same problems. Any help would be much appreciated.

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

cannot build for Raspberry Pi2 9 years 5 months ago #7455

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Sir
-did you use arm-linux-Raspbian2.7z link Os library from our server?
-did you set Platform GTK2 ?
PilotLogic Architect and Core Programmer

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

cannot build for Raspberry Pi2 9 years 5 months ago #7456

  • test
  • test's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
I used "Download Libraries" option from CTC and I set GTK2 ofc. I'll try with version you linked now.

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

cannot build for Raspberry Pi2 9 years 5 months ago #7457

  • test
  • test's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
OK, it works correctly (apart from debug problem) :)

Looks like It was not a problem with CT and just me. I'm used to Delphi putting output files in ".\$(Platform)\$(Config)" so when i saw "lib\arm-linux" and "lib\i386-win32" I thought it was output directory...
This time I wanted to test both applications (console and GUI) at once and to do this I had to change their names (both were called project1) before uploading them to single directory on my Pi2. Doing that I just realized that "lib" folder was unit output directory (as labeled in CT anyway). In other words I was trying to execute project unit instead of program all the time. Well, two days lost because of that... but hey, it finally works :)

Thank you very much for help, it made me discover my mistake :blush:

Can you help me with debugging issue too?

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

cannot build for Raspberry Pi2 9 years 5 months ago #7458

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Sir, for debugging
we waiting Fpdebug library to "crow".
GDB cross debugging is not a simple task...

and have fun
PilotLogic Architect and Core Programmer
The following user(s) said Thank You: test

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

Last edit: by Sternas Stefanos.
  • Page:
  • 1