[GRASS-dev] ogsf fails to build

Joel Pitt joel.pitt at gmail.com
Sat Oct 21 19:07:12 EDT 2006


On 10/22/06, Glynn Clements <glynn at gclements.plus.com> wrote:
> Joel Pitt wrote:
> > Trying to compile latest CVS update I get the following error when
> > trying to compile the ogsf library:
> >
> > /usr/bin/ld: /usr/lib/libavcodec.a(utils.o): 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/joel/src/grass6/dist.x86_64-unknown-linux-gnu/lib/libgrass_ogsf.6.3.cvs.so]
> > Error 1
<snip>
> There are a number of possible solutions:
>
> 1. Don't use --with-ffmpeg.
>
> 2. Recompile ffmpeg with -fPIC.
>
> 3. Remove $(FFMPEGLIB) from the definition of EXTRA_LIBS in
> lib/ogsf/Makefile, and add it to the definition of OGSFLIB in
> include/Make/Grass.make[.in] instead.
>
> 4. Remove $(FFMPEGLIB) from the definition of EXTRA_LIBS in
> lib/ogsf/Makefile, and add it to the definition of SURFLIB in
> visualization/nviz/src/Makefile instead.

Tried solution 4 and everything went smoothly.

Thanks Glynn!

-- 
-Joel

"Wish not to seem, but to be, the best."
                -- Aeschylus




More information about the grass-dev mailing list