From: Robotics P. u. h. l. <rob...@li...> - 2007-10-02 13:53:54
|
Yes! Finally!! If you are trying to compile the exercise code in the work book here is my recommended process 1) first compile the code in player, do not do anything else until you have succeeded. 2) In order to do 1 you will need to a) down load a lot of packages, b) comment out some bad code c) change some .H files to .h (there maybe a env variable for this) 3) The last thing the scons in player does is create the roombaDev.pc. I think it needed this at the start. I'm not sure about this my notes are not detailed enough. If you find it does it will tell you to put the path to roombaDev.pc in the PKG_CONFIG_PATH env variable. If this happens copy the cr8.pc from create to player, re-name it roombaDev.pc and edit it to remove the -lcr8 entry 4) the process is now to run scons install in player, each time it fails fix one of the three things in 2 and try again 5) when scons install in player succeeds, you are ready to go and try compiling exercise 01 John Cummins The following are my notes from the experience, some of my errors are obvious in retrospect but they may help someone in a similar situation 1) First down load the workbook, they like to hide it on the site but with a little diligence you can find it. 2) next you have to install a whole lot of software Imlib, gsl, fltk, ftgl, avr, avrdude , ckermit, etc. 3) then you have to run "scons install" in directories create and player. 3.5) you may have to be super user to do 3 4) at this time you will probably see messages cant find abc that's because the abc software needs to be installed 5) continue doing 4 and 5 until the scons work, or as in my case they either work or say you need "roombaDev.pc" 6) go to roboticsprimer-0.1/create and cp cr8.pc roombaDev.pc 7) export PKG_CONFIG_PATH=/home/john/roboticsprimer-0.1/create:$PKG_CONFIG_PATH 8) go to /usr/include/FL cp Fl_Window.H FL_Window.h cp Fl.H Fl.h (upper case H to lower case h) 9) in exercises/01-introduction/gumstix do scons result main.cc:102 error: 'class Client" has no member named stop 10) commented out offending line compiled but link of intro failed g++ -o intro -lroombaClient main.o exercise.o -L/usr/local/lib -L/home/nate/local/lib -L/usr/lib -L/usr/X11R6/lib -ljpeg -lplayercore -lltdl -lpthread -lplayerc++ -lplayerc -lplayerxdr -lplayererror -lcr8 -lxml2 -lImlib2 -lX11 -lXext -ldl -lgsl -lgslcblas -lm -lfltk_images -lfltk_gl -lfltk -lGLU -lGL -lfreetype -lz -lftgl /usr/bin/ld: cannot find -lroombaClient collect2: ld returned 1 exit status 11) in player get this error g++ -o behavior_network/libroombaBehavior.so -shared behavior_network/Behavior.os behavior_network/BehaviorNetwork.os behavior_network/ArbiterClient.os -L/home/nate/local/lib -L/usr/local/lib -lcr8 -lplayercore -lltdl -lpthread -lplayerc++ -lplayerc -lm -lplayerxdr -lplayererror /usr/bin/ld: skipping incompatible /home/nate/local/lib/libcr8.a when searching for -lcr8 /usr/bin/ld: cannot find -lcr8 looks like I have my list of required packages, grin! 12) guess not! installed libboost 13) commented out lines 531 to 534 in player/client/Client.cc 14) changes a whole bunch of .H files in /usr/include/FL to .h 15) removed hacked roombaDev.pc from create 16) export PKG_CONFIG_PATH=/home/john/roboticsprimer-0.1/player:$PKG_CONFIG_PATH --------------------------------- Need a vacation? Get great deals to amazing places on Yahoo! Travel. |