Тёмный

[Environment Setup 9] Build GNU Scientific Library using Make 

TuxRiders
Подписаться 3,2 тыс.
Просмотров 6 тыс.
50% 1

After learning how building programs from source code works in Linux, let’s try it in action for a real case. In this video, we build GNU Scientific Library (GSL) as an example for configuring and building scientific libraries, and then, we create and compile a simple program that utilizes the ease-of-use of GSL to compute the Bessel function of a value.
Commands and Materials:
In order to follow the videos more efficiently and reproduce the workflows, you may need the list of commands we have executed in each video. You can find the lists at tuxriders.com/v... and github.com/Tux...
Topics covered:
🎯 Configuring downloaded source codes using configure script
🎯 Building GSL into a standalone library file using GNU Make
🎯 Building a simple scientific program to compute Bessel function (concept of -I switch)
🎯 Linking the compiled program to GSL library (concept of -L switch)
🎯 Difference between static and shared libraries
🎯 Configuring the system to find shared libraries for programs at runtime (LD_LIBRARY_PATH)
Links:
GSL usage documentation: www.gnu.org/so...
Lecturer: Mojtaba Barzegari mbarzegary.git...
To learn more about the goals of the TuxRiders project, please visit our website at tuxriders.com.

Опубликовано:

 

20 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 25   
@Maxime-fo8iv
@Maxime-fo8iv 2 года назад
Thanks a lot, I had trouble compiling and your video helped me fix the problem!
@TuxRiders
@TuxRiders 2 года назад
Glad it helped!
@pedrolinscosta
@pedrolinscosta 2 года назад
Thank you so much mate!!!! You are a genius!!! You saved me right here!!!!
@TuxRiders
@TuxRiders 2 года назад
You are very welcome :)
@zazinjozaza6193
@zazinjozaza6193 2 года назад
Useful, thanks
@TuxRiders
@TuxRiders 2 года назад
Glad you think so :)
@joaopaulopinheiro258
@joaopaulopinheiro258 2 года назад
Very good man. I'm having a problem to do a make with gsl library. Always appears this warning ( undefined reference to 'gsl_xxx'). Do u know why this happens?
@TuxRiders
@TuxRiders 2 года назад
if you are sure that the path to the lib is correctly defined for the linker (using the -L flag), your problem might be similar to what happened in the video at 17:50, which was actually related to the order of parameters for the linker.
@joaopaulopinheiro258
@joaopaulopinheiro258 2 года назад
@@TuxRiders So, I'm running fine gsl with files with the command -Lflag, the only problem is using the make. Is it possible to introduce those flags when Im executing a make in the same way that I execute gcc ?
@TuxRiders
@TuxRiders 2 года назад
@@joaopaulopinheiro258 ah, I see. yes, of course you can. the standard way of doing that is to define the -L flag in a variable called "LDFLAGS" and pass it to the linker. alternatively, some people prefer to do it using the "CCFLAGS" or "CXXFLAGS" to pass it directly to the compiler though it is less standard. you may have a look at some sample Makefiles to see how these variables are defined and used.
@joaopaulopinheiro258
@joaopaulopinheiro258 2 года назад
@@TuxRiders Thanks! I will try it.
@rafaellaube
@rafaellaube 2 месяца назад
Thanks!
@TuxRiders
@TuxRiders Месяц назад
Welcome!
@aayushgupta6681
@aayushgupta6681 2 года назад
I am currently running Windows, I have installed GitBash to run Linux commands .... But still when I try doing EXACTLY the same way you are doing , when I call "MAKE" it starts to show an error "usr/bin/sh" not found ``$ make C:/Program Files/Git/mingw64/bin/make.exe all-recursive make[1]: Entering directory 'C:/Users/Hp/Desktop/gsl/gsl-2.7.1' Making all in gsl /usr/bin/sh: line 21: C:/Program: No such file or directory make[1]: *** [Makefile:987: all-recursive] Error 1 make[1]: Leaving directory 'C:/Users/Hp/Desktop/gsl/gsl-2.7.1' make: *** [Makefile:684: all] Error 2`` Please help me , I am struggling with GSL from quite sometime .... Thanks in advance
@TuxRiders
@TuxRiders 2 года назад
sorry, I've never tried to build GSL on Windows, so I don't know where the error comes from. on Windows, you may go for using either WSL or MSYS, in which I guess you can almost use the same approach described in this video for building GSL on Windows. you can find more about these techniques in ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-iVMCpHjL7RY.html and ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Qwmq9PkmrKI.html.
@_eevee396
@_eevee396 Год назад
THANK YOUUUUUUUUUUUUUUUUUUUUUU
@TuxRiders
@TuxRiders Год назад
you're welcome :)
@김경선-c6i
@김경선-c6i Год назад
very useful!
@TuxRiders
@TuxRiders Год назад
thanks :)
@sphericalharmonicsl2764
@sphericalharmonicsl2764 9 месяцев назад
THANK YYOUU
@TuxRiders
@TuxRiders 9 месяцев назад
My pleasure :)
@abhishek-xv5ow
@abhishek-xv5ow 2 года назад
Useful :)
@TuxRiders
@TuxRiders 2 года назад
Glad you think so!
@MesbahSalekeen
@MesbahSalekeen 2 года назад
any way to do it in windows
@TuxRiders
@TuxRiders 2 года назад
yes, using WSL (ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-iVMCpHjL7RY.html) or MSYS2 (ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Qwmq9PkmrKI.html). the example built in these videos is CGAL, but you can use the same principle to build GSL.
Далее
Распаковка Monster High Potions №4
00:46
Просмотров 50 тыс.
Why Are Open Source Alternatives So Bad?
13:06
Просмотров 638 тыс.
Introduction to Compiling for Linux with gcc
30:40
Просмотров 24 тыс.
Simplified CMake Tutorial
27:47
Просмотров 118 тыс.
I Wrote HTTP "From Scratch" (It Was Easy)
19:07
Просмотров 84 тыс.
7 Essential Command Line Tools (2022)
9:12
Просмотров 212 тыс.
Never install locally
5:45
Просмотров 1,8 млн