pcdtojpeg doesn’t require installation as such. The distribution package contains executables for both Windows and OS X that you can use immediately. For other operating systems, e.g., Linux, unless your distribution already includes pcdtojpeg, you will have to compile pcdtojpeg from source. But don’t panic, it’s easy.
 
Here’s what you need to do for each of Windows, OS X and Linux, etc.:
 
Windows
  1. 1.Download pcdtojpeg.
  2. 2.Unzip the distribution file. Usually, you can do that by double clicking on the zip file you downloaded
  3. 3.Copy the pcdtojpeg files from the “Binaries/Windows” directory of the unzipped distribution file to any convenient location.
  4.  
Once you have done this, pcdtojpeg is ready to go. Using pcdtojpeg is described on the Usage page.
 
OS X
  1. 1.Download pcdtojpeg.
  2. 2.Unzip the distribution file. Usually, you can do that by double clicking on the zip file you downloaded
  3. 3.Copy the pcdtojpeg files from the “Binaries/OS X” directory of the unzipped distribution file to any convenient location.
  4.  
Once you have done this, pcdtojpeg is ready to go. Using pcdtojpeg is described on the Usage page.
 
 
Other Operating Systems
pcdtojpeg can be compiled for just about every operating system that has the following:
  1. 1.A C++ compiler that conforms to C99 (e.g., GCC). Specifically, stdint.h must be implemented.
  2. 2.The IJG’s libjpeg library, written by Thomas Lane. This is standard on virtually all *nix and Linux distributions.
  3.  
In addition, by default pcdtojpeg uses the pthreads library for multithreading. However, it not a requirement. If your system either doesn’t support pthreads, or you don’t want multithreading, you can compile pcdtojpeg without pthreads support by defining the mNoPThreads symbol.
 
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:
  1. 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.
  2. 1.Download pcdtojpeg.
  3. 2.Unzip the distribution file. Usually, you can do that by double clicking on the zip file you downloaded
  4. 3.Open a terminal in the “src” directory of the unzipped distribution file.
  5. 4.Compile the source code by using the following command:
  6. g++ main.cpp pcdDecode.cpp -ljpeg -lpthread -o pcdtojpeg
  7. 5.Copy the resulting pcdtojpeg executable file to any convenient location.
  8. 6.In order to compile without the pthread library, use the following command:
  9. 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.
 
 
  1.  
 
Installing pcdtojpeg