GreycLab / CImg

The CImg Library is a small and open-source C++ toolkit for image processing
http://cimg.eu
Other
1.48k stars 282 forks source link

Library fails to compile on Linux? #326

Open ghost opened 3 years ago

ghost commented 3 years ago

I don't know why, but there's a LOT of undefined references to `XOpenDisplay'

dtschump commented 3 years ago

You have to link your executable against libX11 and libpthread, which means adding -lX11 -lpthread to the compilation command line (if you use g++). Otherwise, you may want to disable the display capabilities of CImg, by setting cimg_display=0.