Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSX & with Demo - at (wrapper managed-to-native) CursesSharp.Internal.CursesMethods:wrap_COLS () #16

Open
winkmichael opened this issue Apr 22, 2017 · 2 comments

Comments

@winkmichael
Copy link

winkmichael commented Apr 22, 2017

mono Demo.Gui.MidnightCommander.exe

Unhandled Exception:
System.DllNotFoundException: CursesWrapper
at (wrapper managed-to-native) CursesSharp.Internal.CursesMethods:wrap_COLS ()
at CursesSharp.Internal.CursesMethods.COLS () [0x00001] in :0
at CursesSharp.Curses.get_Cols () [0x00001] in :0
at CursesSharp.Gui.Terminal.get_Cols () [0x00001] in :0
at CursesSharp.Gui.Terminal.Init (System.Boolean disable_color) [0x00016] in :0
at MouselessCommander.Shell.Main () [0x0000c] in <366e5e50614b45d5a54302f945acc4c5>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: CursesWrapper
at (wrapper managed-to-native) CursesSharp.Internal.CursesMethods:wrap_COLS ()
at CursesSharp.Internal.CursesMethods.COLS () [0x00001] in :0
at CursesSharp.Curses.get_Cols () [0x00001] in :0
at CursesSharp.Gui.Terminal.get_Cols () [0x00001] in :0
at CursesSharp.Gui.Terminal.Init (System.Boolean disable_color) [0x00016] in :0
at MouselessCommander.Shell.Main () [0x0000c] in <366e5e50614b45d5a54302f945acc4c5>:0

Managed to get everything working on Linux, but OSX is making me crazy. Any times on how to fix the missing lib issue?

@winkmichael winkmichael changed the title OSX & Linux issue with Demo - at (wrapper managed-to-native) CursesSharp.Internal.CursesMethods:wrap_COLS () OSX & with Demo - at (wrapper managed-to-native) CursesSharp.Internal.CursesMethods:wrap_COLS () Apr 22, 2017
@sushihangover
Copy link
Owner

Have you set to DYLD_FALLBACK_LIBRARY_PATH to include the location of the native libCursesWrapper library?

@winkmichael
Copy link
Author

Thanks for the reply Sushihangover, I believe I've got things all set. Linux is all good, but no matter what I do I can't seem to get it to recognize that dll in the directory. Fought with in Xamarin for hours with no luck either. Any ideas or help is greatly appreciated.
Here are some outputs

echo $DYLD_FALLBACK_LIBRARY_PATH
/Users/mike/Projects/CursesSharp/CursesSharp.Native/bin/Debug

Content of this directory seems like maybe the issue?

ls CursesSharp.Native/
ASCIIControlCodes.MD config.h.in instr.c termattr.c
CursesSharp.Native.Linux.cproj debug.c kernel.c touch.c
CursesSharp.Native.cproj delch.c keyname.c unicode.c
addch.c deleteln.c mouse.c unicode.h
addchstr.c getch.c move.c util.c
addstr.c getstr.c outopts.c win32/
attr.c getyx.c overlay.c window.c
beep.c inch.c pad.c wrapper.c
bkgd.c inchstr.c panel.c wrapper.h
border.c initscr.c refresh.c xbuffer.c
clear.c inopts.c scr_dump.c xbuffer.h
color.c insch.c scroll.c
config.h insstr.c slk.c

Am I missing a step in compiling this somwhow?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants