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

TOPIC:

SOLVED - Crosscompiling not working for me 10 years 10 months ago #8167

  • Raúl Ferrandis
  • Raúl Ferrandis's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
Hi,

Im trying to build a simple program to verify that I can cross compile for the Raspberry Pi B+ (Raspbian), but all my attempts were usseles, that's my case:

- I have Codetyphon installed in Windows 7 64bits, and in Ubuntu 14.04 (vmware under same Win7). I followed your steps from your wiki (install and remove and build all). I tryed this several times...
- I have win32 and win64-arm-linux--RaspberryPi toolchains installed.
- I have arm-linux-Raspbian libraries installed.
- I built a Toolchain with this parameters: Host: x86_64 CPU-OS targets: arm-linux
- I built a FPC32 arm-linux-Raspberry

With this I can open a new "empty" project in Typhon32, only with the Form1. Then I configure the project options like this:
- Other Unit Files:

$(TyphonDir)/components/pl_ZeosDBO/source/component/
$(TyphonDir)/components/pl_ZeosDBO/source/core/
$(TyphonDir)/components/pl_ZeosDBO/source/dbc/
$(TyphonDir)/components/pl_ZeosDBO/source/parsesql/
$(TyphonDir)/components/pl_ZeosDBO/source/plain/

- Libraries:

$(CTDIR)/binLibraries/arm-linux-Raspbian/

-SO: Linux -CPU:ARM -Processor:Default (I tried ARMv6 also)
-Finnaly I choose gtk2 in Additions and overrides.

With this I can compile, but I can't execute this on the Raspberry. I tried chmod +x but without luck...

Can you help me please? I don't know what Im missing, but I tried a lot of combinations, reinstalling everithing several times, recompiling, in 32 and 64bits, in Ubuntu...

Thanks in advance!

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

Last edit: by Raúl Ferrandis.

Crosscompiling not working for me 10 years 10 months ago #8170

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4627
  • Thank you received: 1138
Sir
my suggestions:

a) You Don't need to declare pl_ZeosDBO folders to your project,
simple add pl_ZeosDBO as project need package.
When Typhon IDE build your project build and arm-linux pl_ZeosDBO pascal files (*o, *.ppu) in pl_ZeosDBO files folder

b) Don't select Arm CPU type (ARMv6) not need, because FPC32 Element was build with
options OPT="-CaEABIHF -CpARMV7A -CfVFPV3 -OoFASTMATH"
look at ln_FPCx_Build_Element_arm_linux_RapberryPi2.sh

c) Database libraries files used from pl_ZeosDBO, must be in your Pi2 box.
You can start your App in Pi2 box as root (root sh ./myproject) to read command line errors or
better to add "debug code" to you project .

d) and always you can user Cross-Debug procedure...CT has and this ability
PilotLogic Architect and Core Programmer

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

Crosscompiling not working for me 10 years 10 months ago #8171

  • Raúl Ferrandis
  • Raúl Ferrandis's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
Thank you Mr. Stefanos for your reply,

I added pl_ZeosDBO as needed package, removed ARMv6 option and removed pl_ZeosDBO folders from project options, but I don't fully understand all of your recomendations:

-Do you want me to do anything with the .o .ppu files that are build in my project folder?
-How can I put the pl_ZeosDBO libraries in my Raspberry? I need to do something or only leave them in some specific folder?

When I try to run the executable file with "sudo sh ./project1" it says " Syntax error: word unexpected (expecting ")") "

UPDATED:

SOLVED!! All the f****ng time was working ok, is that I cant execute the code from my usb, if I copy the files to the Raspi works perfect!!! Thank you for your time!!

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

Last edit: by Raúl Ferrandis.
  • Page:
  • 1