osgEarth Build Errors

classic Classic list List threaded Threaded
3 messages Options
vijaykiran vijaykiran
Reply | Threaded
Open this post in threaded view
|

osgEarth Build Errors

Hello,
I am trying to build osgEarth and ran into compile issues. It looked like the build died during the linking process. Here is the output from my console upon running ccmake, followed by make:

...
...
...
Linking CXX shared module ../../../lib/osgdb_osgearth_tms.so
[ 92%] Built target osgdb_osgearth_tms
[ 94%] Building CXX object src/osgPlugins/zipfs/CMakeFiles/osgdb_zipfs.dir/ReaderWriterZipFS.o
Linking CXX shared module ../../../lib/osgdb_zipfs.so
[ 94%] Built target osgdb_zipfs
[ 97%] Building CXX object src/applications/osgearth_seed/CMakeFiles/application_osgearth_seed.dir/osgearth_seed.o
Linking CXX executable ../../../bin/osgearth_seed
../../../lib/libosgEarth.so.0.1.0: undefined reference to `curl_easy_perform'
../../../lib/libosgEarth.so.0.1.0: undefined reference to `curl_easy_getinfo'
../../../lib/libosgEarth.so.0.1.0: undefined reference to `curl_easy_init'
../../../lib/libosgEarth.so.0.1.0: undefined reference to `curl_easy_cleanup'
../../../lib/libosgEarth.so.0.1.0: undefined reference to `curl_easy_setopt'
collect2: ld returned 1 exit status
make[2]: *** [bin/osgearth_seed] Error 1
make[1]: *** [src/applications/osgearth_seed/CMakeFiles/application_osgearth_seed.dir/all] Error 2
make: *** [all] Error 2


During the ccmake step, I got a whole bunch of warnings during makefile generation (e.g., WARNING: Target "osgEarth" requests linking to directory "/home/vijay/Software/curl-1.7.19.4/lib". Targets may link only to libraries. CMake is dropping the item). I have attached three screenshots during the build process.

I already installed curl and libzip and I included their 'bin' and 'lib' directories in $PATH and $LD_LIBRARY_PATH variables respectively. My build platform is Fedora 9 Linux.

Any ideas where might I be doing wrong?


Thanks,
Vijay.



gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: osgEarth Build Errors

You need to point cmake are the actual library file, not the folder containing the library.
Glenn Waldron / Pelican Mapping
vijaykiran vijaykiran
Reply | Threaded
Open this post in threaded view
|

Re: osgEarth Build Errors

Duh! I should have thought of that. Thanks very much. It works now!

- Vijay.