Cmake Error: Cmake Can Not Determine Linker Language for Target

I'm trying to install light sensors on gazebo and I was following the steps from Creating and adding a Custom ROS light sensor plugin. I've done all the steps but when I tried to do catkin_make on the step as shown here:

I'm getting these errors:

can you please help me to solve this problem?

1 Answer

It looks like cmake is complaining it can't find your source file.

Looking at this bit of the directions, are you sure you put your .cc file into the src directory and named it exactly light_sensor_plugin.cpp?

If you could, can you run tree on the source directory so we can see where all your files are?

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Chloe Bennett

Chloe Bennett

Culture, Media & Entertainment Columnist

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.

Share this article
Twitter Facebook Pinterest