Skip to content
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

/usr/local/include is not added to include path of rdsn in OS X Yosemite #7

Closed
duanmeng opened this issue Jun 3, 2015 · 3 comments
Closed

Comments

@duanmeng
Copy link

duanmeng commented Jun 3, 2015

Reproduce Steps

  1. follow the installation step in mac os x yosemite part of tutorials
  2. mkdir $RDSN/mybuilddir; cd mybuilddir; cmake .. -DCMAKE_INSTALL_PREFIX=/opt/rdsn
  3. sudo make install

Error Message

fatal error: 'boost/shared_ptr.hpp' file not found

My Analysis

  1. boost/shared_ptr.hpp is indeed in /usr/local/include of my mac
  2. it works fined in ubuntu 1404 LTS
  3. it seems /usr/local/include is not add to the rdsn project's include path

My Workaround

  1. add "include_directories(/usr/local/include" in function dsn_setup_include_path in $RDSN/bin/dsn.cmake
  2. sudo make install and it works fine

However IMHO they are neither root cause nor solution, I do not understand those var in dsn.cmake and how are they assigned/set.

@imzhenyu
Copy link
Contributor

imzhenyu commented Jun 3, 2015

Hi duanmeng,

Appreciate your great bug report! We don't have a Mac in hand, but we suspect it is highly possible that your Homebrew is not installed in the default directory. We will try later once we get access to a Mac. Meanwhile, you may also try cmake options like -DBOOST_INCLUDEDIR="c:\boost_1_57_0" -DBOOST_LIBRARYDIR="c:\boost_1_57_0\lib64-msvc-12.0" to see whether it works.

Thanks,
Zhenyu

@duanmeng
Copy link
Author

duanmeng commented Jun 3, 2015

Hi Zhengyu,

"-DBOOST_INCLUDEDIR=/usr/local/include" works!
And "BOOST_INCLUDEDIR:PATH=/usr/local/include" is inserted into $RDSN/mybuilddir/CMakeCache.txt.

Thanks
DuanMeng

@imzhenyu
Copy link
Contributor

imzhenyu commented Jun 3, 2015

Great to hear it works! :) Let us know if you have more issues~

@imzhenyu imzhenyu closed this as completed Jun 3, 2015
imzhenyu added a commit that referenced this issue Nov 12, 2015
meta_state_service_simple implementation & bugfix in rpc address_from…
imzhenyu pushed a commit that referenced this issue Nov 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants