Open sacredgeo opened 7 years ago
I do most of the development on a Mac, so it definitely works. In theory the application should compile on Windows, Mac or Linux provided you have everything set up right. I've not tried deploying on anything other than Windows yet because it's the easiest way for the majority of people to test it.
Thank you for the reply. So the current github release won't compile on mac though right?
Things should compile as long as you have the latest version of Qt (5.7). I've always just used the OSX version of Qt Creator, so I don't know whether Xcode will compile it.
With regards to branches, the very latest is vpk-import which I'm currently working on to get reading capabilities for VPK archives. Master has a working VMF viewer but the application itself hasn't been rewritten to use the new renderer, so probably won't work as you'd expect it to. If you want a working version of the main application itself (although slow and not particularly featureful), try this branch.
@x6herbius
I tried comping the brach you recommended. Gave me a few issues:
:-1: error: no such file or directory: 'Support/Qt/5.7/clang_64/lib'
:-1: error: [calliper.app/Contents/MacOS/calliper] Error 1
Here's the relevant compile output:
clang: error: no such file or directory: 'Support/Qt/5.7/clang_64/lib'
make: *** [calliper.app/Contents/MacOS/calliper] Error 1
02:43:29: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project calliper (kit: Desktop Qt 5.7.0 clang 64bit)
When executing step "Make"
02:43:29: Elapsed time: 00:00.
Which branch specifically was this, and which mode (Debug/Release)?
I tried both that you linked. Those errors are from the first release linked below, but the 2nd release also gave me the same errors.
https://github.com/x6herbius/calliper/tree/demo/1-working-vmf-import https://github.com/x6herbius/calliper/tree/vpk-import
What do you mean about mode? I opened the .pro file in Qt and clicked "build"
You can select Debug or Release mode from the computer icon above the build buttons.
Can you give me the compile logs in full (maybe as a txt file), and tell me where you installed Qt? The file path beginning with Support seems odd, since my install of Qt just got put straight in my home directory.
02:10:26: Running steps for project calliper...
02:10:26: Starting: "/Users/T/Library/Application Support/Qt/5.7/clang_64/bin/qmake" /Users/T/Desktop/calliper-master/src/calliper.pro -spec macx-clang CONFIG+=x86_64
02:10:26: The process "/Users/T/Library/Application Support/Qt/5.7/clang_64/bin/qmake" exited normally.
02:10:26: Starting: "/usr/bin/make" qmake_all
cd calliperutil/ && /Users/T/Library/Application\ Support/Qt/5.7/clang_64/bin/qmake /Users/T/Desktop/calliper-master/src/calliperutil/calliperutil.pro -spec macx-clang CONFIG+=x86_64 -o Makefile
cd calliperutil/ && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile qmake_all
make[1]: Nothing to be done for qmake_all'. cd renderer/ && /Users/T/Library/Application\ Support/Qt/5.7/clang_64/bin/qmake /Users/T/Desktop/calliper-master/src/renderer/renderer.pro -spec macx-clang CONFIG+=x86_64 -o Makefile cd renderer/ && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile qmake_all make[1]: Nothing to be done for
qmake_all'.
cd model/ && /Users/T/Library/Application\ Support/Qt/5.7/clang_64/bin/qmake /Users/T/Desktop/calliper-master/src/model/model.pro -spec macx-clang CONFIG+=x86_64 -o Makefile
cd model/ && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile qmake_all
make[1]: Nothing to be done for qmake_all'. cd file-formats/ && /Users/T/Library/Application\ Support/Qt/5.7/clang_64/bin/qmake /Users/T/Desktop/calliper-master/src/file-formats/file-formats.pro -spec macx-clang CONFIG+=x86_64 -o Makefile cd file-formats/ && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile qmake_all make[1]: Nothing to be done for
qmake_all'.
cd dep-vtflib/ && /Users/T/Library/Application\ Support/Qt/5.7/clang_64/bin/qmake /Users/T/Desktop/calliper-master/src/dep-vtflib/dep-vtflib.pro -spec macx-clang CONFIG+=x86_64 -o Makefile
cd dep-vtflib/ && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile qmake_all
make[1]: Nothing to be done for qmake_all'. cd model-loaders/ && /Users/T/Library/Application\ Support/Qt/5.7/clang_64/bin/qmake /Users/T/Desktop/calliper-master/src/model-loaders/model-loaders.pro -spec macx-clang CONFIG+=x86_64 -o Makefile cd model-loaders/ && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile qmake_all make[1]: Nothing to be done for
qmake_all'.
cd user-interface/ && /Users/T/Library/Application\ Support/Qt/5.7/clang_64/bin/qmake /Users/T/Desktop/calliper-master/src/user-interface/user-interface.pro -spec macx-clang CONFIG+=x86_64 -o Makefile
cd user-interface/ && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile qmake_all
make[1]: Nothing to be done for qmake_all'. cd renderer-sandbox/ && /Users/T/Library/Application\ Support/Qt/5.7/clang_64/bin/qmake /Users/T/Desktop/calliper-master/src/renderer-sandbox/renderer-sandbox.pro -spec macx-clang CONFIG+=x86_64 -o Makefile cd renderer-sandbox/ && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile qmake_all make[1]: Nothing to be done for
qmake_all'.
cd app-vmfviewer/ && /Users/T/Library/Application\ Support/Qt/5.7/clang_64/bin/qmake /Users/T/Desktop/calliper-master/src/app-vmfviewer/app-vmfviewer.pro -spec macx-clang CONFIG+=x86_64 -o Makefile
cd app-vmfviewer/ && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile qmake_all
make[1]: Nothing to be done for qmake_all'. cd app-vpkinfo/ && /Users/T/Library/Application\ Support/Qt/5.7/clang_64/bin/qmake /Users/T/Desktop/calliper-master/src/app-vpkinfo/app-vpkinfo.pro -spec macx-clang CONFIG+=x86_64 -o Makefile cd app-vpkinfo/ && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile qmake_all make[1]: Nothing to be done for
qmake_all'.
cd tst-keyvaluesparser/ && /Users/T/Library/Application\ Support/Qt/5.7/clang_64/bin/qmake /Users/T/Desktop/calliper-master/src/tst-keyvaluesparser/tst-keyvaluesparser.pro -spec macx-clang CONFIG+=x86_64 -o Makefile
cd tst-keyvaluesparser/ && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile qmake_all
make[1]: Nothing to be done for qmake_all'. cd app-calliper/ && /Users/T/Library/Application\ Support/Qt/5.7/clang_64/bin/qmake /Users/T/Desktop/calliper-master/src/app-calliper/app-calliper.pro -spec macx-clang CONFIG+=x86_64 -o Makefile cd app-calliper/ && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile qmake_all make[1]: Nothing to be done for
qmake_all'.
cd app-vpkbrowser/ && /Users/T/Library/Application\ Support/Qt/5.7/clang_64/bin/qmake /Users/T/Desktop/calliper-master/src/app-vpkbrowser/app-vpkbrowser.pro -spec macx-clang CONFIG+=x86_64 -o Makefile
cd app-vpkbrowser/ && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile qmake_all
make[1]: Nothing to be done for `qmake_all'.
02:10:28: The process "/usr/bin/make" exited normally.
02:10:28: Starting: "/usr/bin/make"
cd calliperutil/ && ( test -e Makefile || /Users/T/Library/Application\ Support/Qt/5.7/clang_64/bin/qmake /Users/T/Desktop/calliper-master/src/calliperutil/calliperutil.pro -spec macx-clang CONFIG+=x86_64 -o Makefile ) && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++11 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.8 -Wall -W -fPIC -DUTIL_LIBRARY -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../src/calliperutil -I. -I../../../../Library/Application\ Support/Qt/5.7/clang_64/lib/QtOpenGL.framework/Headers -I../../../../Library/Application\ Support/Qt/5.7/clang_64/lib/QtWidgets.framework/Headers -I../../../../Library/Application\ Support/Qt/5.7/clang_64/lib/QtGui.framework/Headers -I../../../../Library/Application\ Support/Qt/5.7/clang_64/lib/QtCore.framework/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/AGL.framework/Headers -I../../../../Library/Application\ Support/Qt/5.7/clang_64/mkspecs/macx-clang -F/Users/T/Library/Application\ Support/Qt/5.7/clang_64/lib -o calliperexception.o ../../src/calliperutil/calliperutil/exceptions/calliperexception.cpp
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++11 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.8 -Wall -W -fPIC -DUTIL_LIBRARY -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../src/calliperutil -I. -I../../../../Library/Application\ Support/Qt/5.7/clang_64/lib/QtOpenGL.framework/Headers -I../../../../Library/Application\ Support/Qt/5.7/clang_64/lib/QtWidgets.framework/Headers -I../../../../Library/Application\ Support/Qt/5.7/clang_64/lib/QtGui.framework/Headers -I../../../../Library/Application\ Support/Qt/5.7/clang_64/lib/QtCore.framework/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/AGL.framework/Headers -I../../../../Library/Application\ Support/Qt/5.7/clang_64/mkspecs/macx-clang -F/Users/T/Library/Application\ Support/Qt/5.7/clang_64/lib -o generalutil.o ../../src/calliperutil/calliperutil/general/generalutil.cpp
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++11 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.8 -Wall -W -fPIC -DUTIL_LIBRARY -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../src/calliperutil -I. -I../../../../Library/Application\ Support/Qt/5.7/clang_64/lib/QtOpenGL.framework/Headers -I../../../../Library/Application\ Support/Qt/5.7/clang_64/lib/QtWidgets.framework/Headers -I../../../../Library/Application\ Support/Qt/5.7/clang_64/lib/QtGui.framework/Headers -I../../../../Library/Application\ Support/Qt/5.7/clang_64/lib/QtCore.framework/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/AGL.framework/Headers -I../../../../Library/Application\ Support/Qt/5.7/clang_64/mkspecs/macx-clang -F/Users/Timothy/Library/Application\ Support/Qt/5.7/clang_64/lib -o hashfunctions.o ../../src/calliperutil/calliperutil/general/hashfunctions.cpp
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++11 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.8 -Wall -W -fPIC -DUTIL_LIBRARY -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../src/calliperutil -I. -I../../../../Library/Application\ Support/Qt/5.7/clang_64/lib/QtOpenGL.framework/Headers -I../../../../Library/Application\ Support/Qt/5.7/clang_64/lib/QtWidgets.framework/Headers -I../../../../Library/Application\ Support/Qt/5.7/clang_64/lib/QtGui.framework/Headers -I../../../../Library/Application\ Support/Qt/5.7/clang_64/lib/QtCore.framework/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/AGL.framework/Headers -I../../../../Library/Application\ Support/Qt/5.7/clang_64/mkspecs/macx-clang -F/Users/T/Library/Application\ Support/Qt/5.7/clang_64/lib -o jsonarraywrapper.o ../../src/calliperutil/calliperutil/json/jsonarraywrapper.cpp
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++11 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.8 -Wall -W -fPIC -DUTIL_LIBRARY -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../src/calliperutil -I. -I../../../../Library/Application\ Support/Qt/5.7/clang_64/lib/QtOpenGL.framework/Headers -I../../../../Library/Application\ Support/Qt/5.7/clang_64/lib/QtWidgets.framework/Headers -I../../../../Library/Application\ Support/Qt/5.7/clang_64/lib/QtGui.framework/Headers -I../../../../Library/Application\ Support/Qt/5.7/clang_64/lib/QtCore.framework/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/AGL.framework/Headers -I../../../../Library/Application\ Support/Qt/5.7/clang_64/mkspecs/macx-clang -F/Users/T/Library/Application\ Support/Qt/5.7/clang_64/lib -o math.o ../../src/calliperutil/calliperutil/math/math.cpp
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++11 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.8 -Wall -W -fPIC -DUTIL_LIBRARY -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../src/calliperutil -I. -I../../../../Library/Application\ Support/Qt/5.7/clang_64/lib/QtOpenGL.framework/Headers -I../../../../Library/Application\ Support/Qt/5.7/clang_64/lib/QtWidgets.framework/Headers -I../../../../Library/Application\ Support/Qt/5.7/clang_64/lib/QtGui.framework/Headers -I../../../../Library/Application\ Support/Qt/5.7/clang_64/lib/QtCore.framework/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/AGL.framework/Headers -I../../../../Library/Application\ Support/Qt/5.7/clang_64/mkspecs/macx-clang -F/Users/T/Library/Application\ Support/Qt/5.7/clang_64/lib -o stringutil.o ../../src/calliperutil/calliperutil/string/stringutil.cpp
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++11 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.8 -Wall -W -fPIC -DUTIL_LIBRARY -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../src/calliperutil -I. -I../../../../Library/Application\ Support/Qt/5.7/clang_64/lib/QtOpenGL.framework/Headers -I../../../../Library/Application\ Support/Qt/5.7/clang_64/lib/QtWidgets.framework/Headers -I../../../../Library/Application\ Support/Qt/5.7/clang_64/lib/QtGui.framework/Headers -I../../../../Library/Application\ Support/Qt/5.7/clang_64/lib/QtCore.framework/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/AGL.framework/Headers -I../../../../Library/Application\ Support/Qt/5.7/clang_64/mkspecs/macx-clang -F/Users/T/Library/Application\ Support/Qt/5.7/clang_64/lib -o calliperutil_global.o ../../src/calliperutil/calliperutil_global.cpp
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++11 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.8 -Wall -W -fPIC -DUTIL_LIBRARY -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../src/calliperutil -I. -I../../../../Library/Application\ Support/Qt/5.7/clang_64/lib/QtOpenGL.framework/Headers -I../../../../Library/Application\ Support/Qt/5.7/clang_64/lib/QtWidgets.framework/Headers -I../../../../Library/Application\ Support/Qt/5.7/clang_64/lib/QtGui.framework/Headers -I../../../../Library/Application\ Support/Qt/5.7/clang_64/lib/QtCore.framework/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/AGL.framework/Headers -I../../../../Library/Application\ Support/Qt/5.7/clang_64/mkspecs/macx-clang -F/Users/T/Library/Application\ Support/Qt/5.7/clang_64/lib -o qobjectutil.o ../../src/calliperutil/calliperutil/qobject/qobjectutil.cpp
rm -f libcalliperutil.1.0.0.dylib libcalliperutil.dylib libcalliperutil.1.dylib libcalliperutil.1.0.dylib
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -headerpad_max_install_names -stdlib=libc++ -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.8 -Wl,-rpath,/Users/T/Library/Application\ Support/Qt/5.7/clang_64/lib -single_module -dynamiclib -compatibility_version 1.0 -current_version 1.0.0 -install_name libcalliperutil.1.dylib -o libcalliperutil.1.0.0.dylib calliperexception.o generalutil.o hashfunctions.o jsonarraywrapper.o math.o stringutil.o calliperutil_global.o qobjectutil.o -F/Users/T/Library/Application\ Support/Qt/5.7/clang_64/lib -framework QtOpenGL -framework QtWidgets -framework QtGui -framework QtCore -framework OpenGL -framework AGL
clang: error: no such file or directory: 'Support/Qt/5.7/clang_64/lib'
make[1]: [libcalliperutil.1.0.0.dylib] Error 1
make: [sub-calliperutil-make_first] Error 2
02:10:32: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project calliper (kit: Desktop Qt 5.7.0 clang 64bit)
When executing step "Make"
02:10:32: Elapsed time: 00:06.
That error looks like it's to do with the fact that you've got a space in your path to Qt: "F/Users/T/Library/Application Support/Qt/5.7/clang_64/lib", which is escaped in the build process as F/Users/T/Library/Application\ Support/Qt/5.7/clang_64/lib
. Apparently clang has problems with that escaped space.
If you can, try reinstalling Qt to a path that doesn't have a space: for example, mine is installed to /Users/Vesper/Qt5.8.0.
Great suggestion. I changed the location and was able to build it without issue. I encounter an error when trying to run it though.
calliper cannot be opened because of a problem.
Check with the developer to make sure calliper works with this version of OS X. You may need to reinstall the application. Be sure to install any available updates for the application and OS X.
Click Report to see more detailed information and send a report to Apple.
I am using OSX El Capitan 10.11.1
Can I see what's in the report? It could just be a plain old crash. If you hit "Report" it'll give you a window with a load of text in.
I see the main website says it's coming soon. I just wanted to ask if that is still in development. Thank you.