Coder Social home page Coder Social logo

Comments (8)

pavlejosipovic avatar pavlejosipovic commented on August 18, 2024

maybe you should post the build log for your dll, or maybe push current version somewhere on GitHub?

from caffe.

7oud avatar 7oud commented on August 18, 2024

@pavlejosipovic some errors as follow
default
And here is the forked version I pushed.
https://github.com/7oud/caffe-microsoft-fork/tree/master/windows/Classify

from caffe.

pavlejosipovic avatar pavlejosipovic commented on August 18, 2024

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.

7oud avatar 7oud commented on August 18, 2024

@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.

pavlejosipovic avatar pavlejosipovic commented on August 18, 2024

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.

dereyly avatar dereyly commented on August 18, 2024

Do you build dll version?
I try to build libcaffe.dll from master version of MS Caffe, and have 2 tipes of errors:

  1. 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
  2. Linking cuda errors

from caffe.

7oud avatar 7oud commented on August 18, 2024

@dereyly

  1. libcaffe is a static library (lib) not a dll.
  2. Use Nuget to add 3rd party dependencies, if hdf5 can not be added, edit .vcxproj file manually
  3. Import CommonSettings.props to link cuda

from caffe.

pavlejosipovic avatar pavlejosipovic commented on August 18, 2024

@7oud if the original issue is resolved, please close it.

from caffe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.