<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 2/18/24 13:30, Eric Ribble wrote:<br>
</div>
<blockquote type="cite"
cite="mid:1056091232.3280110.1708284657569@mail.yahoo.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div class="yahoo-style-wrap"
style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;">
<div dir="ltr" data-setdir="false">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.</div>
</div>
</blockquote>
<p>What distro are you using?</p>
<p>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:</p>
<p>* The easy way - install the development header package for your
library of choice through your distro's package manager.<br>
* 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.</p>
<p>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.<br>
</p>
<blockquote type="cite"
cite="mid:1056091232.3280110.1708284657569@mail.yahoo.com">
<div class="yahoo-style-wrap"
style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;">
<div dir="ltr" data-setdir="false">I added the following to my
project's "CMakeLists.txt" as described on the web page <a
href="https://marketplace.qt.io/pages/karchiveinstructionspage"
rel="nofollow" target="_blank" class="moz-txt-link-freetext"
moz-do-not-send="true">https://marketplace.qt.io/pages/karchiveinstructionspage</a> :</div>
<div><br>
</div>
<div>find_package(KF5Archive)<br>
</div>
<div dir="ltr" data-setdir="false">
<div>
<div>target_link_libraries(Example4 KF5::Archive)</div>
<div><br>
</div>
</div>
Attached is my "CMakeLists.txt" file and "Main.cpp" file.</div>
<div dir="ltr" data-setdir="false"><br>
</div>
<div dir="ltr" data-setdir="false">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).</div>
<div dir="ltr" data-setdir="false"><br>
</div>
<div dir="ltr" data-setdir="false">Here is a screenshot after
trying to build:</div>
<div dir="ltr" data-setdir="false"><br>
</div>
<div dir="ltr" data-setdir="false"><img title="Inline image"
alt="Inline image"
src="cid:fd164f6d-aeff-3b4c-d857-c6033b73f2fc@yahoo.com"
class="yahoo-inline-image" draggable="false"
style="max-width: 800px; width: 100%;"
data-id="<fd164f6d-aeff-3b4c-d857-c6033b73f2fc@yahoo.com>"
moz-do-not-send="true"></div>
<div dir="ltr" data-setdir="false"><br>
</div>
<div dir="ltr" data-setdir="false">Please advise on how to
properly download/install KArchive so that this simple program
will build. Thanks for your help!</div>
<div dir="ltr" data-setdir="false"><br>
</div>
<div dir="ltr" data-setdir="false">Eric Ribble</div>
<div dir="ltr" data-setdir="false"><br>
<span></span><br>
</div>
</div>
</blockquote>
<pre class="moz-signature" cols="72">--
Aaron Rainbolt
Lubuntu Developer
Matrix: @arraybolt3:matrix.org
IRC: arraybolt3 on irc.libera.chat
GitHub: <a class="moz-txt-link-freetext" href="https://github.com/ArrayBolt3">https://github.com/ArrayBolt3</a></pre>
</body>
</html>