|
|
Re: How to solve "undefined reference to 'wiringPiSetup'" [message #1837348 is a reply to message #1837322] |
Thu, 28 January 2021 07:12 |
zhao xiaolong Messages: 5 Registered: November 2020 |
Junior Member |
|
|
Dear sir, when I write
forte_add_handler(pcf8591 /usr/include/pcf8591)
it will add the current directory where cmakelists.txt is located, which is "forte/ext_modules/test/usr/include". Then it can't find pcf8591. Do you know how to solve this problem? Thank you very much!
My cmakelists.txt:
forte_add_module(RECEIVE_VOLTAGE "Example test module")
forte_add_handler(pcf8591 /usr/include/pcf8591)
forte_add_handler(wiringPi /usr/include/wiringPi)
forte_add_sourcefile_hcpp(voltage_receive)
The fault of cmake-gui:
CMake Error at src/CMakeLists.txt:261 (add_library):
Cannot find source file:
/home/zxl/FORTEdev/ext_modules/Receive_Voltage/usr/include/pcf8591.h
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at src/CMakeLists.txt:261 (add_library):
No SOURCES given to target: FORTE_LITE
[Updated on: Thu, 28 January 2021 08:03] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03083 seconds