Serving the Quantitative Finance Community

 
User avatar
Da0ud
Topic Author
Posts: 1
Joined: October 12th, 2006, 12:29 pm

Help me building Quantlib on Vista, please...

September 22nd, 2007, 10:22 am

QuoteBTW Just out of curiosity, why are you using Vista?Cause i want ot use Visual, but in fact i hate using it.Concerning the installation of Quantlib, i can't make the examples work.I got this concerning the linking of quantlib :1>LINK : fatal error LNK1104: cannot open file 'QuantLib-vc80-mt-gd-0_8_1.lib'Daoud
 
User avatar
Cuchulainn
Posts: 23029
Joined: July 16th, 2004, 7:38 am

Help me building Quantlib on Vista, please...

September 22nd, 2007, 12:59 pm

QuoteOriginally posted by: Da0udQuoteBTW Just out of curiosity, why are you using Vista?Cause i want ot use Visual, but in fact i hate using it.Concerning the installation of Quantlib, i can't make the examples work.I got this concerning the linking of quantlib :1>LINK : fatal error LNK1104: cannot open file 'QuantLib-vc80-mt-gd-0_8_1.lib'DaoudThis is a NEW problem? You have solved the other one?
 
User avatar
Da0ud
Topic Author
Posts: 1
Joined: October 12th, 2006, 12:29 pm

Help me building Quantlib on Vista, please...

September 22nd, 2007, 2:17 pm

I understand the different problems now.In fact, i had to add the path to the libraries (for example the quantlib file in .lib).However, when i exectued the boost setup i thought everything had been done but there was no folder "/boost/bost1.4.31/lib". I think during the execution of the setup, this one didn't do that.I'm going to check runing again this setup.Thank u.daoud
 
User avatar
msperlin
Posts: 5
Joined: July 10th, 2006, 6:21 pm

Help me building Quantlib on Vista, please...

September 22nd, 2007, 5:09 pm

Quotemsperlinyou seem to be suggesting there is a FM in circulation. Where? For quantlib ?? You can find the QuantLib-docs-0.8.1.pdf at www.quantlib.org.
 
User avatar
Cuchulainn
Posts: 23029
Joined: July 16th, 2004, 7:38 am

Help me building Quantlib on Vista, please...

September 22nd, 2007, 6:31 pm

QuoteOriginally posted by: msperlinQuotemsperlinyou seem to be suggesting there is a FM in circulation. Where? For quantlib ?? You can find the QuantLib-docs-0.8.1.pdf at www.quantlib.org.Right, but I knew that. This is the kind of INSTALLATION I was referring to (it is idiot-proof(no offence intended), just follow step-by-step):QuoteDownload and Build the EmulatorFirst, download a copy of SIMH. The version I used for this documentation is version 2.10-4. Find a location for this software (I used /home/software) and make a directory for it.emulator:/home/software$ mkdir simhemulator:/home/software$ cd simhNext, unpack the software. Be careful; unlike most Unix tarballs, this .zip file expands in the context of the current directory rather than creating a named subdirectory underneath. So, be sure you're currently in the location where the software should be unpacked; otherwise, if you're not careful, you can wind up with a mess.emulator:/home/software/simh$ unzip -a ../simhv210-4.zipArchive: ../simhv210-4.zipinflating: 0readme_210.txtinflating: 0readme_ethernet.txt.. (lengthy output omitted). inflating: VAX/vax_sys.cinflating: VAX/vax_sysdev.cNow, build the VAX portion of the emulator. The build process puts things in a directory called BIN, and will fail if it doesn't already exist. In order to use Ethernet support, you also need to include USE_NETWORK in the build command, as follows:emulator:/home/software/simh$ mkdir BINemulator:/home/software/simh$ make USE_NETWORK=1 BIN/vaxgcc -O2 -lm -I . VAX/vax_cpu1.c VAX/vax_cpu.c VAX/vax_fpa.c VAX/vax_io.c VAX/vax_mmu.c VAX/vax_stddev.c VAX/vax_sys.c VAX/vax_sysdev.c PDP11/pdp11_rl.c PDP11/pdp11_rq.c PDP11/pdp11_ts.c PDP11/pdp11_dz.c PDP11/pdp11_lp.c PDP11/pdp11_tq.c PDP11/pdp11_pt.c PDP11/pdp11_xq.c scp.c scp_tty.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c -I VAX/ -I PDP11/ -DUSE_INT64 -DUSE_NETWORK -lpcap -o BIN/vaxAt this point, you've got the basic VAX emulator constructed. The application and its data need a home; I chose /usr/local/vax/bin and /usr/local/vax/data.emulator:/home/software/simh# mkdir /usr/local/vaxemulator:/home/software/simh# mkdir /usr/local/vax/binemulator:/home/software/simh# mkdir /usr/local/vax/dataAt this point, copy the VAX emulator binary into its new location:emulator:/home/software/simh# cp BIN/vax /usr/local/vax/binThe processor boot ROM (from the KA655 processor found in a MicroVAX 3900) is included with the SIMH package. Copy this into the data directory.emulator:/home/software/simh# cp VAX/ka655.bin /usr/local/vax/dataIn addition to the boot ROM, you'll need a couple of other files to get started. The file cd.iso contains an image of the OpenVMS Hobbyist CD-ROM. Create this using dd or your favorite ISO image extraction application. If you're using the dd command under Linux, the following command should create the required image (presuming your CD-ROM is named /dev/cdrom; substitute a different name if needed):emulator:/home/software/simh-data# dd if=/dev/cdrom of=cd.isoIn addition, you'll need an initialization file to set up the emulator unless you like typing the commands yourself. The commands below assume that these two files reside in a directory called /home/software/simh-data.emulator:/home/software/simh-data# cp cd.iso /usr/local/vax/dataemulator:/home/software/simh-data# cp vax.ini/usr/local/vax/dataThe contents of vax.ini should initially be as follows. Edit file paths as appropriate, of course.;
Last edited by Cuchulainn on September 21st, 2007, 10:00 pm, edited 1 time in total.
 
User avatar
amitk
Posts: 0
Joined: March 16th, 2007, 10:19 am

Help me building Quantlib on Vista, please...

April 4th, 2008, 11:34 am

HiI installed Quantlib-0.4.0 yesterday ; using VC++ 2005 Express Edition with WINDOWS XP. As against my expectations, it got installed without much hassles.I didn’t build TestSuite since I don’t have Microsoft Platform SDK (around 400 MB). These are the steps which worked out fine ;1) Download boost_1_33_1.exe from http://sourceforge.net/project/showfile ... up_id=7586 Extract it in C:\Program Files2) Download Visual C++ 2005 express, use this link : http://msdn.microsoft.com/vstudio/express/downloads/ If you need TestSuite, also download Windows Platform SDK.3) Downloaded Quantlib -0.4.0 from http://sourceforge.net/project/showfile ... p_id=12740 Unzip it in C:\Program Files4) Launch Visual studio 2005. By default, it will be in DEBUG mode. Click on File->Open ->Project/Solution5) Select file QuantLib_vc8.sln6) Select menu Tools->Options7) On the left panel select tree branch "Projects and Solution"8) Select subbranch "VC++ directories"9) Within "Show directories for:" , choose "Include Files" 10) Click newline button11) Enter C:\Program Files\boost_1_33_1 (assuming it was installed at C:\Program Files)12) Click OK13) On the left side Solution explorer, right-click on ‘TestSuite’ project & hit ‘Unload’ to remove it from compilation14) Press ‘Build’ . The compilation runs for about 20 minutes . //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////Then test for examples supplied with Quantlib as under;1) Goto C:\Program Files\Quantlib 0.4.0\Examples2) Click on the project file of each example. Example “Repo_vc8.vcproj”3) Hit ‘Build’ 4) Once built, select Debug --> Start Without Debugging ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////In order to include Quantlib in your individual projects;1) #include <ql/quantlib.hpp> in your test file (.cpp)2) However, the compiler needs to know the relevant path for Quantlib: - within the VC++ IDE, right-click on the project and choose "Properties"; - On the left panel, expand "Configuration Properties" > "C/C++" > "General" The first property is called "Additional Include Directories". Add the path C:\Program Files\QuantLib 0.4.0. - then expand "Configuration Properties" > "Linker" > "General". There's a property called "Additional Library Directories". Add the path C:\Program Files\QuantLib 0.4.0\lib //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////The program run might throw warnings for transform() deprecated . Warning number 4996.Such warnings can be disabled as under;Bring up the property pages for your project; under Configuration Properties > C/C++ > Advanced, add the warning number 4996 on the line "Disable Specific Warnings" or else, use #pragma warning(disable:4996) in source file above #include <ql/quantlib.hpp> .... (I tried it, but didn't always work)