How to use Fuzzylite on my workspace via CMakeLists?
I try to study and I found that It can add libraries for fuzzylite in CMakeLists.txt on my workspace.
I try to use executable and targetlinklibraries of Fuzzylite on "CMakeLists.txt" on my workspace. I still found an error after "catkin_make". Please see my code and error below.
My code:
add_executable(fuzzylite src/fuzzylite.cpp)
add_library(main src/main.cpp)
target_link_libraries(fuzzylite main)
error:
CMake Error at CMakeLists.txt:62 (add_executable): Cannot find source file:
src/fuzzylite.cpp
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx
CMake Error: CMake can not determine linker language for target: main CMake Error: Cannot determine link language for target "main". CMake Error: CMake can not determine linker language for target: fuzzylite CMake Error: Cannot determine link language for target "fuzzylite". -- Generating done -- Build files have been written to: /home/chucolate/chu_ws/build Makefile:822: recipe for target 'cmake_check_build_system' failed make: * [cmake_check_build_system] Error 1 Invoking "make cmake_check_build_system" failed
Do you have any suggestions about this? I just want to use Fuzzylite for obstacle avoidance on my robot workspace.
Thank you.
Asked by Chucolate on 2017-07-17 04:50:27 UTC
Answers
Hi,
thank you for your post.
Please, take a look at the example application in the fuzzylite repository:
https://github.com/fuzzylite/fuzzylite/tree/release/examples/application
It is better to post your questions regarding fuzzylite in the forums at fuzzylite.com/forums so I get notified and then be able to help you.
Cheers, Juan.
Asked by fuzzylite on 2017-09-13 23:48:24 UTC
Comments