-
Notifications
You must be signed in to change notification settings - Fork 101
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
Building doesn't work on Windows #2
Comments
Hey @remorez I've made the thing working fine under Windows, I tried on Windows 7 32-bit. The key problem you had that your Windows doesn't have OpenGL 3, so the backend failed to link. I've migrated to OpenGL 2.1 and adjusted a couple of compile flags to make sure it builds fine. There is a section dedicated to Windows in readme now: https://github.com/golang-ui/nuklear#windows I think you'll find this trick useful:
So no need to copy the GLFW libs around, just put them somewhere and reference through CFLAGS/LDFLAGS on build time. At last, I recommend you to check out this lib https://github.com/therecipe/qt maybe it will provide some rich features you'll need in your project, Nuklear is a cool thing but it's kinda minimalistic for any serious GUI development. Have fun. |
Hey @xlab, I tried to make this work on Windows (7, 64bit) but I was still getting |
Thanks for all the tips and help @xlab!
Trying to get to bottom of this I configured everything from scratch on another Win 7 64-bit machine using following:
After making sure all is added to %PATH% I tried to compile the example and got exactly same set of errors as on the first machine. |
@remorez It turns out there is a problem with CGO and MinGW as of today, I've found these issues as well:
The latter says this will be fixed in 1.8 (Feb, 2017). Try it out please. |
With your help @xlab I finally made this running on my Win7 64-bit. |
@remorez I included that flag into the file that links GLFW, so should be working even without that extra flag by hand. Glad it finally worked, have fun. |
After upgrade go to 1.8.7/1.9.4/1.10, then environment variable Reference: golang/go#23672 CGO_LDFLAGS_ALLOW='-Wl,--allow-multiple-definition' go get/install $env:CGO_LDFLAGS_ALLOW='-Wl,--allow-multiple-definition'
go get/install |
Wanted to try this on Windows and after running:
go get github.com/golang-ui/nuklear/nk
it gave me:
I have GLFW 3.2 for Go installed and I am using go1.7.3 windows/amd64. Also I have MinGW_x64 installed and added to path.
To troubleshoot I copied folder containing missing file:
%GOPATH%\src\github.com\go-gl\glfw\v3.2\glfw\glfw\include\GLFW
to nuklear folder:
%GOPATH%\src\github.com\golang-ui\nuklear\nk
and building started to throw those errors:
This project looks like what I need so please help me make it work.
The text was updated successfully, but these errors were encountered: