From: Phil C. <pb...@in...> - 2004-04-13 03:17:51
|
I'm having a problem installing hpoj 0.91 on Linux. I have installed libusb 0.1.8. When running ./configure for hpoj, it finds libusb correctly. Then while running make install for hpoj, I get the errors listed at the end of this message. Does anybody have any insight into how to fix this? Thanks, Phil make[1]: Entering directory `/home/phil/hpoj-0.91/mlcd' g++ -I/home/phil/hpoj-0.91/mlcd -I/home/phil/hpoj-0.91/mlcd/transport -O -g -Wall -DEX_TRANSPORT_UNIX_PORT -DPAR_PLATFORM_LINUX -DUSB_PLATFORM_LIBUSB -DJD_DEBUGLITE -DHAVE_LIBUSB -DVAR_RUN_PREFIX="\"/var/run\"" -c -o ExMgr.o ExMgr.cpp g++ -I/home/phil/hpoj-0.91/mlcd -I/home/phil/hpoj-0.91/mlcd/transport -O -g -Wall -DEX_TRANSPORT_UNIX_PORT -DPAR_PLATFORM_LINUX -DUSB_PLATFORM_LIBUSB -DJD_DEBUGLITE -DHAVE_LIBUSB -DVAR_RUN_PREFIX="\"/var/run\"" -c -o ParPort.o ParPort.cpp g++ -I/home/phil/hpoj-0.91/mlcd -I/home/phil/hpoj-0.91/mlcd/transport -O -g -Wall -DEX_TRANSPORT_UNIX_PORT -DPAR_PLATFORM_LINUX -DUSB_PLATFORM_LIBUSB -DJD_DEBUGLITE -DHAVE_LIBUSB -DVAR_RUN_PREFIX="\"/var/run\"" -c -o transport/ExTransport.o transport/ExTransport.cpp g++ -I/home/phil/hpoj-0.91/mlcd -I/home/phil/hpoj-0.91/mlcd/transport -O -g -Wall -DEX_TRANSPORT_UNIX_PORT -DPAR_PLATFORM_LINUX -DUSB_PLATFORM_LIBUSB -DJD_DEBUGLITE -DHAVE_LIBUSB -DVAR_RUN_PREFIX="\"/var/run\"" -c -o transport/ExMlcTransport.o transport/ExMlcTransport.cpp g++ -I/home/phil/hpoj-0.91/mlcd -I/home/phil/hpoj-0.91/mlcd/transport -O -g -Wall -DEX_TRANSPORT_UNIX_PORT -DPAR_PLATFORM_LINUX -DUSB_PLATFORM_LIBUSB -DJD_DEBUGLITE -DHAVE_LIBUSB -DVAR_RUN_PREFIX="\"/var/run\"" -c -o transport/ExMlcCommandChannel.o transport/ExMlcCommandChannel.cpp g++ -lusb -o ptal-mlcd ExMgr.o ParPort.o transport/ExTransport.o transport/ExMlcTransport.o transport/ExMlcCommandChannel.o ExMgr.o: In function `UsbMgr::llioInit(void)': /home/phil/hpoj-0.91/mlcd/ExMgr.cpp:3945: undefined reference to `usb_init' ExMgr.o: In function `UsbMgr::llioGlob(void)': /home/phil/hpoj-0.91/mlcd/ExMgr.cpp:3959: undefined reference to `usb_find_busses' /home/phil/hpoj-0.91/mlcd/ExMgr.cpp:3960: undefined reference to `usb_find_devices' /home/phil/hpoj-0.91/mlcd/ExMgr.cpp:3964: undefined reference to `usb_busses' ExMgr.o: In function `UsbMgr::libusbFindDevice(char *, unsigned int, char *, unsigned int, int, int)': /home/phil/hpoj-0.91/mlcd/ExMgr.cpp:4031: undefined reference to `usb_busses' ExMgr.o: In function `UsbMgr::llioGetDeviceID(int *)': /home/phil/hpoj-0.91/mlcd/ExMgr.cpp:3749: undefined reference to `usb_open' /home/phil/hpoj-0.91/mlcd/ExMgr.cpp:3753: undefined reference to `usb_claim_interface' /home/phil/hpoj-0.91/mlcd/ExMgr.cpp:3743: undefined reference to `usb_close' /home/phil/hpoj-0.91/mlcd/ExMgr.cpp:4289: undefined reference to `usb_control_msg' /home/phil/hpoj-0.91/mlcd/ExMgr.cpp:4301: undefined reference to `usb_control_msg' /home/phil/hpoj-0.91/mlcd/ExMgr.cpp:3743: undefined reference to `usb_close' ExMgr.o: In function `UsbMgr::llioSetProtocol(ExMgr::ExInterface)': /home/phil/hpoj-0.91/mlcd/ExMgr.cpp:3749: undefined reference to `usb_open' /home/phil/hpoj-0.91/mlcd/ExMgr.cpp:3753: undefined reference to `usb_claim_interface' /home/phil/hpoj-0.91/mlcd/ExMgr.cpp:3743: undefined reference to `usb_close' /home/phil/hpoj-0.91/mlcd/ExMgr.cpp:4551: undefined reference to `usb_set_altinterface' ExMgr.o: In function `UsbMgr::llioSetChannel(ExMgr::ExInterface, int)': /home/phil/hpoj-0.91/mlcd/ExMgr.cpp:4596: undefined reference to `usb_control_msg' ExMgr.o: In function `ParPort::readEcp(unsigned char *, int)': /home/phil/hpoj-0.91/mlcd/ParPort.h(.UsbMgr::gnu.linkonce.t.libusbHandleClos e(usb_dev_handle **)+0x15): undefined reference to `usb_close' /home/phil/hpoj-0.91/mlcd/ParPort.h(.UsbMgr::gnu.linkonce.t.libusbHandleOpen (int, int *)+0x19): undefined reference to `usb_open' /home/phil/hpoj-0.91/mlcd/ParPort.h(.UsbMgr::gnu.linkonce.t.libusbHandleOpen (int, int *)+0x4e): undefined reference to `usb_claim_interface' ExMgr.o: In function `logCommon(char *, int, LogType, int, char *,...)': /home/phil/hpoj-0.91/mlcd/ExMgr.cpp:70: undefined reference to `usb_close' ExMgr.o: In function `ParPort::readEcp(unsigned char *, int)': /home/phil/hpoj-0.91/mlcd/ParPort.h(.UsbMgr::gnu.linkonce.t.llioReset(void)+ 0x1d): undefined reference to `usb_close' /home/phil/hpoj-0.91/mlcd/ParPort.h(.UsbMgr::gnu.linkonce.t.llioReset(void)+ 0x41): undefined reference to `usb_close' /home/phil/hpoj-0.91/mlcd/ParPort.h(.UsbMgr::gnu.linkonce.t._llioRead(ExMgr: :ExInterface, unsigned char *, int, int)+0x2a): undefined reference to `usb_bulk_read' /home/phil/hpoj-0.91/mlcd/ParPort.h(.UsbMgr::gnu.linkonce.t._llioWrite(ExMgr ::ExInterface, unsigned char const *, int, int)+0x32): undefined reference to `usb_bulk_write' ExMgr.o: In function `logCommon(char *, int, LogType, int, char *,...)': /home/phil/hpoj-0.91/mlcd/ExMgr.cpp:72: undefined reference to `usb_bulk_write' collect2: ld returned 1 exit status make[1]: *** [ptal-mlcd] Error 1 make[1]: Leaving directory `/home/phil/hpoj-0.91/mlcd' make: *** [just_compile] Error 2 |