Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eckucukoglu/f5b519c9144e8913a5e863da05ab5fc9 to your computer and use it in GitHub Desktop.
Save eckucukoglu/f5b519c9144e8913a5e863da05ab5fc9 to your computer and use it in GitHub Desktop.
KeywordManager compile error
eckucukoglu@neptune:~/.../KeywordManager$ source /usr/local/oecore-x86_64/environment-setup-armv7a-vfp-neon-oe-linux-gnueabi
eckucukoglu@neptune:~/.../KeywordManager$ make clean
rm -f jsoncpp.o main.o KeywordManager.o KeywordManager
eckucukoglu@neptune:~/.../KeywordManager$ make
arm-oe-linux-gnueabi-g++ -march=armv7-a -mfloat-abi=softfp -mfpu=neon --sysroot=/usr/local/oecore-x86_64/sysroots/armv7a-vfp-neon-oe-linux-gnueabi -O2 -g -Wall -fmessage-length=0 -std=c++11 -pthread -DDEVICE -I../ExternalLibs/include -c jsoncpp.cpp -o jsoncpp.o
arm-oe-linux-gnueabi-g++ -march=armv7-a -mfloat-abi=softfp -mfpu=neon --sysroot=/usr/local/oecore-x86_64/sysroots/armv7a-vfp-neon-oe-linux-gnueabi -O2 -g -Wall -fmessage-length=0 -std=c++11 -pthread -DDEVICE -I../ExternalLibs/include -c main.cpp -o main.o
arm-oe-linux-gnueabi-g++ -march=armv7-a -mfloat-abi=softfp -mfpu=neon --sysroot=/usr/local/oecore-x86_64/sysroots/armv7a-vfp-neon-oe-linux-gnueabi -O2 -g -Wall -fmessage-length=0 -std=c++11 -pthread -DDEVICE -I../ExternalLibs/include -c KeywordManager.cpp -o KeywordManager.o
KeywordManager.cpp: In member function 'bool KeywordManager::enable(int)':
KeywordManager.cpp:118:105: error: invalid conversion from 'void (*)(void*, char*)' to 'qci_keyword_cb {aka void (*)(void*, char*, unsigned int, unsigned int, unsigned int, unsigned int)}' [-fpermissive]
int setcbResult = qci_keyword_setcb(KeywordManager::keywordTriggered, (void *)"QUANTA_USER_DATA_STRING");
^
In file included from KeywordManager.cpp:17:0:
../ExternalLibs/include/qci_lib.h:167:5: note: initializing argument 1 of 'int qci_keyword_setcb(qci_keyword_cb, void*)'
int qci_keyword_setcb(qci_keyword_cb cb, void* user_data);
^
Makefile:17: recipe for target 'KeywordManager.o' failed
make: *** [KeywordManager.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment