Building boost 3.4 with STLPort on Windows platform

Hello all. Can anybody tell me how to build boost 1.34 with STLPort on Windows platform? Documentation and searching over the boost.org tells nothing about this. -- Best regards Flex Ferrum

Hi I am facing a problem about serialization. There are several objects constructed from class base1. And I want to serialize/deserialize only the member attribute "m_nID" from these objects. That's why only class base is registered. My problem is that when I try to serialize the objects construct from class base1, error message "unregistered_class" is throwed. It doesn't have such problem if the class base doesn't inherented from class blackbox. As I know the class blackbox is also using boost library, but I don't which part it is using. I have tryed to use marco BOOST_CLASS_EXPORT_GUID(base, "Base") but seems not useful in this case. --------------------------------------------------------------------- class base: public blackbox { friend class boost::serialization::access; template<class Archive> void serialize(Archive &ar, const unsigned int /* file_version */){ ar & boost::serialization::make_nvp("ComponentID", m_nID); } .... private: unsigned int m_nID; }; class base1: public base { //friend class boost::serialization::access; //template<class Archive> //void serialize(Archive &ar, const unsigned int /* file_version */){ // ar & boost::serialization::make_nvp("ComponentID", m_nID); // ar & boost::serialization::make_nvp("BaseInt", m_nBInt); // } .... }; Regards Barr Ng _________________________________________________________________ Learn English via Shopping Game, FREE! http://www.linguaphonenet.com/BannerTrack.asp?EMSCode=MSN06-03ETFJ-0211E

I'm using Cygwin and it has been a real pain for me to get it to work. To be
able to compile Boost 1.34 with STLport you first need to compile STLport
(duh...). I use that standard ./configure script and "make -f
gcc.makinstall-shared". No extra arguments or anything. With cygwin
you need to
change the names of the .a-files created from libstlport*.5.1.dll.a to
libstlport*.5.1.a as boost requires the dll-libs, not the static ones
(you'll get alot of unresolved externals otherwise...).
Then in user-config.jam (which is created from ./configure script or you can
create it by hand in the boost root directory) you enter the following:
# STLport configuration
using stlport : 5.1.3 : <STLport root>/stlport <STLport root>/lib ;
Also, if you are using Cygwin, you also need to change the "using gcc ;"
line to "using gcc : : : <cxxflags>-D_REENTRANT ;" or boost will choose the
the wrong namespace for stlport and you get alot of compiling errors.
Then it's time to invoke the bjam command line with a few extra arguments
like so:
bjam.exe --user-config=user-config.jam stdlib=stlport
Notice the "stdlib=stlport" argument.
I still haven't successfully compile all of boost like this, I still have
two issues.
1. In the serialization library I get errors that boost is unable to find
wcslen() and wctomb() functions in the stlport namespace. I haven't looked
into it that much as I don't need to use them.
2. The most annoying one. I'm note sure if this is a boost issue or a cygwin
issue but when I run the install stage with bjam it eats up about 400 mb
memory (I only have 512 mb memory on my computer..) which makes the whole
installation process take about 2-3 days instead of perhaps 10 minutes.. :P
Also, sometimes it crashes in the middle of the process and I have to
manually start the installation process again. As I said, I don't know if
this is due to some error in cygwin or in bjam...
Perhaps I'll write a guide on compiling stlport with boost in Cygwin and
post it on my site. In that case, I'll let you know... :)
Regards.
- Arthur
On 5/21/07, Flex Ferrum
Hello all.
Can anybody tell me how to build boost 1.34 with STLPort on Windows platform? Documentation and searching over the boost.org tells nothing about this.
-- Best regards Flex Ferrum
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

I've compiled boost 1.34 with STLport 5.1.3 with MinGW. You can find what I did here : http://lists.boost.org/boost-users/2007/04/26818.php (that mails and the following ones) regards Vincent Torri On Mon, 21 May 2007, Arthur Carlsson wrote:
I'm using Cygwin and it has been a real pain for me to get it to work. To be able to compile Boost 1.34 with STLport you first need to compile STLport (duh...). I use that standard ./configure script and "make -f gcc.makinstall-shared". No extra arguments or anything. With cygwin you need to change the names of the .a-files created from libstlport*.5.1.dll.a to libstlport*.5.1.a as boost requires the dll-libs, not the static ones (you'll get alot of unresolved externals otherwise...).
Then in user-config.jam (which is created from ./configure script or you can create it by hand in the boost root directory) you enter the following:
# STLport configuration using stlport : 5.1.3 : <STLport root>/stlport <STLport root>/lib ;
Also, if you are using Cygwin, you also need to change the "using gcc ;" line to "using gcc : : : <cxxflags>-D_REENTRANT ;" or boost will choose the the wrong namespace for stlport and you get alot of compiling errors.
Then it's time to invoke the bjam command line with a few extra arguments like so: bjam.exe --user-config=user-config.jam stdlib=stlport Notice the "stdlib=stlport" argument.
I still haven't successfully compile all of boost like this, I still have two issues. 1. In the serialization library I get errors that boost is unable to find wcslen() and wctomb() functions in the stlport namespace. I haven't looked into it that much as I don't need to use them. 2. The most annoying one. I'm note sure if this is a boost issue or a cygwin issue but when I run the install stage with bjam it eats up about 400 mb memory (I only have 512 mb memory on my computer..) which makes the whole installation process take about 2-3 days instead of perhaps 10 minutes.. :P Also, sometimes it crashes in the middle of the process and I have to manually start the installation process again. As I said, I don't know if this is due to some error in cygwin or in bjam...
Perhaps I'll write a guide on compiling stlport with boost in Cygwin and post it on my site. In that case, I'll let you know... :)
Regards. - Arthur
On 5/21/07, Flex Ferrum
wrote: Hello all.
Can anybody tell me how to build boost 1.34 with STLPort on Windows platform? Documentation and searching over the boost.org tells nothing about this.
-- Best regards Flex Ferrum
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Ce message a été vérifié par MailScanner pour des virus ou des polluriels et rien de suspect n'a été trouvé. Message délivré par le serveur de messagerie de l'Université d'Evry.
participants (4)
-
Arthur Carlsson
-
Flex Ferrum
-
Ng Pan
-
Vincent Torri