ICub software/Archive: Difference between revisions
Jump to navigation
Jump to search
m (archive) |
No edit summary |
||
Line 32: | Line 32: | ||
# Go to Build->Batch Build | # Go to Build->Batch Build | ||
# Check ALL_BUILD (Release and/or Debug) and Build! | # Check ALL_BUILD (Release and/or Debug) and Build! | ||
== iCub == | |||
=== Installing iCub in Windows === | |||
# Make sure that <code>ICUB_ROOT</code> and <code>ICUB_DIR</code> are correctly set. | |||
# Install OpenCV (1.0 works, not sure about newer versions), available at http://sourceforge.net/projects/opencvlibrary/files/ . Make sure that the variable <code>OPENCV_DIR</code> was created and add <code>%OPENCV_DIR%/bin</code> to the <code>PATH</code> environment variable. | |||
# If you intend to use the iKin kinematics modules (normally you don't - this is only needed on servers), then download IPOPT, unzip it and create the environment variable <code>IPOPT_DIR</code>, e.g. C:\Ipopt-3.7.0-win32-msvc8-yarp | |||
# Use CMake to build the iCub SLN files. Point the source code to the icub-main dir, and build to the icub-main/build dir, which will be created now. | |||
# In CMake, check YARP_AUTO_LINK (not sure why?) and the modules you might want working (don't uncheck anything). | |||
# Click: Configure, Configure, Generate. | |||
# Go to <code>ICUB_DIR</code>, open iCub.sln | |||
# Go to Build->Batch Build | |||
# Check ALL_BUILD (Release and/or Debug) and Build! (sometimes frameGrabberGui2 will not compile correctly) |
Revision as of 10:53, 7 April 2014
This is just an archive of old notes, kept for reference. Go back to iCub software.
Environment variables
Windows environment variables
Typical choices are:
YARP_ROOT
= C:/yarpYARP_DIR
= C:/yarp/buildICUB_ROOT
= C:/icub-mainICUB_DIR
= C:/icub-main/build
YARP
Installing yarp in Windows
Note: all environment variables should have '/' and NOT '\' (except in the PATH
enviroment variable). The directories do not need to be the same as the ones presented here, just be sure to alter the environment variables correctly.
- Download ACE and GSL from http://eris.liralab.it/iCub/downloads/packages/windows/msvc8/ ; unzip them to a directory of your choice and remember it.
- If you want GUIs, download GTKMM from http://live.gnome.org/gtkmm/MSWindows and use the installer.
- Create the environment variables
ACE_ROOT
,GTK_BASEPATH
,GTKMM_BASEPATH
,GSL_DIR
as follows:ACE_ROOT
is ACE dir (e.g., C:/ace_wrappers).GTK_BASEPATH
andGTKMM_BASEPATH
is GTKMM dir (C:/gtkmm).GSL_DIR
is GSL dir (C:/gsl-1.8).
- Add this to the
PATH
environment variable:%ACE_ROOT%/lib
(important: make sure you put it at the beginning of thePATH
environment variable, to avoid conflicts with other existing ACE versions on the system) - Make sure that
YARP_ROOT
andYARP_DIR
are correctly set. - Add this to the
PATH
enviroment variable:%YARP_DIR%/bin/Release
(and/orDebug
). Note: these directories will be created later - Use CMake to build the YARP SLN files. Point the source code to the yarp dir, and build to the yarp/build dir (which will be created now).
- In CMake, check the flags CREATE_DEVICE_LIBRARY_MODULES, CREATE_LIB_MATH and, optionally, CREATE_GUIS (don't uncheck anything!).
- Click: Configure, Configure, Generate.
- Go to
YARP_DIR
and open YARP.sln with Visual Studio - Go to Build->Batch Build
- Check ALL_BUILD (Release and/or Debug) and Build!
iCub
Installing iCub in Windows
- Make sure that
ICUB_ROOT
andICUB_DIR
are correctly set. - Install OpenCV (1.0 works, not sure about newer versions), available at http://sourceforge.net/projects/opencvlibrary/files/ . Make sure that the variable
OPENCV_DIR
was created and add%OPENCV_DIR%/bin
to thePATH
environment variable. - If you intend to use the iKin kinematics modules (normally you don't - this is only needed on servers), then download IPOPT, unzip it and create the environment variable
IPOPT_DIR
, e.g. C:\Ipopt-3.7.0-win32-msvc8-yarp - Use CMake to build the iCub SLN files. Point the source code to the icub-main dir, and build to the icub-main/build dir, which will be created now.
- In CMake, check YARP_AUTO_LINK (not sure why?) and the modules you might want working (don't uncheck anything).
- Click: Configure, Configure, Generate.
- Go to
ICUB_DIR
, open iCub.sln - Go to Build->Batch Build
- Check ALL_BUILD (Release and/or Debug) and Build! (sometimes frameGrabberGui2 will not compile correctly)