Comments (8)
maybe you should post the build log for your dll, or maybe push current version somewhere on GitHub?
from caffe.
@pavlejosipovic some errors as follow
And here is the forked version I pushed.
https://github.com/7oud/caffe-microsoft-fork/tree/master/windows/Classify
from caffe.
Your problem is that you are including windows.h in precompiled header.
windows.h doesn't play nice with caffe.pb.h.
In general try to avoid platform dependent code as much as possible.
Solution for is to either disable precompiled header, or just remove windows.h from stdafx.h.
You will have to put windows.h back to dllmain.cpp.
from caffe.
@pavlejosipovic Thanks, it is very helpful!
The dll can be called by exe now, but it still have some problems when running. The code of dll is based on "exmaples\cpp_classification", it seems that layer init was failed, the registry was empty.
https://github.com/7oud/caffe-microsoft-fork/tree/master/windows/Classify
from caffe.
Looks like you are missing a reference to libcaffe project.
Add something like this https://github.com/7oud/caffe-microsoft-fork/blob/master/windows/pycaffe/pycaffe.vcxproj#L63 to your project file.
from caffe.
Do you build dll version?
I try to build libcaffe.dll from master version of MS Caffe, and have 2 tipes of errors:
- Dependencies (3rd party), like boost need to add to project, I do it manually, I think it is mistake, if u know how add all dependencies libs tell me please
- Linking cuda errors
from caffe.
- libcaffe is a static library (lib) not a dll.
- Use Nuget to add 3rd party dependencies, if hdf5 can not be added, edit .vcxproj file manually
- Import CommonSettings.props to link cuda
from caffe.
@7oud if the original issue is resolved, please close it.
from caffe.
Related Issues (20)
- can not print caffe layers information fully
- compile error on caffe windows without GPU HOT 1
- Errow C2220: do not build the "obj" file (complile the source file :..\..\src\caffe\util\math_functions.cpp) HOT 1
- compile error with '.build_release/lib/libcaffe.so: undefined reference' HOT 1
- pycaffe build link error,how to solve it ? HOT 1
- can't find cuda_runtime. h
- Linux build error HOT 1
- 'gpu.dll' connot be found
- this link is not exist?
- Protobuf: Reading dangerously large protocol message
- Python stopped working when execute 'self.solver.step(1)' code in 'train.py' file. HOT 1
- cuDNN version problem
- Matcaffe Compiling Issues:
- Accessing .\windows HOT 1
- AttributeError: 'module' object has no attribute 'LabelMap'
- I cant create caffe.pb.h file HOT 2
- how to solve NuGet problem of OpenCV or glag except Uninstall and reinstall HOT 3
- Error C1083: Cannot open “cublas_v2.h”: No such file or directory D:\caffe\caffe-master\include\caffe\util\device_alternate.hpp 34
- i cant build the libcaffe in vs2013 and it tells me the version of python is not compatible
- This repo is missing important files HOT 1
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 caffe.