Você está na página 1de 4

Michael Iannicca

MATLAB SDK INTALLATION FOR WINDOWS

The following installation will be done on Microsoft Windows 7. The compiler will be Visual Studio 2010.
All NAO APIs and SDKs can be downloaded from the Aldebaran Community Website. All downloaded
software should be 32-bit.

1. Install Visual Studio 2010


a. Go to https://www.dreamspark.com/ to download Visual Studio 2010
b. Add C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE; to the path
i. Open System Properties (Win+Pause)
ii. Switch to the Advanced tab
iii. Click Environment Variables
iv. Select PATH in the System variables section
v. Click Edit
vi. Add Visual Studio's path to the end of the list (paths are separated by
semicolons)
2. Install Python 2.7
a. Go to https://www.python.org/download/releases/2.7 to download Python 2.7
b. Add the C:\Python27; and (non-existing) C:\Python27\Scripts; to the path
3. Install IncrediBuild and add it to the path
a. Go to https://www.incredibuild.com/accelerate-visual-studio-cc-builds.html to
download Incredibuild
b. Add C:\Program Files (x86)\Xoreax\IncrediBuild; to the path
4. Install Cmake 2.8.10 and add to path
a. Go to http://www.cmake.org/files/v2.8/?C=M;O=D to download Cmake 2.8.10
b. Add C:\Program Files (x86)\CMake 2.8\bin; to the path
5. Download SDKs and APIs and add to path
a. Go to the Aldebaran Community Website RESOURCES > SOFTWARE and download the
following:
i. NAOQI C++ SDK 1.14.5 Windows 32 bits VS2010
ii. QiBuild 1.14.5
b. Add C:\NAO\naoqisdk\bin; to the path
6. Install qibuild
a. Open up Command Prompt START > SEARCH type in cmd
b. In command line navigate to the qibuild directory and then run
E:\dev\git\qibuildinstall-qibuild.bat
Script installed in E:\dev\bin\py272\Scripts\qitoolchain.py
Script installed in E:\dev\bin\py272\Scripts\qibuild.py
Script installed in E:\dev\bin\py272\Scripts\qisrc.py
Press any key to continue ...
c. Select a worktree (which is the same as a directory) by going to the folder in command
prompt
cd E:\dev\workspaces\qibuild>qibuild init interactive
Found CMake: e:\dev\sdk\cmake-2.8\bin\cmake.exe
:: Please choose a generator
1 Borland Makefiles
2 MSYS Makefiles
3 MinGW Makefiles
4 NMake Makefiles
5 NMake Makefiles JOM
Michael Iannicca
MATLAB SDK INTALLATION FOR WINDOWS

6 Unix Makefiles
7 Visual Studio 10
8 Visual Studio 10 IA64
9 Visual Studio 10 Win64
10 Visual Studio 11
11 Visual Studio 11 Win64
12 Visual Studio 6
13 Visual Studio 7
14 Visual Studio 7 .NET 2003
15 Visual Studio 8 2005
16 Visual Studio 8 2005 Win64
17 Visual Studio 9 2008
18 Visual Studio 9 2008 IA64
19 Visual Studio 9 2008 Win64
20 Watcom WMake
21 CodeBlocks - MinGW Makefiles
22 CodeBlocks - NMake Makefiles
23 CodeBlocks - Unix Makefiles
24 Eclipse CDT4 - MinGW Makefiles
25 Eclipse CDT4 - NMake Makefiles
26 Eclipse CDT4 - Unix Makefiles
7 (----> don't select a 64 bit version)
:: Please choose an IDE
1 QtCreator
2 Eclipse CDT
3 Visual Studio
3
:: Do you want to use IncrediBuild ? (y/N)?
n
Found a worktree in E:\dev\workspaces\qibuild
:: Do you want to configure settings for this worktree (Y/n)?
Y
:: Do you want to use a unique build dir (mand. when Eclipse) (y/N)?
N
:: Do you want to use a unique SDK dir (y/N)?
N

E:\dev\workspaces\qibuild dir
Directory of E:\dev\workspaces\qibuild
26/03/2012 23:37 DIR .
26/03/2012 23:37 DIR ..
26/03/2012 23:37 DIR .qi
d. This command must be used to create a toolchain (called naotoolchain) with the
C++ SDKs toolchain.xml file in it
qitoolchain create naotoolchain E:\dev\sdk\naoqi-sdk-1.12.2.2-win32-
vs2010\toolchain.xml --default
Now using naotoolchain by default
e. Troubleshooting qibuild
i. Create a blank project in a directory (test1)
ii. Initialize project using the following command
qibuild create test1
New project initialized in E:\dev\workspaces\qibuild\test_project
iii. Configure the new empty project with the following command
qibuild configure test1
iv. If configured successfully qibuild will display
E:\dev\workspaces\qibuild qibuild configure test_project
Active configuration: win32-vs2010
Configuring test_project
-- Check for working C compiler using: Visual Studio 10 Win64
-- Check for working C compiler using: Visual Studio 10 Win64 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 10 Win64
Michael Iannicca
MATLAB SDK INTALLATION FOR WINDOWS

-- Check for working CXX compiler using: Visual Studio 10 Win64 --works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- QI_SDK_DIR: E:/d...es/qibuild/test_project/build-win32-vs2010/sdk
-- Configuring done
-- Generating done
-- Build files have been written to: E:/dev/workspaces/qibuild
/test1/naotoolchain
v. To build the new empty project with the following command
qibuild make test1
vi. If built successfully qibuild will display
Active configuration: naotoolchain (debug)
Building test1 in naotoolchain (debug)

Microsoft (R) Visual Studio Version 10.0.40219.1.


Copyright (C) Microsoft Corp. All rights reserved.
1--- Build started: Project: ZERO_CHECK, Configuration: Debug x64 --
1Build started 26/03/2012 23:44:41.
1InitializeBuildStatus:
:
:
4
4Build succeeded.
4
4Time Elapsed 00:00:00.12
===== Build: 4 succeeded, 0 failed, 0 up-to-date, 0 skipped ====

7. Install Matlab 2014 and add to path


a. Go to http://www.mathworks.com and to download Matlab 2014
b. Add Matlab to system path with C:\Program Files
(x86)\MATLAB\R2014a\runtime\win32;C:\Program Files
(x86)\MATLAB\R2014a\bin;D:\software\Matlab\runtime\win64;D:\software\Matlab\bi
n;d:\tools\MATLAB\R2011b\runtime\win64;d:\tools\MATLAB\R2011b\bin;
8. Set up Matlab SDK
a. Go to the Aldebaran Community Website RESOURCES > SOFTWARE and download the
following:
i. NAO MATLAB API
b. Add Matlab API files directory to the Matlab path ENVIRONMENT > SET PATH
9. Code run from Matlab should now be able to remotely control NAO
Michael Iannicca
MATLAB SDK INTALLATION FOR WINDOWS

1) Imifos aka Tasha. " NAO, qiBuild & Visual Studio 10." Imifos Lucubratory. WordPress, April 4,
2012. Web. May 6, 2014. < http://www.lucubratory.eu/nao-qibuild-visual-studio-10/>.
2) Kermani, Ramtin Raji. NAO Robots Getting Started Guide. Arizona State University. Summer,
2013. Web. May 6, 2014.
3) Aldebaran Robotics. "NAO Software 1.14.5." Aldebaran Robotics Documentation. Aldebaran
Robotics 168bis-170 rue Raymond Losserand Paris, 75014 France, 2006-2012. Web. May 6,
2014< https://community.aldebaran-robotics.com/doc/1-14/dev/cpp/install_guide.html#cpp-
install-guide >.