From 850dcb839d100ed98733daf56a0d0af27c95937e Mon Sep 17 00:00:00 2001 From: danteruiz Date: Wed, 23 Oct 2019 14:39:34 -0700 Subject: [PATCH] adding build qt-lite build rules --- tools/qt-builder/qt-lite-build-steps-win.md | 90 ++++++++++ tools/qt-builder/qt-lite-osx-config.opt | 4 +- tools/qt-builder/qt-lite-windows-config.opt | 189 ++++++++++++++++++++ 3 files changed, 281 insertions(+), 2 deletions(-) create mode 100644 tools/qt-builder/qt-lite-build-steps-win.md create mode 100644 tools/qt-builder/qt-lite-windows-config.opt diff --git a/tools/qt-builder/qt-lite-build-steps-win.md b/tools/qt-builder/qt-lite-build-steps-win.md new file mode 100644 index 0000000000..a693acbb9f --- /dev/null +++ b/tools/qt-builder/qt-lite-build-steps-win.md @@ -0,0 +1,90 @@ +# Windows +Command Prompt +``` +git clone --single-branch --branch 5.9 https://code.qt.io/qt/qt5.git +cd qt5 +perl ./init-repository -force --module-subset=qtbase,qtdeclarative,qtgraphicaleffects,qtquickcontrols,qtquickcontrols2,qtmultimedia +``` + +Modify the following lines in `qtbase/mkspecs/common/msvc-desktop.conf`, changing `-MD` to `-MT`, and `-MDd` to `-MTd` +``` +QMAKE_CFLAGS_RELEASE = $$QMAKE_CFLAGS_OPTIMIZE -MD +QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += $$QMAKE_CFLAGS_OPTIMIZE -Zi -MD +QMAKE_CFLAGS_DEBUG = -Zi -MDd +``` + + +Command Prompt +``` +cp path-to-your-hifi-directory/tools/qt-builder/qt5vars.bat ./ +mkdir qt-build +cd qt-build +..\qt5vars.bat +..\configure.bat +``` + +Download ssl-static.zip and unzip to ssl-static folder next to qt5 folder +remove config.opt in the build folder +copy over the config file from qt-builder +``` +cp path-to-your-hifi-directory/tools/qt-builder/qt-lite-windows-config ./config.opt +``` +delete config.cache + +modify the config.opt file vaules `-L` and `-I` to point to the loaction of your openssl static lib + +``` +OPENSSL_LIBS=-lssleay32 -llibeay32 +-I\path\to\openssl\include +-L\path\to\openssl\lib +``` + +Command Prompt +``` +rem config.cache +config.status.bat +jom +jom install +``` + +# OSX +Must use Apple LLVM version 8.1.0 (clang-802.0.42) +Command Prompt +``` +git clone --single-branch --branch 5.9 https://code.qt.io/qt/qt5.git +cd qt5 +./init-repository -force --module-subset=qtbase,qtdeclarative,qtgraphicaleffects,qtquickcontrols,qtquickcontrols2,qtmultimedia,, +``` + +Command Prompt +``` +mkdir qt-build +cd qt-build +../configure +``` + +Download ssl-static.zip and unzip to ssl-static folder next to qt5 folder +copy over the config file from qt-builder +``` +cp path-to-your-hifi-directory/tools/qt-builder/qt-lite-osx-config ./config.opt +``` +delete config.cache + +modify the config.opt file vaules `-L` and `-I`to point to the loaction of your openssl static lib + +``` +OPENSSL_LIBS=-lssl -lcrypto +-L/path/to/openssl/lib +-I/path/to/openssl/include +``` + + +Comand Prompt +``` +rm config.cache +config.status +make +make install +``` + + diff --git a/tools/qt-builder/qt-lite-osx-config.opt b/tools/qt-builder/qt-lite-osx-config.opt index 28bb1b88e2..7497bf55ea 100644 --- a/tools/qt-builder/qt-lite-osx-config.opt +++ b/tools/qt-builder/qt-lite-osx-config.opt @@ -24,8 +24,8 @@ qtmultimedia ./qt-install -openssl-linked OPENSSL_LIBS=-lssl -lcrypto --L/usr/local/Cellar/openssl/1.0.2s/lib --I/usr/local/Cellar/openssl/1.0.2s/include +-L/path/to/openssl/lib +-I/path/to/openssl/include -no-feature-widgets -no-feature-dbus -no-feature-xml diff --git a/tools/qt-builder/qt-lite-windows-config.opt b/tools/qt-builder/qt-lite-windows-config.opt new file mode 100644 index 0000000000..dae6a6f39f --- /dev/null +++ b/tools/qt-builder/qt-lite-windows-config.opt @@ -0,0 +1,189 @@ +-static +-optimize-size +-qt-libpng +-no-libjpeg +-qt-sqlite +-qt-zlib +-qt-freetype +-qt-pcre +-strip +-opensource +-release +-nomake +tests +-nomake +examples +-nomake +tests +-no-compile-examples +-no-pch +-confirm-license +-opengl +desktop +-skip +qtmultimedia +-skip +qttranslations +-prefix +./qt-install + +-openssl-linked +OPENSSL_LIBS=-lssleay32 -llibeay32 +-I\path\to\openssl\include +-L\path\to\openssl\lib +-no-feature-widgets +-no-feature-dbus +-no-feature-xml +-no-feature-sql +-no-feature-concurrent +-no-feature-quicktemplates2-hover +-no-feature-quicktemplates2-multitouch +-no-feature-quickcontrols2-material +-no-feature-quickcontrols2-universal +-no-feature-qml-network +-no-feature-qml-profiler +-no-feature-quick-listview +-no-feature-quick-particles +-no-feature-abstractbutton +-no-feature-abstractslider +-no-feature-buttongroup +-no-feature-calendarwidget +-no-feature-checkbox +-no-feature-combobox +-no-feature-commandlinkbutton +-no-feature-contextmenu +-no-feature-datetimeedit +-no-feature-dial +-no-feature-dockwidget +-no-feature-fontcombobox +-no-feature-formlayout +-no-feature-graphicseffect +-no-feature-graphicsview +-no-feature-groupbox +-no-feature-keysequenceedit +-no-feature-label +-no-feature-lcdnumber +-no-feature-lineedit +-no-feature-listwidget +-no-feature-mainwindow +-no-feature-mdiarea +-no-feature-menu +-no-feature-menubar +-no-feature-printpreviewwidget +-no-feature-progressbar +-no-feature-pushbutton +-no-feature-radiobutton +-no-feature-resizehandler +-no-feature-rubberband +-no-feature-scrollarea +-no-feature-scrollbar +-no-feature-scroller +-no-feature-sizegrip +-no-feature-slider +-no-feature-spinbox +-no-feature-splashscreen +-no-feature-splitter +-no-feature-stackedwidget +-no-feature-statusbar +-no-feature-statustip +-no-feature-syntaxhighlighter +-no-feature-tabbar +-no-feature-tablewidget +-no-feature-tabwidget +-no-feature-textbrowser +-no-feature-textedit +-no-feature-toolbar +-no-feature-toolbox +-no-feature-toolbutton +-no-feature-tooltip +-no-feature-treewidget +-no-feature-validator +-no-feature-widgettextcontrol +-no-feature-quick-designer +-no-feature-quick-flipable +-no-feature-quick-pathview +-no-feature-qml-profiler +-no-feature-gif +-no-feature-ico +-no-feature-harfbuzz +-no-feature-qml-debug +-no-feature-quick-listview +-no-feature-quick-sprite +-no-feature-quick-path +-no-feature-quick-canvas +-no-feature-quick-animatedimage +-no-feature-qml-interpreter +-no-feature-action +-no-feature-cssparser +-no-feature-sharedmemory +-no-feature-tabletevent +-no-feature-texthtmlparser +-no-feature-textodfwriter +-no-feature-sessionmanager +-no-feature-systemsemaphore +-no-feature-im +-no-feature-effects +-no-feature-appstore-compliant +-no-feature-big_codecs +-no-feature-codecs +-no-feature-colordialog +-no-feature-colornames +-no-feature-columnview +-no-feature-commandlineparser +-no-feature-cups +-no-feature-d3d12 +-no-feature-datawidgetmapper +-no-feature-datetimeparser +-no-feature-desktopservices +-no-feature-dialog +-no-feature-dialogbuttonbox +-no-feature-dirmodel +-no-feature-dom +-no-feature-errormessage +-no-feature-filedialog +-no-feature-filesystemiterator +-no-feature-filesystemwatcher +-no-feature-fontdialog +-no-feature-fscompleter +-no-feature-gestures +-no-feature-iconv +-no-feature-wizard +-no-feature-xmlstreamwriter +-no-feature-whatsthis +-no-feature-undoview +-no-feature-undostack +-no-feature-undogroup +-no-feature-undocommand +-no-feature-treeview +-no-feature-translation +-no-feature-topleveldomain +-no-feature-tableview +-no-feature-style-stylesheet +-no-feature-stringlistmodel +-no-feature-sortfilterproxymodel +-no-feature-wheelevent +-no-feature-statemachine +-no-feature-standarditemmodel +-no-feature-proxymodel +-no-feature-printer +-no-feature-printpreviewdialog +-no-feature-printdialog +-no-feature-picture +-no-feature-pdf +-no-feature-movie +-no-feature-messagebox +-no-feature-listview +-no-feature-itemmodel +-no-feature-inputdialog +-no-feature-filesystemmodel +-no-feature-identityproxymodel +-no-feature-mimetype +-no-feature-paint_debug +-no-feature-progressdialog +-no-feature-quick-positioners +-no-feature-sha3-fast +-no-feature-shortcut +-no-feature-completer +-no-feature-image_heuristic_mask +-no-feature-image_text +-no-feature-imageformat_bmp \ No newline at end of file