mkiol / Zimpedia

Offline reader for Wikipedia
Mozilla Public License 2.0
21 stars 8 forks source link

Request COMPILE file #14

Open kelson42 opened 8 years ago

kelson42 commented 8 years ago

I wanted to compile it to give it a try - on Ubuntu. But there is no compilation instructions and I was quickly stuck with the following error message:

g++ -m64 -o Zimpedia http_parser.o qhttpconnection.o qhttprequest.o qhttpresponse.o qhttpserver.o article.o articlesearch.o articlesource.o bunzip2stream.o bzip2.o bzip2stream.o cluster.o deflatestream.o dirent.o envvalue.o file.o fileheader.o fileimpl.o fstream.o indexarticle.o inflatestream.o lzmastream.o md5stream.o ptrstream.o search.o tee.o template.o unicode.o unlzmastream.o uuid.o zimcreator.o zintstream.o md5.o moc_qhttpconnection.o moc_qhttprequest.o moc_qhttpresponse.o moc_qhttpserver.o -L/usr/X11R6/lib64 -lbbplatform -lbbsystem -lbbdevice -lz -llzma -lbz2 -lQt5Gui -lQt5Network -lQt5Core -lGL -lpthread Makefile:292: recipe for target 'Zimpedia' failed /usr/bin/ld: cannot find -lbbplatform /usr/bin/ld: cannot find -lbbsystem /usr/bin/ld: cannot find -lbbdevice collect2: error: ld returned 1 exit status make: *\ [Zimpedia] Error 1

mkiol commented 8 years ago

I see that you tried to compile sources with BlackBerry makefile. Following libraries: -lbbplatform, -lbbsystem and -lbbdevice are exclusive for BB10 platform only. Unfortunately without doing some change in the code, compilation for Ubuntu will not be possible. There are some includes like <sailfishapp.h> or <bb/cascades/QmlDocument> that have to be bypass...

I will think about it and, hopefully, come with more platform independent code and compile instruction.

kelson42 commented 8 years ago

@mkiol Thx for your feedback. We think about replacing Kiwix UI in Xulrunner by Qt, one reason more to see in detail your work.