Advertisement
JPeterson

qt

Jan 4th, 2013
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. # qt
  2. setx /m QTDIR …
  3. git clone git://gitorious.org/qt/qt5.git .
  4. perl init-repository
  5. call "%VS100COMNTOOLS%..\..\VC\vcvarsall.bat"
  6. configure -confirm-license -debug-and-release -opensource -static -platform win32-msvc2010 -arch windows -qt-zlib -qt-libjpeg -no-sql-sqlite -no-gif -no-qdbus -no-opengl -no-openvg -no-vcproj -no-dbus -no-audio-backend -no-openssl -mp -nomake examples -nomake demos && jom
  7.  
  8. # test.cpp
  9. #include <QApplication>
  10. #include <QPushButton>
  11. int main(int argc, char *argv[]) {
  12. QApplication app(argc, argv);
  13. QPushButton helloButton("Hello World");
  14. helloButton.resize(80, 20);
  15. helloButton.show();
  16. return app.exec();
  17. }
  18.  
  19. # test.pro
  20. TARGET = test
  21. QT += widgets core-private widgets-private
  22. SOURCES += test.cpp
  23.  
  24. # make
  25. call "%VS100COMNTOOLS%..\..\VC\vcvarsall.bat"
  26. qmake -spec win32-msvc2010 && jom release && release\test
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement