skeezix
Internal Development
hey guys,
I'm on a 4 week stretch of not-much-free-time, but thought I'd do (another) quick build of FBreader. (It annoys me for a number of reasons, most of which is that it doesn't really document itself, so you need to delve into the code to figure out what they want for you to do; the bloody thing will silently error out if you look at it funny, never noting why it exitted or crashed. Bloody annoying, since I don't want to invest the time to get into the code
After setting this up in a likely good way, when I run it (by itself, or against a PDF or .txt file) it just sits happiyl with a blank white screen. Perhaps this is correct, but I would assume it should show some UI -- menus, or a toolbox, or _something_ to know its running, other than the ability to resize or kill it
Then again, I've never used FBReader once and no time to run it (I got a 30min scrap of time tonight, and thats it for the day); since it'll be a day or two before I get time again, I thought I'd throw it up here .. maybe these binaries can be sorted out by someone; if you can get it running usefully, let me know the steps and I'll make up a PND file or installer for it.
Its probably something trivial, but since it doesn't emit any logging, a PITA to figure out. If I had a couple hours to trace the code.... but I do not
Help out your fellow man, get hacking!
Files, get them here:
http://www.codejedi.com/pandora/fbreader/hacks/
1) extract data.tar.gz as root, into /; ie, something akin to:
cd /
sudo bash <- enter password
tar zxvf /path/to/data.tar.gz
-- this is a random ipk bit pulled from Angstrom repo; using the ipk means pulling in dependandcies we dont' care about (it wants various bits we don't need, since I compiled without them, etc.)
2) copy the libzlcore* and libzltext* bits into /usr/lib -- again as root; this just replaces the bitsw from (1) that are for some other architecture
3) again as root, mkdir /usr/lib/zlibrary/ui <- wtf path :/
4) again as root, copy in zlui-gtk.so to /usr/lib/zlibrary/ui
Now you can run FBReader binary I supplied; copy it as root to /usr/bin if you like, to override the one from (1), or run it from place, etc.
(1) sets up a .desktop, so it shows up in the Accessories menu in xfce IIRC. (Won't show up in mmenu by default, since its not a pnd file.)
If you set it up right, when run "FBreader" (or /path/to/FBReader if you didn't install it to /usr/bin say), it'll come up with the white screen I mentioned.
If it just immediately exits with no commentary (haha, bastards :/), then it means you didn't put zlui-gtk.so in the right place.
If you run it, and you get link errors on the terminal, its probably because you forgot step (2)
--
Its possible maybe we need to edit some xml files or configuration; maybe the data.tar.gz I yanked from Angstrom repo is invalid for our needs.
In the past when I built it a few months ago, it was able to view a .txt file, but no UI/controls still .. just a screen with the text and a scrollbar, nto exactly friendly.
But like I Said, no time to dig into the code, so just throwing this out there
jeff
I'm on a 4 week stretch of not-much-free-time, but thought I'd do (another) quick build of FBreader. (It annoys me for a number of reasons, most of which is that it doesn't really document itself, so you need to delve into the code to figure out what they want for you to do; the bloody thing will silently error out if you look at it funny, never noting why it exitted or crashed. Bloody annoying, since I don't want to invest the time to get into the code
After setting this up in a likely good way, when I run it (by itself, or against a PDF or .txt file) it just sits happiyl with a blank white screen. Perhaps this is correct, but I would assume it should show some UI -- menus, or a toolbox, or _something_ to know its running, other than the ability to resize or kill it
Then again, I've never used FBReader once and no time to run it (I got a 30min scrap of time tonight, and thats it for the day); since it'll be a day or two before I get time again, I thought I'd throw it up here .. maybe these binaries can be sorted out by someone; if you can get it running usefully, let me know the steps and I'll make up a PND file or installer for it.
Its probably something trivial, but since it doesn't emit any logging, a PITA to figure out. If I had a couple hours to trace the code.... but I do not
Help out your fellow man, get hacking!
Files, get them here:
http://www.codejedi.com/pandora/fbreader/hacks/
1) extract data.tar.gz as root, into /; ie, something akin to:
cd /
sudo bash <- enter password
tar zxvf /path/to/data.tar.gz
-- this is a random ipk bit pulled from Angstrom repo; using the ipk means pulling in dependandcies we dont' care about (it wants various bits we don't need, since I compiled without them, etc.)
2) copy the libzlcore* and libzltext* bits into /usr/lib -- again as root; this just replaces the bitsw from (1) that are for some other architecture
3) again as root, mkdir /usr/lib/zlibrary/ui <- wtf path :/
4) again as root, copy in zlui-gtk.so to /usr/lib/zlibrary/ui
Now you can run FBReader binary I supplied; copy it as root to /usr/bin if you like, to override the one from (1), or run it from place, etc.
(1) sets up a .desktop, so it shows up in the Accessories menu in xfce IIRC. (Won't show up in mmenu by default, since its not a pnd file.)
If you set it up right, when run "FBreader" (or /path/to/FBReader if you didn't install it to /usr/bin say), it'll come up with the white screen I mentioned.
If it just immediately exits with no commentary (haha, bastards :/), then it means you didn't put zlui-gtk.so in the right place.
If you run it, and you get link errors on the terminal, its probably because you forgot step (2)
--
Its possible maybe we need to edit some xml files or configuration; maybe the data.tar.gz I yanked from Angstrom repo is invalid for our needs.
In the past when I built it a few months ago, it was able to view a .txt file, but no UI/controls still .. just a screen with the text and a scrollbar, nto exactly friendly.
But like I Said, no time to dig into the code, so just throwing this out there
jeff