Welcome to the forum, Guest

TOPIC: Can't compile on Debian Jesse

Can't compile on Debian Jesse 7 years 10 months ago #2418

AnMartini

Offline

Fresh Boarder

Posts: 18

Thank you received: 3

Karma: 0

Hi,
I'm sorry to post again, but I was wondering if you could confirm that this is a YACReaderLibrary Server problem and not a problem of my installation.
Thank you.
- Andrea
The administrator has disabled public write access.

Can't compile on Debian Jesse 7 years 10 months ago #2423

Luis Ángel

Offline

Administrator

Posts: 2614

Thank you received: 543

Karma: 21

I use YACReaderLibraryServer on a daily basis, so I think that it is not an issue with YACReaderLibraryServer.

Please, create a new folder and put a couple of comics inside it. Then create a library in that folder using YACReaderLibraryServer. After that, go to the initial folder and zip the hidden folder ".yacreaderlibrary". Send it to me so I can see what is going on there. I will neet the full path to that folder too, f.e. /mount/external/MyComicsTest.
Contribute to the project becoming a patron: www.patreon.com/yacreader
You can also donate via Pay-Pal: www.paypal.com/donate?business=5TAMNQCDD...e=Support+YACReader\
The administrator has disabled public write access.
The following user(s) said Thank You: AnMartini

Can't compile on Debian Jesse 7 years 10 months ago #2425

AnMartini

Offline

Fresh Boarder

Posts: 18

Thank you received: 3

Karma: 0

Here is the zip:
www.dropbox.com/s/lepgjgvqvrrdu2w/yacreaderlibrary.zip?dl=0
The full path to the folder is
/home/pi/ComicsTest
Here is the terminal:
pi@raspberrypi:~ $ YACReaderLibraryServer create-library "ComicsTest" ComicsTest
QSqlDatabasePrivate::removeDatabase: connection 'ComicsTest/.yacreaderlibrary/library.ydb' is still in use, all queries will cease to work.
Processing comics..Done!
Number of comis processed = 2
pi@raspberrypi:~ $ YACReaderLibraryServer start
Logging to /home/pi/.local/share/YACReader/YACReaderLibrary/server_log.log
INFO  2016-05-19T14:50:50.989 YACReaderLibraryServer attempting to start 
INFO  2016-05-19T14:50:50.995 ---------- System & configuration ---------- 
INFO  2016-05-19T14:50:50.996 SO : Linux (unknown version) 
INFO  2016-05-19T14:50:50.996 7z : found 
INFO  2016-05-19T14:50:50.996 Libraries:  QMap(("ComicsTest", QPair(2,"ComicsTest"))("Fumetti", QPair(1,"Fumetti"))) 
INFO  2016-05-19T14:50:50.997 -------------------------------------------- 
INFO  2016-05-19T14:50:51.003 YACReaderLibrary starting

Thank you for your help.
- Andrea
Last Edit: 7 years 10 months ago by AnMartini.
The administrator has disabled public write access.

Can't compile on Debian Jesse 7 years 10 months ago #2430

Luis Ángel

Offline

Administrator

Posts: 2614

Thank you received: 543

Karma: 21

Thank you for your help. For some reason the comics are imported storing the wrong path in the database...

I have compiled and tested YACReaderLibraryServer creating a new library and it is generating the right information. Tested in Raspbian and Windows 10.

What version of Qt are you using?
Contribute to the project becoming a patron: www.patreon.com/yacreader
You can also donate via Pay-Pal: www.paypal.com/donate?business=5TAMNQCDD...e=Support+YACReader\
Last Edit: 7 years 10 months ago by Luis Ángel.
The administrator has disabled public write access.
The following user(s) said Thank You: AnMartini

Can't compile on Debian Jesse 7 years 10 months ago #2437

AnMartini

Offline

Fresh Boarder

Posts: 18

Thank you received: 3

Karma: 0

QMake version 3.0
Using Qt version 5.3.2 in /usr/lib/arm-linux-gnueabihf
- Andrea
The administrator has disabled public write access.

Can't compile on Debian Jesse 7 years 10 months ago #2440

Luis Ángel

Offline

Administrator

Posts: 2614

Thank you received: 543

Karma: 21

AnMartini, are you creating the library using a relative path?


Try with something like this:
YACReaderLibraryServer create-library MyComics /home/pi/ComicsTest
Contribute to the project becoming a patron: www.patreon.com/yacreader
You can also donate via Pay-Pal: www.paypal.com/donate?business=5TAMNQCDD...e=Support+YACReader\
The administrator has disabled public write access.

Can't compile on Debian Jesse 7 years 10 months ago #2441

selmf

Offline

Developer

Posts: 631

Thank you received: 135

Karma: 18

Hi AnMartini,

could you test something for me? Please remove all you libraries using "YACReaderLibraryServer remove-library library" and then recreate them using full paths, i.e something like:
YACReaderLibraryServer create-library Comicstest /home/pi/ComicsTest/

After that, please check if these libraries are working for you.
My answers are not necessarily official YACReader statements but mostly represent my own opinion in technical matters.
The administrator has disabled public write access.

Can't compile on Debian Jesse 7 years 10 months ago #2442

Luis Ángel

Offline

Administrator

Posts: 2614

Thank you received: 543

Karma: 21

Just in case, remove manually .yacreaderlibrary hidden folder from /home/pi/ComicsTest/ too.
Contribute to the project becoming a patron: www.patreon.com/yacreader
You can also donate via Pay-Pal: www.paypal.com/donate?business=5TAMNQCDD...e=Support+YACReader\
The administrator has disabled public write access.

Can't compile on Debian Jesse 7 years 10 months ago #2444

josephm

Offline

Junior Boarder

Posts: 22

Thank you received: 1

Karma: 1

Hi, finally i reached to make it working on Raspberry Pi 3

YACReaderlibraryserver create-library MyComics "/home/pi/MyComics"

The created .yacreaderlibrary is owned by root and I changed it by owner pi:

sudo chown -R pi:pi .yacreaderlibrary

And then launched with

sudo YACReaderlibraryserver start MyComics


Here is all the procedure to install YACReaderlibraryServer on Raspberry Pi:

# 1- Install last version of Raspbian from www.raspberrypi.org/downloads/raspbian/ and create a microSD card following the installation guide on the page

# 2- From a console in Raspbian or by SSH (I used Putty from a PC with username: pi, password: raspberry)
sudo raspi-config (from the Menu) and Expand Filesystem + Finish and reboot

# 3- After rebooting, from a console type:
sudo apt-get update

# 4- Install Qt5 and Dependencies
sudo apt-get install -y -q mercurial qt5-qmake qt5-default qtbase5-dev
sudo apt-get install -y -q libpoppler-qt5-dev qtscript5-dev
sudo apt-get install sqlite3 libsqlite3-dev

# 5- Download yacreader source files
mkdir ~/yacreader
hg clone bitbucket.org/luisangelsm/yacreader ~/yacreader

# 6- Install libunarr library from source
cd ~/yacreader/compressed_archive/
wget github.com/selmf/unarr/archive/master.zip
unzip master.zip
# 6- or Install libp7zip library from source
# cd ~/yacreader/compressed_archive/
# wget sourceforge.net/projects/p7zip/files/p7z...20.1_src_all.tar.bz2
# tar xvf p7zip_9.20.1_src_all.tar.bz2
# mv p7zip_9.20.1_src_all.tar.bz2 libp7zip

# 7- Make and install YACReaderLibraryServer
cd ~/yacreader/YACReaderLibraryServer
# If 7zip
# qmake YACReaderLibraryServer.pro CONFIG+=7zip CONFIG+=standalone_server
# if unarr
qmake YACReaderLibraryServer.pro

make
make install

# 8- Create library with name MyComics and in directory /media/pi/MyComics/
sudo YACReaderLibraryServer create-library MyComics /media/pi/MyComics/

# 9- Change owner of .yacreaderlibrary to pi
cd /media/pi/MyComics/
chown -R pi:pi .yacreaderlibrary

# 10- Launch Server with library LibName
sudo YACReaderLibraryServer start LibName &

I hope this will help people install on Rasberry.
To do: mount a NAS on rasberry and make working the library from NAS

Thanks to all for helping, Enjoy.
Last Edit: 7 years 10 months ago by josephm.
The administrator has disabled public write access.

Can't compile on Debian Jesse 7 years 10 months ago #2445

selmf

Offline

Developer

Posts: 631

Thank you received: 135

Karma: 18

HA! Great :)

I was just about to write in your thread to ask you to retry creating the library using absolute file paths. Any idea how you endend up having .yacreaderlibrary owned by root?

Word of advice regarding NAS - this can be tricky. We have been having more than one user complaining about issues with this combination. If you run into problems, add the mount option "nolock" to your network share, this should take care of it.
My answers are not necessarily official YACReader statements but mostly represent my own opinion in technical matters.
The administrator has disabled public write access.
Powered by Kunena Forum