[Mono-list] System.DllNotFoundException, but dll is there.
Lecio
tolecio at msn.com
Wed Oct 21 00:54:55 EDT 2009
Well.. The libsub was reinstalled and the msg bellow has gone.
> Mono-INFO: DllImport error loading library './libUFScanner.so: undefined
> symbol: usb_bulk_read'.
The App loads normal until the btn that initializes the scanner is clicked,
then the mess has start! :_)
Chris got the point, the UFScanner.dll is used to manager the Scanner and it
does not work.
I have a file named libUFScanner.so that I think be a Linux compiled version
of UFScanner.dll. But I don't know how to use it. May you give me a light ??
[ ]' s
:::: what happen when try to init scanner :::
Mono-INFO: DllImport attempting to load: 'libX11.so.6'.
Mono-INFO: DllImport loading location: 'libX11.so.6.so'.
Mono-INFO: DllImport error loading library: 'libX11.so.6.so: cannot open
shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading library: './libX11.so.6.so'.
Mono-INFO: DllImport error loading library './libX11.so.6.so: cannot open
shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading: 'libX11.so.6'.
Mono-INFO: Searching for 'XDefineCursor'.
Mono-INFO: Probing 'XDefineCursor'.
Mono-INFO: Found as 'XDefineCursor'.
Mono-INFO: DllImport attempting to load: 'libX11.so.6'.
Mono-INFO: DllImport loading location: 'libX11.so.6.so'.
Mono-INFO: DllImport error loading library: 'libX11.so.6.so: cannot open
shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading library: './libX11.so.6.so'.
Mono-INFO: DllImport error loading library './libX11.so.6.so: cannot open
shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading: 'libX11.so.6'.
Mono-INFO: Searching for 'XUndefineCursor'.
Mono-INFO: Probing 'XUndefineCursor'.
Mono-INFO: Found as 'XUndefineCursor'.
Mono-INFO: DllImport attempting to load: 'libX11.so.6'.
Mono-INFO: DllImport loading location: 'libX11.so.6.so'.
Mono-INFO: DllImport error loading library: 'libX11.so.6.so: cannot open
shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading library: './libX11.so.6.so'.
Mono-INFO: DllImport error loading library './libX11.so.6.so: cannot open
shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading: 'libX11.so.6'.
Mono-INFO: Searching for 'XFlush'.
Mono-INFO: Probing 'XFlush'.
Mono-INFO: Found as 'XFlush'.
Mono-INFO: DllImport attempting to load: 'libX11.so.6'.
Mono-INFO: DllImport loading location: 'libX11.so.6.so'.
Mono-INFO: DllImport error loading library: 'libX11.so.6.so: cannot open
shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading library: './libX11.so.6.so'.
Mono-INFO: DllImport error loading library './libX11.so.6.so: cannot open
shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading: 'libX11.so.6'.
Mono-INFO: Searching for 'XGrabPointer'.
Mono-INFO: Probing 'XGrabPointer'.
Mono-INFO: Found as 'XGrabPointer'.
Mono-INFO: DllImport attempting to load: 'libX11.so.6'.
Mono-INFO: DllImport loading location: 'libX11.so.6.so'.
Mono-INFO: DllImport error loading library: 'libX11.so.6.so: cannot open
shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading library: './libX11.so.6.so'.
Mono-INFO: DllImport error loading library './libX11.so.6.so: cannot open
shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading: 'libX11.so.6'.
Mono-INFO: Searching for 'XUngrabPointer'.
Mono-INFO: Probing 'XUngrabPointer'.
Mono-INFO: Found as 'XUngrabPointer'.
Mono-INFO: DllImport attempting to load: 'libX11.so.6'.
Mono-INFO: DllImport loading location: 'libX11.so.6.so'.
Mono-INFO: DllImport error loading library: 'libX11.so.6.so: cannot open
shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading library: './libX11.so.6.so'.
Mono-INFO: DllImport error loading library './libX11.so.6.so: cannot open
shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading: 'libX11.so.6'.
Mono-INFO: Searching for 'XChangeActivePointerGrab'.
Mono-INFO: Probing 'XChangeActivePointerGrab'.
Mono-INFO: Found as 'XChangeActivePointerGrab'.
Mono-INFO: DllImport attempting to load: 'UFScanner.dll'.
Mono-INFO: DllImport loading location: 'libUFScanner.dll.so'.
Mono-INFO: DllImport error loading library: 'libUFScanner.dll.so: cannot
open shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading library: './libUFScanner.dll.so'.
Mono-INFO: DllImport error loading library './libUFScanner.dll.so: cannot
open shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading: 'UFScanner.dll'.
Mono-INFO: DllImport error loading library 'UFScanner.dll: cannot open
shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading location: 'libUFScanner.so'.
Mono-INFO: DllImport error loading library: 'libUFScanner.so: cannot open
shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading library: './libUFScanner.so'.
Mono-INFO: DllImport error loading library './libUFScanner.so: cannot open
shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading: 'UFScanner'.
Mono-INFO: DllImport error loading library 'UFScanner: cannot open shared
object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading location: 'libUFScanner.dll.so'.
Mono-INFO: DllImport error loading library: 'libUFScanner.dll.so: cannot
open shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading library: './libUFScanner.dll.so'.
Mono-INFO: DllImport error loading library './libUFScanner.dll.so: cannot
open shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading: 'libUFScanner.dll'.
Mono-INFO: DllImport error loading library 'libUFScanner.dll: cannot open
shared object file: Arquivo ou diretório não encontrado'.
(UFE30_DemoCS.exe:9503): Mono-WARNING **: DllImport unable to load library
'libUFScanner.dll: cannot open shared object file: Arquivo ou diretório não
encontrado'.
Mono-INFO: DllImport attempting to load: 'UFScanner.dll'.
Mono-INFO: DllImport loading location: 'libUFScanner.dll.so'.
Mono-INFO: DllImport error loading library: 'libUFScanner.dll.so: cannot
open shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading library: './libUFScanner.dll.so'.
Mono-INFO: DllImport error loading library './libUFScanner.dll.so: cannot
open shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading: 'UFScanner.dll'.
Mono-INFO: DllImport error loading library 'UFScanner.dll: cannot open
shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading location: 'libUFScanner.so'.
Mono-INFO: DllImport error loading library: 'libUFScanner.so: cannot open
shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading library: './libUFScanner.so'.
Mono-INFO: DllImport error loading library './libUFScanner.so: cannot open
shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading: 'UFScanner'.
Mono-INFO: DllImport error loading library 'UFScanner: cannot open shared
object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading location: 'libUFScanner.dll.so'.
Mono-INFO: DllImport error loading library: 'libUFScanner.dll.so: cannot
open shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading library: './libUFScanner.dll.so'.
Mono-INFO: DllImport error loading library './libUFScanner.dll.so: cannot
open shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading: 'libUFScanner.dll'.
Mono-INFO: DllImport error loading library 'libUFScanner.dll: cannot open
shared object file: Arquivo ou diretório não encontrado'.
(UFE30_DemoCS.exe:9503): Mono-WARNING **: DllImport unable to load library
'libUFScanner.dll: cannot open shared object file: Arquivo ou diretório não
encontrado'.
Mono-INFO: DllImport attempting to load: 'UFScanner.dll'.
Mono-INFO: DllImport loading location: 'libUFScanner.dll.so'.
Mono-INFO: DllImport error loading library: 'libUFScanner.dll.so: cannot
open shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading library: './libUFScanner.dll.so'.
Mono-INFO: DllImport error loading library './libUFScanner.dll.so: cannot
open shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading: 'UFScanner.dll'.
Mono-INFO: DllImport error loading library 'UFScanner.dll: cannot open
shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading location: 'libUFScanner.so'.
Mono-INFO: DllImport error loading library: 'libUFScanner.so: cannot open
shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading library: './libUFScanner.so'.
Mono-INFO: DllImport error loading library './libUFScanner.so: cannot open
shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading: 'UFScanner'.
Mono-INFO: DllImport error loading library 'UFScanner: cannot open shared
object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading location: 'libUFScanner.dll.so'.
Mono-INFO: DllImport error loading library: 'libUFScanner.dll.so: cannot
open shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading library: './libUFScanner.dll.so'.
Mono-INFO: DllImport error loading library './libUFScanner.dll.so: cannot
open shared object file: Arquivo ou diretório não encontrado'.
Mono-INFO: DllImport loading: 'libUFScanner.dll'.
Mono-INFO: DllImport error loading library 'libUFScanner.dll: cannot open
shared object file: Arquivo ou diretório não encontrado'.
(UFE30_DemoCS.exe:9503): Mono-WARNING **: DllImport unable to load library
'libUFScanner.dll: cannot open shared object file: Arquivo ou diretório não
encontrado'.
Unhandled Exception: System.DllNotFoundException: UFScanner.dll
at (wrapper managed-to-native) Suprema._UFScanner:UFS_Init ()
at Suprema.UFScannerManager.Init () [0x00000]
at Suprema.UFE30_Demo.btnInit_Click (System.Object sender,
System.EventArgs e) [0x00000]
at System.Windows.Forms.Control.OnClick (System.EventArgs e) [0x00000]
at System.Windows.Forms.Button.OnClick (System.EventArgs e) [0x00000]
at System.Windows.Forms.ButtonBase.OnMouseUp
(System.Windows.Forms.MouseEventArgs mevent) [0x00000]
at System.Windows.Forms.Button.OnMouseUp
(System.Windows.Forms.MouseEventArgs mevent) [0x00000]
at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message&
m) [0x00000]
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m)
[0x00000]
at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message&
m) [0x00000]
at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message& m)
[0x00000]
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage
(System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.Control+ControlNativeWindow.WndProc
(System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr
wParam, IntPtr lParam) [0x00000]
at System.Windows.Forms.XplatUIX11.DispatchMessage
(System.Windows.Forms.MSG& msg) [0x00000]
at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG&
msg) [0x00000]
at System.Windows.Forms.Application.RunLoop (Boolean Modal,
System.Windows.Forms.ApplicationContext context) [0x00000]
at System.Windows.Forms.Application.Run
(System.Windows.Forms.ApplicationContext context) [0x00000]
at System.Windows.Forms.Application.Run (System.Windows.Forms.Form
mainForm) [0x00000]
at Suprema.UFE30_Demo.Main () [0x00000]
--
View this message in context: http://www.nabble.com/System.DllNotFoundException%2C-but-dll-is-there.-tp25952202p25986495.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list
mailing list