Seamly2D/bygging
Hopp til navigering
Hopp til søk
tilbake til siden Seamly2D.
Hvordan bygge Seamly2D under Debian[1].
Innhold
Pakker som må være på plass før du starter
Også kalt "prerequisites". Du trenger Qt 5.7.0 eller nyere
Installer pakkene: qtbase5-dev
tingo@trede:~$ sudo apt install qtbase5-dev Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libqt5opengl5-dev libqt5test5 libvulkan-dev qt5-qmake qt5-qmake-bin qtbase5-dev-tools Suggested packages: default-libmysqlclient-dev firebird-dev libegl1-mesa-dev libpq-dev libsqlite3-dev unixodbc-dev The following NEW packages will be installed: libqt5opengl5-dev libqt5test5 libvulkan-dev qt5-qmake qt5-qmake-bin qtbase5-dev qtbase5-dev-tools 0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded. Need to get 3,605 kB of archives. After this operation, 28.1 MB of additional disk space will be used. [..] Setting up libqt5opengl5-dev:amd64 (5.11.3+dfsg1-1+deb10u3) ... Processing triggers for man-db (2.8.5-2) ... Processing triggers for libc-bin (2.28-10) ...
libqt5xmlpatterns5-dev,
tingo@trede:~$ sudo apt install libqt5xmlpatterns5-dev Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libqt5xmlpatterns5-dev 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 20.8 kB of archives. After this operation, 140 kB of additional disk space will be used. [..] Setting up libqt5xmlpatterns5-dev:amd64 (5.11.3-2) ...
libqt5svg5-dev,
tingo@trede:~$ sudo apt install libqt5svg5-dev Reading package lists... Done Building dependency tree Reading state information... Done libqt5svg5-dev is already the newest version (5.11.3-2). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
qttools5-dev,
tingo@trede:~$ sudo apt install qttools5-dev Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libqt5designer5 libqt5designercomponents5 libqt5quickwidgets5 qdoc-qt5 qt5-assistant qttools5-dev-tools Suggested packages: qt5-doc The following NEW packages will be installed: libqt5designer5 libqt5designercomponents5 libqt5quickwidgets5 qdoc-qt5 qt5-assistant qttools5-dev qttools5-dev-tools 0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded. Need to get 6,027 kB of archives. After this operation, 17.9 MB of additional disk space will be used. [..] Setting up qttools5-dev-tools (5.11.3-4) ... Setting up qttools5-dev:amd64 (5.11.3-4) ... Processing triggers for mime-support (3.62) ... Processing triggers for libc-bin (2.28-10) ... Processing triggers for man-db (2.8.5-2) ... Processing triggers for desktop-file-utils (0.23-4) ...
Hent kildekode
Last ned kildekode fra Github repo
tingo@trede:~/work/seamly2d$ git clone https://github.com/FashionFreedom/Seamly2D.git Cloning into 'Seamly2D'... remote: Enumerating objects: 71, done. remote: Counting objects: 100% (71/71), done. remote: Compressing objects: 100% (64/64), done. remote: Total 76357 (delta 24), reused 17 (delta 6), pack-reused 76286 Receiving objects: 100% (76357/76357), 157.28 MiB | 8.78 MiB/s, done. Resolving deltas: 100% (61870/61870), done.
Bygging
Byggingen består av to deler: qmake for å generere Makefile, og make for å bygge selve programmene.
qmake
tingo@trede:~/work/seamly2d/Seamly2D$ QT_SELECT=5 qmake PREFIX=/usr/local Seamly2D.pro -r CONFIG+=noDebugSymbols CONFIG+=no_ccache Info: creating stash file /home/tingo/work/seamly2d/Seamly2D/.qmake.stash Project MESSAGE: Entering Seamly2D.pro Project MESSAGE: Seamly2D.pro: Unknown GCC configuration Reading /home/tingo/work/seamly2d/Seamly2D/src/src.pro Project MESSAGE: Entering src.pro Reading /home/tingo/work/seamly2d/Seamly2D/src/libs/libs.pro Project MESSAGE: Entering libs.pro Reading /home/tingo/work/seamly2d/Seamly2D/src/libs/qmuparser/qmuparser.pro Project MESSAGE: Entering qmuparser.pro Reading /home/tingo/work/seamly2d/Seamly2D/src/libs/vpropertyexplorer/vpropertyexplorer.pro Project MESSAGE: Entering vpropertyexplorer.pro Reading /home/tingo/work/seamly2d/Seamly2D/src/libs/ifc/ifc.pro Project MESSAGE: Entering ifc.pro Reading /home/tingo/work/seamly2d/Seamly2D/src/libs/vobj/vobj.pro Project MESSAGE: Entering vobj.pro Reading /home/tingo/work/seamly2d/Seamly2D/src/libs/vdxf/vdxf.pro Project MESSAGE: Entering vdxf.pro Project MESSAGE: warnings.pri: Qt version: /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ Reading /home/tingo/work/seamly2d/Seamly2D/src/libs/vlayout/vlayout.pro Project MESSAGE: Entering vlayout.pro Reading /home/tingo/work/seamly2d/Seamly2D/src/libs/vgeometry/vgeometry.pro Project MESSAGE: Entering vgeometry.pro Reading /home/tingo/work/seamly2d/Seamly2D/src/libs/vpatterndb/vpatterndb.pro Project MESSAGE: Entering vpatterndb.pro Reading /home/tingo/work/seamly2d/Seamly2D/src/libs/vmisc/vmisc.pro Project MESSAGE: Entering vmisc.pro Project MESSAGE: vmisc.pro: Latest tag distance: 65 Reading /home/tingo/work/seamly2d/Seamly2D/src/libs/vwidgets/vwidgets.pro Project MESSAGE: Entering vwidgets.pro Reading /home/tingo/work/seamly2d/Seamly2D/src/libs/vtools/vtools.pro Project MESSAGE: Entering vtools.pro Reading /home/tingo/work/seamly2d/Seamly2D/src/libs/vformat/vformat.pro Project MESSAGE: Entering vformat.pro Reading /home/tingo/work/seamly2d/Seamly2D/src/libs/fervor/fervor.pro Project MESSAGE: Entering fervor.pro Reading /home/tingo/work/seamly2d/Seamly2D/src/libs/vtest/vtest.pro Project MESSAGE: Entering vtest.pro Project MESSAGE: vtest.pro: Latest tag distance: 65 Reading /home/tingo/work/seamly2d/Seamly2D/src/app/app.pro Project MESSAGE: Entering app.pro Reading /home/tingo/work/seamly2d/Seamly2D/src/app/seamlyme/seamlyme.pro Project MESSAGE: Entering seamlyme.pro Project MESSAGE: common.pri: Latest commit hash: 4fac33eaaa0f Project MESSAGE: seamlyme.pro: Build revision: \"Git:4fac33eaaa0f\" Reading /home/tingo/work/seamly2d/Seamly2D/src/app/seamly2d/seamly2d.pro Project MESSAGE: Entering seamly2D.pro Project MESSAGE: common.pri: Latest commit hash: 4fac33eaaa0f Project MESSAGE: seamly2d.pro: Build revision: \"Git:4fac33eaaa0f\" Project MESSAGE: seamly2d.pro: Qt version: 5.11.3 Project MESSAGE: seamly2d.pro: Qt is installed in /usr Project MESSAGE: seamly2d.pro: Qt resources can be found in the following locations: Project MESSAGE: seamly2d.pro: Documentation: /usr/share/qt5/doc Project MESSAGE: seamly2d.pro: Header files: /usr/include/x86_64-linux-gnu/qt5 Project MESSAGE: seamly2d.pro: Libraries: /usr/lib/x86_64-linux-gnu Project MESSAGE: seamly2d.pro: Binary files (executables): /usr/lib/qt5/bin Project MESSAGE: seamly2d.pro: Plugins: /usr/lib/x86_64-linux-gnu/qt5/plugins Project MESSAGE: seamly2d.pro: Data files: /usr/share/qt5 Project MESSAGE: seamly2d.pro: Translation files: /usr/share/qt5/translations Project MESSAGE: seamly2d.pro: Settings: Project MESSAGE: seamly2d.pro: Examples: /usr/lib/x86_64-linux-gnu/qt5/examples Reading /home/tingo/work/seamly2d/Seamly2D/src/test/test.pro Project MESSAGE: Entering test.pro Reading /home/tingo/work/seamly2d/Seamly2D/src/test/ParserTest/ParserTest.pro Reading /home/tingo/work/seamly2d/Seamly2D/src/test/Seamly2DTest/Seamly2DTest.pro Reading /home/tingo/work/seamly2d/Seamly2D/src/test/TranslationsTest/TranslationsTest.pro Reading /home/tingo/work/seamly2d/Seamly2D/src/test/CollectionTest/CollectionTest.pro
make (hvis du ikke har en kraftig maskin så kan dette trinnet ta lang tid - finn på noe annet å gjøre mens du venter)
tingo@trede:~/work/seamly2d/Seamly2D$ make [..] make[3]: Leaving directory '/home/tingo/work/seamly2d/Seamly2D/src/test/CollectionTest' make[2]: Leaving directory '/home/tingo/work/seamly2d/Seamly2D/src/test' make[1]: Leaving directory '/home/tingo/work/seamly2d/Seamly2D/src'
Installasjon
Enkelt:
tingo@trede:~/work/seamly2d/Seamly2D$ sudo make install [..] make[3]: Entering directory '/home/tingo/work/seamly2d/Seamly2D/src/test/CollectionTest' make[3]: Nothing to be done for 'install'. make[3]: Leaving directory '/home/tingo/work/seamly2d/Seamly2D/src/test/CollectionTest' make[2]: Leaving directory '/home/tingo/work/seamly2d/Seamly2D/src/test' make[1]: Leaving directory '/home/tingo/work/seamly2d/Seamly2D/src'
da skal du ha fått installert programmene under /usr/local/bin
:
tingo@trede:~/work/seamly2d/Seamly2D$ ls /usr/local/bin seamly2d seamlyme
I tillegg finner du dem i menyen.