Recent

Author Topic: Fpcupdeluxe  (Read 794098 times)

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #390 on: February 20, 2017, 09:58:25 am »
Yes, this is the preferred method !

Petr Nehez

  • New Member
  • *
  • Posts: 14
Re: Fpcupdeluxe
« Reply #391 on: February 20, 2017, 10:03:31 am »
@DonAlfredo
Could you help me to do the correct cross-compiler installation on Win64?

Should I select "i386" and install FPC and Lazarus and do the fresh installation?
Then if want to install win64 support what should I do?

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #392 on: February 20, 2017, 10:10:16 am »
If you use fpcupdeluxe-win32 to install FPC/Lazarus, a win64 crosscompiler will also be installed automagically ! So its there, including GDB for win64, with also automagically switch-over ... ;-)

Petr Nehez

  • New Member
  • *
  • Posts: 14
Re: Fpcupdeluxe
« Reply #393 on: February 20, 2017, 12:04:46 pm »
Thanks, that worked like a charm!

One more question: is it possible to use Fpcupdeluxe as command-line/bash utility?
I am thinking to include it into Jenkins.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #394 on: February 20, 2017, 12:14:34 pm »
Fpc(laz)up is your friend in this case !

https://github.com/LongDirtyAnimAlf/Reiniero-fpcup
https://github.com/LongDirtyAnimAlf/Reiniero-fpcup/releases/latest

However, its a bit lacking behind fpcupdeluxe now.
Will update soon.

vfclists

  • Hero Member
  • *****
  • Posts: 1013
    • HowTos Considered Harmful?
Re: Fpcupdeluxe
« Reply #395 on: February 21, 2017, 11:50:02 pm »
How can fpcupdeluxe be configured to run on local repositories?

I don't have a good online connection and I want to mirror the required repos on my local network or in a VM. What files contain the mappingsof the packages to their repositories or archives,, so that I can mirror them and download them locally?
Lazarus 3.0/FPC 3.2.2

Windsurfer

  • Sr. Member
  • ****
  • Posts: 368
    • Windsurfer
Re: Fpcupdeluxe
« Reply #396 on: February 22, 2017, 11:09:46 pm »
I have successfully installed fpc 3.0.2 and Laz 1.7 64 bit on Linux Mint 18.1 Cinnamon 64 bit. This runs successfully.

I have tried to install 32 bit fpc 3.0.2 and Laz 1.7 (in a new folder) but it fails. The messages indicate that non of the required libraries can be found. They are installed, or the first installation would not work, and I have checked them in synaptic. (I want to cross compile.)

Am I missing something obvious?

pcupdeluxe: ERROR: Required package is not installed for Lazarus: libpango-1.0.so
fpcupdeluxe: ERROR: Required package is not installed for Lazarus: libgdk-x11-2.0.so
fpcupdeluxe: ERROR: You need to install at least libx11-dev libgtk2.0-dev libcairo2-dev libpango1.0-dev libxtst-dev libgdk-pixbuf2.0-dev libatk1.0-dev libghc-x11-dev to build Lazarus !!
fpcupdeluxe: ERROR: Make, binutils, subversion/svn [and gdb] are also required !!
fpmake.pp(47,1) Error: Error while linking
fpcupdeluxe: ERROR: Error running BuildModuleCustom for module FPC
ERROR: Fpcupdeluxe failed.

jacmoe

  • Full Member
  • ***
  • Posts: 249
    • Jacmoe's Cyber SoapBox
Re: Fpcupdeluxe
« Reply #397 on: February 23, 2017, 12:00:55 am »
Yes, you missed something obvious.  ;D

Code: Pascal  [Select][+][-]
  1. sudo apt-get install libgtk2.0-dev libcairo2-dev libpango1.0-dev libxtst-dev libgdk-pixbuf2.0-dev libatk1.0-dev libghc-x11-dev subversion buildessential

Check the error messages you posted.
more signal - less noise

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: Fpcupdeluxe
« Reply #398 on: February 23, 2017, 12:47:58 am »
I am using TortoiseSVN ... no problems.
It seems definitely a svn problem. But a strange one !

You could do a check by getting the FPC and Lazarus repo's by hand.
Fpcupdeluxe expects the repos/sources in a dir-structure like this:
installdir/fpcsrc
installdir/lazarus

Point fpcupdeluxe towards this installdir.
Please be sure that"" Split FPC sources and bins" is checked in setup+.
Also be sure that these sources are real repos, including a .svn directory.
No, it was not svn related. An old FPC installation in C:\pp was the problem. I removed the directory and everything worked. I have no clue how this could influence the make script! And also this dir is not set in any PATH.
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #399 on: February 23, 2017, 07:28:04 am »
@Pascal
Glad it worked for you in the end. But this error/problem should not have happened. I will investigate this.

@vfclists
Yes, fpcupdeluxe can run on a local repo.
Fpcupdeluxe expects the repos/sources in a dir-structure like this:
installdir/fpcsrc
installdir/lazarus
Point fpcupdeluxe towards this installdir.
Please be sure that"" Split FPC sources and bins" is checked in Setup+.
Please be sure that"" FPC/Laz rebuild only" is checked in Setup+.


DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #400 on: February 23, 2017, 07:31:11 am »
@Windsurfer
If I understand you correct.
Fpcupdeluxe is not prepared (yet) to use multilibs (32bit on a 64bit system).

Windsurfer

  • Sr. Member
  • ****
  • Posts: 368
    • Windsurfer
Re: Fpcupdeluxe
« Reply #401 on: February 23, 2017, 09:27:33 am »
@Jacmoe,
Those packages are all installed, otherwise the 64 bit install would not work. I was a little alarmed because buildessential could not be found. A quick check with synaptic showed it should be build-essential. :)

@DonAlfredo,
Thanks for the information and all the work you put into fpcupdeluxe.

I'll install in my Virtualbox Windows XP and 10 for (edit: instead of)  cross compiling.
« Last Edit: February 23, 2017, 09:41:27 am by Windsurfer »

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #402 on: February 23, 2017, 10:39:08 am »
@Windsurfer
I have the multilib working now, but not without some manual work.
E.g.
The linker still complains about missing -lcairo (among other missing libs).
This is due to the fact that for x86_64, many softlinks are available for the libs.
x86_64:
libcairo.so -> libcairo.so.2 -> libcairo.so.2.11400.6
multi_i386:
libcairo.so.2 -> libcairo.so.2.11400.6

Thus, for multilib, the link towards the plain .so is missing, causing the i386 linker to complain.

So, I wonder if it makes sense to include this feature into fpcupdeluxe, if it still meaans that it will error out ! Any ideas ?

Windsurfer

  • Sr. Member
  • ****
  • Posts: 368
    • Windsurfer
Re: Fpcupdeluxe
« Reply #403 on: February 23, 2017, 01:51:39 pm »
@DonAlfredo
I think that, if it is going to always have errors, the best solution is an error message reference to a Wiki page with the manual instructions.

We already have the 'sudo apt-get install ...' instruction. It is not much more for the user to do.

jacmoe

  • Full Member
  • ***
  • Posts: 249
    • Jacmoe's Cyber SoapBox
Re: Fpcupdeluxe
« Reply #404 on: February 23, 2017, 06:22:47 pm »
Odd that you have problems. I have a 64bit Lazarus Linux install, and simply installed the win32 cross build tools in Fpcupdeluxe without incident, and performed a successful win32 build in the IDE, which I tested on a VBox Win2000.
So, unless I misunderstood what you are doing, I can confirm that it works on my box.
more signal - less noise

 

TinyPortal © 2005-2018