libftdi Archives

Subject: Re: libftdi1-1.2 make file problems

From: Uwe Bonnes <bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Wed, 6 May 2015 14:25:42 +0200
>>>>> "drodomon" == drodomon  <d.rodomonti@xxxxxx> writes:

    drodomon> Hello, I am working on a linux machine (Ubuntu 15) and I want
    drodomon> to install the ftdi library.  Following the instructions
    drodomon> reported on README file I get the following error:

    drodomon> Linking C shared module _ftdi1.so /usr/bin/ld:
    drodomon> /usr/local/lib/libpython3.4m.a(abstract.o): relocation
    drodomon> R_X86_64_32S against `_Py_NotImplementedStruct' can not be
    drodomon> used when making a shared object; recompile with -fPIC
    drodomon> /usr/local/lib/libpython3.4m.a: error adding symbols: Bad
    drodomon> value collect2: error: ld returned 1 exit status
    drodomon> python/CMakeFiles/_ftdi1.dir/build.make:96: recipe for target
    drodomon> 'python/_ftdi1.so' failed make[2]: *** [python/_ftdi1.so]
    drodomon> Error 1 CMakeFiles/Makefile2:319: recipe for target
    drodomon> 'python/CMakeFiles/_ftdi1.dir/all' failed make[1]: ***
    drodomon> [python/CMakeFiles/_ftdi1.dir/all] Error 2 Makefile:137:
    drodomon> recipe for target 'all' failed make: *** [all] Error 2


    drodomon> Could you help me?

Did you try on a clean tree?
- rm -rf build
- mkdir build
- cd build
- cmake ..
Eventually resolve missing items at this stage.
- make

This worked for me on OpenSuse 13.2, beside some Doxyfile problems.

Greetings from S-Dalinac!
-- 
Uwe Bonnes                bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread