× CodeTyphon Cross-Build Development, discussions and problems

Question BeagleboneBlack cross compile problem

More
4 years 2 months ago - 4 years 2 months ago #10991 by june
Hello, I'm trying cross compiling arm-linux env. on Beaglebone Black.

host : win7 32bit, 4G RAM
CTC: ver6.20
Toolchains : win32-arm-linux--BeagleBoard
FPC32 cross elements : arm-linux--BeagleBoard
OS lib : there's no lib for BBB, but already trying all arm-linux-xxx's

on Typhon32/small IDE,

packages : adLCL, pl_synapse
project option : LCL types : GTK2

Am i going it right ? or must i get OS lib from BeagleboneBlack(debian7) ?


============================================
Compile Project, OS: linux, CPU: arm, Target: wp

Compile Reason: State file "C:\codetyphon_work\wp\lib\arm-linux\wp.compiled" of Project is missing.


Executable:
C:\codetyphon\fpc\fpc32\bin\i386-win32\fpc.exe

CurrentDirectory:
C:\codetyphon_work\wp\

Parameters:
-B
-Tlinux
-Parm
-MObjFPC
-Scghi
-CX
-O1
-Xs
-XX
-l
-vewnhibq
-FiC:\codetyphon_work\wp\lib\arm-linux
-FlC:\codetyphon\binLibraries\arm-linux-Raspbian3
-FlC:\codetyphon\binLibraries\arm-linux-Cubiuntu
-FuC:\codetyphon\typhon\lcl\units\arm-linux\gtk2
-FuC:\codetyphon\typhon\lcl\units\arm-linux
-FuC:\codetyphon\typhon\components\pl_Synapse\lib\arm-linux\gtk2
-FuC:\codetyphon\typhon\components\BaseUtils\lib\arm-linux
-FuC:\codetyphon\typhon\packager\units\arm-linux
-FuC:\codetyphon_work\wp\
-FUC:\codetyphon_work\wp\lib\arm-linux\
-dLCL
-dLCLgtk2
wp.ppr

Command Line:
C:\codetyphon\fpc\fpc32\bin\i386-win32\fpc.exe -B -Tlinux -Parm -MObjFPC -Scghi -CX -O1 -Xs -XX -l -vewnhibq -FiC:\codetyphon_work\wp\lib\arm-linux -FlC:\codetyphon\binLibraries\arm-linux-Raspbian3 -FlC:\codetyphon\binLibraries\arm-linux-Cubiuntu -FuC:\codetyphon\typhon\lcl\units\arm-linux\gtk2 -FuC:\codetyphon\typhon\lcl\units\arm-linux -FuC:\codetyphon\typhon\components\pl_Synapse\lib\arm-linux\gtk2 -FuC:\codetyphon\typhon\components\BaseUtils\lib\arm-linux -FuC:\codetyphon\typhon\packager\units\arm-linux -FuC:\codetyphon_work\wp\ -FUC:\codetyphon_work\wp\lib\arm-linux\ -dLCL -dLCLgtk2 wp.ppr

ProcessID:
7140

ExitStatus:
1

Error: Exit code 1
Last edit: 4 years 2 months ago by june.

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

More
4 years 2 months ago - 4 years 2 months ago #10992 by june
Replied by june on topic BeagleboneBlack cross compile problem
Problem solved.

(1) fix my code as below

from

//ser.Connect('/dev/ttyUSB0'); //ComPort USB0 on LINUX/arm
//ser.Connect('/dev/ttyS1'); //ComPort 2 on LINUX/i386
ser.Connect('COM2'); //ComPort 2 on Win32

to

ser.Connect('/dev/ttyUSB0'); //ComPort USB0 on LINUX/arm
//ser.Connect('/dev/ttyS1'); //ComPort 2 on LINUX/i386
//ser.Connect('COM2'); //ComPort 2 on Win32


(2) FPC32 build cross element arm-linux BeagleBoard
(3) compile

and all done.

OS lib = C:\codetyphon\binLibraries\arm-linux-Raspbian3\
Last edit: 4 years 2 months ago by june.

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
4 years 2 months ago #10993 by Sternas Stefanos
Replied by Sternas Stefanos on topic BeagleboneBlack cross compile problem
Thanks Sir

PilotLogic Architect and Core Programmer

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