adding gcc command line options in QT
How can and where should I add gcc command line options in QtCreator?
example:
I want to run a program in QT which otherwise runs like this in terminal:
Code:
gcc basic-tutorial-1.c -o basic-tutorial-1 `pkg-config --cflags --libs gstreamer-0.10`
Where should I add the string `pkg-config --cflags --libs gstreamer-0.10` ??
Re: adding gcc command line options in QT
For exmaple In the .pro file, using the system command
http://qt-project.org/doc/qt-4.8/qma...system-command
qmake even supports pkg-config directly: http://qt-project.org/faq/answer/doe...for_pkg-config
Cheers,
_
Re: adding gcc command line options in QT
Thanks for the reply.I am using pkg-config directly and have added these two lines to my .pro file:
Code:
CONFIG += link_pkgconfig
PKGCONFIG += gstreamer-0.10