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.