How to build GSL with msvc2010?

后端 未结 2 2101
渐次进展
渐次进展 2020-12-14 03:27

I\'m working with Qt 4.8.3 and QtCreator, which I\'ve compiled with msvc2010 as per the instructions here. Now however I need to link to GSL (Gnu Scientific Library), but c

相关标签:
2条回答
  • 2020-12-14 03:53

    I have implemented CMake build support for GSL here: https://github.com/ampl/gsl

    CMake can either generate a Visual Studio solution or NMake makefiles. For example:

    > git clone git://github.com/ampl/gsl.git
    > cd gsl
    > cmake .
    -- Building for: Visual Studio 10
    -- Check for working C compiler using: Visual Studio 10
    -- Check for working C compiler using: Visual Studio 10 -- works
    ...
    

    This generates the solution (GSL.sln) and project files for Visual Studio 2010.

    This CMake build script is now included in the contrib directory of the GSL Git repository git://git.savannah.gnu.org/gsl.git.

    As of May 2014, building shared libraries (DLLs) is supported as well with GSL_SHARED option.

    0 讨论(0)
  • 2020-12-14 03:58

    You can use CMake and create your own build from this repository for whatever Visual Studio version you are using. Check out the answer by @vitaut for more details.

    0 讨论(0)
提交回复
热议问题