Wr0ngName / linux-g13-driver

Automatically exported from code.google.com/p/linux-g13-driver
0 stars 0 forks source link

Compilation doesn't work #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Archlinux 64 bit.

What steps will reproduce the problem?

[ale@poseidon Linux-G13_1.0-r44]$ make
g++  -c c-source/G13.cpp -o c-source/G13.o
g++  -c c-source/G13Action.cpp -o c-source/G13Action.o
g++  -c c-source/Macro.cpp -o c-source/Macro.o
g++  -c c-source/MacroAction.cpp -o c-source/MacroAction.o
g++  -c c-source/Main.cpp -o c-source/Main.o
g++  -c c-source/Output.cpp -o c-source/Output.o
g++  -c c-source/PassThroughAction.cpp -o c-source/PassThroughAction.o
g++ c-source/G13.o c-source/G13Action.o c-source/Macro.o c-source/MacroAction.o 
c-source/Main.o c-source/Output.o c-source/PassThroughAction.o -o 
Linux-G13-Driver  -lusb-1.0
/usr/bin/ld: c-source/Main.o: undefined reference to symbol 
'pthread_kill@@GLIBC_2.2.5'
/usr/bin/ld: note: 'pthread_kill@@GLIBC_2.2.5' is defined in DSO 
/usr/lib/libpthread.so.0 so try adding it to the linker command line
/usr/lib/libpthread.so.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make: *** [Linux-G13-Driver] Errore 1
[ale@poseidon Linux-G13_1.0-r44]$ 

Original issue reported on code.google.com by av250...@gmail.com on 27 Jan 2013 at 2:51

GoogleCodeExporter commented 8 years ago
Same exact error with ubuntu 13.04 amd64

Original comment by computer...@gmail.com on 16 Feb 2013 at 4:39

GoogleCodeExporter commented 8 years ago
make
g++ c-source/G13.o c-source/G13Action.o c-source/Macro.o c-source/MacroAction.o 
c-source/Main.o c-source/Output.o c-source/PassThroughAction.o -o 
Linux-G13-Driver  -lusb-1.0
/usr/bin/ld: c-source/MacroAction.o: undefined reference to symbol 
'pthread_create@@GLIBC_2.1'
/usr/bin/ld: note: 'pthread_create@@GLIBC_2.1' is defined in DSO 
/lib/i386-linux-gnu/libpthread.so.0 so try adding it to the linker command line
/lib/i386-linux-gnu/libpthread.so.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make: *** [Linux-G13-Driver] Error 1
----
Ubuntu 13.04 32bit Linux dunix 3.8.0-19-generic #29-Ubuntu SMP 

Original comment by rootgame...@gmail.com on 28 Apr 2013 at 9:54

GoogleCodeExporter commented 8 years ago
Same problem with OpenSuSe 12.3 64bits. Solved by adding -lpthread to LIBS in 
makefile. 

Original comment by laurent.menten@gmail.com on 15 May 2013 at 10:28

GoogleCodeExporter commented 8 years ago
"LIBS     = -lusb-1.0 -lpthread"

Thank you Laurent, this solves the issue for me. 

Original comment by rootgame...@gmail.com on 15 May 2013 at 8:55

GoogleCodeExporter commented 8 years ago
Thank a lot laurent, it work :D

Original comment by milan.cr...@gmail.com on 25 May 2013 at 7:10

GoogleCodeExporter commented 8 years ago
I had the same problem and had to add the pthread file location explicitly in 
the linker ie. LDFLAGS = -L/lib/i386-linux-gnu/libpthread.so.0 , and it 
compiled.

Original comment by josiahch...@gmail.com on 16 Jul 2013 at 11:00

GoogleCodeExporter commented 8 years ago
Adding the -lpthread to LIBS worked for me as well (Ubuntu 13.10 64bit)

Original comment by jeffreyr...@gmail.com on 7 Dec 2013 at 2:14

GoogleCodeExporter commented 8 years ago
Adding the -lpthread to LIBS not worked for me

/usr/bin/ld: io/rtlsdrtuner.o: невизначене посилання на 
символ «pthread_create@@GLIBC_2.2.5»
/usr/lib/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

Original comment by silent...@gmail.com on 26 Apr 2014 at 8:13

GoogleCodeExporter commented 8 years ago
Works in Kubuntu 14.04 64-bit.  Fresh install.

@ silent...@gmail.com, the exact line in Makefile you change is

LIBS     = -lusb-1.0
to
LIBS     = -lusb-1.0 -lpthread

That might be throwing you off.  (I initially just added another line for LIBS. 
 That didn't work.)

I have done no other testing beyond just getting the driver installed.

Thanks again to Laurent!

Original comment by saxp...@gmail.com on 4 May 2014 at 3:00

GoogleCodeExporter commented 8 years ago
ok with LIBS     = -lusb-1.0 -lpthread

linux mint 17.1 64 

Thank you!!

Original comment by sgmo...@gmail.com on 24 Dec 2014 at 8:43