[gdal-dev] Re: GDAL svn build

John C. Tull john.tull at wildnevada.org
Sat Mar 15 12:09:18 EDT 2008


William,

Thanks for the input.

As I mentioned in a separate email, I used
configure
make
sudo make install

I will cc the gdal-dev list and make a bug report on this.

Thanks,
John

On Mar 14, 2008, at 10:07 PM, William Kyngesburye wrote:
> Was that:
>
> configure
> make
> sudo make install
>
> or:
>
> configure
> sudo make install
>
> If you make then make install, it shouldn't be compiling again.  The  
> configure looks OK, except that you probably don't need the --build  
> flag, configure should get it right and take into account your arch  
> setting.  And --with-system-zlib is not a valid flag (might be an  
> old one), and zlib detection should find the system libz anyways.
>
> Anyways, I was going to build the 1.5.1 RC this weekend.  But  
> cpl_hash_set.cpp is new to SVN and is not in the release source, and  
> I haven't built SVN in while.
>
> You should file a bug report on this - looks like some 64bit pointer  
> problem.
>
>
> On Mar 14, 2008, at 11:33 PM, John C. Tull wrote:
>
>> William,
>>
>> I was interested in trying out some new gdal features, and hoping  
>> to build a 64-bit framework. I managed to compile with the  
>> configure options below, apparently without any errors. I was  
>> stabbing in the dark to come up with the configure line, so it  
>> might be something simple there. After compiling successfully, my  
>> 'make install' failed with the output below. I wondered if you  
>> might have some insight as to what my be happening. If not, I can  
>> run this past the gdal-dev list.
>>
>> Thanks,
>> John
>>
>> ./configure CC='gcc -arch x86_64 -isysroot /Developer/SDKs/ 
>> MacOSX10.5.sdk' CXX='g++ -arch x86_64 -isysroot /Developer/SDKs/ 
>> MacOSX10.5.sdk' --with-system-zlib --build=x86_64-apple-darwin9.2.0  
>> --with-macosx-framework --disable-dependency-tracking
>>
>> sudo make install
>> (cd port; make)
>> /bin/sh /Users/jctull/sources/gdal/libtool --mode=compile --tag=CXX  
>> g++ -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk -g -O2  - 
>> Wall  -DOGR_ENABLED -I/Users/jctull/sources/gdal/port 	 - 
>> DHAVE_CURL  -c -o cpl_hash_set.o cpl_hash_set.cpp
>> libtool: compile:  g++ -arch x86_64 -isysroot /Developer/SDKs/ 
>> MacOSX10.5.sdk -g -O2 -Wall -DOGR_ENABLED -I/Users/jctull/sources/ 
>> gdal/port -DHAVE_CURL -c cpl_hash_set.cpp  -fno-common -DPIC - 
>> o .libs/cpl_hash_set.o
>> cpl_hash_set.cpp: In function 'unsigned int  
>> CPLHashSetHashPointer(const void*)':
>> cpl_hash_set.cpp:385: error: cast from 'const void*' to 'int' loses  
>> precision
>> make[1]: *** [cpl_hash_set.o] Error 1
>> make: *** [port-target] Error 2
>
> -----
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
>
> Theory of the Universe
>
> There is a theory which states that if ever anyone discovers exactly  
> what the universe is for and why it is here, it will instantly  
> disappear and be replaced by something even more bizarrely  
> inexplicable.  There is another theory which states that this has  
> already happened.
>
> -Hitchhiker's Guide to the Galaxy 2nd season intro
>
>



More information about the gdal-dev mailing list