WinDjView

If you are looking for a specific 64-bit package and you can't find it in any of the 64-bit repos, please post a request for it here
Post Reply
rych
Samurai
Samurai
Posts: 118
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 4.0 64 LXDE
Location: NZ

WinDjView

Post#1 by rych » 03 Jul 2018, 07:30

WinDjView is the best at rendering djvu scanned books I've seen. One should be able to just install the windows version onto the Wine 3.5. That works for SumatraPDF and other (64-bit) windows apps. WinDjView installer apparently does install a win64 binary. Unfortunately it crashes at startup, as it did on older Wine, older porteus, etc. I suspect it's a broken win64 binary or doesn't play well on Wine 64.

The (32-bit) workaround I use is as follows.
1. Replace WinDjView.exe with its 32bit version.
2. From the same linked thread get the 0050-compat32-multilib-ftw.xzm and put it into optional modules. Manually activate each time. Do not put into modules folder as it will screw up system dpi, at least on my LXDE desktop.
3. To make it the default (double-click) reader for djvu files, modify

Code: Select all

~/.config/mimeapps.list:
[Default Applications]
...
image/vnd.djvu=wine-extension-djv.desktop
(see https://lkubaski.wordpress.com/2012/10/ ... d-pcmanfm/)

If anyone finds a win64 binary of WinDjView that works on Wine, please share.

fulalas
DEV Team
DEV Team
Posts: 1124
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

WinDjView

Post#2 by fulalas » 03 Jul 2018, 21:51


rych
Samurai
Samurai
Posts: 118
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 4.0 64 LXDE
Location: NZ

WinDjView

Post#3 by rych » 05 Jul 2018, 06:30

Thank you, @fulalas, I'm now using the newer Wine from the link. It didn't resolve the issue with WinDjView -- possibly because it's not a proper 64-bit application after all. See the attached wine-windows-generated backtrace below. So, I still need the 0050-compat32-multilib-ftw.xzm and 32-bit WinDjView. There definitely exists 2 versions of WinDjView.exe, of different size at least, but maybe I was always wrong assuming one of them to be 64-bit.

Code: Select all

Unhandled exception: page fault on read access to 0x540429420 in 64-bit code (0x00007f7e5e013f1c).
Register dump:
 rip:00007f7e5e013f1c rsp:000000000023ded8 rbp:0000000000000600 eflags:00010287 (  R- --  I S - -P-C)
 rax:0000000000062170 rbx:0000000540428e20 rcx:0000000000000010 rdx:0000000000000600
 rsi:0000000540429420 rdi:0000000000062170  r8:000000000000000d  r9:0000000000000000 r10:0000000000062170
 r11:0000000000000600 r12:fffffffffffffa00 r13:0000000000000001 r14:000000000023e18c r15:000000000023e060
Stack dump:
0x000000000023ded8:  00007f7e5c61081f 000000000023e19c
0x000000000023dee8:  0000000000068438 000000000023e4a0
0x000000000023def8:  000000000023e460 000000000023e19c
0x000000000023df08:  00007f7e5c5f0547 0000000000010027
0x000000000023df18:  000000000023e060 000000000000000d
0x000000000023df28:  000000000023df48 000000000023e18c
0x000000000023df38:  00007f7e00000001 0000000000000000
0x000000000023df48:  0000000000000000 0000000000000000
0x000000000023df58:  0000000000000000 000000000023e480
0x000000000023df68:  000000000023e440 000000000023e4a0
0x000000000023df78:  000000000000000d 000000000023e4c0
0x000000000023df88:  00007f7e5c5f18b9 000000000023e060
Backtrace:
=>0 0x00007f7e5e013f1c __memcpy_avx_unaligned_erms+0x16c() in libc.so.6 (0x0000000000000600)
  1 0x00007f7e5c61081f in gdi32 (+0x4081e) (0x0000000000000600)
  2 0x00007f7e5c5f0547 in gdi32 (+0x20546) (0x0000000000068438)
  3 0x00007f7e5c5f18b9 in gdi32 (+0x218b8) (0x000000000023e480)
  4 0x00007f7e5c5ed86d in gdi32 (+0x1d86c) (0x0000000000cc0020)
  5 0x00007f7e5c5edd76 StretchDIBits+0x185() in gdi32 (0x000000000023ee80)
  6 0x000000014005a7a4 in windjview64 (+0x5a7a3) (0x0000000000080082)
  7 0x000000014005a885 in windjview64 (+0x5a884) (0x0000000000049fc8)
  8 0x000000014005a59d in windjview64 (+0x5a59c) (0x0000000000049fc8)
  9 0x000000014004767f in windjview64 (+0x4767e) (0x000000000023f170)
  10 0x000000014010cff6 in windjview64 (+0x10cff5) (0x000000000023f170)
  11 0x000000014010eb54 in windjview64 (+0x10eb53) (0x0000000000000001)
  12 0x0000000140108cbb in windjview64 (+0x108cba) (0x0000000000000000)
  13 0x00000001401097a4 in windjview64 (+0x1097a3) (0x0000000000000000)
  14 0x00007f7e5c802d65 in user32 (+0xa2d64) (0x000000000023f418)
  15 0x00007f7e5c80534a in user32 (+0xa5349) (0x00007fffffea8000)
  16 0x00007f7e5c7bf553 in user32 (+0x5f552) (0x0000000000000001)
  17 0x00007f7e5c7c6537 in user32 (+0x66536) (0x000000000023f528)
  18 0x00007f7e5c7c68c6 SendMessageW+0x95() in user32 (0x000000000023f630)
  19 0x00007f7e5c7f7f34 in user32 (+0x97f33) (0x000000000002002e)
  20 0x00007f7e5c7f0599 CreateWindowExW+0xb8() in user32 (0x000000000023f920)
  21 0x00000001401106dc in windjview64 (+0x1106db) (0x000000000023fa59)
  22 0x000000014010aa89 in windjview64 (+0x10aa88) (0x000000000023fa59)
  23 0x00000001401186f0 in windjview64 (+0x1186ef) (0x0000000000000080)
  24 0x000000014011906d in windjview64 (+0x11906c) (0x0000000000000080)
  25 0x000000014007d9f4 in windjview64 (+0x7d9f3) (0x000000000023fc69)
  26 0x000000014007d65a in windjview64 (+0x7d659) (0x0000000140000000)
  27 0x00000001402b6445 in windjview64 (+0x2b6444) (0x0000000140000000)
  28 0x0000000140290d0c in windjview64 (+0x290d0b) (0x000000000023ffd0)
  29 0x000000007b4771ce in kernel32 (+0x571cd) (0x000000000023ffd0)
0x00007f7e5e013f1c __memcpy_avx_unaligned_erms+0x16c in libc.so.6: ldsl	%esi,%edi
Modules:
Module	Address					Debug info	Name (99 modules)
ELF	        7b400000-        7b811000	Dwarf           kernel32<elf>
  \-PE	        7b420000-        7b811000	\               kernel32
ELF	        7bc00000-        7bd1d000	Deferred        ntdll<elf>
  \-PE	        7bc20000-        7bd1d000	\               ntdll
ELF	        7c000000-        7c004000	Deferred        <wine-loader>
PE	       140000000-       140456000	Export          windjview64
ELF	    7f7e569ef000-    7f7e56bf7000	Deferred        libffi.so.6
ELF	    7f7e56bf7000-    7f7e56e6c000	Deferred        libgmp.so.10
ELF	    7f7e56e6c000-    7f7e570a1000	Deferred        libhogweed.so.4
ELF	    7f7e570a1000-    7f7e572d7000	Deferred        libnettle.so.6
ELF	    7f7e572d7000-    7f7e57658000	Deferred        libunistring.so.2
ELF	    7f7e57658000-    7f7e57875000	Deferred        libidn2.so.0
ELF	    7f7e57875000-    7f7e57ba0000	Deferred        libp11-kit.so.0
ELF	    7f7e57ba0000-    7f7e57dd8000	Deferred        libcrypt.so.1
ELF	    7f7e57dd8000-    7f7e58138000	Deferred        libgnutls.so.30
ELF	    7f7e58138000-    7f7e583c0000	Deferred        libcups.so.2
ELF	    7f7e583c0000-    7f7e585c6000	Deferred        libxfixes.so.3
ELF	    7f7e585c6000-    7f7e587d0000	Deferred        libxcursor.so.1
ELF	    7f7e587d0000-    7f7e589e0000	Deferred        libxi.so.6
ELF	    7f7e589e0000-    7f7e58be2000	Deferred        libxcomposite.so.1
ELF	    7f7e58be2000-    7f7e58ded000	Deferred        libxrandr.so.2
ELF	    7f7e58ded000-    7f7e58ff7000	Deferred        libxrender.so.1
ELF	    7f7e58ff7000-    7f7e591fc000	Deferred        libxxf86vm.so.1
ELF	    7f7e591fc000-    7f7e593fe000	Deferred        libxinerama.so.1
ELF	    7f7e593fe000-    7f7e59603000	Deferred        libxdmcp.so.6
ELF	    7f7e59603000-    7f7e59806000	Deferred        libxau.so.6
ELF	    7f7e59806000-    7f7e59a2c000	Deferred        libxcb.so.1
ELF	    7f7e59a2c000-    7f7e59d67000	Deferred        libx11.so.6
ELF	    7f7e59d67000-    7f7e59f79000	Deferred        libxext.so.6
ELF	    7f7e59f79000-    7f7e5a01a000	Deferred        winex11<elf>
  \-PE	    7f7e59f90000-    7f7e5a01a000	\               winex11
ELF	    7f7e5a01a000-    7f7e5a221000	Deferred        libuuid.so.1
ELF	    7f7e5a221000-    7f7e5a453000	Deferred        libexpat.so.1
ELF	    7f7e5a453000-    7f7e5a695000	Deferred        libfontconfig.so.1
ELF	    7f7e5a695000-    7f7e5a8c8000	Deferred        libpng16.so.16
ELF	    7f7e5a8c8000-    7f7e5aad8000	Deferred        libbz2.so.1
ELF	    7f7e5aad8000-    7f7e5adee000	Deferred        libglib-2.0.so.0
ELF	    7f7e5adee000-    7f7e5b09e000	Deferred        libharfbuzz.so.0
ELF	    7f7e5b09e000-    7f7e5b310000	Deferred        libpcre.so.1
ELF	    7f7e5b310000-    7f7e5b5c4000	Deferred        libfreetype.so.6
ELF	    7f7e5b5e0000-    7f7e5b60e000	Deferred        msacm32<elf>
  \-PE	    7f7e5b5f0000-    7f7e5b60e000	\               msacm32
ELF	    7f7e5b60e000-    7f7e5b6d4000	Deferred        winmm<elf>
  \-PE	    7f7e5b620000-    7f7e5b6d4000	\               winmm
ELF	    7f7e5b6d4000-    7f7e5b78b000	Deferred        gdiplus<elf>
  \-PE	    7f7e5b6f0000-    7f7e5b78b000	\               gdiplus
ELF	    7f7e5b78b000-    7f7e5b7ce000	Deferred        ws2_32<elf>
  \-PE	    7f7e5b790000-    7f7e5b7ce000	\               ws2_32
ELF	    7f7e5b7ce000-    7f7e5b7fb000	Deferred        mpr<elf>
  \-PE	    7f7e5b7e0000-    7f7e5b7fb000	\               mpr
ELF	    7f7e5b7fb000-    7f7e5ba12000	Deferred        libz.so.1
ELF	    7f7e5ba1a000-    7f7e5ba2e000	Deferred        msimg32<elf>
  \-PE	    7f7e5ba20000-    7f7e5ba2e000	\               msimg32
ELF	    7f7e5ba2e000-    7f7e5bab9000	Deferred        wininet<elf>
  \-PE	    7f7e5ba40000-    7f7e5bab9000	\               wininet
ELF	    7f7e5bab9000-    7f7e5bb21000	Deferred        oleacc<elf>
  \-PE	    7f7e5bac0000-    7f7e5bb21000	\               oleacc
ELF	    7f7e5bb21000-    7f7e5bc99000	Deferred        oleaut32<elf>
  \-PE	    7f7e5bb50000-    7f7e5bc99000	\               oleaut32
ELF	    7f7e5bc99000-    7f7e5bd32000	Deferred        rpcrt4<elf>
  \-PE	    7f7e5bcb0000-    7f7e5bd32000	\               rpcrt4
ELF	    7f7e5bd32000-    7f7e5bed3000	Deferred        ole32<elf>
  \-PE	    7f7e5bd60000-    7f7e5bed3000	\               ole32
ELF	    7f7e5bed3000-    7f7e5bf11000	Deferred        uxtheme<elf>
  \-PE	    7f7e5bee0000-    7f7e5bf11000	\               uxtheme
ELF	    7f7e5bf11000-    7f7e5bf5a000	Deferred        winspool<elf>
  \-PE	    7f7e5bf20000-    7f7e5bf5a000	\               winspool
ELF	    7f7e5bf5a000-    7f7e5bf83000	Deferred        imm32<elf>
  \-PE	    7f7e5bf60000-    7f7e5bf83000	\               imm32
ELF	    7f7e5bf83000-    7f7e5bfd1000	Deferred        usp10<elf>
  \-PE	    7f7e5bf90000-    7f7e5bfd1000	\               usp10
ELF	    7f7e5bfd1000-    7f7e5c124000	Deferred        comctl32<elf>
  \-PE	    7f7e5bfe0000-    7f7e5c124000	\               comctl32
ELF	    7f7e5c124000-    7f7e5c426000	Deferred        shell32<elf>
  \-PE	    7f7e5c140000-    7f7e5c426000	\               shell32
ELF	    7f7e5c426000-    7f7e5c527000	Deferred        comdlg32<elf>
  \-PE	    7f7e5c430000-    7f7e5c527000	\               comdlg32
ELF	    7f7e5c527000-    7f7e5c5b8000	Deferred        advapi32<elf>
  \-PE	    7f7e5c540000-    7f7e5c5b8000	\               advapi32
ELF	    7f7e5c5b8000-    7f7e5c735000	Dwarf           gdi32<elf>
  \-PE	    7f7e5c5d0000-    7f7e5c735000	\               gdi32
ELF	    7f7e5c735000-    7f7e5c999000	Dwarf           user32<elf>
  \-PE	    7f7e5c760000-    7f7e5c999000	\               user32
ELF	    7f7e5c999000-    7f7e5ca29000	Deferred        shlwapi<elf>
  \-PE	    7f7e5c9b0000-    7f7e5ca29000	\               shlwapi
ELF	    7f7e5cb29000-    7f7e5cb44000	Deferred        version<elf>
  \-PE	    7f7e5cb30000-    7f7e5cb44000	\               version
ELF	    7f7e5cc95000-    7f7e5cea7000	Deferred        libnss_files.so.2
ELF	    7f7e5cea7000-    7f7e5d0c0000	Deferred        libnsl.so.1
ELF	    7f7e5d0c0000-    7f7e5d2cc000	Deferred        libnss_nis.so.2
ELF	    7f7e5d2cc000-    7f7e5d4d5000	Deferred        libnss_compat.so.2
ELF	    7f7e5d6d5000-    7f7e5d8ec000	Deferred        libgcc_s.so.1
ELF	    7f7e5d8ec000-    7f7e5dc87000	Deferred        libm.so.6
ELF	    7f7e5dc89000-    7f7e5de8d000	Deferred        libdl.so.2
ELF	    7f7e5de8d000-    7f7e5e277000	Dwarf           libc.so.6
ELF	    7f7e5e277000-    7f7e5e496000	Deferred        libpthread.so.0
ELF	    7f7e5e4b2000-    7f7e5e858000	Dwarf           libwine.so.1
ELF	    7f7e5e85a000-    7f7e5ea83000	Deferred        ld-linux-x86-64.so.2
ELF	    7ffd6e971000-    7ffd6e972000	Deferred        [vdso].so
Threads:
process  tid      prio (all id:s are in hex)
00000008 Everything.exe
	0000004a    0
	00000049    0
	00000048    0
	00000047    0
	00000045    0
	00000009    0
0000000e services.exe
	00000025    0
	00000022    0
	0000001d    0
	00000013    0
	00000010    0
	0000000f    0
00000011 winedevice.exe
	0000001a    0
	00000017    0
	00000016    0
	00000012    0
0000001b plugplay.exe
	0000001f    0
	0000001e    0
	0000001c    0
00000020 winedevice.exe
	00000028    0
	00000024    0
	00000023    0
	00000021    0
00000030 explorer.exe
	00000036    0
	00000035    0
	00000034    0
	00000031    0
00000053 (D) Z:\P\PF\WinDjView64.exe
	00000054    0 <==
System information:
    Wine build: wine-3.11
    Platform: x86_64
    Version: Windows 7
    Host system: Linux
    Host version: 4.16.3-porteus

fulalas
DEV Team
DEV Team
Posts: 1124
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

WinDjView

Post#4 by fulalas » 06 Jul 2018, 03:19

Hmmm... Some programs have 2 versions of the main binary: a 32 bit version that will call the 64 bit version if the current machine is x64. Maybe that's the case. :unknown:

tome
Contributor
Contributor
Posts: 630
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Poland
Contact:

WinDjView

Post#5 by tome » 07 Jul 2018, 07:23

You can use Evince to read djvu files and use continuous scrolling. For x86_64 You need for example:
http://slackware.uk/zenwalk/x86_64/curr ... 64-1jp.txz (less dependencies)
gsettings-desktop-schemas-....-x86_64-1.txz
poppler-....-x86_64-1.txz
djvulibre-3.5.27-x86_64-2.txz

Use www.slakfinder.org to download required packages.
No intelligence, no life and no information can exist without prior intelligence, life or information (in place where things change and time is running).

Post Reply