gazed / vu

Virtual Universe 3D Engine
BSD 2-Clause "Simplified" License
223 stars 26 forks source link

Doesn't compile on OpenSuse #6

Open Whitecl4ws opened 7 years ago

Whitecl4ws commented 7 years ago
# github.com/gazed/vu/device
../go/src/github.com/gazed/vu/device/input.go:196: undefined: controlKeyMask
../go/src/github.com/gazed/vu/device/input.go:197: undefined: shiftKeyMask
../go/src/github.com/gazed/vu/device/input.go:198: undefined: functionKeyMask
../go/src/github.com/gazed/vu/device/input.go:199: undefined: commandKeyMask
../go/src/github.com/gazed/vu/device/input.go:200: undefined: altKeyMask
../go/src/github.com/gazed/vu/device/input.go:208: undefined: key0
../go/src/github.com/gazed/vu/device/input.go:209: undefined: key1
../go/src/github.com/gazed/vu/device/input.go:210: undefined: key2
../go/src/github.com/gazed/vu/device/input.go:211: undefined: key3
../go/src/github.com/gazed/vu/device/input.go:212: undefined: key4
../go/src/github.com/gazed/vu/device/input.go:212: too many errors
# github.com/gazed/vu/audio/al
could not determine kind of name for C.uintptr_t
could not determine kind of name for C.wrap_alcCaptureCloseDevice
could not determine kind of name for C.wrap_alcCaptureSamples
could not determine kind of name for C.wrap_alcCaptureStart
could not determine kind of name for C.wrap_alcCaptureStop
could not determine kind of name for C.wrap_alcCloseDevice
could not determine kind of name for C.wrap_alcCreateContext
could not determine kind of name for C.wrap_alcDestroyContext
could not determine kind of name for C.wrap_alcGetContextsDevice
could not determine kind of name for C.wrap_alcGetEnumValue
could not determine kind of name for C.wrap_alcGetError
could not determine kind of name for C.wrap_alcGetIntegerv
could not determine kind of name for C.wrap_alcGetProcAddress
could not determine kind of name for C.wrap_alcGetString
could not determine kind of name for C.wrap_alcIsExtensionPresent
could not determine kind of name for C.wrap_alcMakeContextCurrent
could not determine kind of name for C.wrap_alcProcessContext
could not determine kind of name for C.wrap_alcSuspendContext

gcc errors for preamble:
../go/src/github.com/gazed/vu/audio/al/al.go:272:2: error: unknown type name 'uintptr_t'
 // ALC_API uintptr_t    ALC_APIENTRY wrap_alcCreateContext( uintptr_t device, const int* attrlist ) { return (uintptr_t)(*pfn_alcCreateContext)((ALCdevice *)device, attrlist); }
  ^
../go/src/github.com/gazed/vu/audio/al/al.go:272:59: error: unknown type name 'uintptr_t'
 // ALC_API uintptr_t    ALC_APIENTRY wrap_alcCreateContext( uintptr_t device, const int* attrlist ) { return (uintptr_t)(*pfn_alcCreateContext)((ALCdevice *)device, attrlist); }
                                                           ^
../go/src/github.com/gazed/vu/audio/al/al.go:273:64: error: unknown type name 'uintptr_t'
 // ALC_API ALCboolean   ALC_APIENTRY wrap_alcMakeContextCurrent( uintptr_t context ) { return (*pfn_alcMakeContextCurrent)( (ALCcontext *)context ); }
                                                                ^
../go/src/github.com/gazed/vu/audio/al/al.go:274:60: error: unknown type name 'uintptr_t'
 // ALC_API void         ALC_APIENTRY wrap_alcProcessContext( uintptr_t context ) { (*pfn_alcProcessContext)( (ALCcontext *)context ); }
                                                            ^
../go/src/github.com/gazed/vu/audio/al/al.go:275:60: error: unknown type name 'uintptr_t'
 // ALC_API void         ALC_APIENTRY wrap_alcSuspendContext( uintptr_t context ) { (*pfn_alcSuspendContext)( (ALCcontext *)context ); }
                                                            ^
../go/src/github.com/gazed/vu/audio/al/al.go:276:60: error: unknown type name 'uintptr_t'
 // ALC_API void         ALC_APIENTRY wrap_alcDestroyContext( uintptr_t context ) { (*pfn_alcDestroyContext)( (ALCcontext *)context ); }
                                                            ^
../go/src/github.com/gazed/vu/audio/al/al.go:277:2: error: unknown type name 'uintptr_t'
 // ALC_API uintptr_t    ALC_APIENTRY wrap_alcGetCurrentContext( void ) { return (uintptr_t)(*pfn_alcGetCurrentContext)(); }
  ^
../go/src/github.com/gazed/vu/audio/al/al.go: In function 'wrap_alcGetCurrentContext':
../go/src/github.com/gazed/vu/audio/al/al.go:277:80: error: 'uintptr_t' undeclared (first use in this function)
 // ALC_API uintptr_t    ALC_APIENTRY wrap_alcGetCurrentContext( void ) { return (uintptr_t)(*pfn_alcGetCurrentContext)(); }
                                                                                ^
../go/src/github.com/gazed/vu/audio/al/al.go:277:80: note: each undeclared identifier is reported only once for each function it appears in
../go/src/github.com/gazed/vu/audio/al/al.go: At top level:
../go/src/github.com/gazed/vu/audio/al/al.go:278:2: error: unknown type name 'uintptr_t'
 // ALC_API uintptr_t    ALC_APIENTRY wrap_alcGetContextsDevice( uintptr_t context ) { return (uintptr_t)(*pfn_alcGetContextsDevice)( (ALCcontext *)context ); }
  ^
../go/src/github.com/gazed/vu/audio/al/al.go:278:63: error: unknown type name 'uintptr_t'
 // ALC_API uintptr_t    ALC_APIENTRY wrap_alcGetContextsDevice( uintptr_t context ) { return (uintptr_t)(*pfn_alcGetContextsDevice)( (ALCcontext *)context ); }
                                                               ^
../go/src/github.com/gazed/vu/audio/al/al.go:279:2: error: unknown type name 'uintptr_t'
 // ALC_API uintptr_t    ALC_APIENTRY wrap_alcOpenDevice( const char *devicename ) { return (uintptr_t)(*pfn_alcOpenDevice)( devicename ); }
  ^
../go/src/github.com/gazed/vu/audio/al/al.go: In function 'wrap_alcOpenDevice':
../go/src/github.com/gazed/vu/audio/al/al.go:279:91: error: 'uintptr_t' undeclared (first use in this function)
 // ALC_API uintptr_t    ALC_APIENTRY wrap_alcOpenDevice( const char *devicename ) { return (uintptr_t)(*pfn_alcOpenDevice)( devicename ); }
                                                                                           ^
../go/src/github.com/gazed/vu/audio/al/al.go: At top level:
../go/src/github.com/gazed/vu/audio/al/al.go:280:57: error: unknown type name 'uintptr_t'
 // ALC_API ALCboolean   ALC_APIENTRY wrap_alcCloseDevice( uintptr_t device ) { return (*pfn_alcCloseDevice)( (ALCdevice *)device ); }
                                                         ^
../go/src/github.com/gazed/vu/audio/al/al.go:281:54: error: unknown type name 'uintptr_t'
 // ALC_API ALCenum      ALC_APIENTRY wrap_alcGetError( uintptr_t device ) { return (*pfn_alcGetError)( (ALCdevice *)device ); }
                                                      ^
../go/src/github.com/gazed/vu/audio/al/al.go:282:64: error: unknown type name 'uintptr_t'
 // ALC_API ALCboolean   ALC_APIENTRY wrap_alcIsExtensionPresent( uintptr_t device, const char *extname ) { return (*pfn_alcIsExtensionPresent)( (ALCdevice *)device, extname ); }
                                                                ^
../go/src/github.com/gazed/vu/audio/al/al.go:283:60: error: unknown type name 'uintptr_t'
 // ALC_API void  *      ALC_APIENTRY wrap_alcGetProcAddress( uintptr_t device, const char *funcname ) { return (*pfn_alcGetProcAddress)( (ALCdevice *)device, funcname ); }
                                                            ^
../go/src/github.com/gazed/vu/audio/al/al.go:284:58: error: unknown type name 'uintptr_t'
 // ALC_API ALCenum      ALC_APIENTRY wrap_alcGetEnumValue( uintptr_t device, const char *enumname ) { return (*pfn_alcGetEnumValue)( (ALCdevice *)device, enumname ); }
                                                          ^
../go/src/github.com/gazed/vu/audio/al/al.go:285:55: error: unknown type name 'uintptr_t'
 // ALC_API const char * ALC_APIENTRY wrap_alcGetString( uintptr_t device, int param ) { return (*pfn_alcGetString)( (ALCdevice *)device, param ); }
                                                       ^
../go/src/github.com/gazed/vu/audio/al/al.go:286:57: error: unknown type name 'uintptr_t'
 // ALC_API void         ALC_APIENTRY wrap_alcGetIntegerv( uintptr_t device, int param, int size, int *data ) { (*pfn_alcGetIntegerv)( (ALCdevice *)device, param, size, data ); }
                                                         ^
../go/src/github.com/gazed/vu/audio/al/al.go:287:2: error: unknown type name 'uintptr_t'
 // ALC_API uintptr_t    ALC_APIENTRY wrap_alcCaptureOpenDevice( const char *devicename, unsigned int frequency, int format, int buffersize ) { return (uintptr_t)(*pfn_alcCaptureOpenDevice)( devicename, frequency, format, buffersize ); }
  ^
../go/src/github.com/gazed/vu/audio/al/al.go: In function 'wrap_alcCaptureOpenDevice':
../go/src/github.com/gazed/vu/audio/al/al.go:287:150: error: 'uintptr_t' undeclared (first use in this function)
 // ALC_API uintptr_t    ALC_APIENTRY wrap_alcCaptureOpenDevice( const char *devicename, unsigned int frequency, int format, int buffersize ) { return (uintptr_t)(*pfn_alcCaptureOpenDevice)( devicename, frequency, format, buffersize ); }
                                                                                                                                                      ^
../go/src/github.com/gazed/vu/audio/al/al.go: At top level:
../go/src/github.com/gazed/vu/audio/al/al.go:288:64: error: unknown type name 'uintptr_t'
 // ALC_API ALCboolean   ALC_APIENTRY wrap_alcCaptureCloseDevice( uintptr_t device ) { return (*pfn_alcCaptureCloseDevice)( (ALCdevice *)device ); }
                                                                ^
../go/src/github.com/gazed/vu/audio/al/al.go:289:58: error: unknown type name 'uintptr_t'
 // ALC_API void         ALC_APIENTRY wrap_alcCaptureStart( uintptr_t device ) { (*pfn_alcCaptureStart)( (ALCdevice *)device ); }
                                                          ^
../go/src/github.com/gazed/vu/audio/al/al.go:290:57: error: unknown type name 'uintptr_t'
 // ALC_API void         ALC_APIENTRY wrap_alcCaptureStop( uintptr_t device ) { (*pfn_alcCaptureStop)( (ALCdevice *)device ); }
                                                         ^
../go/src/github.com/gazed/vu/audio/al/al.go:291:60: error: unknown type name 'uintptr_t'
 // ALC_API void         ALC_APIENTRY wrap_alcCaptureSamples( uintptr_t device, ALCvoid *buffer, int samples ) { (*pfn_alcCaptureSamples)( (ALCdevice *)device, buffer, samples ); }
                                                            ^

# github.com/gazed/vu/physics
/tmp/go-build827693216/github.com/gazed/vu/physics/_obj/collision.o: In function `btAtan2':
../go/src/github.com/gazed/vu/physics/collision.c:58: undefined reference to `atan2'
/tmp/go-build827693216/github.com/gazed/vu/physics/_obj/collision.o: In function `btSqrt':
../go/src/github.com/gazed/vu/physics/collision.c:59: undefined reference to `sqrt'
../go/src/github.com/gazed/vu/physics/collision.c:59: undefined reference to `sqrt'
../go/src/github.com/gazed/vu/physics/collision.c:59: undefined reference to `sqrt'
../go/src/github.com/gazed/vu/physics/collision.c:59: undefined reference to `sqrt'
../go/src/github.com/gazed/vu/physics/collision.c:59: undefined reference to `sqrt'
/tmp/go-build827693216/github.com/gazed/vu/physics/_obj/collision.o:/home/terminal/go/src/github.com/gazed/vu/physics/collision.c:59: more undefined references to `sqrt' follow
collect2: error: ld returned 1 exit status

go get -u github.com/gazed/vu

terminal@linux-iflx:~/Downloads> uname -a
Linux linux-iflx 4.4.74-18.20-default #1 SMP Fri Jun 30 19:01:19 UTC 2017 (b5079b8) x86_64 x86_64 x86_64 GNU/Linux
terminal@linux-iflx:~/Downloads> cat /etc/os-release
NAME="openSUSE Leap"
VERSION="42.2"
tirithen commented 6 years ago

Same issue here on Arch Linux