You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building Go-SDL fails consistently on my machine. Even after updating Go to the latest release and making sure all requirements are met (sdl libs).
The following are the errors I get when make hits the sdl package:
sdl.go:49[sdl.cgo1.go:51]: VideoInfo redeclared in this block previous declaration at constants.6.go:397
sdl.go:66[sdl.cgo1.go:68]: undefined: internalVideoInfo
After some digging, I found that the problem is in the auto-generation of the constant.6.go file.
The internalVideoInfo struct is supposed to be generated in this file, but it is only present in the constants.8.go file. Not in the constants.6.go file (which is my arch).
the 6.go file contains a (duplicate) 'VideoInfo' struct:
Building Go-SDL fails consistently on my machine. Even after updating Go to the latest release and making sure all requirements are met (sdl libs).
The following are the errors I get when make hits the sdl package:
After some digging, I found that the problem is in the auto-generation of the constant.6.go file.
The internalVideoInfo struct is supposed to be generated in this file, but it is only present in the constants.8.go file. Not in the constants.6.go file (which is my arch).
the 6.go file contains a (duplicate) 'VideoInfo' struct:
Where it should be having:
Manually replacing it fixes the problem and the build works as intended, but I thought I'd mention it here so it can be addressed.
The text was updated successfully, but these errors were encountered: