toxic
toxic copied to clipboard
Compile fails
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!
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?
Same problem here!
Happens to me as well
same issue here
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.
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
closing due to inactivity