0

I'm writing a program for Webots in C++ in Visual Studio. I'm trying to cross-compile from the Webots software onto the e-puck1, but since I'm in VS it doesn't have the makefiles necessary to do so, as far as I know. I've tried to remake the controller within Webots with its makefiles, but I'm getting an error that it can't find my libraries.

Links to my makefile and its error

So my question(s) are these:

Can VS be used to cross-compile onto an e-puck?

If not, why can't my libraries be found by the makefile?

I've read through this cyberbotics page, but it wasn't telling me anything about my error, nor VS.

Thanks for any and all help!

1 Answers1

1

To cross-compile, your makefile should contain at least this:

space :=
space +=
WEBOTS_HOME_PATH=$(subst $(space),\ ,$(strip $(subst \,/,$(WEBOTS_HOME))))
include $(WEBOTS_HOME_PATH)/projects/robots/gctronic/e-puck/transfer/libepuck/Makefile.include

Also using OpenCV on the e-puck1 is probably a very tricky process, you should have a version of OpenCV compiled for the e-puck robot.

About Visual studio, you will find more information here:

David Mansolino
  • 1,713
  • 7
  • 13
  • Thanks for the VS info, unfortunately it doesn't seem to have anything about cross-compilation in there. Do have any idea why the makefile can't find my libraries? They're in the correct folders with the correct names. – Open-Analysis Oct 07 '19 at 19:58
  • 1
    You should try defining the 'LIBRARIES' and 'INCLUDES' variables before including the Makefile.include· – David Mansolino Oct 08 '19 at 06:23