Help with Boost Serialization library!
Hi Boost Users, I need the Boost Serialization Library in order to use a MATLAB make file. The make file is looking for a static library file named either boost_serialization.lib or libboost_serialization.lib. However, when I built the serialization library, I got a lot of object files and rsp files rather than a .lib file. Do you know how to create the .lib file? I am not sure if it matters, but I am using a Windows computer. When you build the boost libraries, is there a way to generate .lib files for them? Below, I have documented the steps I took to build the library. Please take a glance at it and let me know if I missed something that will allow me to obtain the .lib file. 1. Download and unzip the boost folder http://www.boost.org/users/history/version_1_63_0.html 1. Look inside folder and make sure you find bootstrap.bat 1. Open the Visual Studio Developer Command Prompt and navigate to the boost folder [cid:image001.jpg@01D2BF3C.88D418B0] 1. Type bootstrap into the command line and hit enter [cid:image002.jpg@01D2BF3C.88D418B0] 1. After it finishes bootstrapping, type in .\b2 --with-serialization and hit enter. The serialization library will be built. I still have not figured out how to generate the .lib file. [cid:image003.jpg@01D2BF3C.88D418B0] Tina Alam IT Flex - Software Engineer
Tina, try to use: .\b2 link=static --with-serialization depending on what you're trying to do, you may in addition want to consider runtime-link=static You can find interesting info (especially table 3.2) at: http://www.boost.org/build/doc/html/bbv2/overview/invocation.html stathis On 27/04/2017 19:56, Alam, Tina via Boost-users wrote:
Hi Boost Users,
I need the Boost Serialization Library in order to use a MATLAB make file. The make file is looking for a static library file named either boost_serialization.lib or libboost_serialization.lib. However, when I built the serialization library, I got a lot of object files and rsp files rather than a .lib file. Do you know how to create the .lib file? I am not sure if it matters, but I am using a Windows computer.
When you build the boost libraries, is there a way to generate .lib files for them?
Below, I have documented the steps I took to build the library. Please take a glance at it and let me know if I missed something that will allow me to obtain the .lib file.
1. Download and unzip the boost folder
http://www.boost.org/users/history/version_1_63_0.html
2. Look inside folder and make sure you find *bootstrap.bat*
3. Open the Visual Studio Developer Command Prompt and navigate to the boost folder
4. Type *bootstrap* into the command line and hit enter
5. After it finishes bootstrapping, type in *.\b2 --with-serialization* and hit enter. The serialization library will be built. I still have not figured out how to generate the .lib file.
Tina Alam
IT Flex – Software Engineer
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org https://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Alam, Tina
-
stathis