Help with installing KArchive

Justin Zobel justin at 1707.io
Mon Feb 19 05:12:11 GMT 2024


If I may suggest joining the KDE Windows channel on Matrix. You can 
discuss there with KDE developers who are familiar with compiling KDE 
software on Windows. https://go.kde.org/matrix/#/#kde-windows:kde.org

On 19/2/24 13:05, Aaron Rainbolt wrote:
>
> Oof, I didn't realize you were on Windows. I have no clue how Qt and 
> KDE development works there since I don't use Windows anymore. If 
> you're trying to code an application for Windows specifically, you'll 
> probably need help from someone who knows how KDE app development 
> works on Windows.
>
> On 2/18/24 20:05, Eric Ribble wrote:
>> Hi Aaron,
>>
>> Thanks for the quick response.  Unfortunately, I am not familiar with 
>> distro or Ubuntu or Debian.  My laptop is running Windows 11.  A few 
>> weeks ago I download and installed Qt6 and have been able to build a 
>> few simple Qt Windows applications.  I studied your email, googled 
>> 'how to', etc., but finding it very difficult to simply download the 
>> KArchive library (KF6Archive (instead of KF5Archive)) and the 
>> "kzip.h" header file for usage with Qt6.
>>
>> Any other suggestions?  Or do I need to figure out how to install/use 
>> Ubuntu on my Windows 11 laptop?
>>
>> If you can't be of further help, I understand.
>>
>> Eric
>>
>> On Sunday, February 18, 2024 at 06:38:43 PM EST, Aaron Rainbolt 
>> <arraybolt3 at gmail.com> wrote:
>>
>>
>> On 2/18/24 13:30, Eric Ribble wrote:
>> I am a new user of Qt (using version 6.6) and Qt Creator  I would 
>> like to use KArchive to extract all folders and files from a zip 
>> file. I found the example "karchive/examples/unzipper/main.cpp" 
>> source code.  However, I don't know how to download and install KArchive.
>>
>> What distro are you using?
>>
>> In order to install a library in such a way that you can use it in 
>> new programs, you have to install both it and its development header 
>> files. There are generally two ways to do this:
>>
>> * The easy way - install the development header package for your 
>> library of choice through your distro's package manager.
>> * The hard, dangerous way that you probably don't want yet - build 
>> the library from source and then either install it directly or figure 
>> out how to point your build system to it.
>>
>> Obviously I'd recommend the former if you're just getting started. On 
>> Ubuntu, the package you want is called "libkf5archive-dev", and can 
>> be installed with "sudo apt install libkf5archive-dev". This will 
>> probably work on Debian too. If you're on some other distro, you'll 
>> need to find and install the right package.
>>
>>
>>> I added the following to my project's "CMakeLists.txt" as described 
>>> on the web page 
>>> https://marketplace.qt.io/pages/karchiveinstructionspage 
>>> <https://marketplace.qt.io/pages/karchiveinstructionspage> :
>>>
>>> find_package(KF5Archive)
>>> target_link_libraries(Example4 KF5::Archive)
>>>
>>> Attached is my "CMakeLists.txt" file and "Main.cpp" file.
>>>
>>> In my "Main.cpp" the syntax-checker indicates that it can't find 
>>> "kzip.h" (probably because I don't know how to download/install it).
>>>
>>> Here is a screenshot after trying to build:
>>>
>>> Inline image
>>>
>>> Please advise on how to properly download/install KArchive so that 
>>> this simple program will build.  Thanks for your help!
>>>
>>> Eric Ribble
>>>
>>>
>> -- 
>> Aaron Rainbolt
>> Lubuntu Developer
>> Matrix: @arraybolt3:matrix.org
>> IRC: arraybolt3 on irc.libera.chat
>> GitHub:https://github.com/ArrayBolt3  <https://github.com/ArrayBolt3>
> -- 
> Aaron Rainbolt
> Lubuntu Developer
> Matrix: @arraybolt3:matrix.org
> IRC: arraybolt3 on irc.libera.chat
> GitHub:https://github.com/ArrayBolt3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-devel/attachments/20240219/095b9751/attachment-0001.htm>


More information about the kde-devel mailing list