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
MMCV
Commits
5b72bd4b
Unverified
Commit
5b72bd4b
authored
Jul 31, 2019
by
Kai Chen
Committed by
GitHub
Jul 31, 2019
Browse files
fix the compiling on mac os (#97)
parent
30985b2f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
mmcv/video/optflow_warp/flow_warp.hpp
mmcv/video/optflow_warp/flow_warp.hpp
+0
-1
setup.cfg
setup.cfg
+1
-0
setup.py
setup.py
+11
-2
No files found.
mmcv/video/optflow_warp/flow_warp.hpp
View file @
5b72bd4b
#include <math.h>
#include <math.h>
#include <string.h>
#include <string.h>
#include <iostream>
using
namespace
std
;
using
namespace
std
;
...
...
setup.cfg
View file @
5b72bd4b
...
@@ -15,6 +15,7 @@ split_before_expression_after_opening_paren = true
...
@@ -15,6 +15,7 @@ split_before_expression_after_opening_paren = true
[isort]
[isort]
line_length = 79
line_length = 79
multi_line_output = 0
multi_line_output = 0
known_standard_library = setuptools
known_first_party = mmcv
known_first_party = mmcv
known_third_party = addict,cv2,matplotlib,numpy,requests,six,torch,yaml
known_third_party = addict,cv2,matplotlib,numpy,requests,six,torch,yaml
no_lines_before = STDLIB,LOCALFOLDER
no_lines_before = STDLIB,LOCALFOLDER
...
...
setup.py
View file @
5b72bd4b
import
platform
import
sys
import
sys
from
io
import
open
# for Python 2 (identical to builtin in Python 3)
from
io
import
open
# for Python 2 (identical to builtin in Python 3)
from
setuptools
import
Extension
,
find_packages
,
setup
from
setuptools
import
Extension
,
find_packages
,
setup
import
numpy
import
numpy
...
@@ -29,6 +29,13 @@ def get_version():
...
@@ -29,6 +29,13 @@ def get_version():
return
locals
()[
'__version__'
]
return
locals
()[
'__version__'
]
if
platform
.
system
()
==
'Darwin'
:
extra_compile_args
=
[
'-stdlib=libc++'
]
extra_link_args
=
[
'-stdlib=libc++'
]
else
:
extra_compile_args
=
[]
extra_link_args
=
[]
EXT_MODULES
=
[
EXT_MODULES
=
[
Extension
(
Extension
(
name
=
'mmcv._ext'
,
name
=
'mmcv._ext'
,
...
@@ -37,7 +44,9 @@ EXT_MODULES = [
...
@@ -37,7 +44,9 @@ EXT_MODULES = [
'./mmcv/video/optflow_warp/flow_warp_module.pyx'
'./mmcv/video/optflow_warp/flow_warp_module.pyx'
],
],
include_dirs
=
[
numpy
.
get_include
()],
include_dirs
=
[
numpy
.
get_include
()],
language
=
"c++"
,
language
=
'c++'
,
extra_compile_args
=
extra_compile_args
,
extra_link_args
=
extra_link_args
,
),
),
]
]
...
...
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