Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
ace034cc
Commit
ace034cc
authored
Oct 27, 2015
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated compile instructions and added notes about building the python API.
parent
9988deac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
8 deletions
+22
-8
compile.xml
docs/docs/compile.xml
+22
-8
No files found.
docs/docs/compile.xml
View file @
ace034cc
...
...
@@ -12,7 +12,7 @@
<body>
<h2>
Compiling on Any Operating System Using CMake
</h2>
<h2>
Compiling
C++ Example Programs
on Any Operating System Using CMake
</h2>
The best way to compile a program that uses dlib is to use
<a
href=
"http://www.cmake.org"
>
CMake
</a>
. For
example, the following commands will compile the example programs on any operating
system:
...
...
@@ -44,11 +44,23 @@ tell CMake which one you want it to use via the -G option.
<br/>
<br/>
<h2>
Compiling Dlib's Python Interface
</h2>
<p>
Go to the base folder of the dlib repository and run
<tt>
python setup.py install
</tt>
. That
should compile and install the dlib python API on your system.
</p>
<p>
Alternatively, if you want to add more python bindings to dlib's
python interface then you probably want to avoid the setup.py file
and work directly using CMake. In particular, dlib's python API is
built by the CMake project in the tools/python folder. You build
this project using the usual CMake commands and when compiled it
outputs the dlib shared library that defines the python API for dlib.
</p>
<br/>
<h2>
Compiling Without CMake
</h2>
<h2>
Compiling
C++ Examples
Without CMake
</h2>
<p>
In most cases, to use this library all you have to do is extract it somewhere, make
...
...
@@ -137,13 +149,15 @@ sudo apt-get install libx11-dev
</p>
<center><h1>
Preprocessor Directives
</h1></center>
<br/>
<center><h1>
Miscellaneous Preprocessor Directives
</h1></center>
<p>
There are a few preprocessor directives you can supply during the build process
to cause the library to build in various optional ways. By default, the
library will always do something reasonable, but they are listed here in the
event that you need to use them.
In addition to the preprocessor directives mentioned above, there
are a few more you can supply during the build process to cause the
library to build in various optional ways. By default, the library
will always do something reasonable, but they are listed here in
the event that you need to use them.
</p>
...
...
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