I have been working on Gesture recognition project. I use XKin gesture recogntion library https://github.com/fpeder/XKin. To compile Xkin i had to install fftw (http://www.fftw.org/download.html) I build fftw successfully with
./configure
make
make install
But when i build Xkin i got this Error
/usr/bin/ld: /usr/local/lib/libfftw3.a(lt4-problem.o): relocation R_X86_64_32 against.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libfftw3.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make[2]: * [lib/posture/libposture.so] Error 1
make[1]: * [lib/posture/CMakeFiles/posture.dir/all] Error 2
make: *** [all] Error 2`
do this
./configure --enable-shared
sudo make CFLAGS=-fPIC
sudo make install
This will solve your problem.
Related
i have clean centos6 system, try to compile tor from sources.
1st way (installing libevent by yum). I do:
yum install libevent2
yum install libevent2-devel
...
(inside tor folder): ./configure
make
and get error:
src/common/libor-event.a(compat_libevent.o): In function `tor_gettimeofday_cache_clear':
/root/tor-0.3.1.7/src/common/compat_libevent.c:250: undefined reference to `event_base_update_cache_time'
collect2: ld returned 1 exit status
make[1]: *** [src/or/tor] Error 1
make[1]: Leaving directory `/root/tor-0.3.1.7'
make: *** [all] Error 2
2nd way (installing libevent from sources).
yum remove libevent2
yum remove libevent2-devel
..
(from libevent folder): ./configure
make
make install
..
(from tor folder): ./configure
and get error:
checking whether we need extra options to link libevent... configure: error: Found linkable libevent in (system), but it does not seem to run, even with -R. Maybe specify another using --with-libevent-dir}
So, what am i doing wrong?) what to do next?
It is possible that you missed to add the libevent library to library options
LDFLAGS+=-L[path of the libevent.so] -levent
What is the output of the make?
I just finished compiling and installing flex for my macbook pro and tried to compile a file using flex. I get the following error:
ld: library not found for -lfl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [myhtml2txt] Error 1
I believe -lfl is the linker for flex, so why am I getting this error, and how can I fix it?
you are missing to add libflex or it could be libfl. your main error ld: library not found for -lfltells that library is missing. l in -lfl denotes the library. by adding library you will not see this error
I am porting C-Motif code project from unix to ubuntu linux system.
I'm able to solve various problems but still there are some problems while doing make.
/usr/bin/ld: cannot find -lXmu
/usr/bin/ld: cannot find -lnls
/usr/bin/ld: cannot find -lsocket
/usr/bin/ld: cannot find -ll
collect2: error: ld returned 1 exit status
make: *** [../bin/ipsge] Error 1
For -lXmu install:
sudo apt-get install libxmu-headers
sudo apt-get install libxmu-dev
Try compiling without -lnls / -lsocket
and see if the problem is fixed.
I don't know libl.a What flavor of UNIX are you porting from?
I am trying to install openssl1.0.1e on a 64bit FC16 machine. I already have one older version (1.0.0j) installed in my machine. My application is having some memory corruption and trying to debug it through valgrind tool. Valgrind shows lots of "Uninitialized Variable" message for openssl functions which I want to suppress by installing latest openSSL with PURIFY macro enabled. I am installing it using following commands
./config -DPURIFY shared
make
make is stopping installation and throwing below errors:
/usr/bin/ld: libcrypto.a(e_4758cca.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
libcrypto.a(e_4758cca.o): could not read symbols: Bad value
collect2: ld returned 1 exit status
make[4]: *** [link_a.gnu] Error 1
make[4]: Leaving directory `/home/downloads/openssl-1.0.1e'
make[3]: *** [do_linux-shared] Error 2
make[3]: Leaving directory `/home/downloads/openssl-1.0.1e'
make[2]: *** [libcrypto.so.1.0.0] Error 2
make[2]: Leaving directory `/home/downloads/openssl-1.0.1e'
make[1]: *** [shared] Error 2
make[1]: Leaving directory `/home/downloads/openssl-1.0.1e/crypto'
make: *** [build_crypto] Error 1
What could be the reason for this error?
Thanks in advance!
I tried to install AVR development platform for mac from this site
http://www.ladyada.net/learn/avr/setup-mac.html
Option 3. Old style, 'by hand' compilation
But I have an Error, Here is the error
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [cc1] Error 1
make[1]: *** [all-gcc] Error 2
make: *** [all] Error 2
is anyone can help me?
Looks like you're not setting your compiler to the avr-gcc you've (presumably) built. Set: CC=arv-gcc in your shell, or pass it to a configure script with:
env CC=avr-gcc ./configure ...
Just try another AVR that works in the other mac, I had this problem and it's working for me now.