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

TOPIC:

arm-linux raspberry pi 10 years 2 months ago #5920

  • zeljko
  • zeljko's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 207
  • Thank you received: 38
install debian 7 32
codetyphon 4.92
linux arm
library arm-linux-pi




NOT WORK arm-linux
Compile Project: Exit code 256, Errors:1
/usr/lib/codetyphon/fpc/bin/i386-linux/arm-linux-ld: warning: link.res contains output sections; did you forget -T?
/usr/lib/codetyphon/fpc/bin/i386-linux/arm-linux-ld: skipping incompatible /usr/lib/i386-linux-gnu/crti.o when searching for /usr/lib/i386-linux-gnu/crti.o
/usr/lib/codetyphon/fpc/bin/i386-linux/arm-linux-ld: cannot find /usr/lib/i386-linux-gnu/crti.o
/usr/lib/codetyphon/fpc/bin/i386-linux/arm-linux-ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.6/crtbegin.o when searching for /usr/lib/gcc/i486-linux-gnu/4.6/crtbegin.o
/usr/lib/codetyphon/fpc/bin/i386-linux/arm-linux-ld: cannot find /usr/lib/gcc/i486-linux-gnu/4.6/crtbegin.o
project1.lpr(22,0) Error: Error while linking

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

Last edit: by zeljko.

arm-linux raspberry pi 10 years 2 months ago #5963

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Sir
we solve the problem with RapberryPi
we test
-Build FPC32 Cross Element with ToolChain win32-arm-linux--RapberryPi.7z (is in our Web ToolChains library)
-Build application for RapberryPi (arm-linux) on windows (Typhon32) with OS Library arm-linux-Raspbian.7z (is in our Web OS libraries)
-Run on QEMU with 2014-06-20-wheezy-raspbian.img

soon our test on Linux

Here is the Windows Crossbuild script x_FPC_Build_Cross_arm_linux_RapberryPi.bat
put this to C:\codetyphon\ScriptsWin\crossbuild directory
PilotLogic Architect and Core Programmer

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

Last edit: by Sternas Stefanos.

arm-linux raspberry pi 10 years 1 month ago #6008

  • FredyCC
  • FredyCC's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Database/Developer
  • Posts: 60
  • Thank you received: 10
Hi sternas, I followed your instructions above without success. :(

Config:

  • CodeTyphon ver5.0 for Win64
  • FPC for Win32

Compile Project: Exit code 1, Errors: 1
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: error: Source object C:\codetyphon\typhonTemp\lib\arm-linux\project1.o has EABI version 0, but target C:\codetyphon\typhonTemp\project1 has EABI version 5
c:\codetyphon\fpc\bin\i386-win32\arm-linux-ld.exe: failed to merge target specific data of file C:\codetyphon\typhonTemp\lib\arm-linux\project1.o
c:\codetyphon\fpc\bin\i386-win32\arm-linux-ld.exe: error: Source object C:\codetyphon\fpc\units\arm-linux\rtl\system.o has EABI version 0, but target C:\codetyphon\typhonTemp\project1 has EABI version 5
c:\codetyphon\fpc\bin\i386-win32\arm-linux-ld.exe: failed to merge target specific data of file C:\codetyphon\fpc\units\arm-linux\rtl\system.o
c:\codetyphon\fpc\bin\i386-win32\arm-linux-ld.exe: error: Source object C:\codetyphon\fpc\units\arm-linux\rtl\lineinfo.o has EABI version 0, but target C:\codetyphon\typhonTemp\project1 has EABI version 5
c:\codetyphon\fpc\bin\i386-win32\arm-linux-ld.exe: failed to merge target specific data of file C:\codetyphon\fpc\units\arm-linux\rtl\lineinfo.o
c:\codetyphon\fpc\bin\i386-win32\arm-linux-ld.exe: error: Source object C:\codetyphon\fpc\units\arm-linux\rtl\exeinfo.o has EABI version 0, but target C:\codetyphon\typhonTemp\project1 has EABI version 5
c:\codetyphon\fpc\bin\i386-win32\arm-linux-ld.exe: failed to merge target specific data of file C:\codetyphon\fpc\units\arm-linux\rtl\exeinfo.o
c:\codetyphon\fpc\bin\i386-win32\arm-linux-ld.exe: error: Source object C:\codetyphon\fpc\units\arm-linux\rtl\strings.o has EABI version 0, but target C:\codetyphon\typhonTemp\project1 has EABI version 5
.
.
.

project1.lpr(22,0) Error: Error while linking


Thanks in advance

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

Last edit: by FredyCC.

arm-linux raspberry pi 10 years 1 month ago #6009

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Sir, please wait 2-3 days for Lab CT 5.10
we solve a lot of these problems

We Crossbuild applications on Host OSes Windows, Linux and FreeBSD...
and we test these applications on QEMU with 2014-06-20-wheezy-raspbian.img

Now we working 4 programmers on "Embedded Form Designer"
on Host with GTK2 Platform, we must make a "Virtual MainMenu"
All OK on Hosts with Windows and QT Platforms
PilotLogic Architect and Core Programmer
The following user(s) said Thank You: FredyCC, David

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

Last edit: by Sternas Stefanos.

arm-linux raspberry pi 10 years 1 month ago #6013

  • FredyCC
  • FredyCC's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Database/Developer
  • Posts: 60
  • Thank you received: 10
After many hours and attempts, I was able to successfully compile on Ubuntu (i386) to Raspbian (arm). :woohoo:

The problem is related to the gcc version, the version that worked to generate the executable was: gcc 4.2.3

Although the output generated is:

Hint: (11030) Start of reading config file /usr/lib/codetyphon/fpc/bin/i386-linux/fpc.cfg
Hint: (11031) End of reading config file /usr/lib/codetyphon/fpc/bin/i386-linux/fpc.cfg
Free Pascal Compiler version 2.7.1 [2014/09/25] for arm
Copyright (c) 1993-2014 by Florian Klaempfl and others
(1002) Target OS: Linux for ARMEL
(3104) Compiling project1.lpr
(3104) Compiling unit1.pas
/home/fredycc/Desktop/test/unit1.pas(9,3) Hint: (5023) Unit "Spin" not used in Unit1
/home/fredycc/Desktop/test/unit1.pas(9,9) Hint: (5023) Unit "ExtDlgs" not used in Unit1
(9009) Assembling unit1
(9009) Assembling project1
(9022) Compiling resource /home/fredycc/Desktop/test/lib/arm-linux/project1.or
(9015) Linking project1
project1.lpr(22) Warning: (9034) "crti.o" not found, this will probably cause a linking failure
project1.lpr(22) Warning: (9034) "crtbegin.o" not found, this will probably cause a linking failure
project1.lpr(22) Warning: (9034) "crtend.o" not found, this will probably cause a linking failure
project1.lpr(22) Warning: (9034) "crtn.o" not found, this will probably cause a linking failure
/usr/lib/codetyphon/fpc/bin/i386-linux/arm-linux-ld: warning: link.res contains output sections; did you forget -T?
(1008) 57 lines compiled, 2.2 sec
(1021) 4 warning(s) issued
(1022) 4 hint(s) issued


The executable builds successfully without the crti.o files and runs on raspberry device.

CT 5.0 looks beautiful on Ubuntu ;)

Regards

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

Last edit: by FredyCC.

arm-linux raspberry pi 10 years 1 month ago #6014

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
For
project1.lpr(22) Warning: (9034) "crti.o" not found, this will probably cause a linking failure
project1.lpr(22) Warning: (9034) "crtbegin.o" not found, this will probably cause a linking failure
project1.lpr(22) Warning: (9034) "crtend.o" not found, this will probably cause a linking failure
project1.lpr(22) Warning: (9034) "crtn.o" not found, this will probably cause a linking failure

use the latest arm-linux-Raspbian.7z Library
The Lab CT ver 5.10 has full support for Rapberry Pi and Raspbian
ETA soon...
PilotLogic Architect and Core Programmer

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

Last edit: by Sternas Stefanos.

arm-linux raspberry pi 10 years 4 weeks ago #6152

  • yenwei
  • yenwei's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
I have tested , but can not connect to server. How to do it?

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

arm-linux raspberry pi 10 years 4 weeks ago #6153

  • yenwei
  • yenwei's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
In windows, compiler stop in "gtk2cellrenderer.pas(30,3) Fatal: Cannot find unit gtk2 used by Gtk2CellRenderer of package LCL."

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

arm-linux raspberry pi 10 years 4 weeks ago #6154

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Please Sir
use lab CT 5.10
PilotLogic Architect and Core Programmer

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

arm-linux raspberry pi 10 years 4 weeks ago #6156

  • yenwei
  • yenwei's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
:( I also hope that I can use lab CT 5.10, but still only CT 5.00 can be downloaded at the website.

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

arm-linux raspberry pi 10 years 4 weeks ago #6157

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
You can use update procedure from CTCenter
on Ubuntu you must give full "sudo" permissions to current user look here

We working on lab CT 5.10 beta1 now
PilotLogic Architect and Core Programmer

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

Last edit: by Sternas Stefanos.

arm-linux raspberry pi 10 years 2 weeks ago #6201

  • yenwei
  • yenwei's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
Yesterday, I get the lab CT5.10 from CTCenter.
But the package "DATAPORT", component "Serial".It is still cross compiler with Error.

Compiling package pl_synapse 40.1.8: Exit code 1, Errors: 13
synaser.pas(259,15) Error: Identifier not found "B500000"
synaser.pas(259,22) Error: Illegal expression
synaser.pas(265,15) Error: Identifier not found "B2000000"
......
Anyway,
I want say thanks for here,for every one.

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

arm-linux raspberry pi 10 years 2 weeks ago #6203

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
We will check this Sir
PilotLogic Architect and Core Programmer

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

  • Page:
  • 1
  • 2