How to use Boost?

support for the ARM toolchain
Post Reply
Dr. Kylstein
Posts: 8
Joined: Sat Apr 18, 2009 11:12 pm

How to use Boost?

Post by Dr. Kylstein » Sun Apr 19, 2009 11:07 pm

I find it hard to get along with out the Boost libraries, but I have no idea how to make them work with devkitARM. I found the version compiled by Patater, but how do I actually install and use it?

weirdfox
Posts: 29
Joined: Thu Feb 19, 2009 8:45 am
Location: Montreal, Canada
Contact:

Re: How to use Boost?

Post by weirdfox » Mon Apr 20, 2009 1:23 am

The boost version from patater's site is quite old (1.33.1).
I would suggest that you make your own build from the latest sources or download the build I did for

Code: Select all

... link removed as the build is not good ...
Just a note, Boost's threading API should not work as it rely in the OS's threading system and the DS doesn't have one...

good luck :)
Last edited by weirdfox on Wed Apr 22, 2009 3:34 am, edited 1 time in total.
try, crash, debug and learn :)

WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: How to use Boost?

Post by WinterMute » Mon Apr 20, 2009 3:09 am

Just as a matter of interest. How did you build Boost?

I've tried that a couple of times without much luck.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Dr. Kylstein
Posts: 8
Joined: Sat Apr 18, 2009 11:12 pm

Re: How to use Boost?

Post by Dr. Kylstein » Tue Apr 21, 2009 6:46 pm

That archive appears to be corrupt. I just tried building the libraries myself, but where the files were output, I do not know. Are Patater's instructions also out-of-date?

weirdfox
Posts: 29
Joined: Thu Feb 19, 2009 8:45 am
Location: Montreal, Canada
Contact:

Re: How to use Boost?

Post by weirdfox » Wed Apr 22, 2009 3:33 am

Yes, after making some extensive tests, my build is not good...
bjam fooled me in thinking it used arm-eabi-g++, but it used my local gcc install and compiled for x86...

After a few hours of fighting with bjam and compile errors, I would say only the part of boost that does not need to be built will work.
I would like to tell you to follow the instructions on patater's site, but they don't work for the latest boost, maybe trying with version 1.33 might work.

I'll remove the link... until I find a way to make it really work :)
try, crash, debug and learn :)

Dr. Kylstein
Posts: 8
Joined: Sat Apr 18, 2009 11:12 pm

Re: How to use Boost?

Post by Dr. Kylstein » Wed Apr 22, 2009 9:34 pm

Headers-only is probably enough for me right now, thanks for your help. I would like to know where it ended up putting the files, though.

weirdfox
Posts: 29
Joined: Thu Feb 19, 2009 8:45 am
Location: Montreal, Canada
Contact:

Re: How to use Boost?

Post by weirdfox » Thu Apr 23, 2009 1:47 am

If you only want the headers, get a boost archive (https://sourceforge.net/project/showfil ... _id=659602) and they are in the "boost" folder.

You can put the folder in "libnds/include" for simplicity.
try, crash, debug and learn :)

zelbo
Posts: 11
Joined: Tue Feb 10, 2009 6:23 am

Re: How to use Boost?

Post by zelbo » Wed May 05, 2010 10:16 pm

What if i'm ok with using an old version? How do i get Patater's 1.33.1 precompiled version working?

WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: How to use Boost?

Post by WinterMute » Mon May 10, 2010 12:00 pm

You can't, C++ isn't binary compatible across toolchain releases.
Help keep devkitPro toolchains free, Donate today

Personal Blog

zelbo
Posts: 11
Joined: Tue Feb 10, 2009 6:23 am

Re: How to use Boost?

Post by zelbo » Wed May 12, 2010 8:07 pm

So i would need Boost compiled specifically for the toolchain release i'm using? From what i've been reading, sounds like that part it is over my head. Anyone made any progress on figuring it out?

Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 1 guest