Building QL using minwg and msys

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Building QL using minwg and msys

stephan buschmann
Hello everybody,
after building boost 1.55 with mingw I failed to build QL 1.0 on a windows machine.
Hopefully, someone can help me out.
 
Here is what I did:

Using MSYS and executing the following snippet in the folder of QL:
configure --with-boost-include=c:/boost_1_55_0 --prefix=c:/somepath
make

But unfortunately make throws an error:

$ make
cd . && /bin/sh /home/Administrator/QuantLib-1.0/config/missing --run autoconf
/c/MinGW/bin/autoconf-2.68: line 501: /mingw/bin/autom4te-2.68: No such file or directory
/c/MinGW/bin/autoconf-2.68: line 501: exec: /mingw/bin/autom4te-2.68: cannot execute: No such file or directory
make: *** [configure] Error 1

Does anyone uses mingw in order to build QuantLib? (Un)fortunately, I dont have VS available. So I am forced to use another compiler and environment.

Many thanks
Stephan


------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Building QL using minwg and msys

igitur
I'm sorry, but I can't help you with mingw. I have, however, built QuantLib successfully using the Code::Blocks IDE. In fact, I prefer it because of its lower memory usage, but debugging is more difficult. In Code::Blocks, you can choose which compiler you want to use, and you can still choose Microsoft C++ compiler. I think the standalone compiler is part of the Microsoft Windows SDK download.

And although I haven't tried it, isn't there a free version of Microsoft Visual C++ (Express?) available?

regards

Francois Botha

On 7 September 2014 23:23, stephan buschmann <[hidden email]> wrote:
Hello everybody,
after building boost 1.55 with mingw I failed to build QL 1.0 on a windows machine.
Hopefully, someone can help me out.
 
Here is what I did:

Using MSYS and executing the following snippet in the folder of QL:
configure --with-boost-include=c:/boost_1_55_0 --prefix=c:/somepath
make

But unfortunately make throws an error:

$ make
cd . && /bin/sh /home/Administrator/QuantLib-1.0/config/missing --run autoconf
/c/MinGW/bin/autoconf-2.68: line 501: /mingw/bin/autom4te-2.68: No such file or directory
/c/MinGW/bin/autoconf-2.68: line 501: exec: /mingw/bin/autom4te-2.68: cannot execute: No such file or directory
make: *** [configure] Error 1

Does anyone uses mingw in order to build QuantLib? (Un)fortunately, I dont have VS available. So I am forced to use another compiler and environment.

Many thanks
Stephan


------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users



------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Building QL using minwg and msys

Alexey
Hello !

After many research on many forums I am still having difficulties installing quantlib with codeblocks :(.

I have already installed Boost (but also minwg and msys if it is of any help) and i would really be grateful if you could tell how you have managed to install quantlib in code blocks, and how you did so without using mingw or msys :)

Many thanks

Alexey

Reply | Threaded
Open this post in threaded view
|

Re: Building QL using minwg and msys

stephan buschmann
Hello Alexey,
where did the problem occur exactly?
I managed to compile QL using codeblocks. It was not very difficult. But linking fails because there are too many object files in the project. Unfortunately I had no time to overcome this (hopefully) last barrier. The basic idead is to pass a text file to the linker containing all object files instead of passing all the single files as an argument.
 
Hope this helps,
stephan

 
On Sat, Sep 20, 2014 at 7:25 PM, Alexey <[hidden email]> wrote:
Hello !

After many research on many forums I am still having difficulties installing
quantlib with codeblocks :(.

I have already installed Boost (but also minwg and msys if it is of any
help) and i would really be grateful if you could tell how you have managed
to install quantlib in code blocks, and how you did so without using mingw
or msys :)

Many thanks

Alexey





--
View this message in context: http://quantlib.10058.n7.nabble.com/Building-QL-using-minwg-and-msys-tp15836p15897.html
Sent from the quantlib-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users


------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Building QL using minwg and msys

igitur
Hi,

QuantLib won't build on Code::Blocks out of the box. See this ticket: https://sourceforge.net/p/codeblocks/tickets/23/ - I think this problem also manifests on Dev-C++ IDE.

As a workaround, I created a separate compiler profile which builds up a response file ( http://support.microsoft.com/kb/40429/en-gb ) (the list of .obj files) and passes this file to the linker, instead of trying to link an incredibly long argument list. I think it's a terrible hack, but it works.

So what I did was:
  1. Install Code::Blocks and a working cygwin or babun environment (or anything with a bash interpreter) 
  2. Open it and go to Settings, Compiler
  3. Make a copy of Microsoft Visual C++ 2010 (or whichever version you have - I assume you do have MSVC++ compiler somewhere on your system) and call it Microsoft Visual C++ 2010 using response file
  4. Go to Other Settings | Advanced options and choose Link object files to static library (because we compile QuantLib as a static library
  5. Change the command line macro to:
    bash -c "/usr/bin/find $objects_output_dir -name '*.obj' > $objects_output_dir/objects_listing.txt"
    $lib_linker /lib /nologo $libdirs /out:$static_output $libs  $link_resobjects $link_options @"$objects_output_dir\objects_listing.txt"

  6. For the above macro to work, bash.exe must be somewhere in your PATH, or you have to specify the exact path to your bash.exe
  7. Save all that and import the QuantLib_vc10.sln solution.
  8. After successfully importing the solution, right-click on QuantLib project, Build options and choose the new 'Microsoft Visual C++ 2010 using response file' compiler option.
  9. You'll have to set a number of other compiler and linker flags to build the project too. I attach my .cbp file to assist you, but I don't claim it's 100% correct.
  10. Build QuantLib
This hack is required only for the QuantLib project. The other example projects and test suite should work using the usual MSVC++ compiler setup.

(Sorry, Stephan, I know I promised you this a while ago.)

But given all this effort, isn't it easier to try to get it working in Microsoft Visual Studio Express rather? The reason I used Code::Blocks was because I'm stranded with a low resource office PC and Code::Blocks is just more RAM efficient than VS. There are also other problems with the above approach, e.g. if objects are removed from the project, you'll have to clean the objects directory first or the linker might try to link it again.

regards

Francois Botha

On 25 September 2014 11:58, stephan buschmann <[hidden email]> wrote:
Hello Alexey,
where did the problem occur exactly?
I managed to compile QL using codeblocks. It was not very difficult. But linking fails because there are too many object files in the project. Unfortunately I had no time to overcome this (hopefully) last barrier. The basic idead is to pass a text file to the linker containing all object files instead of passing all the single files as an argument.
 
Hope this helps,
stephan

 
On Sat, Sep 20, 2014 at 7:25 PM, Alexey <[hidden email]> wrote:
Hello !

After many research on many forums I am still having difficulties installing
quantlib with codeblocks :(.

I have already installed Boost (but also minwg and msys if it is of any
help) and i would really be grateful if you could tell how you have managed
to install quantlib in code blocks, and how you did so without using mingw
or msys :)

Many thanks

Alexey





--
View this message in context: http://quantlib.10058.n7.nabble.com/Building-QL-using-minwg-and-msys-tp15836p15897.html
Sent from the quantlib-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users


------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users



------------------------------------------------------------------------------
Slashdot TV.  Videos for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users

QuantLib_vc10.cbp (183K) Download Attachment