[GRASS-user] Problems with CVS compile part 2!

Glynn Clements glynn at gclements.plus.com
Tue Aug 1 16:54:20 EDT 2006


Darrel Maddy wrote:

> Apologies but I now have a new problem (I am trying to compile the latest CVS on 64bit version of Ubuntu 6.06)
> 
> The ./configure throws up erros in 
> 
> /home/ndm12/grass64cvs/grass61.cvs/lib/ogsf
> /home/ndm12/grass64cvs/grass61.cvs/visualization/nviz
> 
> When I try the make file in ogsf I get the following:
> 
> ..relocation R_X86_64_32 against `first_avcodec' can not be used when making a shared object; recompile with -fPIC
> /usr/lib/libavcodec.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make: *** [/home/ndm12/grass64cvs/grass61.cvs/dist.x86_64-unknown-linux-gnu/lib/libgrass_ogsf.6.1.cvs.so] Error 1

I can think of several possible solutions to this:

1. Use "./configure ... --without-ffmpeg ..."
2. Remove $(FFMPEGLIB) from lib/ogsf/Makefile and add it to
visualization/nviz/src/Makefile instead.
3. Build libavcodec as a shared library.
4. Build libavcodec as a static library but compiled with the -fPIC switch.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-user mailing list