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

Compile on Win10 #4

Closed
ttkrpink opened this issue Jul 20, 2022 · 1 comment
Closed

Compile on Win10 #4

ttkrpink opened this issue Jul 20, 2022 · 1 comment

Comments

@ttkrpink
Copy link

The release section is empty, so I compiled it on windows. It can be tricky. Just want to share with you.

  1. Install MinGW with C, make
  2. meshify.c line 270 change to:
double clockMsec() { //return milliseconds since midnight
#ifdef _MSC_VER
	clock_t t = clock();
	return (double)((double)t) / (CLOCKS_PER_SEC / 1000.0);
#else
    time_t seconds_since_midnight = time(NULL) % 86400;
  
    // #define CLOCK_MONOTONIC                 1
	// struct timespec _t;
	// clock_gettime(CLOCK_MONOTONIC, &_t);
	// return _t.tv_sec*1000.0 + (_t.tv_nsec/1.0e6);
    return seconds_since_midnight;
#endif

After that, you should be able to compile it.

neurolabusc added a commit that referenced this issue Jul 20, 2022
@neurolabusc
Copy link
Owner

@ttkrpink can you test my latest commit to see if it resolves your issue. Thanks,

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