Ok just a simple question. I am programming in Visual C++ on Windows and for learning purposes have changed to Ubuntu and started in Code::Blocks, CodeLite and Eclipse. I have written some simple program using SDL2
and GLEW
to make a simple OpenGL application based on SDL2
windowing. I have downloaded libraries with commands:
sudo apt-get install...
My main question is: since this application is rellying on external libraries (SDL2
, glew
, flu
, OIS
), it doesn't work on other linux computers. After you install all those libraries using terminal commands then the program works otherwise will not execute. My question is, is it possible to build program that will not need to have those libraries installed. For example, on Windows you link your program to SDL2.lib
and include SDL2.dll
in .exe
folder. How can I do that on linux. I have very little experience with linux programming and how stuff works, so I hope it's just a basic problem. :)
LD_LIBRARY_PATH
isn't really intended to be used for packaging, I'd only use it when where are no other options (like embedded systems with read-only root partition). – Holmgren