← Back to team overview

igotu2gpx team mailing list archive

[Bug 372790] [NEW] Can't compile on linux: undefined reference LibusbConnection

 

Public bug reported:

When compiling I get the following output:
stefan@pc01 ~/igotu2gpx-0.2.1 $ make
cd src/igotu/ && make -f Makefile 
make[1]: Entering directory `/home/stefan/igotu2gpx-0.2.1/src/igotu'
echo !_TAG_FILE_FORMAT 2 dummy > /home/stefan/igotu2gpx-0.2.1/tags; echo !_TAG_FILE_SORTED 1 dummy >> /home/stefan/igotu2gpx-0.2.1/tags; sed -i 's/ /\t/g' /home/stefan/igotu2gpx-0.2.1/tags; cd /home/stefan/igotu2gpx-0.2.1 && ctags -R --c++-kinds=+p-n --fields=+iaS --extra=+fq --exclude=.build -f - src | sed 's/igotu:://g;s/\tnamespace:igotu//g' | LC_ALL=C sort >> tags || cd .
compiling pch.h
compiling commands.cpp
compiling dataconnection.cpp
compiling igotucommand.cpp
compiling igotupoints.cpp
compiling optionutils.cpp
compiling verbose.cpp
compiling xmlutils.cpp
compiling libusbconnection.cpp
rm -f libigotu.so.1.0.0 libigotu.so libigotu.so.1 libigotu.so.1.0
linking ../../bin/debug/libigotu.so.1.0.0
ln -s libigotu.so.1.0.0 libigotu.so
ln -s libigotu.so.1.0.0 libigotu.so.1
ln -s libigotu.so.1.0.0 libigotu.so.1.0
rm -f ../../bin/debug/libigotu.so.1.0.0
rm -f ../../bin/debug/libigotu.so
rm -f ../../bin/debug/libigotu.so.1
rm -f ../../bin/debug/libigotu.so.1.0
mv -f libigotu.so.1.0.0 libigotu.so libigotu.so.1 libigotu.so.1.0 ../../bin/debug/
make[1]: Leaving directory `/home/stefan/igotu2gpx-0.2.1/src/igotu'
cd src/igotu2gpx/ && make -f Makefile 
make[1]: Entering directory `/home/stefan/igotu2gpx-0.2.1/src/igotu2gpx'
compiling igotu2gpx.cpp
linking ../../bin/debug/igotu2gpx
.build/debug/igotu2gpx.o: In function `makeConnection(bool, bool)':
/home/stefan/igotu2gpx-0.2.1/src/igotu2gpx/igotu2gpx.cpp:77: undefined reference to `igotu::LibusbConnection::LibusbConnection(unsigned int, unsigned int)'

I already checked that libusbconnection.h is included.

** Affects: igotu2gpx
     Importance: Undecided
         Status: New

-- 
Can't compile on linux: undefined reference LibusbConnection
https://bugs.launchpad.net/bugs/372790
You received this bug notification because you are a member of
MobileAction i-gotU USB GPS travel logger Mac/Linux support developers,
which is subscribed to igotu2gpx.

Status in MobileAction i-gotU USB GPS travel logger Mac/Linux support: New

Bug description:
When compiling I get the following output:
stefan@pc01 ~/igotu2gpx-0.2.1 $ make
cd src/igotu/ && make -f Makefile 
make[1]: Entering directory `/home/stefan/igotu2gpx-0.2.1/src/igotu'
echo !_TAG_FILE_FORMAT 2 dummy > /home/stefan/igotu2gpx-0.2.1/tags; echo !_TAG_FILE_SORTED 1 dummy >> /home/stefan/igotu2gpx-0.2.1/tags; sed -i 's/ /\t/g' /home/stefan/igotu2gpx-0.2.1/tags; cd /home/stefan/igotu2gpx-0.2.1 && ctags -R --c++-kinds=+p-n --fields=+iaS --extra=+fq --exclude=.build -f - src | sed 's/igotu:://g;s/\tnamespace:igotu//g' | LC_ALL=C sort >> tags || cd .
compiling pch.h
compiling commands.cpp
compiling dataconnection.cpp
compiling igotucommand.cpp
compiling igotupoints.cpp
compiling optionutils.cpp
compiling verbose.cpp
compiling xmlutils.cpp
compiling libusbconnection.cpp
rm -f libigotu.so.1.0.0 libigotu.so libigotu.so.1 libigotu.so.1.0
linking ../../bin/debug/libigotu.so.1.0.0
ln -s libigotu.so.1.0.0 libigotu.so
ln -s libigotu.so.1.0.0 libigotu.so.1
ln -s libigotu.so.1.0.0 libigotu.so.1.0
rm -f ../../bin/debug/libigotu.so.1.0.0
rm -f ../../bin/debug/libigotu.so
rm -f ../../bin/debug/libigotu.so.1
rm -f ../../bin/debug/libigotu.so.1.0
mv -f libigotu.so.1.0.0 libigotu.so libigotu.so.1 libigotu.so.1.0 ../../bin/debug/
make[1]: Leaving directory `/home/stefan/igotu2gpx-0.2.1/src/igotu'
cd src/igotu2gpx/ && make -f Makefile 
make[1]: Entering directory `/home/stefan/igotu2gpx-0.2.1/src/igotu2gpx'
compiling igotu2gpx.cpp
linking ../../bin/debug/igotu2gpx
.build/debug/igotu2gpx.o: In function `makeConnection(bool, bool)':
/home/stefan/igotu2gpx-0.2.1/src/igotu2gpx/igotu2gpx.cpp:77: undefined reference to `igotu::LibusbConnection::LibusbConnection(unsigned int, unsigned int)'

I already checked that libusbconnection.h is included.



Follow ups

References