[fdo-users] Compilation on 64-bit linux

Traian Stanev traian.stanev at autodesk.com
Mon Apr 11 12:00:48 EDT 2011


Try linking to a current version of boost installed by the OS, rather than the one local to FDO/ThirdParty.

It is possible to build FDO and some of the providers in x86-64, however it is not easy to do so. Your best bet is to link as many of the OS-installed libraries as possible instead of compiling the ones from FDO/ThirdParty. Previously it was possible to do this basically for all third party libraries, but it changed with newer versions of Ubuntu due to the built in Xerces being incompatible with Xalan (which FDO requires) and compatible builds of Xalan are no longer available, so you will have to mix and match.

Traian


-----Original Message-----
From: fdo-users-bounces at lists.osgeo.org [mailto:fdo-users-bounces at lists.osgeo.org] On Behalf Of Robin Newton
Sent: Monday, April 11, 2011 10:59 AM
To: fdo-users at lists.osgeo.org
Subject: [fdo-users] Compilation on 64-bit linux

Hi,

I'm trying to build fdo-3.6.0_5104 on 64-bit Linux (openSUSE 10.2 x86-64, gcc 4.1.2, ld 2.17.50.0.5). I've run into a number of problems, some of which I've been able to resolve with minor tweaks to source code or build scripts. (The biggest change was I made was to use gdal-1.8.0 rather than gdal-1.7.1, as I couldn't get the latter to compile.)

The thing that currently has me stumped is this:

/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld:
/usr/users/robinn/projects/rs2.2/fdo/source/OpenSource_FDO/Thirdparty/boost/stage/lib/libboost_thread.a(thread.o):
relocation R_X86_64_32 against `boost::detail::(anonymous namespace)::create_current_thread_tls_key()' can not be used when making a shared object; recompile with -fPIC
/usr/users/robinn/projects/rs2.2/fdo/source/OpenSource_FDO/Thirdparty/boost/stage/lib/libboost_thread.a:
could not read symbols: Bad value

I see that this has been encountered before:

http://trac.osgeo.org/fdo/ticket/424

but it doesn't look like this was ever resolved.

Does anyone know if it is possible to build this (or any other) version of FDO on 64-bit Linux and, if so, how?

Any help appreciated,
Robin



1Spatial: Steering you towards efficient and reliable location-based data with the 1Spatial Data Improvement Process

http://www.1spatial.com/improve_your_data/

1Spatial Group Limited; Registered in England No. 4785688 VAT Reg. No. 816329821; Registered Office: Tennyson House; Cambridge Business Park; Cambridge; CB4 0WZ; United Kingdom


IMPORTANT NOTICE
 
This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender immediately and delete this e-mail from your system. Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of 1Spatial Group Limited, its subsidiaries or associated companies, except where the author specifically states them to be the views of 1Spatial Group Limited, its subsidiaries or associated companies. 
 
1Spatial Group Limited, its subsidiaries and associated companies will not be held liable for any legally binding obligations that are not the subject of an official 1Spatial purchase order or as part of a contract signed by a director of one of the aforementioned companies.
 
Although the company has taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments. You should understand and accept that, when communicating with us by e-mail, it is not a totally secure communications medium.

_______________________________________________
fdo-users mailing list
fdo-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/fdo-users


More information about the fdo-users mailing list