Forum

× Discussions for CodeTyphon Studio Installation and Setup.

Question How to install the BuildToolchain and OSes libraries in Build Server?

  • AntonyRF
  • AntonyRF's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
7 months 1 week ago #11587 by AntonyRF
Hello dear!

We have an assembly server on the local network, there is no access to the global network. The server has access to administer only by SSH. And OS Ubuntu Server 16.04. We installed CodeTyphon, but we need an assembly for Raspberry 2 ARM and Windows x86.

Can i install the BuildToolchain and OSes libraries in Build Server?

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
7 months 1 week ago - 7 months 1 week ago #11588 by Sternas Stefanos
Thanks Sir
Yes you can download all Toolchains and Libraries for target OSes from our "Download" Web Session
here
Or, if you want, you can build toolchains for target OS with CTCenter
just unzip download files to your
codetyphon/binToolchains (for toolchains files)
or
codetyphon/binLibraries (for libraries files)
directories

A small NOTE, crossbuild for Windows as OS target don't need any OS-Libraries on Unix host OSes
more info here

CodeTyphon Architect and Programmer
Last edit: 7 months 1 week ago by Sternas Stefanos.

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

  • AntonyRF
  • AntonyRF's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
7 months 1 week ago #11589 by AntonyRF
Thank you. But i not have GUI for CTC and can i call "CTC => CrossBuild => FreePascal 64bits => FPC64 build cross element ALL" in terminal SSH?

And can i build toolchains from source?

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
7 months 1 week ago - 7 months 1 week ago #11590 by Sternas Stefanos
Yes, but it's not simple...

look at codetyphon/ScriptsLin/crossbuild/ln_FPCx_Build_Cross_ALL.sh

-Clone/Rename this script with the target OSes only, in the same directory ( like mycrossall.sh)
-Run the new script, I hope this will work for you.

PS: We develop CT for HOST OSes with GUI.
my suggestion is to build any app for your server on Ubuntu Desktop first.

"On Site Native Development" without GUI it's not the best choice... :)

CodeTyphon Architect and Programmer
Last edit: 7 months 1 week ago by Sternas Stefanos.

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

  • AntonyRF
  • AntonyRF's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
7 months 1 week ago #11591 by AntonyRF
Thank you! As I understand for this script need command line param:
cbFPCType
cbFPCCPUOS
cbFPCStartEXE
cbTARGETCPU
cbTARGETOS
cbFPCCrossEXE

Where is i can get more info about this param?

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

  • AntonyRF
  • AntonyRF's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
7 months 1 week ago #11592 by AntonyRF
> "On Site Native Development" without GUI it's not the best choice...
My boss want CI. The idea is auto build install packages after any git commit. That's that ¯\(°_o)/¯

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

  • AntonyRF
  • AntonyRF's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
7 months 1 week ago #11594 by AntonyRF
And what logical differents in ln_FPCx_Build_Cross.sh and ln_FPCx_Build_Element_arm_linux_RapberryPi2.sh?

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
7 months 1 week ago #11595 by Sternas Stefanos
It's the same functionality but

ln_FPCx_Build_Element_arm_linux_RapberryPi2

pass some option to FPC compiler :
CROSSOPT="-CaEABIHF -CpARMV7A -CfVFPV3 -OoFASTMATH"

CodeTyphon Architect and Programmer

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

  • AntonyRF
  • AntonyRF's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
7 months 1 week ago #11598 by AntonyRF
Okay, but i have some problem. For ln_FPCx_Build_Element_arm_linux_RapberryPi2 need bootstrap or BuildEng???
Attachments:

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

  • AntonyRF
  • AntonyRF's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
7 months 1 week ago #11599 by AntonyRF
And new problem:

find: <</usr/local/codetyphon/fpcsrc/*>>: No such file or directory

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

  • AntonyRF
  • AntonyRF's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
7 months 1 week ago #11600 by AntonyRF
Sir please, where is i can see source code of CodeTyphon Center?

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
7 months 1 week ago - 7 months 1 week ago #11601 by Sternas Stefanos
Sir
the source of CodeTyphon Center it's NOT for public release

CodeTyphon Architect and Programmer
Last edit: 7 months 1 week ago by Sternas Stefanos.

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
7 months 1 week ago - 7 months 1 week ago #11602 by Sternas Stefanos
please follow my suggestions here

www.pilotlogic.com/sitejoom/index.php/fo...n-build-server#11590

with in dothejob() function
only this
./ln_FPCx_Build_Cross.sh $cbFPCType $cbFPCCPUOS $cbFPCStartEXE arm linux ppcrossarm xxxx

CodeTyphon Architect and Programmer
Last edit: 7 months 1 week ago by Sternas Stefanos.

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

  • AntonyRF
  • AntonyRF's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
7 months 1 week ago #11606 by AntonyRF
> the source of CodeTyphon Center it's NOT for public release
Oh sorry =(

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

  • AntonyRF
  • AntonyRF's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
7 months 1 week ago #11607 by AntonyRF
Sir, i clone this script with the target OSes only, in the same directory with name mycrossall.sh.

call with next param:
#./mycrossall.sh lin64 x86_64-linux ppcx64

and i try build my project:
# typhonbuild64 Launch.ctpr

and i have many errors for all libs, for example:

/usr/local/codetyphon/fpc/fpc64/bin/x86_64-linux/arm-linux-ld: failed to merge target specific data of file /usr/local/codetyphon/binLibraries/arm-linux-Raspbian2/***.o
/usr/local/codetyphon/fpc/fpc64/bin/x86_64-linux/arm-linux-ld: error: Source object /usr/local/codetyphon/binLibraries/arm-linux-Raspbian2/***.o has EABI version 5, but target /home/user/project/Launch has EABI version 0

Dear friend. So, what is next?

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
7 months 1 week ago #11608 by Sternas Stefanos
Did you download Pi2 Libraries from our Download session ?

CodeTyphon Architect and Programmer

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

  • AntonyRF
  • AntonyRF's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
7 months 1 week ago #11609 by AntonyRF
Yes, i download Pi2 Libraries from www.pilotlogic.com/sitejoom/index.php/do...m-linux-raspbian2-7z

and this error have in object files in directory fpcsrc. I see in errors log about ppcrossarm build of project with EABI0, but libraries build with EABI5. And ld doesnt link elf and lib.

Maybe I should run ln_FPCx_Build_Element_arm_linux_RapberryPi2 ?

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
7 months 1 week ago #11610 by Sternas Stefanos
You can try and this

CodeTyphon Architect and Programmer

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