-
Notifications
You must be signed in to change notification settings - Fork 8
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
Cannot build on Windows #37
Comments
Hi mAch17, |
Thanks for the update, just pushed the change:
Strange, we have
Can you post part of your compilation output
I'm looking for this part
which shows what OS you're using (might be faking Linux on MINGW?) |
The machines Travis uses doesn't like the change to the makefile, still debugging it before merging with the main branch |
Just merged with the main branch, could you try compiling again? I added an extra check for Cygwin/MINGW in the makefile, hopefully it detects Windows_OS Thanks =) |
Thanks for the quick response :) . The problem still persists. I think like as you said, MINGW faking Linux causes the problem. |
Also am I supposed to update list of openCL supporting devices somewhere in config or will OCCA find openCL libs by itself ? Both my CPU and GPU support openCL, however it looks like OpenCL is not enabled in above compilation. |
No problem =) URG, still not detecting Windows ( - n-) If you have OpenCL installed but it's not enabled, set:
I'm not sure how the headers are handled in Windows (haven't programmed in Windows) or if the headers/libraries have different names If it fails, please send me more info and I'll fix it ASAP =) Thanks again! EDIT: INCLUDE was mispelled |
Oh, also set
and you'll be able to do
to print out device info.
|
Still encounters some problem. C:\Users\sony\Documents\OCCA2/include/occaTools.hpp:28:0: warning: "NOMINMAX" redefined define NOMINMAX // NBN: clear min/max macros^ |
Oh, I guess the OpenMP-detection script crashed I just pushed to the main branch something that will hopefully fix it Thanks again! |
Good news, I got it compiled with Cygwin and going to test MINGW soon I'll have to change some of the code, I'll push tonight |
I got OCCA and some examples to compile using Cygwin (haven't tested OpenCL/CUDA) I finally got MinGW set up (OS detection works) and compiles most files |
Hi,
I tried building OCCA on Windows using MINGW, but it fails as it cannot find sys/sysctl.h .
I had to hack around a bit to run it on windows, by changing HOME/scripts/makefile at around line 110 to put bash instead of /bin/bash . However, I got stuck at the error mentioned as sys/sysctl.h is not available in Windows apparently. Is there any alternative ?
The text was updated successfully, but these errors were encountered: