Comments (2)
cd protobuf-3.4.0\protobuf-3.4.0
F:\protobuf-3.4.0\protobuf-3.4.0\buildMinGW>cmake -G"MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%cd%/install -Dprotobuf_BUILD_TESTS=OFF -Dprotobuf_MSVC_STATIC_RUNTIME=OFF ../cmake
F:\protobuf-3.4.0\protobuf-3.4.0\buildMinGW>mingw32-make
F:\protobuf-3.4.0\protobuf-3.4.0\buildMinGW>mingw32-make install
-------------------------------------可以不用opencv,如果使用opencv也需要mingw编译---------------------------------------------------------------
F:>cd ncnn
F:\ncnn>mkdir build
F:\ncnn>cd build
F:\ncnn\build>cmake -G"MinGW Makefiles" -DOpenCV_DIR="D:\Opencv440\buildMinGW\install" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%cd%/install -DProtobuf_INCLUDE_DIR=D:/protobuf-3.4.0/buildMinGW/install/include -DProtobuf_LIBRARIES=D:/protobuf-3.4.0/buildMinGW/install/lib/libprotobuf.a -D Protobuf_PROTOC_EXECUTABLE=D:/protobuf-3.4.0/buildMinGW/install/bin/protoc.exe -D NCNN_VULKAN=OFF -DNCNN_AVX2=OFF -DNCNN_SSE2=OFF ..
F:\ncnn\build>mingw32-make install
from ncnn.
I try to comment the following code in cpu.cpp (line 190-215) and it works. Though I don't understand why it works.
// static LONG CALLBACK catch_sigill(struct _EXCEPTION_POINTERS* ExceptionInfo)
// {
// if (ExceptionInfo->ExceptionRecord->ExceptionCode == EXCEPTION_ILLEGAL_INSTRUCTION)
// {
// g_sigill_caught = 1;
// longjmp(g_jmpbuf, -1);
// }
// return EXCEPTION_CONTINUE_SEARCH;
// }
// static int detectisa(const void* some_inst)
// {
// g_sigill_caught = 0;
// PVOID eh = AddVectoredExceptionHandler(1, catch_sigill);
// if (setjmp(g_jmpbuf) == 0)
// {
// ((void (*)())some_inst)();
// }
// RemoveVectoredExceptionHandler(eh);
// return g_sigill_caught ? 0 : 1;
// }
cmake -G"MinGW Makefiles" -DOpenCV_DIR="D:\opencv\mingw_build\installl" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/install -DProtobuf_INCLUDE_DIR=D:/ncnn20240127/protobuf/mingw_build/install/include -DProtobuf_LIBRARIES=D:/ncnn20240127/protobuf/mingw_build/install/lib/libprotobuf.a -D Protobuf_PROTOC_EXECUTABLE=D:/ncnn20240127/protobuf/mingw_build/install/bin/protoc.exe -D NCNN_VULKAN=OFF -DNCNN_AVX2=OFF -DNCNN_SSE2=OFF -DNCNN_OPENMP=OFF ..
from ncnn.
Related Issues (20)
- yolov8n模型在鲲鹏ARM机器的检测结果和pytorch结果不一样 HOT 6
- 我有3个GPU,但get_gpu_count()=1 HOT 8
- pnnx和ncnn输出不一致
- I convert onnx to ncnn successfully, but all my inference is all nan. Eg, the output of net.extract() is all nan. HOT 15
- 鲲鹏920环境,yolov8n模型int8量化速度比默认的fp16慢了50% HOT 5
- 在对mtcnn模型第二层进行./ncnn2table过程中出现了段错误
- Bad performance for int8 inference on XuanTie 906 (RISC-V) HOT 1
- intrinsic code 没有体现算法的原本的设计,是否有计划升级intrinsic code,并设置vset为ta mu
- Can simplestl use in RTOS ?
- [ncnn-android-yolov8] How to handle real-time detect when the view set orientation to "landscape" ? HOT 1
- pnnx能正常转换模型,模型输出与onnx模型输出不一致 HOT 4
- EfficientPhys onnx转ncnn模型转换报错 HOT 3
- 用自己的yolov8模型 转成ncnn 在windows下部署后,接口也对上了,但是结果却出不来,不尽人意
- 是否能够单独使用矩阵乘法的API? HOT 1
- 转换模型报错,如何定位
- how do I get the fossilize file .foz out of the vulkan driver? HOT 2
- 龙芯教育派2k1000中运行报错浮点数例外
- a minor issue in prebuild ncnn-android libs
- windows下用clang编译引起crash HOT 2
- paddleocr转换ncnn求助,尝试两条路径无果。
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ncnn.