Skip to content

Commit 23d1481

Browse files
committed
fix cmakelists.txt
1 parent 08da38f commit 23d1481

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ OpenCV Bindings for Dart Language.
66

77
*Many tests unfinished, contributions are welcome!*
88

9-
Prebuilt binaries for Linux and Windows are available, for other platforms, you have to build
10-
them your self.
9+
Prebuilt binaries for Android(arm64-v8a, armeabi-v7a, x86_64), Linux(x64) and Windows(x64) are available,for other platforms, you have to build them your self.
1110

1211
## IMPORTANT
1312

@@ -42,7 +41,7 @@ prebuilt binaries.
4241
- :x: : not finished
4342
- :ballot_box_with_check: : almost finished
4443
- :white_check_mark: : finished
45-
- videoio: `cv.VideoCapture` from file is not supported yet
44+
- ~~videoio: `cv.VideoCapture` from file is not supported yet~~ supported now.
4645

4746
### Usage
4847

@@ -79,7 +78,7 @@ This package is in heavy development, dynamic libraries for Windows and linux ha
7978
windows: Install Visual Studio 2019 or Later
8079

8180
ubuntu: reference [opencv official build guide](https://docs.opencv.org/4.x/d7/d9f/tutorial_linux_install.html) to install
82-
2. install `cmake`, `python`, add to PATH
81+
2. install dependencies: `cmake`, `python`, add to PATH
8382
3. clone this repo, `git clone https://github.com/rainyl/opencv_dart.git`
8483
4. `cd opencv_dart` and `git submodule update --init`
8584
5. compile opencv

linux/CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@ project(${PROJECT_NAME} LANGUAGES CXX)
99

1010
# Invoke the build for native code shared with the other target platforms.
1111
# This can be changed to accommodate different builds.
12-
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/../src" "${CMAKE_CURRENT_BINARY_DIR}/shared")
12+
# add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/../src" "${CMAKE_CURRENT_BINARY_DIR}/shared")
1313

14-
file(GLOB opencv_dart_libs
15-
"${CMAKE_CURRENT_SOURCE_DIR}/*"
16-
)
14+
file(GLOB opencv_dart_libs "${CMAKE_CURRENT_SOURCE_DIR}/*.so")
1715

1816
# List of absolute paths to libraries that should be bundled with the plugin.
1917
# This list could contain prebuilt libraries, or libraries created by an

windows/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ project(${PROJECT_NAME} LANGUAGES CXX)
1515
# List of absolute paths to libraries that should be bundled with the plugin.
1616
# This list could contain prebuilt libraries, or libraries created by an
1717
# external build triggered from this build file.
18-
file(GLOB opencv_dart_libs
19-
"${CMAKE_CURRENT_SOURCE_DIR}/*"
20-
)
18+
file(GLOB opencv_dart_libs "${CMAKE_CURRENT_SOURCE_DIR}/*.dll")
2119

2220
set(opencv_dart_bundled_libraries
2321
# Defined in ../src/CMakeLists.txt.

0 commit comments

Comments
 (0)