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.mak install-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
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