Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#507 Installation bugs for 0.9.3 on Linux Mint

open
nobody
None
5
2013-01-12
2013-01-12
Anonymous
No

On a new installation of Linux Mint 14 KDE, I found two issues:

1) FindNetCDF.cmake fails to find libnetcdf. It seems it did not manage to parse the netcdf.pc (in /usr/lib/pkgconfig/)
Here was its content:
baron@fbaron-home /usr/lib/pkgconfig $ more netcdf.pc
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
ccompiler=gcc
cppcompiler=g++
fcompiler=gfortran
fflags=-g -O2 -I${includedir}
flibs=-lnetcdff -lnetcdf

Name: netcdf
Description: NetCDF Client Library
Version: 4.1.3
Libs: -L${libdir} -lnetcdf
Cflags: -I${includedir}

I solved the issue by removing part of the FindNetCDF.cmake that determines the lib location based on the pkgconfig info, and the rest of the script worked.

2) Still using cmake, I got the following linking error. The issue was that it was trying to link with the python3.2 libraries, while it included the python2.7 include files. Not sure how to modify the script to handle this (I edited the CMakeCache.txt to have this work).

Linking CXX executable gdl
CMakeFiles/gdl.dir/datatypes.cpp.o: In function `_import_array':
datatypes.cpp:(.text+0x8740): undefined reference to `PyCObject_Type'
datatypes.cpp:(.text+0x87ac): undefined reference to `PyCObject_AsVoidPtr'
CMakeFiles/gdl.dir/datatypes.cpp.o: In function `FromPython(_object*)':
datatypes.cpp:(.text+0x8c1b9): undefined reference to `PyString_AsString'
datatypes.cpp:(.text+0x8c4a4): undefined reference to `PyInt_AsLong'
collect2: error: ld returned 1 exit status
make[2]: *** [src/gdl] Error 1
make[1]: *** [src/CMakeFiles/gdl.dir/all] Error 2
make: *** [all] Error 2

Discussion