Re: [linux-minidisc] netmd support for qhimdtransfer gui application


Am 21.12.2013 17:57, schrieb John Paul Adrian Glaubitz:
On 12/21/2013 05:35 PM, Thomas Arp wrote:
O.K., here is my updated patch rebased against the current repo on github.
Patch #4 currently breaks the build on Unix. The proper include path
for libusb-1.0 is missing in the compiler command line. I haven't
figured however, why this is happenning:

g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT
-DVER="\"0.9.11-0-gf8ba927\"" -DBDATE="\"Sat 12/21/2013\"" -DQT_NO_DEBUG
-DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I../libhimd
-I../libnetmd -I/usr/include/taglib -I. -I. -o main.o main.cpp
In file included from ../libnetmd/libnetmd_extended.h:5:0,
                  from ./qmdtrack.h:16,
                  from ./qmddevice.h:7,
                  from qhimddetection.h:7,
                  from qhimdmainwindow.h:9,
                  from main.cpp:4:
../libnetmd/libnetmd.h:35:20: fatal error: libusb.h: No such file or
directory
  #include <libusb.h>
                     ^
compilation terminated.
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/home/glaubitz/tmp/linux-minidisc/qhimdtransfer'
make: *** [sub-qhimdtransfer-make_default] Error 2

I'm pretty sure it's related to your hack to fix qmake on Windows.

Adrian

O.K., try ta add "PKGCONFIG += libusb-1.0" to qhimdtransfer.pro file,

Thomas