Re: Is there a strategy for multiplatform builds and distributions?

From: Arjen Markus (arjen.markus_at_wldelft.nl)
Date: 01/28/04


Date: Wed, 28 Jan 2004 10:06:35 +0100

Daniel Grimwood wrote:
>

>
> > The build processes work, but they are a nuisance to set up.
> > So, my question is:
>
> > Does anyone know of general/practical guidelines
> > to deal with these issues?
>
> Hi Arjen,
>
> I'm not 100% sure of what you're asking, but here goes.... We have a
> configure script that works out some string associated with the system,
> such as "INTEL-ifc-on-LINUX", "LAHEY-lf95-on-WINDOWS" etc. It then
> substitutes this name into the makefile as both the name of a file that
> contains compiler flags etc specific to that system, and as the name of a
> top level directory in the build tree into which goes all the compiled
> files. Thus we get directories created named INTEL-ifc-on-LINUX/modules,
> INTEL-ifc-on-LINUX/objects, INTEL-ifc-on-LINUX/dependencies, etc. To swap
> between platforms, I just rerun the configure script on the new platform
> and don't do a "make clean" or anything like that. If the compiler wants
> to leave the .mod file in the current directory, we just manually move it
> with a script. Is that what you're talking about?
>

Okay, so you have automated the process of getting all the files in
place.

It is a bit difficult to clearly formulate the question, as it is partly
a matter of different platforms/compilers/build tools and partly a
matter of user perception/culture/attitude ... I realise now.

If I may summarise the answers sofar:

- Make as uniform a file system as possible (include for anything used
  at compile-time, lib for anything used at link-time)
- Hide the platform issues inside the build tools (makefiles and
  auxiliary scripts)

One issue that I should have raised in my original question is:
How to deal with MS Developer Studio? It has its merits, but it
is far less flexible than any "make" utility.

Well, I thank you all for taking the trouble to answer a troublesome
question. You have given me some thoughts on how to deal with the
problem ... now to fit it in with the daily work ;)

Regards,

Arjen



Relevant Pages

  • Re: Is This a KDE/Gnome Group?
    ... GUI offers means to present information in various structured ways. ... I've never encountered that in a shell script, ... The devolper only needs hints about the places, where his code might use an platform specific API, so that he can provide workarounds for those platforms, which do not provide the required functionality. ... The more common libraries, the less library installations. ...
    (comp.os.linux.setup)
  • Re: Using more than one printer?
    ... > your version and you platform. ... > Pre-7 filemaker remembers the settings you made. ... > command enter the line Print Setup. ... Now perform your script ...
    (comp.databases.filemaker)
  • Re: sqlplus and here document
    ... Chuck wrote: ... As you can see by my reply to Robert, it was the trailing space after ... Absolutely certain it was the script I was testing. ... Platform is Oracle 9.2 on Solaris 9. ...
    (comp.databases.oracle.server)
  • Re: Launch a background task from a PHP script?
    ... According to the PHP Manual, the function register_shutdown_functionwas the solution "in PHP 4.0.6 and earlier under Apache", but "since PHP 4.1 the shutdown functions are called as the part of the request" so that PHP waits until the shutdown functions are completed before closing the connection to the user. ... echo 'Starting main script... ... Not sere how you would accomplish this on the Windows platform, but then again if you are doing anything serious, Windows is not your server platform. ...
    (comp.lang.php)
  • Re: Converting a big perl script which is called over and over to a module ?
    ... > I have a rather long Perl script. ... > short script which will use this module to launch the first instance. ... processes work, ... perldoc -q background ...
    (comp.lang.perl.misc)