76
Quake / Re: r1q2 how to compile - linux?
« on: August 02, 2019, 09:54:18 AM »
Yep. You need the development libs for libjpeg and libpng.
The first error was because you don't have the header for png file format and its stuctures.
The second error was because you don't have the info for jpeg files.
sudo apt-get update
sudo apt-get upgrade
Then use your package manager to install the development libraries for libjpeg and libpng. These are not just the application libs but they are the libs and headers just like you installed for the OpenGL.
Note: you can generally ignore warnings in the compiler output during make, the r1q2 code is getting a bit old and the compilers complain about usages that used to pass without warning but ERRORS are what you want to watch for and fix their causes.
Once you have updates, I recommend you 'make clean' and 'make'. You don't want old *.o files laying around.
The first error was because you don't have the header for png file format and its stuctures.
The second error was because you don't have the info for jpeg files.
sudo apt-get update
sudo apt-get upgrade
Then use your package manager to install the development libraries for libjpeg and libpng. These are not just the application libs but they are the libs and headers just like you installed for the OpenGL.
Note: you can generally ignore warnings in the compiler output during make, the r1q2 code is getting a bit old and the compilers complain about usages that used to pass without warning but ERRORS are what you want to watch for and fix their causes.
Once you have updates, I recommend you 'make clean' and 'make'. You don't want old *.o files laying around.