I added X11 to my header search paths, library search paths, and I linked the binary to the X11 library in the build settings and build phases in XCode however I am still getting the errors shown in the picture below. I am 99.999% Sure the problem is X11 because when I disable the display capabilities the warnings aren't there. Any ideas on what I can do next?
相关问题
- Xcode debugger displays incorrect values for varia
- Is there a way to report errors in Apple documenta
- Image loads in simulator but not device?
- Advice for supporting both Mac and Windows Desktop
- importing files from other directories in xcode
相关文章
- 现在使用swift开发ios应用好还是swift?
- Visual Studio Code, MAC OS X, OmniSharp server is
- xcode 4 garbage collection removed?
- IntelliJ IDEA can't open projects or add SDK o
- Automator: How do I use the Choose from List actio
- Xcode: Is there a way to change line spacing (UI L
- Unable to process app at this time due to a genera
- ImportError: No module named twisted.persisted.sty
I think you have your build settings a little incorrect. Here is a very simple program to get you started - you can choose to display PNG, TIFF or JPEG files by using
libpng
,libtiff
orlibjpeg
which I am assuming you have installed using homebrew with:Here is the code:
The only build settings needed are as follows:
and
The
/Users/mark/src/CImg
one is for theCImg.h
header file I manage withgit
, keeping it in sync with theCImg
distribution on GitHub.Note the following:
CImg can read NetPBM (PGM/PBM/PPM and actually PFM) images without any extra code or libraries or dependencies
CImg can read TIFF, PNG, JPEG without needing ImageMagick if you
#define cimg_use_tiff
or#define cimg_use_png
or#define cimg_use_jpeg
as long as you set the include path the library path and the library names as I have shown above.CImg can read anything that ImageMagick can read if you install that package.