<< return to Pixycam.com

Error running build_libpixyusb.sh

I’m trying to follow the instructions on hooking up the Pixy to a BBB found here: http://www.cmucam.org/projects/cmucam5/wiki/Hooking_up_Pixy_to_a_Beaglebone_Black and when I get to step 2.4.1 running ./build_libpixyusb.sh I get a “fatal error: QtGlobal: no such file or directory”. Any idea on a fix?

Here’s the entire output:

debian@beaglebone:~/pixy/scripts$ sudo ./build_libpixyusb.sh
– The CXX compiler identification is GNU 4.6.3
– Check for working CXX compiler: /usr/bin/c++
– Check for working CXX compiler: /usr/bin/c++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Found libusb-1.0:
– - Includes: /usr/include/libusb-1.0
– - Libraries: /usr/lib/arm-linux-gnueabihf/libusb-1.0.so
– Boost version: 1.49.0
– Found the following Boost libraries:
– thread
– system
– chrono
– Configuring done
– Generating done
– Build files have been written to: /home/debian/pixy/build/libpixyusb
Scanning dependencies of target pixyusb
[ 16%] Building CXX object CMakeFiles/pixyusb.dir/src/chirpreceiver.cpp.o
[ 33%] Building CXX object CMakeFiles/pixyusb.dir/src/pixyinterpreter.cpp.o
In file included from /home/debian/pixy/src/host/libpixyusb/src/pixyinterpreter.hpp:22:0,
from /home/debian/pixy/src/host/libpixyusb/src/pixyinterpreter.cpp:18:
/home/debian/pixy/src/host/libpixyusb/…/…/common/pixytypes.h:272:20: fatal error: QtGlobal: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/pixyusb.dir/src/pixyinterpreter.cpp.o] Error 1
make[1]: *** [CMakeFiles/pixyusb.dir/all] Error 2
make: *** [all] Error 2
debian@beaglebone:~/pixy/scripts$

Ok… Finally got it working after many, many attempts. Here’s what I did:

  1. Installed QT stuff:

sudo apt-get install qt4-dev-tools
sudo apt-get install qt4-qmake

  1. Edited the “include_directories” in pixy/src/host/libpixyusb/CMakeLists.txt to add:

/usr/include/qt4
/usr/include/qt4/QtCore
…/…/host/pixymon (needed this for a debug.h error I was getting)

  1. Then I started getting an “error: log was not defined in this scope” from pixy/src/host/libpixyusb/src/usblink.cpp (probably because that may not be the right debug.h file?) So I opened up usblink.cpp and commented out all the lines that had log in them.
  2. Finally everything compiled. I was able to build libpixyusb, install libpixyusb, build hello_pixy, and run hello_pixy

I don’t get any blocks returned (probably cause I need to redefine the signature?)but atleast things are semi-working now. Hope this helps someone in the future…