OpenQNX :: The QNX Community Portal

Jul 19, 2008 - 03:23 PM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 47 unlogged users and 1 registered user online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
bawelniak
16 Post subject: compiling boost library  PostPosted: Mar 04, 2005 - 08:42 PM
New Member


Joined: Mar 04, 2005
Posts: 1

Hi!

Have anybody tried to compile the boost library on QNX 6.2.1 PE?

After some minor changes to the build configuration (QCC instead of g++ etc.) It almost compiles but with some exceptions. Namely the boost.test library does not compile. I've nailed down the problem to the definition
of setjmp_buf in system header setjmp.h.

It uses a construct like this (this is only an example):

typedef struct { // If you put a name after struct everything work fine
int t1;
} testtab[1];


then, having a function like the following:
testtab &get()
{
static testtab t2;
return t2;
}

generates an error:
non-local function `<anonymous struct> (& get())[1]' uses anonymous type

It seems that the only solution is to change the system header file, but I don't like it. I believe the system headers should remain intact. How the problem can be solved otherwise?

Michal
 
 View user's profile Send private message  
Reply with quote Back to top
gianlucaspm@hotmail.com
22 Post subject:   PostPosted: Apr 14, 2005 - 07:15 AM
Active Member


Joined: Mar 11, 2004
Posts: 24

Hi,

I'm struggling for compiling Boost under Neutrino 6.2.1
and I'm far from Sad your results. How did you "almost"
compile it?

Thanks in advance,
Gianluca
 
 View user's profile Send private message  
Reply with quote Back to top
noc
Post subject:   PostPosted: Apr 14, 2005 - 08:17 PM
Senior Member


Joined: Jul 06, 2002
Posts: 1631

Quote:
It seems that the only solution is to change the system header file, but I don't like it. I believe the system headers should remain intact. How the problem can be solved otherwise?



maybe not helpful, but just to let you know that I had the same problem when compiling XFree86 4.3 on QNX 6.2.1, and I had to change the system header file.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
elviin
Post subject: Re: compiling boost library  PostPosted: Sep 26, 2005 - 09:30 PM
New Member


Joined: Sep 26, 2005
Posts: 1

Has anyone found out a deterministic way how to port Boost?
I found this library very useful and C++ ISO compliant.

Thx
 
 View user's profile Send private message  
Reply with quote Back to top
FlemmingBT
Post subject: RE: Re: compiling boost library  PostPosted: Apr 02, 2007 - 11:14 AM
New Member


Joined: Apr 02, 2007
Posts: 2

I agree about the Boost library it is wonderfull, did anyone succeed building boost for QNX 6.xx
 
 View user's profile Send private message  
Reply with quote Back to top
mario
Post subject: RE: Re: compiling boost library  PostPosted: Apr 02, 2007 - 11:54 AM
QNX Master


Joined: Sep 01, 2002
Posts: 2773

I gave it a try a while ago, from memory it was working ok. What problem are you having?
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
FlemmingBT
Post subject: RE: Re: compiling boost library  PostPosted: Apr 02, 2007 - 12:57 PM
New Member


Joined: Apr 02, 2007
Posts: 2

I wanted to try boost::any out. In the start I tried to include the files needed only for this, but it quickly turns out to be a great number of files. So I stopped using that approach.

To get to know boost in general better, I have builded it to on Visual Studio 2005 with the bjam tool coming with boost. That worked fine. My idea was that this could help me to find the correct way through.

Now I am considering using bjam tool for win32 (I am doing cross compiling) and then changing the jamfiles to fit to qnx compiler and linker.

Do you remenber how you did ?
 
 View user's profile Send private message  
Reply with quote Back to top
mario
Post subject: RE: Re: compiling boost library  PostPosted: Apr 02, 2007 - 02:42 PM
QNX Master


Joined: Sep 01, 2002
Posts: 2773

No sorry, however I'm pretty sure I didn't use all of the boost library but just the stuff I experimented with at the time. I didn't have to "build" anything. Just using the header was enough.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
ingraham
Post subject:   PostPosted: Apr 03, 2007 - 04:18 PM
Active Member


Joined: Nov 05, 2003
Posts: 68
Location: Texas
I compiled boost on QNX 6.3.2sp3 fairly recently, i.e. v1.33.1

bjam compiles okay with the build.sh that comes with it.
You also need bzip2. bzip2 compiles fine with make, but change the Makefile so that CC=qcc

Here's the bjam line to compile and test boost:
bjam --without-python -sGCC=qcc -sGXX=QCC -sBZIP2_INCLUDE={/path/to/bzip2} -sBZIP2_LIBPATH={/path/to/bzip2}

This will take a long time. There are a few errors.

Also note that Mario is correct; there is no reason to actually compile Boost, with the exceptions of Boost.Regex and Boost.Signals. You can use Boost.Any simply by including boost/any.hpp.

-James Ingraham
Sage Automation, Inc.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.