QT5+mingw(msys)編譯 GNU科學研究用函式庫(英語:GSL – GNU Scientific Library)
QT5+mingw(msys)編譯 GNU科學研究用函式庫(英語:GSL – GNU Scientific Library)
資料來源: https://blog.csdn.net/ouening/article/details/100101955
https://www.youtube.com/watch?v=YhqWGo9MZU4
相關GITHUB: https://github.com/jash-git/WIN10-QT5-msys
GITHUB: https://github.com/jash-git/QT5-mingw-msys-GNU_GSL
★ WINDOWS環境下使用mingw(msys)編譯 LINUX開源(開放原始碼)函示庫
intro.c
#include <stdio.h> #include <gsl/gsl_sf_bessel.h> int main (void) { double x = 5.0; double y = gsl_sf_bessel_J0 (x); printf ("J0(%g) = %.18e\n", x, y); return 0; }
msys.sh
jashliao@DESKTOP-FCDO4MS ~ $ cd C:\gsl-2.5 jashliao@DESKTOP-FCDO4MS /c/gsl-2.5 $ ls jashliao@DESKTOP-FCDO4MS /c/gsl-2.5 $ ls -l jashliao@DESKTOP-FCDO4MS /c/gsl-2.5 $ ./configure jashliao@DESKTOP-FCDO4MS /c/gsl-2.5 $ make -j8 jashliao@DESKTOP-FCDO4MS /c/gsl-2.5 $ make install jashliao@DESKTOP-FCDO4MS /c/gsl-2.5 $ cd doc/examples/ jashliao@DESKTOP-FCDO4MS /c/gsl-2.5/doc/examples $ g++ intro.c -I"C:\Qt\Qt5.12.11\Tools\mingw730_64\msys\local\include" -L"C:\Qt\Qt5.12.11\Tools\mingw730_64\msys\local\ lib" -lgsl -lgslcblas jashliao@DESKTOP-FCDO4MS /c/gsl-2.5/doc/examples $ ls -al jashliao@DESKTOP-FCDO4MS /c/gsl-2.5/doc/examples $ ./a.exe J0(5) = -1.775967713143382600e-001 jashliao@DESKTOP-FCDO4MS /c/gsl-2.5/doc/examples $
結果_截圖(msys_gsl2.5.log)
2 thoughts on “QT5+mingw(msys)編譯 GNU科學研究用函式庫(英語:GSL – GNU Scientific Library)”
我終於學會 如何在WINDOWS下 使用開源工具 自行編譯 特定的C/C++ 函式庫 了
有需要請自取,超爽的
WINDOWS下 mingw(msys)編譯 open source code library