Have you also set CMAKE_C_FLAGS to -fPIC?


On Fri, Aug 6, 2010 at 7:36 AM, Liam Kurmos <quantum.leaf@googlemail.com> wrote:
compiling vxl on ubuntu 10.04 64bit i get:

[ 82%] Building CXX object
Linking CXX shared module ../../../../lib/bbgm_batch.so
/usr/bin/ld: ../../../../lib/libv3p_netlib.a(dlamch.o): relocation
R_X86_64_32 against `.rodata' can not be used when making a shared
object; recompile with -fPIC
../../../../lib/libv3p_netlib.a: could not read symbols: Bad value
collect2: ld returned 1 exit status

I had tried setting CMAKE_CXX_FLAGS to -fPIC but this didn't help.

Notably when i configured, cmake produced the message 'NOT LINUX'
but still allowed me to generate the Makefile so i ignored it.

Do anyone know how i can proceed?


This SF.net email is sponsored by

Make an app they can't live without
Enter the BlackBerry Developer Challenge
Vxl-users mailing list