mumble-voip / mumble-releng

Mumble Release Engineering
Other
17 stars 21 forks source link

Protobuf issues on make osx #69

Closed zachlevy closed 6 years ago

zachlevy commented 6 years ago

Hello, I'm having some issues with protobuf compiling on osx.

I've set up the environment following the instructions in buildenv/1.3.x/osx/ and using XCode 8.

When I run

$ qmake -recursive -Wall main.pro CONFIG+="release static"
$ make

I get the following error

cd src/mumble_proto/ && ( test -e Makefile || /MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/bin/qmake /Users/zachlevy/mumble/src/mumble_proto/mumble_proto.pro -Wall CONFIG+=release -o Makefile ) && /Applications/Xcode8.app/Contents/Developer/usr/bin/make -f Makefile
/Applications/Xcode8.app/Contents/Developer/usr/bin/make -f Makefile.Release
make[2]: Nothing to be done for `first'.
cd 3rdparty/speex-build/ && ( test -e Makefile || /MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/bin/qmake /Users/zachlevy/mumble/3rdparty/speex-build/speex-build.pro -Wall CONFIG+=release -o Makefile ) && /Applications/Xcode8.app/Contents/Developer/usr/bin/make -f Makefile
/Applications/Xcode8.app/Contents/Developer/usr/bin/make -f Makefile.Release
make[2]: Nothing to be done for `first'.
cd 3rdparty/celt-0.7.0-build/ && ( test -e Makefile || /MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/bin/qmake /Users/zachlevy/mumble/3rdparty/celt-0.7.0-build/celt-0.7.0-build.pro -Wall CONFIG+=release -o Makefile ) && /Applications/Xcode8.app/Contents/Developer/usr/bin/make -f Makefile
/Applications/Xcode8.app/Contents/Developer/usr/bin/make -f Makefile.Release
make[2]: Nothing to be done for `first'.
cd 3rdparty/celt-0.11.0-build/ && ( test -e Makefile || /MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/bin/qmake /Users/zachlevy/mumble/3rdparty/celt-0.11.0-build/celt-0.11.0-build.pro -Wall CONFIG+=release -o Makefile ) && /Applications/Xcode8.app/Contents/Developer/usr/bin/make -f Makefile
/Applications/Xcode8.app/Contents/Developer/usr/bin/make -f Makefile.Release
make[2]: Nothing to be done for `first'.
cd 3rdparty/opus-build/ && ( test -e Makefile || /MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/bin/qmake /Users/zachlevy/mumble/3rdparty/opus-build/opus-build.pro -Wall CONFIG+=release -o Makefile ) && /Applications/Xcode8.app/Contents/Developer/usr/bin/make -f Makefile
/Applications/Xcode8.app/Contents/Developer/usr/bin/make -f Makefile.Release
make[2]: Nothing to be done for `first'.
cd src/mumble/ && ( test -e Makefile || /MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/bin/qmake /Users/zachlevy/mumble/src/mumble/mumble.pro -Wall CONFIG+=release -o Makefile ) && /Applications/Xcode8.app/Contents/Developer/usr/bin/make -f Makefile
/Applications/Xcode8.app/Contents/Developer/usr/bin/make -f Makefile.Release
/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/bin/uic Cert.ui -o ui_Cert.h
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -fvisibility=hidden -Wall -Wextra -Werror -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/include -isystem /MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/include -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include -isystem /MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include -mmacosx-version-min=10.7 -I../mumble_proto -isystem ../mumble_proto -I../../3rdparty/celt-0.7.0-src/libcelt -isystem ../../3rdparty/celt-0.7.0-src/libcelt -I../../3rdparty/opus-src/celt -isystem  ../../3rdparty/opus-src/celt -I../../3rdparty/opus-src/include -isystem ../../3rdparty/opus-src/include -I../../3rdparty/speex-src/include -I../../3rdparty/speex-build -O2 -I../../3rdparty/speex-src/include -I../../3rdparty/speex-build -std=gnu++11 -isysroot /Applications/Xcode8.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -mmacosx-version-min=10.7 -Wall -W -fPIC -DUSE_BUILDENV -DRESTRICT=__restrict__ -DMUMBLE_VERSION_STRING=1.3.0 -DMUMBLE -DUSE_STATIC -DUSE_MANUAL_PLUGIN -DUSE_OPUS -DUSE_BONJOUR -DUSE_G15 -DUSE_STATIC_QT_PLUGINS -D_THREAD_SAFE -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_CORE_LIB -I. -I../../src -I. -I../mumble_proto -I../../3rdparty/arc4random-src -I../../3rdparty/qqbonjour-src -I../../3rdparty/smallft-src -Iwidgets -I../../3rdparty/speex-src/include -I../../3rdparty/speex-src/libspeex -I../../3rdparty/speex-build -I../../3rdparty/speexdsp-src/include -I../../3rdparty/speexdsp-src/libspeexdsp -I../../3rdparty/celt-0.7.0-src/libcelt -I../../3rdparty/opus-src/celt -I../../3rdparty/opus-src/include -I../../3rdparty/opus-src/src -I../../3rdparty/opus-build/src -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/include -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include/QtSvg -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include/QtWidgets -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include/QtGui -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include/QtNetwork -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include/QtSql -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include/QtXml -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include/QtCore -Irelease -I/Applications/Xcode8.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode8.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/mkspecs/macx-clang -o release/Connection.o ../Connection.cpp
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -fvisibility=hidden -Wall -Wextra -Werror -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/include -isystem /MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/include -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include -isystem /MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include -mmacosx-version-min=10.7 -I../mumble_proto -isystem ../mumble_proto -I../../3rdparty/celt-0.7.0-src/libcelt -isystem ../../3rdparty/celt-0.7.0-src/libcelt -I../../3rdparty/opus-src/celt -isystem  ../../3rdparty/opus-src/celt -I../../3rdparty/opus-src/include -isystem ../../3rdparty/opus-src/include -I../../3rdparty/speex-src/include -I../../3rdparty/speex-build -O2 -I../../3rdparty/speex-src/include -I../../3rdparty/speex-build -std=gnu++11 -isysroot /Applications/Xcode8.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -mmacosx-version-min=10.7 -Wall -W -fPIC -DUSE_BUILDENV -DRESTRICT=__restrict__ -DMUMBLE_VERSION_STRING=1.3.0 -DMUMBLE -DUSE_STATIC -DUSE_MANUAL_PLUGIN -DUSE_OPUS -DUSE_BONJOUR -DUSE_G15 -DUSE_STATIC_QT_PLUGINS -D_THREAD_SAFE -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_CORE_LIB -I. -I../../src -I. -I../mumble_proto -I../../3rdparty/arc4random-src -I../../3rdparty/qqbonjour-src -I../../3rdparty/smallft-src -Iwidgets -I../../3rdparty/speex-src/include -I../../3rdparty/speex-src/libspeex -I../../3rdparty/speex-build -I../../3rdparty/speexdsp-src/include -I../../3rdparty/speexdsp-src/libspeexdsp -I../../3rdparty/celt-0.7.0-src/libcelt -I../../3rdparty/opus-src/celt -I../../3rdparty/opus-src/include -I../../3rdparty/opus-src/src -I../../3rdparty/opus-build/src -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/include -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include/QtSvg -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include/QtWidgets -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include/QtGui -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include/QtNetwork -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include/QtSql -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include/QtXml -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include/QtCore -Irelease -I/Applications/Xcode8.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode8.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/mkspecs/macx-clang -o release/CryptState.o ../CryptState.cpp
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -fvisibility=hidden -Wall -Wextra -Werror -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/include -isystem /MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/include -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include -isystem /MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include -mmacosx-version-min=10.7 -I../mumble_proto -isystem ../mumble_proto -I../../3rdparty/celt-0.7.0-src/libcelt -isystem ../../3rdparty/celt-0.7.0-src/libcelt -I../../3rdparty/opus-src/celt -isystem  ../../3rdparty/opus-src/celt -I../../3rdparty/opus-src/include -isystem ../../3rdparty/opus-src/include -I../../3rdparty/speex-src/include -I../../3rdparty/speex-build -O2 -I../../3rdparty/speex-src/include -I../../3rdparty/speex-build -std=gnu++11 -isysroot /Applications/Xcode8.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -mmacosx-version-min=10.7 -Wall -W -fPIC -DUSE_BUILDENV -DRESTRICT=__restrict__ -DMUMBLE_VERSION_STRING=1.3.0 -DMUMBLE -DUSE_STATIC -DUSE_MANUAL_PLUGIN -DUSE_OPUS -DUSE_BONJOUR -DUSE_G15 -DUSE_STATIC_QT_PLUGINS -D_THREAD_SAFE -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_CORE_LIB -I. -I../../src -I. -I../mumble_proto -I../../3rdparty/arc4random-src -I../../3rdparty/qqbonjour-src -I../../3rdparty/smallft-src -Iwidgets -I../../3rdparty/speex-src/include -I../../3rdparty/speex-src/libspeex -I../../3rdparty/speex-build -I../../3rdparty/speexdsp-src/include -I../../3rdparty/speexdsp-src/libspeexdsp -I../../3rdparty/celt-0.7.0-src/libcelt -I../../3rdparty/opus-src/celt -I../../3rdparty/opus-src/include -I../../3rdparty/opus-src/src -I../../3rdparty/opus-build/src -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/include -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include/QtSvg -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include/QtWidgets -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include/QtGui -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include/QtNetwork -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include/QtSql -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include/QtXml -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include/QtCore -Irelease -I/Applications/Xcode8.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode8.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/mkspecs/macx-clang -o release/OSInfo.o ../OSInfo.cpp
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -fvisibility=hidden -Wall -Wextra -Werror -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/include -isystem /MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/include -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include -isystem /MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include -mmacosx-version-min=10.7 -I../mumble_proto -isystem ../mumble_proto -I../../3rdparty/celt-0.7.0-src/libcelt -isystem ../../3rdparty/celt-0.7.0-src/libcelt -I../../3rdparty/opus-src/celt -isystem  ../../3rdparty/opus-src/celt -I../../3rdparty/opus-src/include -isystem ../../3rdparty/opus-src/include -I../../3rdparty/speex-src/include -I../../3rdparty/speex-build -O2 -I../../3rdparty/speex-src/include -I../../3rdparty/speex-build -std=gnu++11 -isysroot /Applications/Xcode8.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -mmacosx-version-min=10.7 -Wall -W -fPIC -DUSE_BUILDENV -DRESTRICT=__restrict__ -DMUMBLE_VERSION_STRING=1.3.0 -DMUMBLE -DUSE_STATIC -DUSE_MANUAL_PLUGIN -DUSE_OPUS -DUSE_BONJOUR -DUSE_G15 -DUSE_STATIC_QT_PLUGINS -D_THREAD_SAFE -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_CORE_LIB -I. -I../../src -I. -I../mumble_proto -I../../3rdparty/arc4random-src -I../../3rdparty/qqbonjour-src -I../../3rdparty/smallft-src -Iwidgets -I../../3rdparty/speex-src/include -I../../3rdparty/speex-src/libspeex -I../../3rdparty/speex-build -I../../3rdparty/speexdsp-src/include -I../../3rdparty/speexdsp-src/libspeexdsp -I../../3rdparty/celt-0.7.0-src/libcelt -I../../3rdparty/opus-src/celt -I../../3rdparty/opus-src/include -I../../3rdparty/opus-src/src -I../../3rdparty/opus-build/src -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/include -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include/QtSvg -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include/QtWidgets -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include/QtGui -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include/QtNetwork -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include/QtSql -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include/QtXml -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/include/QtCore -Irelease -I/Applications/Xcode8.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode8.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -I/MumbleBuild/osx-1.3.x-2018-02-13-16ed44e-872/Qt5/mkspecs/macx-clang -o release/SSL.o ../SSL.cpp
In file included from ../Connection.cpp:18:
../mumble_proto/Mumble.pb.h:12:2: error: This file was generated by a newer version of protoc which is
#error This file was generated by a newer version of protoc which is
 ^
../mumble_proto/Mumble.pb.h:13:2: error: incompatible with your Protocol Buffer headers. Please update
#error incompatible with your Protocol Buffer headers.  Please update
 ^
../mumble_proto/Mumble.pb.h:14:2: error: your headers.
#error your headers.
 ^
../mumble_proto/Mumble.pb.h:23:10: fatal error: 'google/protobuf/arena.h' file not found
#include <google/protobuf/arena.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~
4 errors generated.
make[2]: *** [release/Connection.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [release] Error 2
make: *** [sub-src-mumble-make_first-ordered] Error 2

Any thoughts?

zachlevy commented 6 years ago

So I had removed my old mumble repo and recloned, it has fixed the problem.

I had previously tried cmake and make with the latest protobuf 3.6.1 and it generated a file checking for protobuf 3+.