Guest User

Untitled

a guest
May 24th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. //main.cpp
  2.  
  3. #include <QtGui/QApplication>
  4. #include "mainwindow.h"
  5. #include <libavformat/avformat.h>
  6.  
  7. int main(int argc, char *argv[])
  8. {
  9. av_register_all();
  10.  
  11. QApplication a(argc, argv);
  12. MainWindow w;
  13. w.show();
  14.  
  15. return a.exec();
  16. }
  17.  
  18.  
  19. //Project file:
  20.  
  21. #-------------------------------------------------
  22. #
  23. # Project created by QtCreator 2012-01-15T21:52:22
  24. #
  25. #-------------------------------------------------
  26.  
  27. QT += core gui
  28.  
  29. TARGET = Test
  30. TEMPLATE = app
  31.  
  32.  
  33. SOURCES += main.cpp\
  34. mainwindow.cpp
  35.  
  36. HEADERS += mainwindow.h
  37.  
  38. FORMS += mainwindow.ui
  39.  
  40. win32: LIBS += -L$$PWD/../codecs/lib/ -lavformat -lavcodec
  41.  
  42. INCLUDEPATH += $$PWD/../codecs/include
  43. DEPENDPATH += $$PWD/../codecs/include
  44.  
  45. DEFINES += __STDC_CONSTANT_MACROS
Add Comment
Please, Sign In to add comment