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

Fixes a compiler error by using null joystick on freebsd #285

Merged
merged 1 commit into from
Jun 25, 2020

Conversation

jamesmintram
Copy link
Contributor

@jamesmintram jamesmintram commented Jun 25, 2020

Created a separate c file for freebsd and updated the joystick ref to use the null joystick.

Built, compiled and ran OpenDiablo which is where this issue was discovered. #264 (comment)

@pwaller

@tapir tapir merged commit 73d3c36 into go-gl:master Jun 25, 2020
@nunotexbsd
Copy link

Hello,

I used latest upstream and it seams its not solved:

"s' in 'struct _GLFWjoystick'
../../go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/glfw/src/linux_joystick.c:89:49: error: no member named 'linjs' in 'struct _GLFWjoystick'
../../go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/glfw/src/linux_joystick.c:92:31: error: incomplete definition of type 'struct input_absinfo'
../../go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/glfw/src/linux_joystick.c:89:22: note: forward declaration of 'struct input_absinfo'
../../go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/glfw/src/linux_joystick.c:92:47: error: incomplete definition of type 'struct input_absinfo'
../../go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/glfw/src/linux_joystick.c:89:22: note: forward declaration of 'struct input_absinfo'
../../go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/glfw/src/linux_joystick.c:96:44: error: incomplete definition of type 'struct input_absinfo'
../../go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/glfw/src/linux_joystick.c:89:22: note: forward declaration of 'struct input_absinfo'
../../go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/glfw/src/linux_joystick.c:109:32: error: use of undeclared identifier 'ABS_CNT'
../../go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/glfw/src/linux_joystick.c:111:17: error: no member named 'linjs' in 'struct _GLFWjoystick'
../../go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/glfw/src/linux_joystick.c:114:43: error: no member named 'linjs' in 'struct _GLFWjoystick'
../../go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/glfw/src/linux_joystick.c:116:13: warning: implicit declaration of function 'ioctl' is invalid in C99 [-Wimplicit-function-declaration]
../../go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/glfw/src/linux_joystick.c:116:23: error: no member named 'linjs' in 'struct _GLFWjoystick'
../../go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/glfw/src/linux_joystick.c:116:33: warning: implicit declaration of function 'EVIOCGABS' is invalid in C99 [-Wimplicit-function-declaration]
../../go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/glfw/src/linux_joystick.c:119:38: error: incomplete definition of type 'struct input_absinfo'
../../go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/glfw/src/linux_joystick.c:114:16: note: forward declaration of 'struct input_absinfo'
../../go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/glfw/src/linux_joystick.c:133:41: error: no member named 'linjs' in 'struct _GLFWjoystick'
../../go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/glfw/src/linux_joystick.c:137:23: error: expected ';' after expression
fatal error: too many errors emitted, stopping now [-ferror-limit=]

Thanks,

Nuno

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

Successfully merging this pull request may close these issues.

3 participants