sandsmark / epubreader

a simple epub reader using qt
BSD 3-Clause "New" or "Revised" License
20 stars 8 forks source link

can't make this #1

Open mgkirs opened 7 years ago

mgkirs commented 7 years ago

Undefined symbols for architecture x86_64: "KZip::KZip(QString const&)", referenced from: EPubContainer::openFile(QString) in epubcontainer.o "KArchiveEntry::name() const", referenced from: EPubContainer::getFile(QString const&) in epubcontainer.o "KArchiveDirectory::file(QString const&) const", referenced from: EPubContainer::parseMimetype() in epubcontainer.o EPubContainer::getFile(QString const&) in epubcontainer.o "KArchiveDirectory::entry(QString const&) const", referenced from: EPubContainer::getFile(QString const&) in epubcontainer.o "KArchive::directory() const", referenced from: EPubContainer::openFile(QString) in epubcontainer.o "typeinfo for KArchiveEntry", referenced from: EPubContainer::getFile(QString const&) in epubcontainer.o "typeinfo for KArchiveDirectory", referenced from: EPubContainer::getFile(QString const&) in epubcontainer.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [test.app/Contents/MacOS/test] Error 1 09:17:20: The process "/us

sandsmark commented 7 years ago

do you have KArchive installed?

sandsmark commented 7 years ago

I just added qpm support.

try downloading qpm from https://www.qpm.io/ and run qpm install in the epubreader folder before trying to build.

mgkirs commented 7 years ago

I haven't qpm.json

I'm don't know haw install KArchive as QT Module and use:

INCLUDEPATH = karchive-master/src/

Repository: https://github.com/remarkableno/karchive.git

into .pro file (I'm using QT Creator)

I'm include header as that:

include

include

include

in epubcontainer.cpp

sandsmark commented 7 years ago

if you git pull you should get the qpm.json and it should work automagically.

but did you get it to work?

mgkirs commented 7 years ago

I'm install karchive:

Ks-iMac:epubreader-master-3 k$ sudo qpm install Password: Installing org.kde.karchive@5.33.0-1 Ks-iMac:epubreader-master-3 k$

But QT Creator write:

Project ERROR: Unknown module(s) in QT: KArchive

My QT Creator installed to /Users/k/Qt