Recent

Author Topic: Fpcupdeluxe  (Read 882583 times)

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1790
Re: Fpcupdeluxe
« Reply #2340 on: November 07, 2023, 03:40:15 pm »
Clean and build ?

AlexTP

  • Hero Member
  • *****
  • Posts: 2520
    • UVviewsoft
Re: Fpcupdeluxe
« Reply #2341 on: November 07, 2023, 03:46:13 pm »
Now I tried "Clean-up and build" (with pressing "Delete").
Did not help...

What is suspicious:
many errors for packages like this:
Quote
Error: clang: error: invalid Darwin version number: macosx11.0.0
Error: clang: error: invalid version number in '-target arm64-apple-macosx11.0.0'

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1790
Re: Fpcupdeluxe
« Reply #2342 on: November 07, 2023, 03:49:08 pm »
Quote
Error: clang: error: invalid version number in '-target arm64-apple-macosx11.0.0'
This is a known error. Please search forum and bug-tracker.

AlexTP

  • Hero Member
  • *****
  • Posts: 2520
    • UVviewsoft
Re: Fpcupdeluxe
« Reply #2343 on: November 07, 2023, 03:53:55 pm »
I searched for it, found 2 topics. 1st topic: advice to reinstall X-Code. not applicable for me - I do cross compiling on Linux x64 w/o real macOS. 2nd topic: is also for real macOS, it seems.
Maybe something is not complete in cross-bins or cross-libs? Today I did remove all of them and reinstall with downloading cross-bins.
« Last Edit: November 07, 2023, 04:08:31 pm by AlexTP »


AlexTP

  • Hero Member
  • *****
  • Posts: 2520
    • UVviewsoft
Re: Fpcupdeluxe
« Reply #2345 on: November 07, 2023, 05:27:30 pm »
Ok, I got it. I use also Ubuntu 20.

Quote
problem is hard to fix. I will explain.
The Darwin cross-tools must be build by me on a Linux machine (or VM).
This machine has a certain clang version. And a certain libc version. Due to this, they will only work out-of-the-box an a more or less similar machine.
I have been trying for some time now to build universal tools that will work on all Ubuntu 20 and newer. However, I have yet to succeed.
Your clang it too old for the tools to work. I can only compile the tools with clang 12 or newer.
Ubuntu 20 is old. You might try Ubuntu 22. And report back if you succeed.

AlexTP

  • Hero Member
  • *****
  • Posts: 2520
    • UVviewsoft
Re: Fpcupdeluxe
« Reply #2346 on: November 08, 2023, 07:42:56 am »
"clang" error was fixed by me:
https://wiki.freepascal.org/fpcupdeluxe#clang_compilation_error

Now I face "missing .o file" warnings and error "file not found: Foundation".
What to do?

« Last Edit: November 08, 2023, 07:46:50 am by AlexTP »

Чебурашка

  • Hero Member
  • *****
  • Posts: 586
  • СЛАВА УКРАЇНІ! / Slava Ukraïni!
Re: Fpcupdeluxe
« Reply #2347 on: November 10, 2023, 10:12:59 am »
Hello,
1. installed debian 12.2 with XFCE.
2. installed additional libraries from fpcupdeluxe wiki
3. downloaded fpcupdeluxe-x86_64-linux from "https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/tag/v2.4.0a"

When I run as root is works, while as normal user I get "access violation".

Is the software root only?
« Last Edit: November 10, 2023, 10:56:26 am by Чебурашка »
FPC 3.2.0/Lazarus 2.0.10+dfsg-4+b2 on Debian 11.5
FPC 3.2.2/Lazarus 2.2.0 on Windows 10 Pro 21H2

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1790
Re: Fpcupdeluxe
« Reply #2348 on: November 10, 2023, 11:18:35 am »
Fpcupdeluxe is 99.9% user-only ! Run it somewhere inside your user directory as that same user. And let it install FPC and Lazarus also inside the user directory.
In most cases, this error is caused by running fpcupdeluxe from the download directory directly. It wants to create some setting-files and that might fail due to permission issues.

Чебурашка

  • Hero Member
  • *****
  • Posts: 586
  • СЛАВА УКРАЇНІ! / Slava Ukraïni!
Re: Fpcupdeluxe
« Reply #2349 on: November 10, 2023, 11:38:27 am »
Fpcupdeluxe is 99.9% user-only ! Run it somewhere inside your user directory as that same user. And let it install FPC and Lazarus also inside the user directory.
In most cases, this error is caused by running fpcupdeluxe from the download directory directly. It wants to create some setting-files and that might fail due to permission issues.

Originall I copied "fpcupdeluxe-x86_64-linux" in a custom dir "/opt/fpcupdeluxe"

Then I did:

mkdir /home/user/fpcupdeluxe
cp /opt/fpcupdeluxe/fpcupdeluxe-x86_64-linux /home/user/fpcupdeluxe
cd /home/user/fpcupdeluxe
./fpcupdeluxe-x86_64-linux

And now it works also as standard user

Instead If I do

mkdir /home/user/fpcupdeluxe
cd /home/user/fpcupdeluxe
/opt/fpcupdeluxe/fpcupdeluxe-x86_64-linux

It starts without AV, then I make some changes, for example in the install path according to my preferences. Unexpectedly when I close the program with the right top x button it gives error because it tries to save the ini file in the /opt/fpcupdeluxe instead of in /home/user/fpcupdeluxe from which i ran it.

Maybe a GetDir() could solve the problem, as once started the software could assume that the current directory has to be considered the place where settings have to be stored instead of the location where the executable is.
FPC 3.2.0/Lazarus 2.0.10+dfsg-4+b2 on Debian 11.5
FPC 3.2.2/Lazarus 2.2.0 on Windows 10 Pro 21H2

BosseB

  • Sr. Member
  • ****
  • Posts: 473
Re: Fpcupdeluxe
« Reply #2350 on: November 15, 2023, 06:13:43 pm »
Quick question:
I have just installed the 64 bit PiOS on a new Raspberry Pi4B and set the window manager to use X11.

Next on the list is to install Lazarus/Fpc so that I can build applications for both 32 and 64 bit operating system on RPi4.
The 32 bit version should run also on older RPi devices, at least RPi3B.

What should I choose to download from GitHub?
I see the following listed for arm CPU:

- fpcupdeluxe-arm-linux
- fpcupdeluxe-arm-linux-qt5
- fpcupdeluxe-armv6hf-linux

Please advice which is the correct version to use.

UPDATE:
I tried downloading the fpcupdeluxe-armv6hf-linux to a dir on the RPi4B, then in the GUI I used a terminal to execute that file (after setting it executable) but it would not start:
Code: Bash  [Select][+][-]
  1. bash: ./fpcupdeluxe-armv6hf-linux: cannot execute: required file not found
So I am missing something obvious here...
I have used fpcupdeluxe previously on Windows and it just started a GUI where I could do the installation...

UPDATE2:
I found the readme on the main page at github so I did this:
Code: Bash  [Select][+][-]
  1. sudo apt install make binutils build-essential gdb subversion zip unzip libx11-dev libgtk2.0-dev libgdk-pixbuf2.0-dev libcairo2-dev libpango1.0-dev
  2.  

Then tested to start fpcupdeluxe with a directory argument like this:
Code: Bash  [Select][+][-]
  1. $ ./fpcupdeluxe-armv6hf-linux /home/bosse/devtools/lazarus
  2. bash: ./fpcupdeluxe-armv6hf-linux: cannot execute: required file not found
So same error, and not specifying what file it is looking for....
« Last Edit: November 15, 2023, 06:39:13 pm by BosseB »
--
Bo Berglund
Sweden

WayneSherman

  • Sr. Member
  • ****
  • Posts: 254
Re: Fpcupdeluxe
« Reply #2351 on: November 15, 2023, 06:44:35 pm »
UPDATE:
I tried downloading the fpcupdeluxe-armv6hf-linux...then execute that file...
Code: Bash  [Select][+][-]
  1. bash: ./fpcupdeluxe-armv6hf-linux: cannot execute: required file not found

Did you make sure the dependencies for Linux are installed?
https://github.com/LongDirtyAnimAlf/fpcupdeluxe#linux

Code: Bash  [Select][+][-]
  1. sudo apt install make binutils build-essential gdb subversion zip unzip libx11-dev libgtk2.0-dev libgdk-pixbuf2.0-dev libcairo2-dev libpango1.0-dev

(NOTE: I recommend installing "git" instead of "subversion" and do a "sudo apt update" before installing anything with apt)

WayneSherman

  • Sr. Member
  • ****
  • Posts: 254
Re: Fpcupdeluxe
« Reply #2352 on: November 15, 2023, 06:53:04 pm »
Then tested to start fpcupdeluxe
Code: Bash  [Select][+][-]
  1. $ ./fpcupdeluxe-armv6hf-linux /home/bosse/devtools/lazarus
  2. bash: ./fpcupdeluxe-armv6hf-linux: cannot execute: required file not found

Try running this and make sure the file listed as "interpreter" exists:
Code: Bash  [Select][+][-]
  1. file ./fpcupdeluxe-armv6hf-linux
« Last Edit: November 15, 2023, 06:57:16 pm by WayneSherman »

BosseB

  • Sr. Member
  • ****
  • Posts: 473
Re: Fpcupdeluxe
« Reply #2353 on: November 15, 2023, 08:58:46 pm »
Try running this and make sure the file listed as "interpreter" exists:
Code: Bash  [Select][+][-]
  1. file ./fpcupdeluxe-armv6hf-linux
This is what I get:
Code: [Select]
$ file fpcupdeluxe-armv6hf-linux
fpcupdeluxe-armv6hf-linux: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.0.0, stripped
and then:
Code: [Select]
$ ls -la /lib/ld-linux-armhf.so.3
ls: cannot access '/lib/ld-linux-armhf.so.3': No such file or directory
$ ls -la /lib/ld*
lrwxrwxrwx 1 root root 39 Oct  3 22:45 /lib/ld-linux-aarch64.so.1 -> aarch64-linux-gnu/ld-linux-aarch64.so.1

I am lost now, because all earlier use by me of fpcdeluxe has been done like this:
- Download the file from github to the dir "fpcdeluxe" below the installation targetdir like:
Code: [Select]
~/devtools/lazarus/2.2.6/fpcupdeluxe In my notes I wrote that I have done this so I later can re-run the command if I want to add something to Lazarus and it won't mess with another installation of a different Lazarus version.
- Then I have just started the downloaded file (after making it executable if it is a Linux system)

But this last step seems to be non-working here. Notice that it is shown as a 32-bit executable!
So maybe there is no fpcupdeluxe that can run on a PiOS 64 bit? Am I the first one who tries it?
--
Bo Berglund
Sweden

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 1156
  • Professional amateur ;-P
Re: Fpcupdeluxe
« Reply #2354 on: November 15, 2023, 09:06:59 pm »
Hey BosseB,

From the diagonal read of you posts I'm kinda getting the feeling that your trying to run a 32b(arm-linux) fpcupdeluxe on a 64b(aarch64-linux) platform.

If you're running a 64b Linux version, you should aim at downloading the AARCH64 version of fpcupdeluxe and not the ARM version of fpcupdeluxe.

Again, this is from a diagonal read of your posts. If I'm wrong, please forgive my insertion of foot in mouth!!

Cheers,
Gus
Lazarus 3.99(main) FPC 3.3.1(main) Ubuntu 23.10 64b Dark Theme
Lazarus 3.0.0(stable) FPC 3.2.2(stable) Ubuntu 23.10 64b Dark Theme
http://github.com/gcarreno

 

TinyPortal © 2005-2018