tag:blogger.com,1999:blog-5326105149600807560.post8776781392564659832..comments2024-03-18T21:21:28.499-07:00Comments on Linux, C++ and other Tortures: Cross Compiling and Cross Debugging C++ with Eclipse from Debian Squeeze x64 to Debian Squeeze ARM (Raspberry Pi)Javierhttp://www.blogger.com/profile/16903536515195240310noreply@blogger.comBlogger38125tag:blogger.com,1999:blog-5326105149600807560.post-10217616620544892712019-11-28T22:51:04.339-08:002019-11-28T22:51:04.339-08:00Wow, nice appliance for Raspberry Pi!
vmware back...Wow, nice appliance for Raspberry Pi!<br /><br /><a href="https://www.nakivo.com/vmware-backup/" rel="nofollow">vmware backup solutions</a> Victoriahttps://www.blogger.com/profile/12800709232356890997noreply@blogger.comtag:blogger.com,1999:blog-5326105149600807560.post-28757692537206465822019-11-28T01:36:51.050-08:002019-11-28T01:36:51.050-08:00This comment has been removed by the author.Victoriahttps://www.blogger.com/profile/12800709232356890997noreply@blogger.comtag:blogger.com,1999:blog-5326105149600807560.post-31467695432204453152016-12-27T03:04:22.486-08:002016-12-27T03:04:22.486-08:00Hello,
The Article on Cross Compiling and Cross De...Hello,<br />The Article on Cross Compiling and Cross Debugging C++ with Eclipse from Debian Squeeze x64 to Debian Squeeze ARM is awesome.I learned a lot from the article.It help me to enhance my Programing Skills.Thanks for Sharing the article cross platform.<a href="http://www.devrabbit.com/technology/xamarin-consulting" rel="nofollow">Xamarin Consultant</a>Anonymoushttps://www.blogger.com/profile/15246527296417275763noreply@blogger.comtag:blogger.com,1999:blog-5326105149600807560.post-70282534942821361232014-08-13T04:19:43.416-07:002014-08-13T04:19:43.416-07:00Hey grt help.. It worked well..
Can u help me in c...Hey grt help.. It worked well..<br />Can u help me in cross compiling opencv programs.. I am not able to link the libraries properly.. I am getting following error:<br />15:19:20 **** Incremental Build of configuration Debug for project MyFirstRaspProg ****<br />make all <br />Building target: MyFirstRaspProg<br />Invoking: Cross G++ Linker<br />arm-linux-gnueabi-g++ -L/home/tvsm/raspberry -L/usr/lib/gcc-cross/arm-linux-gnueabi/4.7 -L/usr/lib/i386-linux-gnu/lib -L/usr/arm-linux-gnueabi/lib -o "MyFirstRaspProg" ./src/MyFirstRaspProg.o -lopencv_highgui<br />/usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/ld: cannot find -lopencv_highgui<br />collect2: error: ld returned 1 exit status<br />make: *** [MyFirstRaspProg] Error 1<br /><br />15:19:20 Build Finished (took 56ms)Anonymoushttps://www.blogger.com/profile/17405749355211267538noreply@blogger.comtag:blogger.com,1999:blog-5326105149600807560.post-88432391772937344272014-07-25T05:07:41.586-07:002014-07-25T05:07:41.586-07:00well documented tutorial! i just have a curiosity....well documented tutorial! i just have a curiosity....this is dated 2012, big changes now in 2014? can this process be able to work with wheezy release?<br />i intend to use cubieboard and ubuntu, as cubie and rpi use arm based cpu maybe can be possible.<br />any comments or ideas about?postmortenhttps://www.blogger.com/profile/18349649221613381119noreply@blogger.comtag:blogger.com,1999:blog-5326105149600807560.post-76544161184655992982013-12-22T09:00:47.824-08:002013-12-22T09:00:47.824-08:00I can cross compile simple C programs from Windows...I can cross compile simple C programs from Windows using eclipse to Raspberry Pi(running on Debian Linux). i can also compile and run opencv programs only on windows(Intel). using Eclipse. but i'm not able to cross compile opencv programs on raspberry pi using windows and eclipse. Please help me find a solution.Sanjana Saigalhttps://www.blogger.com/profile/13919686096701613570noreply@blogger.comtag:blogger.com,1999:blog-5326105149600807560.post-80868941085155004582013-11-25T09:25:48.172-08:002013-11-25T09:25:48.172-08:00Hello,
when I try to download one of these:
linux-...Hello,<br />when I try to download one of these:<br />linux-libc-dev-armel-cross<br />libc6-armel-cross <br />libc6-dev-armel-cross <br />binutils-arm-linux-gnueabi<br />gcc-4.4-arm-linux-gnueabi<br />g++-4.4-arm-linux-gnueabi <br />uboot-mkimage<br /><br />he says that is unable to find the package, why?Unknownhttps://www.blogger.com/profile/09771167424953136934noreply@blogger.comtag:blogger.com,1999:blog-5326105149600807560.post-6121711156017172802013-09-13T00:32:27.499-07:002013-09-13T00:32:27.499-07:00Hello Brayn..
Thanks for the tutorial. I could cro...Hello Brayn..<br />Thanks for the tutorial. I could cross compile my first program. Now a little off the topic. I am trying OpenCv on eclipse .I can run the normal program. but when i try to cross compile the same to pi, its giving me error for adding the libraries files(OpenCv). The cross compile path and the library paths are different. I am not able to figure out hoe to resolve this.<br />any help is appreciated.<br />Regards<br /><br /> poolahttps://www.blogger.com/profile/09251306035736468660noreply@blogger.comtag:blogger.com,1999:blog-5326105149600807560.post-6490174928423378072013-05-06T17:47:45.105-07:002013-05-06T17:47:45.105-07:00Hi Javier,
Thank you for the impressive sharing...Hi Javier,<br /><br /> Thank you for the impressive sharing. I am a step closer to completion of setting up. However, I am click on the debug, my program get downloaded to the target, and Eclipse stop at the dialog box of Progress Information, it says, Launching [MyProgram] Debug. The status bar progress till about 80%, and showing "Configuring GDB".<br /><br /> I have run gdbserver on the target and it is listening at port 3785. After that, I start my debugging session on Eclipse.<br /><br /> I have even allowed inbound and outbound port 3785 from my firewall.<br /><br /> Appreciate if you can shed some light on my issue on why gdbserver is not connecting.<br /><br /> Thank you.<br /><br />Cheers,<br />BryanPath.Walkerhttps://www.blogger.com/profile/08358280980099311288noreply@blogger.comtag:blogger.com,1999:blog-5326105149600807560.post-2469242894558018802013-03-05T14:20:53.915-08:002013-03-05T14:20:53.915-08:00Here is a tutorial how to prepare Windows cross-co...Here is a tutorial how to prepare Windows cross-compiler for Raspberry Pi and how to use Eclipse to debug Raspberry Pi software from Windows: <br />http://www.gurucoding.com/en/raspberry_pi_eclipse/index.php<br />Anonymoushttps://www.blogger.com/profile/04884148961836573192noreply@blogger.comtag:blogger.com,1999:blog-5326105149600807560.post-12787272253334506422012-11-25T08:24:31.853-08:002012-11-25T08:24:31.853-08:00Check out this:
http://stackoverflow.com/questio...Check out this: <br /><br />http://stackoverflow.com/questions/5665800/compiling-gdb-for-remote-debugging<br /><br />It seems the guy had exactly the same problem than you. Hope this help!!Javierhttps://www.blogger.com/profile/16903536515195240310noreply@blogger.comtag:blogger.com,1999:blog-5326105149600807560.post-14560550476425787872012-11-19T13:44:51.819-08:002012-11-19T13:44:51.819-08:00Hi Javier,
yes I am definitely using the arm-linu...Hi Javier,<br /><br />yes I am definitely using the arm-linux-gnueabi-gdb; as per fig 13.<br /><br />But I am a little further on. I googled the 'error' ["Malformed packet(b) (missing colon)..."] and it appears this is common between 'mismatched' gdb components (gdb & gdbserver). Inspecting via gdbserver --version (& similar for gdb) reveals that the gdbserver included in the raspbian distribution (I am using a pre loaded SD card) is based on gdbserver 7.4.1-debian whilst that of the arm-linux-gnueabi-gdb is 7.0.1-debian (as i think you mentioned in 2.2.4)<br /><br />So what i am now trying to do is build (from the location mentioned in 2.2.4 http://ftp.gnu.org/gnu/gdb/) a gdb based on 7.4.1. I have 'nearly' succeeded except when i launched the built component from within Eclipse it complained that ...<br /><br />warning: Can not parse XML target description; XML support was disabled at compile time<br />warning: Unable to find dynamic linker breakpoint function.<br />GDB will be unable to debug shared library initializers<br />and track explicitly loaded dynamic code.<br />warning: Can not parse XML OS data; XML support was disabled at compile time<br /><br />So now it looks like i have to build the libexpat library component and then rebuild the gdb 7.4.1 component again.<br /><br />I think my 'configure' would then be...<br />configure --host=i686-linux-gnu --target=arm-linux-gnueabi --with-expat<br /><br />Alternatively i could take the gdbserver on the pi back to 7.0.1 but i do not know if that is a good idea.<br /><br />Any suggestions??<br /><br /><br /><br /><br /><br />Anonymoushttps://www.blogger.com/profile/06530330546695494764noreply@blogger.comtag:blogger.com,1999:blog-5326105149600807560.post-38705113519159698262012-11-19T12:01:52.521-08:002012-11-19T12:01:52.521-08:00It seems your debugger server does not like what i...It seems your debugger server does not like what is receiving from eclipse... It should not come from the warning step, because what we are doing there is changing the non-arm gdb. Coul you please check that you are using the arm-gdb (fig 13) to communicate with the raspberry?Javierhttps://www.blogger.com/profile/16903536515195240310noreply@blogger.comtag:blogger.com,1999:blog-5326105149600807560.post-89925397689230769492012-11-19T06:16:37.384-08:002012-11-19T06:16:37.384-08:00Hi Javier,
The last post got slightly mangled
Wh...Hi Javier,<br /><br />The last post got slightly mangled<br /><br />When identifying the Eclipse debug output it should have said...<br />[terminated] WOD Debug[C/C++ Remote Application]<br />[terminated, exit value: 0]gdb<br /><br />I have replaced the "less than" and "greater than" symbols with square braces.Anonymoushttps://www.blogger.com/profile/06530330546695494764noreply@blogger.comtag:blogger.com,1999:blog-5326105149600807560.post-67090679429538265902012-11-19T06:11:01.115-08:002012-11-19T06:11:01.115-08:00Hi Javier,
Everything is working (thanks for your...Hi Javier,<br /><br />Everything is working (thanks for your previous help) except (there is always 1 exception!!) remote debugging<br /><br />As you can see from the shell output...<br /><br />pi@raspberrypi ~ $ ./WOD<br />!!!Hello Jasper Parrot!!!<br /><br />pi@raspberrypi ~ $ <br />pi@raspberrypi ~ $ gdbserver :2345 WOD<br />Process WOD created; pid = 1735<br />Listening on port 2345<br />Remote debugging from host 192.168.2.100<br />readchar: Got EOF<br />Remote side has terminated connection. GDBserver will reopen the connection.<br />Listening on port 2345<br /><br /><br />But within Eclipse Debug view I get...<br />WOD Debug[C/C++ Remote Application]<br />gdb<br /><br /><br />So i tried launching arm-linux-gnueabi-gdb from within a shell window...<br />(gdb) target remote 192.168.2.102:2345<br />Remote debugging using 192.168.2.102:2345<br />Malformed packet(b) (missing colon): ore:0;<br />Packet: 'T050b:00000000;0d:b0f6ffbe;0f:c0070040;thread:69c;core:0;'<br /><br />So i am not sure where the problem lies.<br /><br />Could it be related to the issue you identified in your blog ...<br />"...warning: At this point you can find conflicts with the already installed gdb (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=603347). If it is the case you <br />will need to upgrade from gdb 7.0.1 (the currently installed) to gdb 7.4.1 (You can find it on http://ftp.gnu.org/gnu/gdb/). You will need to download it, configure it and install it, but do not worry too much, there are just 3 steps that can be found on the README file <br />inside the downloaded file"<br /><br /><br />If so - then i have a further question - you mention 3 steps - but in the readme i only find 2 steps and i am a little concerned about proceeding in case i 'disturb' the GNU toolchain in doing so<br /><br />Thanks in advance for any help/suggestions you can offer.Anonymoushttps://www.blogger.com/profile/06530330546695494764noreply@blogger.comtag:blogger.com,1999:blog-5326105149600807560.post-38069964323993990182012-10-30T15:58:13.678-07:002012-10-30T15:58:13.678-07:00Javier - you are a star
I was starting to doubt m...Javier - you are a star<br /><br />I was starting to doubt my sanity - too long living in the company of an insane parrot<br /><br />many thanksAnonymoushttps://www.blogger.com/profile/06530330546695494764noreply@blogger.comtag:blogger.com,1999:blog-5326105149600807560.post-81112280826170404142012-10-30T13:12:56.012-07:002012-10-30T13:12:56.012-07:00It is not a stupid question. This option it is onl...It is not a stupid question. This option it is only available on Eclipse's 64bit Version. The good new is that you can select a regular "Hello world C++ project" and follow exactly the same steps.<br /><br />Br.Javierhttps://www.blogger.com/profile/16903536515195240310noreply@blogger.comtag:blogger.com,1999:blog-5326105149600807560.post-85332524370437694322012-10-30T12:41:27.184-07:002012-10-30T12:41:27.184-07:00Hi Javier,
Thanks for the super tutorial
I loade...Hi Javier,<br /><br />Thanks for the super tutorial<br /><br />I loaded Eclipse CDT from the eclipse downloads website (Version Juno Service Release 1) and everything went well except that when eclipse is launched it complains that "EGit could not detect where Git is installed"<br /><br />Steps 2.2.1 to 2.2.4 went ok though i used the Synaptic Package Manager to achieve the steps<br /><br />But when i come to step 3.1 i cannot find the "Cross Compile project" option under the "Executable" Project type<br /><br />Any bright ideas why this might be so<br /><br />Apologies in advance for this stupid questionAnonymoushttps://www.blogger.com/profile/06530330546695494764noreply@blogger.comtag:blogger.com,1999:blog-5326105149600807560.post-91382114960806346442012-09-29T00:31:41.478-07:002012-09-29T00:31:41.478-07:00I had this problem long time ago but I do not real...I had this problem long time ago but I do not really remember how I managed to fix it. In any case it seems to be something eclipse-related. Try to have a look in here: http://stackoverflow.com/questions/9337757/unresolved-inclusion-stdio-hJavierhttps://www.blogger.com/profile/16903536515195240310noreply@blogger.comtag:blogger.com,1999:blog-5326105149600807560.post-38207192063104381562012-09-28T17:34:45.434-07:002012-09-28T17:34:45.434-07:00Hi Javier
I'm getting "Unresolved inclusi...Hi Javier<br />I'm getting "Unresolved inclusion" errors (in the include files) with my Eclipse, although the code is compiled correctly. Yes, the paths to the include files are correct (the compiler get them well only the eclipse indexer has problems). This seems to be a known error but I noticed that you don't had this problem. Why?<br />Regards<br />Heliohsmpthttps://www.blogger.com/profile/07492372857472445680noreply@blogger.comtag:blogger.com,1999:blog-5326105149600807560.post-91281666724244257152012-09-26T19:46:22.064-07:002012-09-26T19:46:22.064-07:00This comment has been removed by the author.Tracy and Courtney Thatcherhttps://www.blogger.com/profile/06685927621107929224noreply@blogger.comtag:blogger.com,1999:blog-5326105149600807560.post-69620258607430748382012-09-20T12:03:55.853-07:002012-09-20T12:03:55.853-07:00Here a brave one that did it from Windows 7: http:...Here a brave one that did it from Windows 7: http://www.a2p.it/wordpress/tech-stuff/development/remote-debugging-raspberrypi/Javierhttps://www.blogger.com/profile/16903536515195240310noreply@blogger.comtag:blogger.com,1999:blog-5326105149600807560.post-52066873197530818182012-09-20T12:02:58.103-07:002012-09-20T12:02:58.103-07:00Here a brave one that did it from Windows 7: http:...Here a brave one that did it from Windows 7: http://www.a2p.it/wordpress/tech-stuff/development/remote-debugging-raspberrypi/Javierhttps://www.blogger.com/profile/16903536515195240310noreply@blogger.comtag:blogger.com,1999:blog-5326105149600807560.post-51466752987329374482012-09-06T13:17:26.290-07:002012-09-06T13:17:26.290-07:00I am far from being an expert on windows technolog...I am far from being an expert on windows technology, but if I am not wrong you can install a short of linux running on windows (Cygwin). With a good dose of patience you should be able to download/compile/install the 'tool chain'. Another option could be to install a native tool chain on windows as explained here: http://download.ronetix.info/toolchains/arm/arm_cross_development_guide.pdf<br /><br />Hope this helps br!Javierhttps://www.blogger.com/profile/16903536515195240310noreply@blogger.comtag:blogger.com,1999:blog-5326105149600807560.post-71291956368737551022012-09-06T06:14:16.290-07:002012-09-06T06:14:16.290-07:00Hello,
Great and easy toturial!
I'm using ecli...Hello,<br />Great and easy toturial!<br />I'm using eclipse daily for other project on my windows machine. This might be a stupid question! but should it not be possible to use the tool chain as you describe and compile it from eclipse on my windows platform? Anonymoushttps://www.blogger.com/profile/16392594480323989018noreply@blogger.com