http://pcdtojpeg.sourceforge.net/Installing.html
La documentazione dice che è necessaria l'installazione preliminare di build-essential
Codice: Seleziona tutto
The process that you will need to follows will vary depending of your operating system, but will be similar to the following example, which is for Ubuntu Linux:
Note: Unlike almost all other Linux distributions, Ubuntu does not by default install GCC. If you haven’t yet done so, you need to use the Synaptic Package Manager (or apt get) to install the “build-essential” package prior to trying to compile pcdtojpeg.
1.Download pcdtojpeg.
2.Unzip the distribution file. Usually, you can do that by double clicking on the zip file you downloaded
3.Open a terminal in the “src” directory of the unzipped distribution file.
4.Compile the source code by using the following command:
g++ main.cpp pcdDecode.cpp -ljpeg -lpthread -o pcdtojpeg
5.Copy the resulting pcdtojpeg executable file to any convenient location.
6.In order to compile without the q library, use the following command:
g++ main.cpp pcdDecode.cpp -DmNoPThreads -ljpeg -o pcdtojpeg
Once you have done this, pcdtojpeg is ready to go. Using pcdtojpeg is described on the Usage page.Già che ci siamo installo anche libpthread-stubs0
Dopo avere scaricato e unzippato i file di installazione, apro il terminale e accedo alla cartella src della directory di pdftojpeg e provo a lanciare l'installazione:
Codice: Seleziona tutto
moses@moses:~$ cd /home/moses/Scaricati/pcdtojpeg_1_0_10/src
moses@moses:~/Scaricati/pcdtojpeg_1_0_10/src$ g++ main.cpp pcdDecode.cpp -ljpeg -lpthread -o pcdtojpeg
main.cpp:83:21: fatal error: jpeglib.h: File o directory non esistente
compilation terminated.Codice: Seleziona tutto
moses@moses:~/Scaricati/pcdtojpeg_1_0_10/src$ g++ main.cpp pcdDecode.cpp -DmNoPThreads -ljpeg -o pcdtojpeg
main.cpp:83:21: fatal error: jpeglib.h: File o directory non esistente
compilation terminated.
Grazie per i suggerimenti

