Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //main.cpp
- #include <QtGui/QApplication>
- #include "mainwindow.h"
- #include <libavformat/avformat.h>
- int main(int argc, char *argv[])
- {
- av_register_all();
- QApplication a(argc, argv);
- MainWindow w;
- w.show();
- return a.exec();
- }
- //Project file:
- #-------------------------------------------------
- #
- # Project created by QtCreator 2012-01-15T21:52:22
- #
- #-------------------------------------------------
- QT += core gui
- TARGET = Test
- TEMPLATE = app
- SOURCES += main.cpp\
- mainwindow.cpp
- HEADERS += mainwindow.h
- FORMS += mainwindow.ui
- win32: LIBS += -L$$PWD/../codecs/lib/ -lavformat -lavcodec
- INCLUDEPATH += $$PWD/../codecs/include
- DEPENDPATH += $$PWD/../codecs/include
- DEFINES += __STDC_CONSTANT_MACROS
Add Comment
Please, Sign In to add comment