Recent

Author Topic: Fpcupdeluxe  (Read 794476 times)

Josh

  • Hero Member
  • *****
  • Posts: 1271
Re: Fpcupdeluxe
« Reply #990 on: October 08, 2018, 10:38:43 pm »
Hi

Just tested and the update does indeed install a working Cocoa64 installation.

Cocoa64 on Mojave is having many issues, random crashes making it not possible to use effectively. No fault of fpcupdeluxe; just the current state of cocoa on Mojave.
If I install cocoa32 (I  know not recommended) it is far more stable.  Again this is on Mojave, exactly the same config on High Sierra is 10x more stable.


Thanks for this increible utility

Cheers
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

Hartmut

  • Hero Member
  • *****
  • Posts: 742
Re: Fpcupdeluxe
« Reply #991 on: October 23, 2018, 08:34:33 pm »
I used fpcupdeluxe to create a cross-compile installation to compile 32-bit GUI programs on a 64-bit Ubuntu 18.04 in this way:
Code: [Select]
Select FPC stable and Lazarus stable and click "Install/update FPC+Laz".
After that completes select CPU "i386" and OS "linux" and "Install cross-compiler"  (** Select "yes" when missing tools message box appears **)
Run Lazarus from the desktop link created by fpcupdeluxe.

I could cross-compile and was happy. But to start my 32-bit program I had to install some libraries:
Code: [Select]
sudo apt install libgtk2.0-0:i386 libx11-6:i386 libgdk-pixbuf2.0-0:i386 libglib2.0-0:i386 libpango-1.0-0:i386 libcairo2:i386 libatk1.0-0:i386

Now I cannot compile any longer. Lazarus gives me this error:
Code: [Select]
Compile Project, CPU: i386, Target: project2: Exit code 256, Errors: 1
/opt/lazarus_184/cross/lib/i386-linux//libresolv.so.2: undefined reference to `__res_maybe_init@GLIBC_PRIVATE'
/usr/lib/i386-linux-gnu//libgio-2.0.so.0: undefined reference to `g_build_filename_valist'
project2.lpr(20,1) Error: Error while linking

You can point fpcupdeluxe towards your own system 32bit library.
In your case: /lib32
You can also point fpcupdeluxe towards your own system 32bit binary utilities.

If you want to do this.
In setup+ , you can choose your os and cpu in "Custom tools location ..."
And enter your location where to find the bins and the libs.
After setting these locations, you can build the cross-compiler again.

I'm an absolute beginner on Linux and on cross-compiling. I have difficulties to understand what you mean. So please I have 3 questions:
  • In setup+ , must I first set "Search options" to "custom" and then enter the lib-Path in "Libraries" and the bin-Path in "Tools"?
  • But which lib-Path must I use? You recommended /lib32, but WayneSherman wrote here that they are in /lib/i386-linux-gnu and /usr/lib/i386-linux-gnu. What lib-path must I use?
  • And which 32bit bin-Path must I use? I don't know it. Please, how can I find this out?
Thank you very much for your help.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #992 on: October 28, 2018, 03:38:54 pm »
I have uploaded more recent linux i386 libs.
How to use:

Delete the ..../cross/lib/i386-linux directory.
Return all fpcupdeluxe setup+ custom settings back to standard.

Re-run the building of the i386 cross-compiler and you should be good to go.
(at least, it works on mu freshly installed Ubuntu64 VM)

WayneSherman

  • Full Member
  • ***
  • Posts: 243
Re: Fpcupdeluxe
« Reply #993 on: October 29, 2018, 04:36:46 am »
Using latest fpcupdeluxe to build Laz/fpc stable/stable:
https://github.com/newpascal/fpcupdeluxe/releases/tag/1.6.2e

Tested on fresh install of Xubuntu 18.04 and 16.04 with recent OS updates installed.

First run of fpcupdeluxe fails to build stable/stable:
    fpcupdeluxe: info: FPC builder: Using FPC bootstrap compiler with version: 3.0.2
    fpcupdeluxe: Start of compile error summary.
    Fatal error: can't create /home/user/fpcupdeluxe/fpcsrc/rtl/units/x86_64-linux/prt0.o: No such file or directory
    fpcupdeluxe: Start of compile error summary.
    fpcupdeluxe: ERROR: FPCNativeInstaller (CleanModule: FPC): Error running make for FPC failed with exit code 512
    fpcupdeluxe: Done !!

Second run is successful
Log file attached.

WayneSherman

  • Full Member
  • ***
  • Posts: 243
Re: Fpcupdeluxe
« Reply #994 on: October 29, 2018, 04:57:12 am »
I have uploaded more recent linux i386 libs.
...
(at least, it works on mu freshly installed Ubuntu64 VM)

1. Tested on Xubuntu 16.04 64-bit with latest OS updates installed.  It works correctly to build and run with the 32-bit dependencies installed. :-)

2. Tested on Xubuntu 18.04 64-bit with latest OS updates installed.  After installing the 32-bit libraries (executable run time dependencies), Lazarus fails to build the application.
    #install dependencies for a 32-bit executable built with Lazarus
    sudo apt install libgtk2.0-0:i386 libx11-6:i386 libgdk-pixbuf2.0-0:i386 libglib2.0-0:i386 libpango-1.0-0:i386 libcairo2:i386 libatk1.0-0:i386

Without the 32-bit libraries installed, Lazarus successfully builds the application, but it cannot be run.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #995 on: October 29, 2018, 07:19:35 am »
My bad !
Uploaded the new libs towards the wrong location.
Please delete the cross/lib/i386-linux directory and run fpcupdeluxe again to get the right libs and to build the cross-compiler. Afterwards to a clean and build.

Josh

  • Hero Member
  • *****
  • Posts: 1271
Re: Fpcupdeluxe
« Reply #996 on: October 29, 2018, 09:41:14 am »
Hi

Just tried to update Lazarus/fpc trunk for win 32, and getting the below
Quote
[ 95%] Compiled package odata
Start compiling package pastojs for target i386-win32.
       Compiling pastojs\src\pas2jsfiler.pp
       Compiling pastojs\src\pas2jsfileutils.pp
       Compiling pastojs\src\fppas2js.pp
       Compiling pastojs\src\fppjssrcmap.pp
       Compiling pastojs\src\pas2jsfilecache.pp
       Compiling pastojs\src\pas2jslogger.pp
The installer encountered the following error:
External command "C:/lazarus_trunk_new/fpcsrc/compiler/ppc386.exe -Twin32 -FUpastojs\units\i386-win32\ -FuC:\lazarus_trunk_new\fpcsrc\rtl\units\i386-win32\ -FuC:\lazarus_trunk_new\fpcsrc\packages\paszlib\units\i386-win32\ -FuC:\lazarus_trunk_new\fpcsrc\packages\hash\units\i386-win32\ -FuC:\lazarus_trunk_new\fpcsrc\packages\rtl-objpas\units\i386-win32\ -FuC:\lazarus_trunk_new\fpcsrc\packages\fcl-js\units\i386-win32\ -FuC:\lazarus_trunk_new\fpcsrc\packages\fcl-base\units\i386-win32\ -FuC:\lazarus_trunk_new\fpcsrc\packages\fcl-res\units\i386-win32\ -FuC:\lazarus_trunk_new\fpcsrc\packages\fcl-json\units\i386-win32\ -FuC:\lazarus_trunk_new\fpcsrc\packages\fcl-passrc\units\i386-win32\ -Fipastojs\src -Ur -Xs -O2 -n -vw-n-h-l-d-u-t-p-c- -di386 -dRELEASE -XX -CX -Sc -S2h -viq pastojs\src\pas2jsfilecache.pp" failed with exit code 1. Console output:
Target OS: Win32 for i386
Compiling pastojs\src\pas2jsfilecache.pp
Compiling pastojs\src\pas2jslogger.pp
pas2jsfilecache.pp(2198,10) Error: identifier idents no member "SaveToFile"
pas2jsfilecache.pp(2229) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted

make[1]: *** [packages_smart] Error 2
make: *** [build-stamp.i386-win32] Error 2

fpcupdeluxe: ERROR: FPCNativeInstaller (BuildModuleCustom: FPC): Error running make for FPC failed with exit code 2
. Details:


ERROR: Fpcupdeluxe fatal error !

Possible change in Laz.

Using fpcupdeluxe-i386-win32 v1.6.2e
« Last Edit: October 29, 2018, 09:44:02 am by josh »
The best way to get accurate information on the forum is to post something wrong and wait for corrections.


Pascal

  • Hero Member
  • *****
  • Posts: 932
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

nouzi

  • Sr. Member
  • ****
  • Posts: 296
Re: Fpcupdeluxe
« Reply #999 on: October 29, 2018, 11:53:52 am »
first my english  is bad
step fixe this problem
1- go to lazarus>package>install/uninstall package
2- in left filter write pas2js
3- uninstall selection
4- save and rebuild IDE
-------------------------------------------------------------
5- go to Fpcupdeluxe
6- in box module selecte pas2js-rtl
7- uninstall
-------------------------------------------------------------
8-go to lazarus>tools>configour "build lazarus"
9- in profile to build selecte clean up + build all
-------------------------------------------------------------
10- go to Fpcupdeluxe click on install/update FCP+LAZ


----------  8-) Enjoy  8-)

« Last Edit: October 29, 2018, 02:24:17 pm by nouzi »
My English is  bad
Lazarus last version free pascal last version
Lazarus trunk  free pascal trunk 
System : Linux mint  64bit  Windows 7 64bit

Bart

  • Hero Member
  • *****
  • Posts: 5275
    • Bart en Mariska's Webstek
Re: Fpcupdeluxe
« Reply #1000 on: October 29, 2018, 12:01:18 pm »
1000th reply!

Bart

Thaddy

  • Hero Member
  • *****
  • Posts: 14205
  • Probably until I exterminate Putin.
Re: Fpcupdeluxe
« Reply #1001 on: October 29, 2018, 02:55:15 pm »
Yeah, right, but you were beaten by MementoMojito who had the %1000th reply... I hope to steal the $1000th reply...  >:D
Specialize a type, not a var.

WayneSherman

  • Full Member
  • ***
  • Posts: 243
Re: Fpcupdeluxe
« Reply #1002 on: October 29, 2018, 03:54:09 pm »
My bad !
Uploaded the new libs towards the wrong location.
Please delete the cross/lib/i386-linux directory and run fpcupdeluxe again to get the right libs and to build the cross-compiler. Afterwards to a clean and build.

Tested on Xubuntu 18.04 64-bit.  It works.  32-bit executable correctly builds and runs.

Tested on Xubuntu 16.04 64-bit.  Lazarus does not successfully build a 32-bit executable.  Link errors:
    (9015) Linking project1
    /home/user/fpcupdeluxe/cross/lib/i386-linux//libc.so.6: undefined reference to `_dl_exception_create@GLIBC_PRIVATE'
    /home/user/fpcupdeluxe/cross/lib/i386-linux//libpthread.so.0: undefined reference to `__tunable_get_val@GLIBC_PRIVATE'
    /home/user/fpcupdeluxe/cross/lib/i386-linux//libcairo.so: undefined reference to `FT_Get_Var_Design_Coordinates'
    /home/user/fpcupdeluxe/projects/test1/project1.lpr(20,1) Error: (9013) Error while linking
    /home/user/fpcupdeluxe/projects/test1/project1.lpr(20,1) Fatal: (10026) There were 1 errors compiling module, stopping
    Fatal: (1018) Compilation aborted
    Error: /home/user/fpcupdeluxe/fpc/bin/x86_64-linux/ppcross386 returned an error exitcode

After removing 32-bit libraries (apt purge...), still get link error:
    (9015) Linking project1
    /home/user/fpcupdeluxe/cross/lib/i386-linux//libc.so.6: undefined reference to `_dl_exception_create@GLIBC_PRIVATE'
    /home/user/fpcupdeluxe/cross/lib/i386-linux//libpthread.so.0: undefined reference to `__tunable_get_val@GLIBC_PRIVATE'
    /home/user/fpcupdeluxe/projects/test1/project1.lpr(20,1) Error: (9013) Error while linking
    /home/user/fpcupdeluxe/projects/test1/project1.lpr(20,1) Fatal: (10026) There were 1 errors compiling module, stopping
    Fatal: (1018) Compilation aborted
    Error: /home/user/fpcupdeluxe/fpc/bin/x86_64-linux/ppcross386 returned an error exitcode


DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #1003 on: October 29, 2018, 04:35:06 pm »
And if you do:
sudo apt-get install gcc-multilib

And I am happy to post #1003 !!!  ;) :D

WayneSherman

  • Full Member
  • ***
  • Posts: 243
Re: Fpcupdeluxe
« Reply #1004 on: October 29, 2018, 05:27:52 pm »
And if you do:  sudo apt-get install gcc-multilib

Further testing on Xubuntu 16.04.  gcc-multilib was not installed.  After installing it, I get the same link errors.
« Last Edit: October 29, 2018, 06:07:25 pm by WayneSherman »

 

TinyPortal © 2005-2018