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
"references/vscode:/vscode.git/clone" did not exist on "7ed3950e224f10286338870412de2ebd75053167"
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
Show 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 <string.h>
#include <iostream>
using
namespace
std
;
...
...
setup.cfg
View file @
5b72bd4b
...
...
@@ -15,6 +15,7 @@ split_before_expression_after_opening_paren = true
[isort]
line_length = 79
multi_line_output = 0
known_standard_library = setuptools
known_first_party = mmcv
known_third_party = addict,cv2,matplotlib,numpy,requests,six,torch,yaml
no_lines_before = STDLIB,LOCALFOLDER
...
...
setup.py
View file @
5b72bd4b
import
platform
import
sys
from
io
import
open
# for Python 2 (identical to builtin in Python 3)
from
setuptools
import
Extension
,
find_packages
,
setup
import
numpy
...
...
@@ -29,6 +29,13 @@ def get_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
=
[
Extension
(
name
=
'mmcv._ext'
,
...
...
@@ -37,7 +44,9 @@ EXT_MODULES = [
'./mmcv/video/optflow_warp/flow_warp_module.pyx'
],
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