TorontoDeepLearning / convnet

A GPU implementation of Convolutional Neural Nets in C++
BSD 2-Clause "Simplified" License
506 stars 229 forks source link

attempting to build cpu-only on OSX 10.10 #30

Open cmyr opened 9 years ago

cmyr commented 9 years ago

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.

current progress:

now however I'm getting a bunch of errors in Cimg:

../..//deps/CImg/CImg.h: In constructor 'cimg_library::cimg::X11_info::X11_info()': ../..//deps/CImg/CImg.h:2527:22: error: 'XInitThreads' was not declared in this scope XInitThreads(); ^ ../..//deps/CImg/CImg.h: In static member function 'static int cimg_library::CImgDisplay::screen_width()': ../..//deps/CImg/CImg.h:7308:45: error: 'XOpenDisplay' was not declared in this scope Display *const _dpy = XOpenDisplay(0); ^ ../..//deps/CImg/CImg.h:7312:27: error: 'XCloseDisplay' was not declared in this scope XCloseDisplay(_dpy);

I'm going to step away for a bit, but if anyone else has gotten this working I'd be happy to hear from you.

avdmitry commented 9 years ago

@cmyr,

to 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.