[Liblas-devel] liblas 1.0.1 on FreeBSD64 with gcc 3.4.4

Howard Butler hobu.inc at gmail.com
Tue May 26 17:41:03 EDT 2009


On May 26, 2009, at 12:26 PM, Howard Butler wrote:

>
> On May 25, 2009, at 10:40 AM, Jeff Hamann wrote:
>
>> I'm trying to get liblas-1.0.1 to build on my FreeBSD64 machines  
>> and discovered that the compiler that's getting used is gcc 3.4.4,  
>> which compiles and links the 1.0.1 source, but yields the following  
>> results for example:
>>
>> Min X Y Z                  0.000000 0.000000  
>> 738736861263988851298380279202391078391644568474981382591204550317796735641019245818295007277452811570850587484972658344932700484666392576.000000
>
> eek, we have only built and tested on gcc 4.0+

I tested with gcc 3.4 on ubuntu intrepid and 'make check' all passed.   
I suspect the problem is related to the data type macros in <liblas/ 
cstdint.hpp> and poor interactions with BSD.


> After doing a little research, it looks like I need a compiler  
> that's a little more recent, which I have, but I'm not sure how to  
> tell ./configure to use the more recent compiler. Since I'm somewhat  
> of a newbie with libtool, automake, and autoconf, does anyone have a  
> suggestion for simply telling ./configure (or mod'n the inputs) to  
> require gcc 4.1+?

define them as variables on your configure line (note the switch for  
the spatial indexing and OCI stuff is svn trunk only at this point):

CC="/usr/bin/gcc-3.4" CXX="/usr/bin/gcc-3.4" ./configure        --with- 
gdal=/usr/bin/gdal-config \
		--with-oci=yes \
                 --with-spatialindex=/usr/local \
                 --with-geotiff=/usr \
                 --enable-debug

Hope this helps,

Howard


More information about the Liblas-devel mailing list