Karchive on windows: Difference between revisions
Jump to navigation
Jump to search
(Nominate for deletion: Irrelevant to Qt) |
|||
Line 2: | Line 2: | ||
= Building KArchive on Windows = | = Building KArchive on Windows = | ||
This is a summarizes step-by-step on how to compile the [http://anongit.kde.org/karchive karchive ] on Windows Using Qt 5. | This is a summarizes step-by-step on how to compile the [http://anongit.kde.org/karchive karchive] on Windows Using Qt 5.15.0 and MSVS 2019_64 ( but it should work with any version you choose) | ||
* Install Qt | * Install Qt (http://qt.io/download) on path "C:/Qt" | ||
* Install CMake for windows (http://www.cmake.org/) and remember to put it on path enviroment variable | * Install CMake for windows (http://www.cmake.org/) and remember to put it on path enviroment variable | ||
* Install git git-scm.com/ | * Install git https://git-scm.com/downloads | ||
* git clone | * git clone https://github.com/KDE/extra-cmake-modules.git | ||
* In extra-cmake-modules: mkdir build && cd build && cmake .. -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=C: nmake install (nmake is installed with Qt, if you don't find it, check you Qt installation) | * In extra-cmake-modules, use VS Command Prompt x64: mkdir build && cd build && cmake .. -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=C:\kderoot; -DCMAKE_PREFIX_PATH=C:\Qt\5.15.0\msvc2019_64 | ||
* git clone kArchive | * nmake install(nmake is installed with Qt, if you don't find it, check you Qt installation) | ||
* git clone kArchive https://github.com/KDE/karchive.git | |||
* download Zlib from http://zlib.net/zlib128-dll.zip put in path-to-karchive\zlib | * download Zlib from http://zlib.net/zlib128-dll.zip put in path-to-karchive\zlib | ||
* download bzip2(options) http://gnuwin32.sourceforge.net/downlinks/bzip2-lib-zip.php put in path-to-karchive/bzip2 | * download bzip2(options) http://gnuwin32.sourceforge.net/downlinks/bzip2-lib-zip.php put in path-to-karchive/bzip2 | ||
* In kArchive: mkdir build && cd build && cmake .. -G | * download libLZMA(options) (you might need to build this on your own as well, https://github.com/kobolabs/liblzma) put in path-to-karchive\libLZMA | ||
* In kArchive: mkdir build && cd build && cmake .. -G “NMake Makefiles” -DCMAKE_INSTALL_PREFIX=C:\kderoot -DCMAKE_BUILD_TYPE=release -DCMAKE_PREFIX_PATH=C:\kderoot;C:\Qt\5.15.0\msvc2019_64;.....\karchive\zlib;....\karchive\bzip2;....\karchive\libLZMA ( replace those with the proper paths) | |||
* nmake install | * nmake install | ||
* Done! Now all the needed files are in | * Done! Now all the needed files are in C:\kderoot |
Latest revision as of 20:05, 29 August 2020
This article is nominated for deletion. Reason: Irrelevant to Qt. This belongs in the KDE website. Please raise your support/opposition to this nomination in the article's discussion page. |
Building KArchive on Windows
This is a summarizes step-by-step on how to compile the karchive on Windows Using Qt 5.15.0 and MSVS 2019_64 ( but it should work with any version you choose)
- Install Qt (http://qt.io/download) on path "C:/Qt"
- Install CMake for windows (http://www.cmake.org/) and remember to put it on path enviroment variable
- Install git https://git-scm.com/downloads
- git clone https://github.com/KDE/extra-cmake-modules.git
- In extra-cmake-modules, use VS Command Prompt x64: mkdir build && cd build && cmake .. -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=C:\kderoot; -DCMAKE_PREFIX_PATH=C:\Qt\5.15.0\msvc2019_64
- nmake install(nmake is installed with Qt, if you don't find it, check you Qt installation)
- git clone kArchive https://github.com/KDE/karchive.git
- download Zlib from http://zlib.net/zlib128-dll.zip put in path-to-karchive\zlib
- download bzip2(options) http://gnuwin32.sourceforge.net/downlinks/bzip2-lib-zip.php put in path-to-karchive/bzip2
- download libLZMA(options) (you might need to build this on your own as well, https://github.com/kobolabs/liblzma) put in path-to-karchive\libLZMA
- In kArchive: mkdir build && cd build && cmake .. -G “NMake Makefiles” -DCMAKE_INSTALL_PREFIX=C:\kderoot -DCMAKE_BUILD_TYPE=release -DCMAKE_PREFIX_PATH=C:\kderoot;C:\Qt\5.15.0\msvc2019_64;.....\karchive\zlib;....\karchive\bzip2;....\karchive\libLZMA ( replace those with the proper paths)
- nmake install
- Done! Now all the needed files are in C:\kderoot