From c1133d5bc6807764c5d404a5c690cd88ffe52571 Mon Sep 17 00:00:00 2001 From: tpoisonooo Date: Fri, 25 Nov 2022 10:48:17 +0800 Subject: [PATCH 1/3] fix(pybind11): build error --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c37202d6223..8d0b4c63a1f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -96,7 +96,7 @@ else() option(NCNN_BUILD_EXAMPLES "build examples" ON) endif() -if(ANDROID OR IOS OR LINUX OR NCNN_SIMPLESTL) +if(ANDROID OR IOS OR NCNN_SIMPLESTL) option(NCNN_DISABLE_EXCEPTION "disable exception" ON) else() option(NCNN_DISABLE_EXCEPTION "disable exception" OFF) From 0e131188808aae0002006d2d319501b6cd2c6e2f Mon Sep 17 00:00:00 2001 From: tpoisonooo Date: Fri, 25 Nov 2022 10:59:24 +0800 Subject: [PATCH 2/3] docs(python): add option --- python/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/README.md b/python/README.md index 7d6a5d2bb79..16875dd9b1c 100644 --- a/python/README.md +++ b/python/README.md @@ -43,7 +43,7 @@ git submodule init && git submodule update ```bash mkdir build cd build -cmake -DNCNN_PYTHON=ON .. +cmake -DNCNN_PYTHON=ON -DNCNN_DISABLE_EXCEPTION=OFF .. make ``` From ed29289e5da297cdf9be3342ab35eb28cac755c9 Mon Sep 17 00:00:00 2001 From: tpoisonooo Date: Fri, 25 Nov 2022 18:25:10 +0800 Subject: [PATCH 3/3] Update README.md --- python/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/README.md b/python/README.md index 16875dd9b1c..7d6a5d2bb79 100644 --- a/python/README.md +++ b/python/README.md @@ -43,7 +43,7 @@ git submodule init && git submodule update ```bash mkdir build cd build -cmake -DNCNN_PYTHON=ON -DNCNN_DISABLE_EXCEPTION=OFF .. +cmake -DNCNN_PYTHON=ON .. make ```