Login  Register

答复: Reg Building Quantlib with selective packages [Configure options]

Posted by cheng li on Feb 10, 2017; 12:21am
URL: http://quantlib.414.s1.nabble.com/Reg-Building-Quantlib-with-selective-packages-Configure-options-tp18068p18074.html

Hi Parag,

 

I think currently no way to do such things. Quantlib is always built as a whole.

 

For the big .so file, you can try strip command to remove information for debug, e.g:

 

         >> strip libQuantlib.so

 

Which will significantly reduce the binary file size.

 

Regards,

Cheng

 

发件人: Parag Agrawal [mailto:[hidden email]]
发送时间: 201729 20:33
收件人: [hidden email]
主题: [Quantlib-users] Reg Building Quantlib with selective packages [Configure options]

 

Hi,

 

I am trying to write a small program to calculate risk. 

I am using very limited Classes/variables/methods of the Qualtib library (like Quantlib::BlackCalculator, Quantlib::blackFormulaImpliedStdDev, and exception class like Quantlib::Error).

While building I am configuring with the --enable-sessions options [different instances for different sessions). 

 

However I see that the default size of the libQuantlib.so.0 compiles to around ~350 MB, which is kind of an overkill for my program. (Also copying the program along with library is a big pain). 

 

Is there any way I can build a part of the source which will reduce the size of the library and still contain the above libraries/methods/classes. 

I can see that the ./configure --help does give an options like --with-PACKAGE . Is  there some way I can build a part of the source code to achieve my goal. 

 

 

I couldnt locate anything while searching. Any help/pointers would be appreciated. 

 

thanks,

Parag


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users