toxic icon indicating copy to clipboard operation
toxic copied to clipboard

Compile fails

Open Memphizzz opened this issue 7 years ago • 6 comments

I'm trying to install toxic on Mac OS. Installed all dependencies using Homebrew. When running "make" though, it stops with error

"fatal error: 'glibconfig.h' file not found".

Any help is appreciated!

Memphizzz avatar Aug 29 '18 09:08 Memphizzz

I can't help you here as I don't have access to an OSX machine. Do we have any OSX users around who can help?

JFreegman avatar Sep 27 '18 17:09 JFreegman

Same problem here!

symgryph avatar Jan 07 '19 06:01 symgryph

Happens to me as well

AlexanderProd avatar Apr 29 '19 12:04 AlexanderProd

same issue here

ghost avatar Aug 18 '19 16:08 ghost

You can fix the library issues by installing Xquartz and libffi

brew install libffi
brew cask install xquartz

Then updating your PKG_CONFIG_PATH

export PKG_CONFIG_PATH=/usr/local/opt/openal-soft/lib/pkgconfig:/opt/X11/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig

However, the video code is no longer compatible. The define OSX doesn't exist anymore and should be replaced with APPLE. If you change that you get all sorts of compilation errors because the video code relies on types from linux libraries.

jspies avatar Aug 28 '19 16:08 jspies

I did all your steps but I still have a error when running make, /Users/nikita/Downloads/toxic-master/src/osx_video.m:281:29: warning: 'CVOpenGLBufferGetTypeID' is deprecated: first deprecated in macOS 10.14 - OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings) [-Wdeprecated-declarations] } else if (imageType == CVOpenGLBufferGetTypeID()) { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVOpenGLBuffer.h:36:20: note: 'CVOpenGLBufferGetTypeID' has been explicitly marked deprecated here CV_EXPORT CFTypeID CVOpenGLBufferGetTypeID(void) COREVIDEO_GL_DEPRECATED... ^ /Users/nikita/Downloads/toxic-master/src/osx_video.m:283:29: warning: 'CVOpenGLTextureGetTypeID' is deprecated: first deprecated in macOS 10.14 - OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings) [-Wdeprecated-declarations] } else if (imageType == CVOpenGLTextureGetTypeID()) { ^ /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVOpenGLTexture.h:40:20: note: 'CVOpenGLTextureGetTypeID' has been explicitly marked deprecated here CV_EXPORT CFTypeID CVOpenGLTextureGetTypeID(void) COREVIDEO_GL_DEPRECATE... ^ 2 warnings generated. CC xtra.o CC audio_call.o CC audio_device.o CC video_call.o CC video_device.o /Users/nikita/Downloads/toxic-master/src/video_device.c:43:10: fatal error: 'linux/videodev2.h' file not found #include <linux/videodev2.h> ^~~~~~~~~~~~~~~~~~~

If I ignore that and run sudo make install I get this, /Users/nikita/Downloads/toxic-master/src/video_device.c:27:10: fatal error: 'X11/Xlib.h' file not found #include <X11/Xlib.h> ^~~~~~~~~~~~ 1 error generated. make: *** [/Users/nikita/Downloads/toxic-master/build/video_device.o] Error 1

ghost avatar Sep 08 '19 15:09 ghost

closing due to inactivity

JFreegman avatar Jan 25 '24 19:01 JFreegman