Search code examples
c++visual-studio-2010makefilewebots

Webots Visual Studio Cross-complitation


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!


Solution

  • 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: