Skip to main content

Qt 4.7.0-beta1 on FreeBSD

Posted in

These are the steps to make it work on FreeBSD:

$ tar xfz qt-everywhere-opensource-src-4.7.0-beta1.tar.gz
$ cd qt-everywhere-opensource-src-4.7.0-beta1

Now we need to go to src/plugins/mediaservices/gstreamer/qgstreamervideoinputdevicecontrol.cpp and remove include on line 48. Makes no sense to include linux/types.h on FreeBSD, does it? :) (Sorry, I'm too lazy to create a patch just for this modification.)

$ setenv QMAKESPEC freebsd-g++34
$ ./configure -declarative -nomake demos -nomake examples
$ gmake -j4
$ gmake install