Author Topic: 32b on 64b Cross-compile suggestion  (Read 5575 times)

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
32b on 64b Cross-compile suggestion
« on: 2010 August 29 07:58:10 »

Hi,

as I'm trying to do a 32b windows compilation on a 64b system it struck me that it's a bit heavy handed to have to install the entire 32b PCL package when all I need is the 32b library for linking. At least I assume there's only one set of PCL header files. Now I could install the 32b package on my machine but then I need to re-install 64b to get my start menu working again.

So my suggestion is the either provide both 64b and 32b libraries with either PCL install or make them available separately. I'll copy mine from one of my 32b machines but going forward this seems like a low cost solution that would facilitate PCL building.

I think this applies to all OS flavors, not just windows except that with Linux there's an archive which would allow the intrepid developer to just extract the lib dir. With Windows that's not possible. Don't know about MacOS.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: 32b on 64b Cross-compile suggestion
« Reply #1 on: 2010 August 29 09:18:55 »
I agree. It's clear that the current PCL distributions are too 'rigid'. I'll think on a more flexible way to distribute and install the PCL framework.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: 32b on 64b Cross-compile suggestion
« Reply #2 on: 2010 August 29 09:22:33 »
Hi Juan,

perhaps a single install for each OS where the installer figures out which flavor to make 'active'? In the case of archive distros the pixinsight.sh script could pick the correct one.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: 32b on 64b Cross-compile suggestion
« Reply #3 on: 2010 August 29 09:38:15 »
This could go by hand with the new distribution system. Just select there the flavors of the PCL one wants....
Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: 32b on 64b Cross-compile suggestion
« Reply #4 on: 2010 August 29 09:45:59 »
The thing is that there's really only 1 PCL (headers and docs). It's the library, pixinsight exe and modules that are platform and width specific. So something like

/pcl/bin32
     /bin64
     /lib32
     /lib64
     /dist32
     /dist64
     /src
     /include
     /doc
     /fonts

(or /pcl/bin/x86 and /pcl/bin/x64 etc.) would do just fine. If archive size is an issue then there could still be two different flavors but they can harmlessly be installed 'over each other'.

This would also get rid of some of the environment variable mess that's now required. Or at least make it optional. Even PCLDIR should be optional and default to /pcl (c:\pcl).
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity