Git Product home page Git Product logo

Comments (13)

genekogan avatar genekogan commented on August 15, 2024

not sure how to do this inside visual studio but it sounds like the folder with all those headers is not in the header search path (maybe also it's a problem with relative folder paths).

from ofxdarknet.

AndreasRef avatar AndreasRef commented on August 15, 2024

Okay, might be. Any ideas how to solve this? @Mrzl (or other people on Windows)?

from ofxdarknet.

gurmeetsidhu avatar gurmeetsidhu commented on August 15, 2024

okay so when I got these if you see how it is referencing it. Mine was saying something like "......\addons\ofxDarknet\libs\darknet\include<insertFileHere>" just move your directories to match that folder layout so I put my example like so:

C:\Users\Baltej\Documents\of_v0.9.8_vs_release\examples\ofxDarknet

and then addons which are the source files that are being requested in your MSVS in:

C:\Users\Baltej\Documents\of_v0.9.8_vs_release\addons\ofxDarknet\libs\darknet\include:

from ofxdarknet.

AndreasRef avatar AndreasRef commented on August 15, 2024

Hi @gurmeetsidhu
Thanks for replying!

Not sure I understand you correctly? I need to copy the examples from the ofxDarknet addon to a new folder inside examples, like so: of_v0.9.8_vs_release\examples\ofxDarknet\yolo-2

And they still keep the addon in \addons?

And no extra settings inside Visual Studio?

Best
Andreas

from ofxdarknet.

gurmeetsidhu avatar gurmeetsidhu commented on August 15, 2024

Yes, not sure if this is the way to do it but it works I guess ... So I have the examples from ofxdarknet in this format

image

and the addons:

image

I really had no clue how to install this but if you have any unresolved symbols or any missing includes just add the right dependencies, took me about 20 mins to get everything linked up, barring some weird issues.

from ofxdarknet.

AndreasRef avatar AndreasRef commented on August 15, 2024

Okay, cool thanks 👍! And how precisely do you "add the right dependencies"? I mean, what do you specifically do inside Visual Studio?

from ofxdarknet.

gurmeetsidhu avatar gurmeetsidhu commented on August 15, 2024

Okay so Im very bad at explaining things so just bear with this picture that will show you what to do. Go to your project -> left click -> click properties and then add additional includes here:

image

Here is raw input I put for additional include directories. Bear in mind I decided to clone openframeworks instead of just downloading the latest release so ... there's a lot of includes in here to directories I've had to download myself (don't worry if you downloaded release version you don't have to worry about downloading anything extra). So you probably don't need all of them but yea...

%(AdditionalIncludeDirectories)
src
src\cfg
......\addons\glew-2.0.0\include
......\addons\glm
......\addons\ofxDarknet\libs
......\addons\ofxDarknet\libs\3rdparty
......\addons\ofxDarknet\libs\3rdparty\dll
......\addons\ofxDarknet\libs\3rdparty\dll\x64
......\addons\ofxDarknet\libs\3rdparty\dll\x86
......\addons\ofxDarknet\libs\3rdparty\include
......\addons\ofxDarknet\libs\3rdparty\lib
......\addons\ofxDarknet\libs\3rdparty\lib\vs
......\addons\ofxDarknet\libs\3rdparty\lib\vs\Win32
......\addons\ofxDarknet\libs\3rdparty\lib\vs\x64
......\addons\ofxDarknet\libs\cuda
......\addons\ofxDarknet\libs\cuda\include
......\addons\ofxDarknet\libs\cuda\lib
......\addons\ofxDarknet\libs\cuda\lib\vs
......\addons\ofxDarknet\libs\cuda\lib\vs\x64
......\addons\ofxDarknet\libs\darknet
......\addons\ofxDarknet\libs\darknet\include
......\addons\ofxDarknet\libs\darknet\lib
......\addons\ofxDarknet\libs\darknet\lib\vs
......\addons\ofxDarknet\libs\darknet\lib\vs\x64
......\addons\ofxDarknet\libs\darknet\lib\vs\x64\Debug
......\addons\ofxDarknet\libs\darknet\lib\vs\x64\Release
......\addons\ofxDarknet\src
......\addons\ofxOpenCv\libs
......\addons\ofxOpenCv\libs\opencv
......\addons\ofxOpenCv\libs\opencv\include
......\addons\ofxOpenCv\libs\opencv\include\opencv
......\addons\ofxOpenCv\libs\opencv\include\opencv2
......\addons\ofxOpenCv\libs\opencv\include\opencv2\calib3d
......\addons\ofxOpenCv\libs\opencv\include\opencv2\contrib
......\addons\ofxOpenCv\libs\opencv\include\opencv2\core
......\addons\ofxOpenCv\libs\opencv\include\opencv2\features2d
......\addons\ofxOpenCv\libs\opencv\include\opencv2\flann
......\addons\ofxOpenCv\libs\opencv\include\opencv2\gpu
......\addons\ofxOpenCv\libs\opencv\include\opencv2\gpu\device
......\addons\ofxOpenCv\libs\opencv\include\opencv2\gpu\device\detail
......\addons\ofxOpenCv\libs\opencv\include\opencv2\highgui
......\addons\ofxOpenCv\libs\opencv\include\opencv2\imgproc
......\addons\ofxOpenCv\libs\opencv\include\opencv2\legacy
......\addons\ofxOpenCv\libs\opencv\include\opencv2\ml
......\addons\ofxOpenCv\libs\opencv\include\opencv2\nonfree
......\addons\ofxOpenCv\libs\opencv\include\opencv2\objdetect
......\addons\ofxOpenCv\libs\opencv\include\opencv2\photo
......\addons\ofxOpenCv\libs\opencv\include\opencv2\stitching
......\addons\ofxOpenCv\libs\opencv\include\opencv2\stitching\detail
......\addons\ofxOpenCv\libs\opencv\include\opencv2\superres
......\addons\ofxOpenCv\libs\opencv\include\opencv2\ts
......\addons\ofxOpenCv\libs\opencv\include\opencv2\video
......\addons\ofxOpenCv\libs\opencv\include\opencv2\videostab
......\addons\ofxOpenCv\libs\opencv\lib
......\addons\ofxOpenCv\libs\opencv\lib\emscripten
......\addons\ofxOpenCv\libs\opencv\lib\vs
......\addons\ofxOpenCv\libs\opencv\lib\vs\Win32
......\addons\ofxOpenCv\libs\opencv\lib\vs\Win32\Debug
......\addons\ofxOpenCv\libs\opencv\lib\vs\Win32\Release
......\addons\ofxOpenCv\libs\opencv\lib\vs\x64
......\addons\ofxOpenCv\libs\opencv\lib\vs\x64\Debug
......\addons\ofxOpenCv\libs\opencv\lib\vs\x64\Release
......\addons\ofxOpenCv\libs\opencv\license
......\addons\ofxOpenCv\src

You should already have done this but in case you haven't add openCV libraries. I also am running cuDNN for another darknet build so ignore that:

image

RAW:

%(AdditionalLibraryDirectories)
C:\opencv_2.4.9\opencv\build\x64\vc12\lib
\lib\x64

And that's pretty much it sorry for long post

from ofxdarknet.

AndreasRef avatar AndreasRef commented on August 15, 2024

Wow, thanks so much, will try it out!

from ofxdarknet.

AndreasRef avatar AndreasRef commented on August 15, 2024

Hmm, I tried this, but no changes... Still the same errors.

From what I understand, your solution to solving this problem involves moving the files around to make sure that the paths are correct? Is that right?

However, what I don't understand is how that changes anything?

Wether you try to run the example from:

C:\Users\Baltej\Documents\of_v0.9.8_vs_release\examples\ofxDarknet\example-yolo2

or

C:\Users\Baltej\Documents\of_v0.9.8_vs_release\addons\ofxDarknet\example-yolo2

Should make no difference in terms of relative paths like:
..\..\..\addons\ofxDarknet\src\ofxDarknet.cpp

Since they are both on the same "level" relative to of_v0.9.8_vs_release\addons

Or am I missing something?

from ofxdarknet.

genekogan avatar genekogan commented on August 15, 2024

@AndreasRef did you go through the steps written in the readme for Windows setup? https://github.com/mrzl/ofxDarknet#windows

from ofxdarknet.

AndreasRef avatar AndreasRef commented on August 15, 2024

@genekogan yes, can't really see what I'm doing wrong...

from ofxdarknet.

Bendegreef avatar Bendegreef commented on August 15, 2024

@AndreasRef I changed every include to the absolute path. Don't know if it's the right way, but it works for the includes. Now I'm stuck at the linking issue.

#include "activations.h"
changed to:
#include "D:\Openframeworks\addons\ofxDarknet\libs\darknet\include\activations.h"

from ofxdarknet.

schwittlick avatar schwittlick commented on August 15, 2024

@AndreasRef check this out here: #23

from ofxdarknet.

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.