<< return to Pixycam.com

Problem about Building the libpixyusb example on Linux

Hello, everyone

I have met some problems when I typed “make” in the terminal window to build libpixyusb.

The results are as follows:

frank@frank-Lenovo-IdeaPad-Y480:~$ make
Scanning dependencies of target pixyusb
[ 14%] Building CXX object cmake/libpixyusb/CMakeFiles/pixyusb.dir///src/chirpreceiver.cpp.o
[ 28%] Building CXX object cmake/libpixyusb/CMakeFiles/pixyusb.dir///src/pixyinterpreter.cpp.o
[ 42%] Building CXX object cmake/libpixyusb/CMakeFiles/pixyusb.dir///src/pixy.cpp.o
[ 57%] Building CXX object cmake/libpixyusb/CMakeFiles/pixyusb.dir///src/usblink.cpp.o
[ 71%] Building CXX object cmake/libpixyusb/CMakeFiles/pixyusb.dir///src/utils/timer.cpp.o
[ 85%] Building CXX object cmake/libpixyusb/CMakeFiles/pixyusb.dir///pixy/common/chirp.cpp.o
/home/frank/pixy/common/chirp.cpp: In member function ‘int Chirp::setLink(Link*)’:
/home/frank/pixy/common/chirp.cpp:92:83: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
m_buf = (uint8_t )m_link->getFlags(LINK_FLAG_INDEX_SHARED_MEMORY_LOCATION);
^
/home/frank/pixy/common/chirp.cpp: In member function ‘int Chirp::call(uint8_t, ChirpProc, __va_list_tag
)’:
/home/frank/pixy/common/chirp.cpp:416:29: error: no matching function for call to ‘Chirp::vassemble(__va_list_tag**)’
if ((res=vassemble(&args))<0)
^
/home/frank/pixy/common/chirp.cpp:416:29: note: candidate is:
/home/frank/pixy/common/chirp.cpp:134:5: note: int Chirp::vassemble(__va_list_tag ()[1])
int Chirp::vassemble(va_list args)
^
/home/frank/pixy/common/chirp.cpp:134:5: note: no known conversion for argument 1 from ‘__va_list_tag
*’ to ‘__va_list_tag (
)[1]’
/home/frank/pixy/common/chirp.cpp:477:47: error: no matching function for call to ‘Chirp::loadArgs(va_list_tag**, void* [11])’
else if ((res=loadArgs(&args, recvArgs))<0)
^
/home/frank/pixy/common/chirp.cpp:477:47: note: candidate is:
/home/frank/pixy/common/chirp.cpp:358:5: note: static int Chirp::loadArgs(va_list_tag ()[1], void**)
int Chirp::loadArgs(va_list args, void recvArgs[])
^
/home/frank/pixy/common/chirp.cpp:358:5: note: no known conversion for argument 1 from ‘__va_list_tag
’ to ‘__va_list_tag (
)[1]’
make[2]: *** [cmake/libpixyusb/CMakeFiles/pixyusb.dir/
/
/pixy/common/chirp.cpp.o] Error 1
make[1]: *** [cmake/libpixyusb/CMakeFiles/pixyusb.dir/all] Error 2
make: *** [all] Error 2

This has bothered me for a couple of days, could someone give me some help? Thank you very much.

Frank,

What platform are you trying to build this on?

What is your:

Operating System
Machine Architecture
Compiler and Compiler Version

Thanks,
John

The platform is pixymon-1.0.2beta
The operating system is Ubuntu 14.04
I don’t quite understand what the Machine Architecture means, I think it is Lenovo IdeaPad Y480, and I install double system: win7 and ubuntu
The compiler is just the Terminal window

Frank,

I’ve patched the source which should resolve this issue. Please either do a ‘git pull’ or re-clone the pixy repository and re-run the ‘Building the libpixyusb example on Linux’ procedure starting at step 2.2.1.

Thanks,
John

John,

I’m glad to tell you it works, you really do me a big favour, thank you very much!

Frank