On Thursday, March 22, 2018 at 6:14:59 PM UTC-5, Greg Trzeciak wrote:
>
> Last few times I had this error it was one of the following:
> 1. Incorrect version (32 vs 64bit)
> 2. Problem with Path.
>
> For 2. have you tried setting it up with absolute path to eliminate Path 
> as a problem?
>

 The poppler package installed is poppler-win32-x86-64 which matches the 
64-bitness of my Racket.

Not sure precisely which mechanism you had in mind for trying number 2. But 
I tried editing ffi.rkt in the pdf-read package as follows:

; original: (define-ffi-definer define-poppler (ffi-lib "libpoppler-glib"))
; (A) tried adding version: 
;  (define-ffi-definer define-poppler (ffi-lib "libpoppler-glib" "8"))
; (B) tried absolute path: 
   (define-ffi-definer define-poppler (ffi-lib 
"C:\\Users\\Joel\\AppData\\Roaming\\Racket\\6.12\\lib\\libpoppler-glib-8"))

Both edits return basically the same error as before:

(A)  ffi-lib: couldn't open "libpoppler-glib-8.dll" (The specified module 
could not be found.; errid=126)
(B)  ffi-lib: couldn't open 
"C:\\Users\\Joel\\AppData\\Roaming\\Racket\\6.12\\lib\\libpoppler-glib-8.dll" 
(The specified module could not be found.; errid=126)

For testing I did:

#lang racket

(require ffi/unsafe setup/dirs); pdf-read)

(define paths (get-lib-search-dirs))

(define (poppler? path)
  (string-contains? (path->string path) "poppler-glib"))

(flatten (for/list ([p paths])
           (find-files poppler? p)))

Produces:

'(#<path:C:\Users\Joel\AppData\Roaming\Racket\6.12\lib\libpoppler-glib-8.dll>)

So it should be able to find the dll at least. Perhaps it's just not able 
to load it for some other reason.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to