Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
2cab4c5d
Commit
2cab4c5d
authored
May 25, 2015
by
Davis King
Browse files
Added messages saying how to install Boost on UNIX systems if it isn't
installed already.
parent
5cfff271
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
23 deletions
+40
-23
dlib/add_python_module
dlib/add_python_module
+40
-23
No files found.
dlib/add_python_module
View file @
2cab4c5d
...
@@ -15,6 +15,11 @@
...
@@ -15,6 +15,11 @@
option(PYTHON3 "Build a Python3 compatible library rather than Python2." OFF)
option(PYTHON3 "Build a Python3 compatible library rather than Python2." OFF)
# Avoid cmake warnings about changes in behavior of some Mac OS X path
# variable we don't care about.
if (POLICY CMP0042)
cmake_policy(SET CMP0042 NEW)
endif()
#SET(Boost_USE_STATIC_LIBS OFF)
#SET(Boost_USE_STATIC_LIBS OFF)
#SET(Boost_USE_MULTITHREADED ON)
#SET(Boost_USE_MULTITHREADED ON)
...
@@ -37,7 +42,8 @@ else()
...
@@ -37,7 +42,8 @@ else()
FIND_PACKAGE(Boost 1.41.0 COMPONENTS python REQUIRED)
FIND_PACKAGE(Boost 1.41.0 COMPONENTS python REQUIRED)
FIND_PACKAGE(PythonLibs 2.6 REQUIRED)
FIND_PACKAGE(PythonLibs 2.6 REQUIRED)
endif()
endif()
if (NOT Boost_FOUND AND WIN32)
if (NOT Boost_FOUND)
if (WIN32)
message(" Set the BOOST_ROOT and BOOST_LIBRARYDIR environment variables before running cmake. ")
message(" Set the BOOST_ROOT and BOOST_LIBRARYDIR environment variables before running cmake. ")
message(" E.g. Something like this: ")
message(" E.g. Something like this: ")
message(" set BOOST_ROOT=C:\\local\\boost_1_57_0 " )
message(" set BOOST_ROOT=C:\\local\\boost_1_57_0 " )
...
@@ -60,6 +66,17 @@ if (NOT Boost_FOUND AND WIN32)
...
@@ -60,6 +66,17 @@ if (NOT Boost_FOUND AND WIN32)
message(" cmake ..\\..\\tools\\python")
message(" cmake ..\\..\\tools\\python")
message(" Which will build a 32bit Python2 module by default on most systems.")
message(" Which will build a 32bit Python2 module by default on most systems.")
message("")
message("")
else()
message("")
message(" *****************************************************************************************************")
message(" To compile Boost.Python yourself download boost from boost.org and then go into the boost root folder")
message(" and run these commands: ")
message(" ./bootstrap.sh --with-libraries=python")
message(" ./b2")
message(" sudo ./b2 install")
message(" *****************************************************************************************************")
message("")
endif()
endif()
endif()
if (WIN32 AND NOT Boost_LIBRARIES)
if (WIN32 AND NOT Boost_LIBRARIES)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment