Ask Your Question
0

How to use Fuzzylite on my workspace via CMakeLists?

asked 2017-07-17 04:50:27 -0600

Chucolate gravatar image

updated 2017-07-17 06:39:17 -0600

gvdhoorn gravatar image

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 target_link_libraries 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.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2017-09-13 23:48:24 -0600

Hi,

thank you for your post.

Please, take a look at the example application in the fuzzylite repository:

https://github.com/fuzzylite/fuzzylit...

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-07-17 04:50:27 -0600

Seen: 225 times

Last updated: Jul 17 '17