Skip to content

Commit 2b8fdd2

Browse files
committed
更新
1 parent ffc9394 commit 2b8fdd2

File tree

2 files changed

+27
-25
lines changed

2 files changed

+27
-25
lines changed

_posts/2018-11-08-opencv4.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,23 @@ pip install numpy
4040
```bash
4141
git clone --depth 1 [email protected]:opencv/opencv.git
4242
git clone --depth 1 [email protected]:opencv/opencv_contrib.git
43-
cd opencv && \
44-
mkdir build && \
45-
cd build && \
43+
mkdir build ; cd build
4644
cmake -D CMAKE_BUILD_TYPE=RELEASE \
4745
-D CMAKE_INSTALL_PREFIX=/Users/yakir/local/opencv \
48-
-D OPENCV_EXTRA_MODULES_PATH=/Volumes/sm/servers/opencv_contrib-4.5.4/modules \
49-
-D PYTHON3_LIBRARY=`python -c 'import subprocess ; import sys ; s = subprocess.check_output("python-config --configdir", shell=True).decode("utf-8").strip() ; (M, m) = sys.version_info[:2] ; print("{}/libpython{}.{}.dylib".format(s, M, m))'` \
50-
-D PYTHON3_INCLUDE_DIR=`python -c 'import distutils.sysconfig as s; print(s.get_python_inc())'` \
51-
-D PYTHON3_EXECUTABLE=/Volumes/sm/repos/venv/opencv/bin/python \
46+
-D OPENCV_EXTRA_MODULES_PATH=/Volumes/sm/build/opencv/opencv_contrib/modules \
5247
-D BUILD_opencv_python2=OFF \
5348
-D BUILD_opencv_python3=ON \
5449
-D INSTALL_PYTHON_EXAMPLES=ON \
5550
-D INSTALL_C_EXAMPLES=OFF \
56-
-D BUILD_EXAMPLES=ON ..
51+
-D BUILD_EXAMPLES=ON \
52+
-D BUILD_opencv_apps=ON \
53+
../opencv
5754

58-
make -j 12 && make install
55+
make -j 14 && make install
56+
57+
58+
# macOS framework
59+
python ../opencv/platforms/osx/build_framework.py osx --macos_archs arm64
5960
```
6061

6162
### versions

_posts/2023-01-31-build-zero-vm-jdk21-on-macOS.md

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ tags: [Java,JDK,OpenJDK,Zero VM,Hotspot]
1919
7. [Ccache](https://ccache.samba.org)
2020
8. [XCode Version 14.3.1 (14E300c) macOS Version 13.4.1 (22F82)](https://developer.apple.com/download/more/)
2121
9. [Binutils](https://ftp.gnu.org/gnu/binutils/)
22+
10. texinfo
2223

2324
[👉🏼 依赖安装](https://github.com/yakirChen/macOS-libs/blob/master/build.md)
2425

@@ -55,9 +56,9 @@ sh ./configure --enable-dtrace \
5556
--with-native-debug-symbols=internal \
5657
--with-jvm-variants=zero \
5758
--with-hsdis=binutils \
58-
--with-binutils-src=/Volumes/sm/github/jdk/jdkbuild/src/utils/hsdis/binutils-2.37 \
59+
--with-binutils-src=/Volumes/sm/github/jdk/jdkbuild/src/utils/hsdis/binutils-2.42 \
5960
--with-target-bits=64 \
60-
--with-libffi=/Users/yakir/local/brew/opt/libffi \
61+
--with-libffi=/opt/homebrew/brew/opt/libffi \
6162
--with-num-cores=12 \
6263
--with-jobs=12
6364
```
@@ -90,32 +91,32 @@ sh ./configure --enable-dtrace \
9091
```shell
9192
====================================================
9293
A new configuration has been successfully created in
93-
/Volumes/sm/github/jdk/jdkbuild/build/macosx-x86_64-zero-slowdebug
94-
using configure arguments '--enable-dtrace --with-boot-jdk=/Library/Java/JavaVirtualMachines/jdk-21.jdk/Contents/Home/ --with-toolchain-path=/Applications/Xcode.app/Contents/Developer/usr/bin --disable-warnings-as-errors --with-boot-jdk-jvmargs='-XX:+UseG1GC -Xms8G -Xmx8G' --with-toolchain-type=clang --with-debug-level=slowdebug --with-native-debug-symbols=internal --with-jvm-variants=zero --with-hsdis=binutils --with-binutils-src=/Volumes/sm/github/jdk/jdkbuild/src/utils/hsdis/binutils-2.37 --with-target-bits=64 --with-libffi=/Users/yakir/local/brew/opt/libffi --with-num-cores=12 --with-jobs=12'.
94+
/Volumes/sm/github/jdk/jdkbuild/build/macosx-aarch64-zero-slowdebug
95+
using configure arguments '--enable-dtrace --with-boot-jdk=/Library/Java/JavaVirtualMachines/jdk-22.jdk/Contents/Home/ --with-toolchain-path=/Applications/Xcode.app/Contents/Developer/usr/bin --disable-warnings-as-errors --with-boot-jdk-jvmargs='-XX:+UseG1GC -Xms8G -Xmx8G' --with-toolchain-type=clang --with-debug-level=slowdebug --with-native-debug-symbols=internal --with-jvm-variants=zero --with-hsdis=binutils --with-binutils-src=/Volumes/sm/github/jdk/jdkbuild/src/utils/hsdis/binutils-2.42 --with-target-bits=64 --with-libffi=/opt/homebrew/opt/libffi/ --with-num-cores=14 --with-jobs=14'.
9596

9697
Configuration summary:
97-
* Name: macosx-x86_64-zero-slowdebug
98+
* Name: macosx-aarch64-zero-slowdebug
9899
* Debug level: slowdebug
99100
* HS debug level: debug
100101
* JVM variants: zero
101102
* JVM features: zero: 'cds dtrace epsilongc g1gc jni-check jvmti management parallelgc serialgc services shenandoahgc vm-structs zero'
102-
* OpenJDK target: OS: macosx, CPU architecture: x86, address length: 64
103-
* Version string: 22-internal-adhoc.yakir.jdkbuild (22-internal)
104-
* Source date: 1688474086 (2023-07-04T12:34:46Z)
103+
* OpenJDK target: OS: macosx, CPU architecture: aarch64, address length: 64
104+
* Version string: 24-internal-adhoc.yakir.jdkbuild (24-internal)
105+
* Source date: 1719382331 (2024-06-26T06:12:11Z)
105106

106107
Tools summary:
107-
* Boot JDK: openjdk version "21-ea" 2023-09-19 OpenJDK Runtime Environment (build 21-ea+29-2411) OpenJDK 64-Bit Server VM (build 21-ea+29-2411, mixed mode, sharing) (at /Library/Java/JavaVirtualMachines/jdk-21.jdk/Contents/Home)
108-
* Toolchain: clang (clang/LLVM from Xcode 14.3.1)
109-
* Sysroot: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk
110-
* C Compiler: Version 14.0.3 (at /usr/bin/clang)
111-
* C++ Compiler: Version 14.0.3 (at /usr/bin/clang++)
108+
* Boot JDK: java version "22.0.1" 2024-04-16 Java(TM) SE Runtime Environment (build 22.0.1+8-16) Java HotSpot(TM) 64-Bit Server VM (build 22.0.1+8-16, mixed mode, sharing) (at /Library/Java/JavaVirtualMachines/jdk-22.jdk/Contents/Home)
109+
* Toolchain: clang (clang/LLVM from Xcode 15.4)
110+
* Sysroot: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk
111+
* C Compiler: Version 15.0.0 (at /usr/bin/clang)
112+
* C++ Compiler: Version 15.0.0 (at /usr/bin/clang++)
112113

113114
Build performance summary:
114-
* Build jobs: 12
115-
* Memory limit: 32768 MB
115+
* Build jobs: 14
116+
* Memory limit: 36864 MB
116117

117118
The following warnings were produced. Repeated here for convenience:
118-
WARNING: pandoc is version 3.1.4, not the recommended version 2.19.2
119+
WARNING: pandoc is version 3.2.1, not the recommended version 2.19.2
119120
```
120121

121122
## Server & Client Fastdebug `configure` 成功输出

0 commit comments

Comments
 (0)