List Info

Thread: Build advice needed




Build advice needed
user name
2007-01-07 12:24:23

Hi,

Yes, this can be frustrating. However I also have trouble with my SuSE
9.2-compiled executables, since users report that on SuSE 10.1 an
additional library (compat-expat1-1.95.8-6) must be installed to avoid
an error linking with libexpat.so.0.

I would think though that building with a somewhat older system will
lead to better compatibility than building with the latest and greated
distro, since systems are more likely to be backward than forward
compatible.

Building on Debian Sarge results in executables that work on the last
couple of Ubuntu distributions. Hm, it looks like the Debian binary will
also work on SuSE 9.2, and FC 4 and FC 6, so I can probably get away
with a single Linux build.

When building on Linux I avoid use of standard C++ libraries and pass
the -lsupc+;+ flag to the linker to cut down on distribution-specific
libraries. -lsupc+;+ causes the executable to be built with only the
minimal C++ support, but might not work with all gcc versions or Unix
distributions (doesn't work on FreeBSD 5.4 for instance).

Compiling or testing on different distributions does of course get a lot
easier when you use VMware - highly recommended.

Regards,

Julian

luissoltero wrote:
> Hello All,
>
> I have now ported my wxWidgets/DB3.13 application from windows to suse
> 10.2 and ubuntu edgy 6.10. All is working fine.
>;
> I would like to make a static executable that I can release without
> having to worry about dynamic library loading and incomparability
> issues and need some advice.
>
> In my DB configuration for GCC linux i set the following
>
> Share Mode: static
> Modularity: Monolithic
> Runtime linking: Static
>
> i then proceeded to build wxWidgets 2.8.0 and my application with the
> new settings and generated a beefy executable. This was all done
> under SUSE 10.2 32bit.
>
> I then ran the exe on a SUSE 10.1 machine and got run time linking
> errors. The first complaint was about libexpat.so.1 missing. expat
>; was installed on the 10.1 machine. I did a symbolic link to appease
> the loader and then tried again. this time it complained about libXau
>
> So my question is... is there a magic set of configuration settings
> that well minimize this problem? I know that DB3.13 does this
> correctly because I can run in on several linux distros without issue.
>
> How did you do that? the ubuntu build runs fine under SUSE 10.2 for
> example.
>
> Thanks for any pointers.
>
> --luis
>
>
> Luis Soltero, Ph.D., MCS
> Director of Software Development, CTO
> Global Marine Networks, LLC
> StarPilot, LLC
> Tel: 865-379-8723
> Fax: 865-681-5017
> E-Mail: lsoltero%40globalmarinenet.net">lsolteroglobalmarinenet.net
> Web: http://www.globalmarinenet.net
> Web: http://www.starpilotllc.com
>
>
>
>
>
> Yahoo! Groups Links
>;
>
>
>
>
>

--
Julian Smart, Anthemion Software Ltd.
28/5 Gillespie Crescent, Edinburgh, Midlothian, EH10 4HU
www.anthemion.co.uk | +44 (0)131 229 5306
Tools for writers: www.writerscafe.co.uk
wxWidgets RAD: www.anthemion.co.uk/dialogblocks

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )