ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
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 2022-01-22 16:16:35 -0600

Evgeny 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

Question Tools

1 follower

Stats

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

Seen: 517 times

Last updated: Jul 17 '17