[ros-users] ROS for Windows via the mingw cross compiler

Daniel Stonier d.stonier at gmail.com
Sun Mar 13 08:58:12 UTC 2011


Ok, my apologies. I must have had an old tarball lying around and
missed the libpng problem, but I'm now seeing the same thing. It's
also come up on mingw cross' mailing list. Problem is due to a broken
link in libpng having been upgraded recently and they moved their old
tarballs to a different directory.

I've patched mingw_cross in eros to handle this for now.

- Update eros
- Clear out your /opt/mingw and redo mingw_cross, OR
  - Simply copy mingw_cross/patches/libpng.mk to /opt/mingw/src
followed by 'cd /opt/mingw; make gcc boost qt'

I don't think I like the fact that their stable branch is prone to
broken links though, so I sent them an email about how we can resolve
this more practically. Another option I might try if more users start
coming on board is to make some binary tarballs of mingw_cross for ros
of the more popular platforms. Out of interest, what are you using?

Anyway, let me know how that goes and especially how boost fares once
you are done.

Cheers,
Daniel.






On 13 March 2011 06:20, Morgan Cormier <MCormier at coroware.com> wrote:
> Hi Again,
>
> Just to tell you that even after doing a svn update in the eros folder and checking that it really downloads the 2.18 version, there is still the checksum error  :
>
> [download] libpng
>
> Wrong checksum of package libpng!
> ------------------------------------------------------------
>           => `-'
> Resolving ftp.simplesystems.org... 65.66.246.92
> Connecting to ftp.simplesystems.org|65.66.246.92|:21... connected.
> Logging in as anonymous ... Logged in!
> ==> SYST ... done.    ==> PWD ... done.
> ==> TYPE I ... done.  ==> CWD (1) /pub/libpng/png/src ... done.
> ==> SIZE libpng-1.4.4.tar.bz2 ... done.
> ==> PASV ... done.    ==> RETR libpng-1.4.4.tar.bz2 ...
> No such file `libpng-1.4.4.tar.bz2'.
> ------------------------------------------------------------
> [log]      /opt/mingw/log/libpng-download
>
> make[1]: *** [/opt/mingw/usr/installed/libpng] Error 1
> make[1]: Leaving directory `/opt/mingw'
>
>
> I am sure that we will find a solution to this problem,
>
> Thank you so much for your help,
>
> Morgan Cormier
>
> ________________________________________
> From: Daniel Stonier [d.stonier at gmail.com]
> Sent: Saturday, March 12, 2011 1:35 AM
> To: Morgan Cormier
> Subject: Re: [ros-users] ROS for Windows via the mingw cross compiler
>
> On 12 March 2011 09:44, Morgan Cormier <MCormier at coroware.com> wrote:
>> Hi,
>>
>> Thanks for this reply,
>>
>> I think the second error I had is because mingw didn't finish to compile because of the checksum error in libpng. I compiled it during the night, I didn't see the result since my computer shut down automatically, but since I could do the following step I though it was installed.
>>
>
> I went back to the version from 2 weeks ago and checked - came out
> with the same libpng error which led me to think you have an old
> version of eros. You can check by looking at mingw's makefile.
>
> $ roscd mingw_cross
> $ vim Makefile
>
> If it's downloading 2.16, you've got an old version. You should be seeing 2.18.
>
>> I tried to do as you said, I did an svn update of eros and so had the lasest version, and tried to compile again mingw_cross but I had the same problem.
>> Is the "svn co link" command enough
>
> If you mean by link, https://code.ros.org/svn/eros/trunk, then that
> has probably just checked out another eros inside eros under a dir
> called trunk. To svn update, simply:
>
> $ roscd eros
> $ svn update
>
>> or do I have to use the command "rosinstall /opt/ros https://code.ros.org/gf/project/eros/scmsvn/?action=browse&path=%2F*checkout*%2Ftrunk%2Feros_diamondback.rosinstall" ?
>
> Running:
>
> $ rosinstall /opt/ros
> "https://code.ros.org/gf/project/eros/scmsvn/?action=browse&path=%2F*checkout*%2Ftrunk%2Feros_diamondback.rosinstall"
>
> on an existing installation in /opt/ros will simply update all your
> repos in /opt/ros. So that should work too. As I said before, check
> mingw's Makefile to be sure.
>
> With regards to the boost problem, I just tried a simple boost signals
> program and it linked without a problem. I've attached that package
> with this. Is there any chance you could simplify your package to a
> standalone test that reproduces the problem and send it to me? I can'
> try and reproduce here on my machine.
>
> Cheers,
> Daniel.
>
>>
>> Thank you for your help,
>>
>> Morgan Cormer
>>
>> On 2011-03-11 14:31, Daniel Stonier wrote:
>>> On 11 March 2011 07:16, Morgan Cormier <MCormier at coroware.com> wrote:
>>> > Hi,
>>> >
>>> > I am interested in doing a Qt interface with ROS and found this tutorial which does exactly what I want :
>>> > http://www.ros.org/wiki/mingw_cross/Tutorials/cross_platform_qt_ros
>>> >
>>> > I experience some problems during the installation. When i compile mingw_cross (roscd mingw_cross;make) the compilation stop after downloading libpng, it says that the checksum is wrong.
>>> >
>>> > I installed it using : http://mingw-cross-env.nongnu.org/  and could finally do all the steps in the tutorial.
>>> > Another problem occured at this point, I couldn't compile because of this error :
>>> >
>>> > /opt/mingw/usr/i686-pc-mingw32/lib/libboost_signals-mt.a: member /opt/mingw/usr/i686-pc-mingw32/lib/libboost_signals-mt.a(trackable.o) in archive is not an object
>>> >
>>> > Do you know how to solve this problem?
>>> >
>>> > Thank you,
>>> >
>>>
>>> Just a quick reply before I crash for the night - will look at it
>>> again tomorrow.
>>>
>>> libpng checksum : we found a couple of broken link problems like this
>>> a couple of weeks ago, but that was because we were using mingw_2.16
>>> which was a bit dated. I upgraded the links in eros to actually use
>>> that tarball you downloaded (version 2.18), so can you make sure you
>>> reinstall, or at least svn update your eros again? We've fixed one or
>>> two other bugs in the meantime as well that you might need.
>>>
>>> The latter problem is a bit harder - I haven't come across that one
>>> before. Some links that might be relevant:
>>>
>>> http://www-01.ibm.com/support/docview.wss?rs=4036
>>
>
>
>
> --
> Phone : +82-10-5400-3296 (010-5400-3296)
> Home: http://snorriheim.dnsdojo.com/
> Yujin Robot: http://www.yujinrobot.com/
> Embedded Ros : http://www.ros.org/wiki/eros
> Embedded Control Libraries: http://snorriheim.dnsdojo.com/redmine/wiki/ecl
>



-- 
Phone : +82-10-5400-3296 (010-5400-3296)
Home: http://snorriheim.dnsdojo.com/
Yujin Robot: http://www.yujinrobot.com/
Embedded Ros : http://www.ros.org/wiki/eros
Embedded Control Libraries: http://snorriheim.dnsdojo.com/redmine/wiki/ecl



More information about the ros-users mailing list