× CodeTyphon Cross-Build Development, discussions and problems

Question i want cross build for cubietruck

  • trashtong
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 4 months ago - 7 years 4 months ago #5703 by trashtong
i want cross build for cubietruck was created by trashtong
i have a cubietruck ( en.wikipedia.org/wiki/Cubieboard ) : os is cubiuntu based ubuntu
and im win7-win32 user on my desktop.
but i don't know how to setup configure Typhon.

i tried that
1. download toolchain "win32-armeb-linux--hardfloat"
2. fpc32 build cross element armeb-linux--hardfloat
3. tried to download library, but there is only arm-linux-pi for raspberrypi. it's not for cubietruck
4. i select target platform to linux, target cpu family to arm, target process to armv7.

default project compile result is

Compile Project: Exit code 1, Errors:1, Warnings:4
project1.lpr(22,0) Warning: "crti.o" not found, this will probably cause a linking failure
project1.lpr(22,0) Warning: "crtbegin.o" not found, this will probably cause a linking failure
project1.lpr(22,0) Warning: "crtend.o" not found, this will probably cause a linking failure
project1.lpr(22,0) Warning: "crtn.o" not found, this will probably cause a linking failure
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
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 -ldl
c:\codetyphon\fpc\bin\i386-win32\arm-linux-ld.exe: cannot find -lpthread
c:\codetyphon\fpc\bin\i386-win32\arm-linux-ld.exe: cannot find -lX11
c:\codetyphon\fpc\bin\i386-win32\arm-linux-ld.exe: cannot find -lgdk_pixbuf-2.0
c:\codetyphon\fpc\bin\i386-win32\arm-linux-ld.exe: cannot find -lgtk-x11-2.0
c:\codetyphon\fpc\bin\i386-win32\arm-linux-ld.exe: cannot find -lgdk-x11-2.0
c:\codetyphon\fpc\bin\i386-win32\arm-linux-ld.exe: cannot find -lgobject-2.0
c:\codetyphon\fpc\bin\i386-win32\arm-linux-ld.exe: cannot find -lglib-2.0
c:\codetyphon\fpc\bin\i386-win32\arm-linux-ld.exe: cannot find -lgthread-2.0
c:\codetyphon\fpc\bin\i386-win32\arm-linux-ld.exe: cannot find -lgmodule-2.0
c:\codetyphon\fpc\bin\i386-win32\arm-linux-ld.exe: cannot find -lpango-1.0
c:\codetyphon\fpc\bin\i386-win32\arm-linux-ld.exe: cannot find -lcairo
c:\codetyphon\fpc\bin\i386-win32\arm-linux-ld.exe: cannot find -latk-1.0
c:\codetyphon\fpc\bin\i386-win32\arm-linux-ld.exe: cannot find -lc
project1.lpr(22,0) Error: Error while linking


how can i get BinLibrary for arm-linux-cubietruck like arm-linux-pi.7z.
can pilotlogic upload it?

i don't know how to gather "so" files even i have a cubietruck.

if pilotlogic can't upload file, i'll try gather "so" files.

I need someone's assistance.
Last edit: 7 years 4 months ago by trashtong.

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

More
7 years 4 months ago #5726 by Alfred
Replied by Alfred on topic i want cross build for cubietruck
You just have to copy the libraries needed from your /usr/lib directory into a directory where CT can find them !
It is some work, but you will succeed in the end. I have done the same for RPi and BeagleBone Black. With success !!

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

More
7 years 3 months ago - 7 years 3 months ago #5916 by David
Replied by David on topic i want cross build for cubietruck
Hi

same problem, under aruntu / cubiuntu (ubuntu 13)
I did copy all libraries from usr / lib, and and much more libraries, but same problem when crosscompiling,

No problem using rasp-pi libraries, but compiled binaries not work under cubietruck + ubuntu13.
Last edit: 7 years 3 months ago by David.

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Online
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
7 years 3 months ago #5918 by Sternas Stefanos
Replied by Sternas Stefanos on topic i want cross build for cubietruck
Sir
you must copy and rename the last original libraries NOT links to Libraries

PilotLogic Architect and Core Programmer
The following user(s) said Thank You: David

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

More
7 years 3 months ago #5922 by David
Replied by David on topic i want cross build for cubietruck
Thanks Sr. !! ,
was logic, simbolik links are now libs,

i think that now i have all libraries
But now when crosscompile return too much errors EABI version
Using ct 4.8
how can i solve this ?.


Hint: Start of reading config file C:\codetyphon\fpc\bin\x86_64-win64\fpc.cfg
Hint: End of reading config file C:\codetyphon\fpc\bin\x86_64-win64\fpc.cfg
Free Pascal Compiler version 2.7.1 [2014/06/25] for arm
Copyright (c) 1993-2014 by Florian Klaempfl and others
Target OS: Linux for ARMEL
Compiling C:\codetyphon\typhonTemp\project1.lpr
Compiling unit1.pas
Assembling unit1
Assembling project1
Compiling resource lib\arm-linux\project1.or
Linking C:\codetyphon\typhonTemp\project1
project1.lpr(22) Warning: "crtbegin.o" not found, this will probably cause a linking failure
project1.lpr(22) Warning: "crtend.o" not found, this will probably cause a linking failure
c:\codetyphon\fpc\bin\x86_64-win64\arm-linux-ld.exe: warning: link.res contains output sections; did you forget -T?
c:\codetyphon\fpc\bin\x86_64-win64\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\x86_64-win64\arm-linux-ld.exe: failed to merge target specific data of file C:\codetyphon\typhonTemp\lib\arm-linux\project1.o
c:\codetyphon\fpc\bin\x86_64-win64\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\x86_64-win64\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\x86_64-win64\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\x86_64-win64\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\x86_64-win64\arm-linux-ld.exe: failed to merge target specific data of file C:\codetyphon\typhon\lcl\units\arm-linux\gtk2\gtk2listviewtreemodel.o
.
..
....
project1.lpr(22) Error: Error while linking
project1.lpr(22) Fatal: There were 1 errors compiling module, stopping

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Online
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
7 years 3 months ago - 7 years 3 months ago #5923 by Sternas Stefanos
Replied by Sternas Stefanos on topic i want cross build for cubietruck
My suggestion
1. download toolchain "win32-arm-linux--eabi5.7z"
2. fpc32 build cross element arm-linux--eabi5
and try again

PS1: Do you have libraries from cubiuntu ?
PS2: I you want, we can work together to make "CT cross for Cubieboard" possible...
I can give 2 programmers for this task, now

PilotLogic Architect and Core Programmer
Last edit: 7 years 3 months ago by Sternas Stefanos.
The following user(s) said Thank You: David

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

More
7 years 3 months ago #5926 by David
Replied by David on topic i want cross build for cubietruck
Yes Sr
Downloaded win32-arm-linux--eabi5.7z ,
and fpc32 crossbuild arm-linux--eabi5 done , but same errors when crosscompiling
testing under win8.1 win64 , but just in case i will be test under win32 win7.

I uploaded all cubieboard libs to google drive , drive.google.com/file/d/0Bw7tdxYw_to3TlN...dTA/edit?usp=sharing , (there are much libs that can be deleted, becouse some are renamed and others are unnecesary, but now i'ts better have all).
Let me know if you need something more.

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Online
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
7 years 3 months ago - 7 years 3 months ago #5927 by Sternas Stefanos
Replied by Sternas Stefanos on topic i want cross build for cubietruck
Thanks Sir
we working on this, give us time...

PilotLogic Architect and Core Programmer
Last edit: 7 years 3 months ago by Sternas Stefanos.
The following user(s) said Thank You: universe

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

More
7 years 2 months ago #5953 by universe
Replied by universe on topic i want cross build for cubietruck
Hello, I've been trying to compile to AllWinner - A13 SBC (Olinuxino-A13-WIFI) from Ubuntu using CT and I ended up with the same issue
Source object project1.o has EABI version 0, but target project1 has EABI version 5
So I just uploaded the libs it could be helpful for your tests, it will work after you will succeed to compile to the CubieBoard (AllWinner-A10/A20)
A13-ARM-Linux-Libs
If you could share Linux32-arm-linux--eabi5 then I'll try to recompile CT/FPC-arm and test by myself.
Thanks for your time

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Online
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
7 years 2 months ago - 7 years 2 months ago #5957 by Sternas Stefanos
Replied by Sternas Stefanos on topic i want cross build for cubietruck
Sir thanks for Libraries

we working now in our lab with
arm_linux_BeagleBoard
arm_linux_Cubieboard
arm_linux_RapberryPi

all are the same with lin32-arm-linux--eabihf.7z (is in our Web ChainTools Library)

Please, give us time to find the properer way...

PS: our cross script for arm-linux--eabihf

PilotLogic Architect and Core Programmer
Last edit: 7 years 2 months ago by Sternas Stefanos.
The following user(s) said Thank You: feverkim

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Online
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
7 years 2 months ago #5964 by Sternas Stefanos
Replied by Sternas Stefanos on topic i want cross build for cubietruck
Sir, the OS from you get these Libraries?

PilotLogic Architect and Core Programmer

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

More
7 years 2 months ago #5967 by universe
Replied by universe on topic i want cross build for cubietruck
Hello, it's Debian.
Thanks

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Online
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
7 years 2 months ago #5968 by Sternas Stefanos
Replied by Sternas Stefanos on topic i want cross build for cubietruck
Thanks Sir.

PilotLogic Architect and Core Programmer

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

More
7 years 2 months ago #5982 by feverkim
Replied by feverkim on topic i want cross build for cubietruck
arm_linux_Cubieboard ,so i just wait for the cubieboard cross-compile libs, THANKS

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Online
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
7 years 2 months ago #5983 by Sternas Stefanos
Replied by Sternas Stefanos on topic i want cross build for cubietruck
Sir
this is our new Lab task
We will release all cross-build thinks
with CT Lab Revision 005010 with new FPC directory structure and updated OS Scripts

For Cubieboard and BeagleBoard we want testers
for Rapberry Pi we have QEMU installation with the latest wheezy-raspbian and MATE desktop

PilotLogic Architect and Core Programmer
The following user(s) said Thank You: David

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

More
7 years 2 months ago #5986 by David
Replied by David on topic i want cross build for cubietruck
Sir.
Let me know when you need something to test on cubieboard.

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Online
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
7 years 2 months ago #5987 by Sternas Stefanos
Replied by Sternas Stefanos on topic i want cross build for cubietruck
Thanks Sir, we want help on this arm-linux Task
we prepare CT Lab Revision 005010 for Public tests
ETA 2-3 days

PilotLogic Architect and Core Programmer

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Online
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
7 years 2 months ago #5988 by Sternas Stefanos
Replied by Sternas Stefanos on topic i want cross build for cubietruck
And a screen from our
lab tests

CT CrossBuild WorkStation on Fedora 20 64 MultiArch

PilotLogic Architect and Core Programmer

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

More
4 years 9 months ago - 4 years 9 months ago #10574 by Alex John
Replied by Alex John on topic i want cross build for cubietruck
Hello, I've been trying to compile to Graperain-6818-SBC from Ubuntu using CT and I ended up with the same issue
Source object project1.o has EABI version 0, but target project1 has EABI version 5
So I just uploaded the libs it could be helpful for your tests, it will work after you will succeed to compile to the CubieBoard
Last edit: 4 years 9 months ago by Alex John.

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