Recent

Author Topic: Fpcupdeluxe  (Read 794525 times)

heejit

  • Full Member
  • ***
  • Posts: 245
Re: Fpcupdeluxe
« Reply #1215 on: April 13, 2019, 01:24:37 am »
Not Able to Cross Complie from Linux-64 to Linux-32
following error

Compile Project, Mode: Linux32, CPU: i386, Target: BmisPosLinux32: Exit code 1, Errors: 1
/home/jiten/fpc-stable/cross/lib/i386-linux//libpthread.so.0: undefined reference to `__tunable_get_val@GLIBC_PRIVATE'
/home/jiten/fpc-stable/cross/lib/i386-linux//libcairo.so: undefined reference to `FT_Get_Var_Design_Coordinates'

Lazarus   : 2.0
Feepascal : 3.0.4
SVN Rev   : 60350M
OS        : Linux 64bit Ubuntu 16.04

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #1216 on: April 13, 2019, 10:16:06 am »
Fpcupdeluxe downloads its own libs for 32bits. And this is not working on your system.

Please point fpcupdeluxe to use the 32bits libs that are native for your system.
Use Setup+ : select OS and CPU and set the directory where these libs can be found.

heejit

  • Full Member
  • ***
  • Posts: 245
Re: Fpcupdeluxe
« Reply #1217 on: April 13, 2019, 11:23:28 am »
Build Cross Compiler With system lib:
Fpcupdeluxe: FPC cross-builder: Building compiler for linux-i386.
fpcupdeluxe: info: FPC i386-linux cross-builder: Detected source version FPC (compiler): 3.0.4
fpcupdeluxe: info: TAny_linux-i386: Found correct binary utilities in directory /usr/bin
fpcupdeluxe: info: TAny_linux-i386: Found correct library in directory /lib/i386-linux-gnu
fpcupdeluxe: info: FPC i386-linux cross-builder: Using compiler with version: 3.0.4
fpcupdeluxe: Done !!

Still Show following error may be I am missing library
Compile package FCL 1.0.1: Success
Compile package LazUtils 1.0: Success, Warnings: 2, Hints: 6
laz2_dom.pas(1944,14) Warning: Symbol "BuildList" is deprecated: "Use NodeFilter instead."
laz2_dom.pas(1952,14) Warning: Symbol "BuildList" is deprecated: "Use NodeFilter instead."
compwriterpas.pas(1336,21) Hint: Mixing signed expressions and longwords gives a 64bit result
compwriterpas.pas(1336,21) Hint: Converting the operands to "Int64" before doing the multiply could prevent overflow errors.
compwriterpas.pas(1341,32) Hint: Mixing signed expressions and longwords gives a 64bit result
graphtype.pp(484,41) Hint: Converting the operands to "Int64" before doing the add could prevent overflow errors.
graphtype.pp(532,37) Hint: Converting the operands to "Int64" before doing the add could prevent overflow errors.
graphtype.pp(1555,18) Hint: Local variable "R" does not seem to be initialized
Compile Project, Mode: Linux32, CPU: i386, Target: isrch_lin32: Exit code 1, Errors: 1, Warnings: 2
project1.lpr(212,1) Warning: "crti.o" not found, this will probably cause a linking failure
project1.lpr(212,1) Warning: "crtn.o" not found, this will probably cause a linking failure
linker: /usr/bin/ld: warning: /home/jiten/mydata/freepascal_prj/isrch/link.res contains output sections; did you forget -T?
linker: /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/5.4.0/crtbegin.o when searching for /usr/lib/gcc/x86_64-linux-gnu/5.4.0/crtbegin.o
linker: /usr/bin/ld: cannot find /usr/lib/gcc/x86_64-linux-gnu/5.4.0/crtbegin.o
linker: /usr/bin/ld: cannot find -ldl
linker: /usr/bin/ld: cannot find -lc
project1.lpr(212,1) Error: Error while linking


DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #1218 on: April 13, 2019, 12:43:13 pm »
I think you need to do some extra work.

Code: Text  [Select][+][-]
  1. # retrieve 32-bit packages
  2. sudo apt-get install gcc-multilib libx11-dev:i386 pixbuf2.0-0:i386 libgtk2.0-0:i386
  3.  
  4. # create missing symlinks
  5. sudo ln -s -f /usr/lib/i386-linux-gnu/libgdk_pixbuf-2.0.so.0 /usr/lib/i386-linux-gnu/libgdk_pixbuf-2.0.so
  6. sudo ln -s -f /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0 /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so
  7. sudo ln -s -f /usr/lib/i386-linux-gnu/libgdk-x11-2.0.so.0 /usr/lib/i386-linux-gnu/libgdk-x11-2.0.so
  8. sudo ln -s -f /usr/lib/i386-linux-gnu/libgobject-2.0.so.0 /usr/lib/i386-linux-gnu/libgobject-2.0.so
  9. sudo ln -s -f /lib/i386-linux-gnu/libglib-2.0.so.0 /lib/i386-linux-gnu/libglib-2.0.so
  10. sudo ln -s -f /usr/lib/i386-linux-gnu/libgthread-2.0.so.0 /usr/lib/i386-linux-gnu/libgthread-2.0.so
  11. sudo ln -s -f /usr/lib/i386-linux-gnu/libgmodule-2.0.so.0 /usr/lib/i386-linux-gnu/libgmodule-2.0.so
  12. sudo ln -s -f /usr/lib/i386-linux-gnu/libpango-1.0.so.0 /usr/lib/i386-linux-gnu/libpango-1.0.so
  13. sudo ln -s -f /usr/lib/i386-linux-gnu/libcairo.so.2 /usr/lib/i386-linux-gnu/libcairo.so
  14. sudo ln -s -f /usr/lib/i386-linux-gnu/libatk-1.0.so.0 /usr/lib/i386-linux-gnu/libatk-1.0.so

I hope this will solve.

heejit

  • Full Member
  • ***
  • Posts: 245
Re: Fpcupdeluxe
« Reply #1219 on: April 13, 2019, 05:25:15 pm »
Still showing few errors

Compile package FCL 1.0.1: Success
Compile package LazUtils 1.0: Success
Compile Project, Mode: Linux32, CPU: i386, Target: isrch_lin32: Exit code 1, Errors: 1, Warnings: 2
project1.lpr(210,1) Warning: "crti.o" not found, this will probably cause a linking failure
project1.lpr(210,1) Warning: "crtn.o" not found, this will probably cause a linking failure
project1.lpr(210,1) Error: Error while linking

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #1220 on: April 13, 2019, 07:13:01 pm »
Would you mind trying this pre-release to build the cross-compiler ?

https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/download/1.6.2r/fpcupdeluxe-x86_64-linux

Many thanks

heejit

  • Full Member
  • ***
  • Posts: 245
Re: Fpcupdeluxe
« Reply #1221 on: April 13, 2019, 07:32:29 pm »
I tried the pre-release version

Command line program successfully complied for linux-32

But LCL program failed with following error
Compile Project, Mode: Linux32, CPU: i386, Target: BmisPosLinux32: Exit code 1, Errors: 1
linker: /usr/bin/ld: cannot find -lpangocairo-1.0
[3.328] Executing "/usr/bin/ld" with command line "-b elf32-i386 -m elf_i386  --dynamic-linker=/lib/ld-linux.so.2    -L. -o /home/jiten/mydata/freepascal_prj/bmis_pos/BmisPosLinux32 /home/jiten/mydata/freepascal_prj/bmis_pos/link.res"
bmis_pos.lpr(26,1) Error: Error while linking

And more thing I notice now for Linux-32 using the system library only

In my system I have file : libpangocairo-1.0.so.0.3800.1

just create link libpangocairo-1.0.so -> libpangocairo-1.0.so.0.3800.1

and it is working now

« Last Edit: April 13, 2019, 07:41:52 pm by jshah »

Zvoni

  • Hero Member
  • *****
  • Posts: 2319
Re: Fpcupdeluxe
« Reply #1222 on: April 13, 2019, 07:39:10 pm »
Uhhmm? Install pangocairo?
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
Re: Fpcupdeluxe
« Reply #1223 on: April 21, 2019, 10:02:44 pm »
I want to try to compile my app for Solaris OS, but cannot see cross compiler for it. Can you add? I use Linux x64 as host.

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
Re: Fpcupdeluxe
« Reply #1224 on: April 24, 2019, 12:09:08 pm »
To help you with Solaris:
Solaris 11.4 x86
all .so* files from folders /lib/amd64, /usr/lib/amd64
https://nofile.io/f/kghqe3jBR6q/so.zip
300Mb

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
Re: Fpcupdeluxe
« Reply #1225 on: April 24, 2019, 12:46:16 pm »
Additioanal .so files from "xorg"
https://nofile.io/f/UsQBsZ2EJYT/so2.zip
2Mb

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: Fpcupdeluxe
« Reply #1226 on: April 24, 2019, 03:57:29 pm »
Could you please add CEF4Delphi to fpcupdeluxe?
https://github.com/salvadordf/CEF4Delphi
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #1227 on: April 24, 2019, 04:37:12 pm »
@avra
I will.

About Solaris: what target CPU ?

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
Re: Fpcupdeluxe
« Reply #1228 on: April 24, 2019, 08:54:50 pm »
Solaris: x86_64 (it's called x86 in Oracle).
Also exists Solaris for SPARC - i cannot test it.
« Last Edit: April 24, 2019, 08:57:27 pm by Alextp »

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: Fpcupdeluxe
« Reply #1229 on: April 25, 2019, 12:04:37 am »
@avra
I will.
Thanks! I tested on Win10x64 with FPC 3.0 fixes and LAZ 2.0 fixes and it worked pretty good.
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

 

TinyPortal © 2005-2018