WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: flaxpdf loads but fails to launch  (Read 2509 times)

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
flaxpdf loads but fails to launch
« on: July 05, 2015, 01:20:14 AM »
Wanted to check out flaxpdf as an evince alternative.
It's installed, loaded, all dependencies appear met.
The info file does not indicate any special configuration requirements.
This is an x86 system, running TC 6 with Xorg and Fluxbox.
Thanks.

Error message:
Code: [Select]
tc@box:~$ tce-load -i flaxpdf
flaxpdf is already installed!
tc@box:~$ flaxpdf
libpng warning: iCCP: known incorrect sRGB profile
Visual doesn't match our expectations

Supporting info:
Code: [Select]
tc@box:~$ cat /etc/sysconfig/tcedir/optional/flaxpdf.tcz.dep
poppler.tcz
gcc_libs.tcz
lzo.tcz
fltk-1.3.tcz
tc@box:~$ ls /usr/local/tce.installed/ | grep pop
poppler
tc@box:~$ ls /usr/local/tce.installed/ | grep gcc
gcc_libs
tc@box:~$ ls /usr/local/tce.installed/ | grep lzo
lzo
tc@box:~$ ls /usr/local/tce.installed/ | grep fltk
fltk-1.1.10
fltk-1.3

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: flaxpdf loads but fails to launch
« Reply #1 on: July 05, 2015, 01:55:57 AM »
Works for me with icewm.
Does ldd show any errors?

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: flaxpdf loads but fails to launch
« Reply #2 on: July 05, 2015, 02:05:14 AM »
Thanks for reply.
Not sure if this is what you mean, navigate to /usr/local/bin and 'ldd flaxpdf' outputs:
Code: [Select]
tc@box:/usr/local/bin$ ldd flaxpdf
        linux-gate.so.1 (0xb7776000)
        libc.so.6 => /lib/libc.so.6 (0xb7640000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7626000)
        liblzo2.so.2 => /usr/local/lib/liblzo2.so.2 (0xb760d000)
        libfltk_images.so.1.3 => /usr/local/lib/libfltk_images.so.1.3 (0xb7602000)
        libfltk.so.1.3 => /usr/local/lib/libfltk.so.1.3 (0xb7545000)
        libX11.so.6 => /usr/local/lib/libX11.so.6 (0xb744c000)
        libpoppler.so.50 => /usr/local/lib/libpoppler.so.50 (0xb729e000)
        libXrender.so.1 => /usr/local/lib/libXrender.so.1 (0xb7297000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb71d6000)
        libm.so.6 => /lib/libm.so.6 (0xb7196000)
        libgomp.so.1 => /usr/local/lib/libgomp.so.1 (0xb7187000)
        /lib/ld-linux.so.2 (0xb7779000)
        libXext.so.6 => /usr/local/lib/libXext.so.6 (0xb717a000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7176000)
        libpng16.so.16 => /usr/local/lib/libpng16.so.16 (0xb7150000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb713e000)
        libjpeg.so.62 => /usr/local/lib/libjpeg.so.62 (0xb70f0000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb70db000)
        libxcb.so.1 => /usr/local/lib/libxcb.so.1 (0xb70c4000)
        libXau.so.6 => /usr/local/lib/libXau.so.6 (0xb70c1000)
        libXdmcp.so.6 => /usr/local/lib/libXdmcp.so.6 (0xb70bb000)
        liblcms2.so.2 => /usr/local/lib/liblcms2.so.2 (0xb707f000)
        libtiff.so.5 => /usr/local/lib/libtiff.so.5 (0xb7015000)
        libfontconfig.so.1 => /usr/local/lib/libfontconfig.so.1 (0xb6fe9000)
        libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0xb6f71000)
        liblzma.so.5 => /usr/local/lib/liblzma.so.5 (0xb6f4e000)
        libexpat.so.1 => /usr/local/lib/libexpat.so.1 (0xb6f31000)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: flaxpdf loads but fails to launch
« Reply #3 on: July 05, 2015, 02:16:59 AM »

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: flaxpdf loads but fails to launch
« Reply #4 on: July 05, 2015, 02:24:45 AM »
Thanks for the link. Already looked through similar stuff but not sure how to fix. Running 'flaxpdf' standalone or 'flaxpdf xyz.pdf' both create the error message, so it's not related to a specific pdf file or png image. I am unable to or don't know how to bypass or ignore the error, flaxpdf does not proceed to run and aterm just returns me to prompt. If i'm missing something, please let me know.
« Last Edit: July 05, 2015, 02:29:10 AM by nitram »

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: flaxpdf loads but fails to launch - solved
« Reply #5 on: July 05, 2015, 03:31:38 AM »
Okay, solved the problem. Sorry about that.

Hackedbox and IceWM, same error as above.

Changed xorg.conf from 16 bit to 24 bit colour and now flaxpdf launches. Still shows this error but launches okay:
Code: [Select]
libpng warning: iCCP: known incorrect sRGB profile

So anyone else with similar issue, run in >16 bit colour mode. By comparison, Evince does not require >16 bit colours.

FlaxPDF is nice. Opens almost instantly on old hardware. Took a bit to load 160+ page Corebook.pdf  - 100% processor load for some time, single core system :) - but once loaded all the pages are ready and display briskly. Refreshing change from Evince, which takes considerably longer to launch and render pages.

Curaga - Is there any way to enable continuous mode when using Page Down key. For example when using trim or full width mode, pressing Page Down key to display the next set of lines/bottom of the page rather than just skipping to the top of the next page (miss seeing the bottom half of the pages). Otherwise lots of mouse scrolling, down arrow use or having to switching to Page view where some of the pages/print can be quite small.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11041
Re: flaxpdf loads but fails to launch
« Reply #6 on: July 05, 2015, 03:56:16 AM »
Flax renders all the pages as 24-bit, so the check is to make sure they can be blitted in an optimal way, requiring no conversions. I'm not sure XRender even supports rendering from one format (24) to another (16), maybe it can, but 16-bit use is quite rare.

No support currently, will add to todo. Patches welcome ;)
The only barriers that can stop you are the ones you create yourself.

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: flaxpdf loads but fails to launch
« Reply #7 on: July 05, 2015, 12:40:15 PM »
Thanks for the reply. Yeah, 16 bit probably now very rare indeed - out with the old, in with the new. Just finished my morning news browsing and Firefox page scrolling is very choppy on this old system with 24 bit colour, so i will need to revert back to 16 bit and, unfortunately, probably remove FlaxPDF. It's very nice software though and was fun to trial. Sorry i do not have the necessary skills at this time to offer any patches. Take care.