Page 1 of 1

Problem compiling 64 bit on Linux

Posted: 06 Oct 2010 17:33
by coogor
Hi,

I tried to build zyGrib on openSUSE. In all later distros the error is the same:

Code: Select all

objs/moc_MenuBar.o objs/moc_POI.o  objs/moc_POI_Editor.o objs/moc_PositionEditor.o objs/moc_Projection.o  objs/moc_MapDrawer.o objs/moc_Terrain.o objs/moc_Util.o    -L/usr/lib64  -Lbzip2 -lbz2 -Lzlib-1.2.3 -Lproj-4.6.0/src -lproj -lQtXml -L/usr/lib64  -pthread -pthread -lQtGui -L/usr/X11R6/lib64 -pthread -lpng -lfreetype  -lSM -lICE -pthread -pthread -lXrender -lXrandr -lXfixes -lXcursor  -lXinerama -lfontconfig -lXext -lX11 -lQtNetwork -pthread -pthread  -lQtCore -lz -lm -pthread -lgthread-2.0 -lrt -lglib-2.0 -ldl -lpthread
/usr/lib64/gcc/x86_64-suse-linux/4.4/../../../../x86_64-suse-linux/bin/ld:  skipping incompatible proj-4.6.0/src/libproj.a when searching for  -lproj
/usr/lib64/gcc/x86_64-suse-linux/4.4/../../../../x86_64-suse-linux/bin/ld: cannot find -lproj
collect2: ld returned 1 exit status
make[1]: *** [zyGrib] Error 1
Any idea what this could be? What is this lproj?

Thanks

Re: Problem compiling 64 bit on Linux

Posted: 06 Oct 2010 20:52
by jza
Hi
Ooops, I don't clean the source before to make the package.

Try to compile with

Code: Select all

make veryclean; make
Any idea what this could be? What is this lproj?
The projection library http://trac.osgeo.org/proj/
Perhaps a precompiled version for your distribution exists, I don't know.

To avoid this problem, It would be better to use "configure" tools...
I update the toto list... and perhaps... in the future...

Re: Problem compiling 64 bit on Linux

Posted: 20 Nov 2010 11:50
by coogor
The build for all openSUSE -Versions 11.* is fixed. Version 3.9.7 is available now