Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpu.h: No such file or directory #1

Open
jarrett-adkins opened this issue Jan 5, 2023 · 3 comments
Open

cpu.h: No such file or directory #1

jarrett-adkins opened this issue Jan 5, 2023 · 3 comments

Comments

@jarrett-adkins
Copy link

jarrett-adkins commented Jan 5, 2023

Hi, I recently came across this project and am trying to get it to work on win10 via gcc command line, but Im stuck on this error when trying to compile it:

dd_main.cxx:43:17: fatal error: cpu.h: No such file or directory

I get the same issue for net.h too.

I dont know if it needs another flag to point it to something like it does for the ImageMagick development headers. FYI I am trying to compile it like this

gcc -o dd_main dd_main.cxx -I "path to ImageMagick include folder"

@installgentoo
Copy link
Owner

cpu and net are includes from https://github.com/Tencent/ncnn that you want to install too.

@jarrett-adkins
Copy link
Author

jarrett-adkins commented Jan 7, 2023

Thank you for the reply. After installing ncnn for windows as per the instructions, I am now attempting to compile it with
gcc -o dd_main dd_main.cxx -I "path to ImageMagick include folder" -I "path to installed ncnn include folder"
And seeing the error
/platform.h:78:21: fatal error: pthread.h: No such file or directory #include <pthread.h>

@installgentoo
Copy link
Owner

You also want pthreads, as they appear to be a dependency.
Try pthreads-win32 maybe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants