
Hi all! I'm developping an application using boost on MAC OS X, using CMake as system compiler. I succesfully built the same application with CMake on windows and it works fine. But on Mac OS, the build fails. It sounds like CMake failed finding boost include directory. I tried the bjam command : bjam --builddir=anydir --toolset=gcc --with-some_boost_lib install. I got libs but it skipps creating any directory on /usr/local/. If anyone succeeded on installing boost properly in /usr/loal... please help. One more thing, since I'm using CMake, I can't use boost version later than 1.36.0. Thanks to all.

One more thing, since I'm using CMake, I can't use boost version later than 1.36.0.
I assume that you are using the "FindBoost.cmake" along with the "find_package" command to locate and include/link boost? If so, you can add: set(Boost_ADDITIONAL_VERSIONS "1.37.0" "1.37" ) to your CMakeLists.txt file. This will allow you to locate and use 1.37. Do the same kind of thing for other versions of boost. I am sucessfully including and linking to boost 1.37 on Mac OSX with CMake. I have boost installed in a user location (not /user/local) but it should work there too. James

AMDG rolf ngondo wrote:
I'm developping an application using boost on MAC OS X, using CMake as system compiler. I succesfully built the same application with CMake on windows and it works fine. But on Mac OS, the build fails. It sounds like CMake failed finding boost include directory. I tried the bjam command : bjam --builddir=anydir --toolset=gcc --with-some_boost_lib install. I got libs but it skipps creating any directory on /usr/local/. If anyone succeeded on installing boost properly in /usr/loal... please help.
Is this a permissions issue? If bjam fails to create any directory then it skips creating all subdirectories. Look for the first line that begins with ...failed In Christ, Steven Watanabe

Hi all!
Steven were right. It was a permission issue. Know boost is installed in
/usr/local but CMake is still failling to find boost_1_37_0 include
directory.
James suggested me to set set(Boost_ADDITIONAL_VERSIONS "1.37.0" "1.37" ) in
the CMakeLists. I did it, but it is the same.
Is this possible to use XCode with CMake?
2009/1/26 Steven Watanabe
AMDG
rolf ngondo wrote:
I'm developping an application using boost on MAC OS X, using CMake as system compiler. I succesfully built the same application with CMake on windows and it works fine. But on Mac OS, the build fails. It sounds like CMake failed finding boost include directory. I tried the bjam command : bjam --builddir=anydir --toolset=gcc --with-some_boost_lib install. I got libs but it skipps creating any directory on /usr/local/. If anyone succeeded on installing boost properly in /usr/loal... please help.
Is this a permissions issue? If bjam fails to create any directory then it skips creating all subdirectories. Look for the first line that begins with ...failed
In Christ, Steven Watanabe
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

On Jan 27, 2009, at 1:48 AM, rolf ngondo wrote:
Hi all! Steven were right. It was a permission issue. Know boost is installed in /usr/local but CMake is still failling to find boost_1_37_0 include directory. James suggested me to set set(Boost_ADDITIONAL_VERSIONS "1.37.0" "1.37" ) in the CMakeLists. I did it, but it is the same. Is this possible to use XCode with CMake?
You can use CMake to generate XCode project files: cmake -G Xcode [path to project] As for finding boost with cmake, you might want to go to http://www.cmake.org/cmake/help/cmake2.6docs.html and search for "boost" - that will give you some tips. James

Hi!
I solved my problem related to finding boost include directory.
I use XCode and I set the search paths to the wanted directories.
Thanks to all for your suggestions.
2009/1/27 James C. Sutherland
On Jan 27, 2009, at 1:48 AM, rolf ngondo wrote:
Hi all!
Steven were right. It was a permission issue. Know boost is installed in /usr/local but CMake is still failling to find boost_1_37_0 include directory. James suggested me to set set(Boost_ADDITIONAL_VERSIONS "1.37.0" "1.37" ) in the CMakeLists. I did it, but it is the same. Is this possible to use XCode with CMake?
You can use CMake to generate XCode project files: cmake -G Xcode [path to project]
As for finding boost with cmake, you might want to go to http://www.cmake.org/cmake/help/cmake2.6docs.html and search for "boost" - that will give you some tips.
James
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (3)
-
James C. Sutherland
-
rolf ngondo
-
Steven Watanabe