Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Problem including X11 in XCode.
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="CosmicQuahog" data-source="post: 1503451" data-attributes="member: 297729"><p>I am using XCode and a library called CImg which uses X11. When I run this program:</p><p>include "CImg.h"</p><p>using namespace cimg_library;</p><p>int main() { </p><p>CImg image("snail.bmp"); </p><p>}</p><p></p><p>I get these errors:</p><p></p><p>Undefined symbols: "_XUnlockDisplay", referenced from:</p><p>"_XGetVisualInfo", referenced from: cimg_library::CImgDisplay::_assign(unsigned int, unsigned int, char const*, unsigned int, bool, bool)in main.o</p><p>"_XStoreColors", referenced from: cimg_library::CImgDisplay::_set_colormap(unsigned long&, unsigned int)in main.o</p><p>etc.</p><p></p><p>I think XCode doesn't know where my X11 is, and to be honest I'm not sure I've installed it correctly. I think it is supposed to be in opt/X11 but I don't see it.</p><p>Any idea of how to fix this?</p></blockquote><p></p>
[QUOTE="CosmicQuahog, post: 1503451, member: 297729"] I am using XCode and a library called CImg which uses X11. When I run this program: include "CImg.h" using namespace cimg_library; int main() { CImg image("snail.bmp"); } I get these errors: Undefined symbols: "_XUnlockDisplay", referenced from: "_XGetVisualInfo", referenced from: cimg_library::CImgDisplay::_assign(unsigned int, unsigned int, char const*, unsigned int, bool, bool)in main.o "_XStoreColors", referenced from: cimg_library::CImgDisplay::_set_colormap(unsigned long&, unsigned int)in main.o etc. I think XCode doesn't know where my X11 is, and to be honest I'm not sure I've installed it correctly. I think it is supposed to be in opt/X11 but I don't see it. Any idea of how to fix this? [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Problem including X11 in XCode.
Top