27 ottobre 2006
Esperimenti di lingua inglese
Ok, io questo post lo pubblico. Ma voi, se possibile, evitate di spanciarvi dalle risate per i grossolani errori di lingua che sicuramente ci saranno, sparsi qua e là. Evitate di sorridere quando vi accorgete che il genitivo sassone (l’unico termine tecnico che mi ricordo dai tempi dell’inglese studiato a scuola) è probabilmente utilizzato in modo un po’ “allegro”. Insomma, non rompete.
Perchè questo incipit? Ma perchè ho appena finito di tradurre in inglese (o almeno ci ho provato) quel mini-tutorial sull’utilizzo del NNFW sotto Mac OS X che ho scritto ieri. E, vittima di una non meglio identificata forma di masochismo, ho deciso di non dare il mio lavoro in pasto soltanto ad un ben ristretto e selezionato clan di informatici nottambuli, ma persino di pubblicarlo qui sul blog. A vous…
Using NNFW on Mac OS X 10.4 Tiger in 10 steps
Step 1 – From the NNFW’s home page, download the package containing the source files of version 0.5.0. Unpack the archive in a directory of your choice;
Step 2 – Go to: http://www.cmake.org/HTML/Index.html and download the CMake (Cross-platform Make) software. The package for Mac OS X can be found in the “Download” section (choose the “Darwin Universal – Tiger only installer” version). Once downloaded and unpacked, install the software using the installer tool included in the package;
Step 3 – From the Terminal, move to the directory where NNFW has been unpacked. Here, launch the command “ccmake .” (without quotes) to start the CMake’s semi-graphical interface;
Step 4 – Press the “c” key on the keyboard to check the pre-compiling configuration’s parameters (please consider that default parametrs should works correctly);
Step 5 – Press the “g” key on the keyboard to generate the Makefile and return to the Terminal;
Step 6 – Launch the command “make” to compile the library. A file named “libnnfw.a” will be created.
Step 7 – Launch the command “make install” to “install” the library. The .a file will be copied to “/usr/local/lib”. The various headers will be copied to “/usr/local/include/nnfw”;
Step 8 – The library is now installed. To use it with XCode, start creating a new XCode’s project and choosing the “C++ standard tool” template. According to the Xcode’s default setting, in the left section of the program’s windows should be present an area called “Group & Files”. Locate the “libnnfw.a” file through the Finder, select it then drag&drop it inside the “Source” subsection of “Group&Files”;
Step 9 – The library is now included in your project. Now, all we have to say to XCode is where he can find the NNFW’s headers files. Inside the “Group & Files” area, select the project’s target and right click them. From the contextual menu appeared, choose “Get Info”. Then, move to the “Build” tab and fill the “User Header Search Path” field with the string “/usr/local/include/nnfw” (withouth quotes);
Step 10 – Have fun!


