petersimonsson / libqatemcontrol

libqatemcontrol implements the protocol used to connect to BlackMagic ATEM switches.
GNU Lesser General Public License v2.1
79 stars 28 forks source link

Add instructions on how to compile examples #8

Open aaronpk opened 10 years ago

aaronpk commented 10 years ago

I'm not familiar with the QT framework but would love to be able to compile the examples on OSX. Would it be possible to add some instructions on how to compile this? What sort of dependencies I need to install, etc. Thanks!

mraerino commented 9 years ago

Procedure should be

qmake
make

Just as with the library.

make throws several errors

no CommandLineParser in QT4

main.cpp:2:10: fatal error: 'QCommandLineParser' file not found

Fix: install QT5 instead of QT4

brew install qt5

Library header not found

qatemuploader.cpp:3:10: fatal error: 'qatemconnection.h' file not found

Make sure to qmake & make & make install the library first!

Library not found

ld: library not found for -lqatemcontrol

Makefile Fix

For the last two bugs I prepared this fix to the Makefile because qmake does some things wrong there: http://pastebin.com/09jq1nka

I only tested this for the qatemuploader example under osx 10.9 with xcode installed