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

it is very terrible running on Windows #203

Open
Dwinovo opened this issue Mar 27, 2024 · 8 comments
Open

it is very terrible running on Windows #203

Dwinovo opened this issue Mar 27, 2024 · 8 comments

Comments

@Dwinovo
Copy link

Dwinovo commented Mar 27, 2024

No description provided.

@Dwinovo
Copy link
Author

Dwinovo commented Mar 27, 2024

After I fixed a bunch of previous bugs with Cmake,i can not work it out :““unistd.h”: No such file or directory ”,Although I tried using io.h instead,and modify some variable but it didnot work.
emmmm maybe because i am a noob

@Dwinovo
Copy link
Author

Dwinovo commented Mar 27, 2024

hi guys,i have work out all the problem running on windows,if you have any question,you can ask me ^^

@JuZi233
Copy link

JuZi233 commented Mar 28, 2024

hi guys,i have work out all the problem running on windows,if you have any question,you can ask me ^^

thanks guys, i have work out it too. instead of "unistd.h":No such file or directory", u can replace "#include <unistd.h>" with "#include <io.h>
#include <process.h>" in common.hpp, and add two new method instead, like this;
#define F_OK 0
inline bool IsFile(const std::string& path)
{
if (!IsPathExist(path)) {
printf("%s:%d %s not exist\n", FILE, LINE, path.c_str());
return false;
}
struct stat buffer;
// return (stat(path.c_str(), &buffer) == 0 && S_ISREG(buffer.st_mode));
return (stat(path.c_str(), &buffer) == 0 && (buffer.st_mode & _S_IFMT) == _S_IFREG);
}

inline bool IsFolder(const std::string& path)
{
if (!IsPathExist(path)) {
return false;
}
struct stat buffer;
// return (stat(path.c_str(), &buffer) == 0 && S_ISDIR(buffer.st_mode));
return (stat(path.c_str(), &buffer) == 0 && (buffer.st_mode & _S_IFMT) == _S_IFDIR);
}

@JuZi233
Copy link

JuZi233 commented Mar 28, 2024

finally, i create a dll file with this project , for my python application . ^v^

@Dwinovo
Copy link
Author

Dwinovo commented Mar 28, 2024

hi guys,i have work out all the problem running on windows,if you have any question,you can ask me ^^

thanks guys, i have work out it too. instead of "unistd.h":No such file or directory", u can replace "#include <unistd.h>" with "#include <io.h> #include <process.h>" in common.hpp, and add two new method instead, like this; #define F_OK 0 inline bool IsFile(const std::string& path) { if (!IsPathExist(path)) { printf("%s:%d %s not exist\n", FILE, LINE, path.c_str()); return false; } struct stat buffer; // return (stat(path.c_str(), &buffer) == 0 && S_ISREG(buffer.st_mode)); return (stat(path.c_str(), &buffer) == 0 && (buffer.st_mode & _S_IFMT) == _S_IFREG); }

inline bool IsFolder(const std::string& path) { if (!IsPathExist(path)) { return false; } struct stat buffer; // return (stat(path.c_str(), &buffer) == 0 && S_ISDIR(buffer.st_mode)); return (stat(path.c_str(), &buffer) == 0 && (buffer.st_mode & _S_IFMT) == _S_IFDIR); }

yes ,what you do is what i do!!!!

@manfrey666
Copy link

manfrey666 commented May 22, 2024

hi guys,i have work out all the problem running on windows,if you have any question,you can ask me ^^

Could you show me your cmakelists.txt? Thanks.

@Dwinovo
Copy link
Author

Dwinovo commented May 22, 2024

sorry , I have deleted the codes about this project ,if u meet any problem ,u can show it maybe i could help

@manfrey666
Copy link

sorry , I have deleted the codes about this project ,if u meet any problem ,u can show it maybe i could help

I used visual studio to compile successfully with the methods above, but an error occurred when running the yolov8.exe file:
Unable to locate program input point "cudaMallocAsync" in dynamic link library

I have posted it in a new issuse: #217 (comment)

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

3 participants