Quantcast

libftdi1-1.2 make file problems

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

libftdi1-1.2 make file problems

drodomon
Hello,

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

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


Could you help me?

Thank you in advance

--
Davide Rodomonti
LOEP (Linac and Operations/ Electric Power Systems)
Tel : +49-6159-71-1905
BR2 - 2.107


 

GSI Helmholtzzentrum für Schwerionenforschung GmbH
Planckstraße 1
64291 Darmstadt
www.gsi.de

Gesellschaft mit beschränkter Haftung
Sitz der Gesellschaft: Darmstadt
Handelsregister: Amtsgericht Darmstadt, HRB 1528

Geschäftsführung: Professor Dr. Dr. h.c. mult. Horst Stöcker,
Ursula Weyrich

Vorsitzender des Aufsichtsrates: St Dr. Georg Schütte
Stellvertreter: Ministerialdirigent Dr. Rolf Bernhardt

 


--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [hidden email]  

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: libftdi1-1.2 make file problems

v4hn
On Wed, May 06, 2015 at 02:14:30PM +0200, drodomon wrote:
> Hello,

Hey Davide,

> /usr/bin/ld: /usr/local/lib/libpython3.4m.a(abstract.o)

you seem to have a (broken) local installation of python 3.4 lingering around
in /usr/local. That's the source of your problem.


v4hn

attachment0 (836 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: libftdi1-1.2 make file problems

Uwe Bonnes
In reply to this post by drodomon
>>>>> "drodomon" == drodomon  <[hidden email]> 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                [hidden email]

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 [hidden email]  

Loading...