{"action":"created","issue":{"url":"https://api.github.com/repos/TorontoDeepLearning/convnet/issues/30","labels_url":"https://api.github.com/repos/TorontoDeepLearning/convnet/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/TorontoDeepLearning/convnet/issues/30/comments","events_url":"https://api.github.com/repos/TorontoDeepLearning/convnet/issues/30/events","html_url":"https://github.com/TorontoDeepLearning/convnet/issues/30","id":53425568,"number":30,"title":"attempting to build cpu-only on OSX 10.10","user":{"login":"cmyr","id":3330916,"avatar_url":"https://avatars.githubusercontent.com/u/3330916?v=3","gravatar_id":"","url":"https://api.github.com/users/cmyr","html_url":"https://github.com/cmyr","followers_url":"https://api.github.com/users/cmyr/followers","following_url":"https://api.github.com/users/cmyr/following{/other_user}","gists_url":"https://api.github.com/users/cmyr/gists{/gist_id}","starred_url":"https://api.github.com/users/cmyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmyr/subscriptions","organizations_url":"https://api.github.com/users/cmyr/orgs","repos_url":"https://api.github.com/users/cmyr/repos","events_url":"https://api.github.com/users/cmyr/events{/privacy}","received_events_url":"https://api.github.com/users/cmyr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-05T18:17:07Z","updated_at":"2015-01-06T08:01:38Z","closed_at":null,"body":"Been playing around with this a little bit and wanted to open an issue in case anyone else is doing the  same. This assumes you're using [homebrew](http://brew.sh). \r\n\r\ncurrent progress:\r\n\r\n- openCV must be version 3.0. by default homebrew installs 2.4.9; this can be fixed by doing `brew uninstall opencv && brew install --devel opencv`.\r\n\r\n- you apparently need to run make in convnet/eigenmat before convnet/apps/cpu\r\n\r\n- you need to add the following two arguments to your makefile's CPPFlags: ` -D_XOPEN_SOURCE=600  -D_DARWIN_C_SOURCE` \r\n\r\n- as part of the transition away from gcc, OSX now ships with both /usr/bin/gcc and /usr/bin/g++ symlined to clang. You need to download gcc (homebrew, again) and then either specify the correct compiler in your makefile (probably best, but i'm not sure quite how this works) or else modify your path so that you're pointing at the correct gcc/g++.\r\n\r\n- you may need to explicitly add `#include <stdlib.h>` to the top of CPUMatrix.h\r\n\r\n- you need to manually link in the X11 headers (assumes you have xcode + the command line tools installed) `ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/X11/ /usr/local/include/X11`\r\n\r\n\r\n\r\nnow however I'm getting a bunch of errors in Cimg: \r\n\r\n```../..//deps/CImg/CImg.h: In constructor 'cimg_library::cimg::X11_info::X11_info()':\r\n../..//deps/CImg/CImg.h:2527:22: error: 'XInitThreads' was not declared in this scope\r\n         XInitThreads();\r\n                      ^\r\n../..//deps/CImg/CImg.h: In static member function 'static int cimg_library::CImgDisplay::screen_width()':\r\n../..//deps/CImg/CImg.h:7308:45: error: 'XOpenDisplay' was not declared in this scope\r\n         Display *const _dpy = XOpenDisplay(0);\r\n                                             ^\r\n../..//deps/CImg/CImg.h:7312:27: error: 'XCloseDisplay' was not declared in this scope\r\n         XCloseDisplay(_dpy);```\r\n\r\nI'm going to step away for a bit, but if anyone else has gotten this working I'd be happy to hear from you."},"comment":{"url":"https://api.github.com/repos/TorontoDeepLearning/convnet/issues/comments/68836647","html_url":"https://github.com/TorontoDeepLearning/convnet/issues/30#issuecomment-68836647","issue_url":"https://api.github.com/repos/TorontoDeepLearning/convnet/issues/30","id":68836647,"user":{"login":"avdmitry","id":8440623,"avatar_url":"https://avatars.githubusercontent.com/u/8440623?v=3","gravatar_id":"","url":"https://api.github.com/users/avdmitry","html_url":"https://github.com/avdmitry","followers_url":"https://api.github.com/users/avdmitry/followers","following_url":"https://api.github.com/users/avdmitry/following{/other_user}","gists_url":"https://api.github.com/users/avdmitry/gists{/gist_id}","starred_url":"https://api.github.com/users/avdmitry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avdmitry/subscriptions","organizations_url":"https://api.github.com/users/avdmitry/orgs","repos_url":"https://api.github.com/users/avdmitry/repos","events_url":"https://api.github.com/users/avdmitry/events{/privacy}","received_events_url":"https://api.github.com/users/avdmitry/received_events","type":"User","site_admin":false},"created_at":"2015-01-06T08:01:38Z","updated_at":"2015-01-06T08:01:38Z","body":"@cmyr,\r\n\r\nto avoid errors with X11 & Cimg you can try to use PR: https://github.com/TorontoDeepLearning/convnet/pull/16 (it has not been merged yet) It completely replace CImg with opencv."}}