-
Notifications
You must be signed in to change notification settings - Fork 561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building on os x 10.11.3 el capitan #70
Comments
hi @DeeperX OSX is not a supported platform, only Ubuntu 14.04LTS is at the moment. However, any patch and fixes that you can submit and that do not break the reference platform builds are highly welcome and are to be brought into the codebase, yes. |
Also, have you tried |
Hey @beniz Yes, I've did triy that but still had no chance. I can send a patch but I can't validate whether it would work on ubuntu or no. |
Great please do open a PR with description and usage example or send a patch if you cannot do otherwise, I can do the checking against the reference platform. |
Not sure where you are at with this one @DeeperX but a workaround to move a step further on OSX could be edit |
Also please look at http://stackoverflow.com/questions/5922016/cmake-cant-find-eigen3 |
Doing this leads me to -
I couldn't find deepdetect_detect_darwin_version() in the repository, does this come from some other repo? |
I see a similar function in |
The functions deepdetect_detect_darwin_version() and deepdetect_option() can't be found while executing cmake .. I have used @beniz suggestions pertaining to this https://github.com/beniz/deepdetect/issues/70#issuecomment-227422068 to fix that.
I took deepdetect_detect_darwin_version() & deepdetect_option() from /caffe/cmake/Utils.cmake and put them in deepdetect/cmake/Cuda.cmake. This gives me a successful execution of
This is the output of cmake - http://pastebin.com/hvFSmwrV make gives the following errors - http://pastebin.com/FJpPZuAP All the errors seem to be of the type - Any suggestion about what I could try? |
Thanks for pushing this further. I'll be honest, this looks bad. It comes from our custom https://github.com/beniz/caffe/blob/master/include/caffe/llogging.h Can you try replacing EDIT: beware that Caffe is downloaded when calling |
Thanks for replying. Could it be related to not having some library not being installed or configured properly or related to eigen in some way? |
So the difficulty appears to be with compiling our custom version of Caffe, available here: https://github.com/beniz/caffe/tree/master_dd_integ FYI, this version replaces the fatal errors from original Caffe with C++ exception that can be safely caught by dd. If you would like to dig this further, you can try to directly compile the github repository above. I will try to replicate your issue by building it up with clang and let you know. |
So, I cannot reproduce your error with |
I've started using an ec2 instance but I'll try this later. Thanks |
@neo01124 I had a similar issue on Ubuntu, which was related to Eigen being header only (and as such a cmake file not being needed). I overcame the issue by changing the CMakeLists.txt to:
Hope this helps! |
Hi, this is strange that you would have an issue with Eigen on Ubuntu, unless you are using your own local version, or that there's a conflict due to Tensorflow build. I'll check on that particular case later on today though AFAIK all our daily builds are fine. Is your patch for OSX ? I'm not sure I understand the KDE4 include ? I'm all in favor of a community supported OSX build. If your changes help with OSX you may be interested to build upon #153 and re-PR as needed with building instructions. If you are building on another platform, let me know which one. |
Same problem on : Distributor ID: Ubuntu |
see whether #75 applies |
I am sure I can easily fix the problem by adding the FindEIGEN3 file which is missing in /usr/share... path. I want to find a clean install solution and also find a root cause. |
AFAIK root cause is cmake3 not including FindEigen whereas cmake2 did. |
Looks like cmake 3.x changed the syntax for modules and FindEIGEN3 was dropped in favor of pkg_config. I fixed the problem on Ubuntu 14.04.5 LTS - here is the PR. |
Using compile time casting rather than runtime casting avoids the problem noted earlier -
Deepdetect on darwin works using our caffe which is the latest caffe release. Updating deepdetect's caffe is a bit more involved. Let me know if there is still interest in supporting deepdetect on OS X. |
Hi, thanks. There will not be professional support for OSX. However, if they are small enough, non impacting changes, that would simplify the building on OSX, we would of course integrated them into master. |
@beniz thanks for the feedback. What are the issues with the latest caffe on DD? We don't need support nor are we looking to run on OS X but if others are interested in it, we can update our fork. |
OS X support will be good actually, however someone can run it through a container as well. |
No troll intended, but from our experience, OSX support would be hell :) More seriously, see my comment above for inclusion of non impacting changes. Also, if some of you are successfully running the docker builds from OSX, please let us know so that we can point to a short documentation. |
When try to build as:
cmake gives the following error:
_CMAKE_MODULE_PATH set to:_
It completely does not respect the path being set as described in the message. Such as: While
CMAKE_MODULE_PATH
is set to homebrew`s eigen cmake file directory, it does not respect that.Can I send a bug fix for this?
The text was updated successfully, but these errors were encountered: