问题
After building QT via my Visual Studio 2010 as described here I find out that most part of demos doesn't work. When I open qtdemo.exe and try to Launch some of them (for example Demonstrations->Browser, Demonstrations->Media Player, Qt Declarative Examples->TV Tennis, ...) the same error message "Could not launch the example. Ensure that it has been built." I get.
回答1:
If you followed these configure flags from here, then obviously not all examples will work. These are the ones for a minimalistic Qt build:
configure.exe -release -no-webkit -no-phonon -no-phonon-backend -no-script -no-scripttools -no-qt3support -no-multimedia -no-ltcg
If you want all example to work (except webkit), then use this:
configure.exe -release -no-webkit -no-ltcg
If you want the to build everything (takes something like 17 GB of HDD space and half a day):
configure.exe
来源:https://stackoverflow.com/questions/5742041/some-of-qt-examples-are-not-working