Skip to content

Latest commit

 

History

History
33 lines (18 loc) · 1.56 KB

QtAVBuildConfigurations.md

File metadata and controls

33 lines (18 loc) · 1.56 KB

Since QtAV 1.3.1, you can configure how to build QtAV in a easier way.

When running qmake, qmake will do some tests to check the building environment and the features can be enabled. The default behavior is to check all the features in both $$EssentialDepends and $$OptionalDepends(see QtAV.pro) and to build all parts in source tree including examples, tests. Now you can simply select what you want to check and build using a user.conf in QtAV source directory.

Disable Features Manually

Currently features in $$EssentialDepends will always be checked: avutil, avcodec, avformat, swscale, swresample, avresample, gl. Features in $$OptionalDepends will also be checked by default.

Features in $$OptionalDepends can be disabled by adding a CONFIG value in QtAV_SRC_DIR/user.conf(create it if not exists). For example, to disable vaapi, just add:

CONFIG += no-vaapi

All options available are: no-openal, no-portaudio, no-direct2d, no-gdiplus, no-dxva, no-xv, no-vaapi, no-cedarv.

Disable config.tests

config.tests will check what features QtAV can support. It may takes a few seconds. Some you may skip these checking to save time. You can add

CONFIG += no_config_tests

in QtAV_SRC/user.conf to disable it then qmake will be faster. But you then must enable the features you want manually in user.conf. All features available are $$OptionalDepends. For example, to enable avresample, add

CONFIG += config_avresample

in user.conf.

TODO

more flexible configuration, such as build path, blablabla.