SFML community forums
Bindings - other languages => DotNet => Topic started by: TheDuceCat on February 14, 2012, 04:45:13 am
-
I'm testing out SFML on Mono on my MacBook Pro, but it can't find the csfml-window file, no matter what I do. I tried using a dll.config, using the linux files, the os x files, the windows dll's, nothing works! I can't get this working!
Edit:
Unhandled Exception: System.DllNotFoundException: csfml-window
at (wrapper managed-to-native) SFML.Window.Window:sfWindow_Create (SFML.Window.VideoMode,string,SFML.Window.Styles,SFML.Window.WindowSettings)
at SFML.Window.Window..ctor (VideoMode mode, System.String title, Styles style, WindowSettings settings) [0x00000] in <filename unknown>:0
at SFML.Window.Window..ctor (VideoMode mode, System.String title) [0x00000] in <filename unknown>:0
at SFMLTest.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: csfml-window
at (wrapper managed-to-native) SFML.Window.Window:sfWindow_Create (SFML.Window.VideoMode,string,SFML.Window.Styles,SFML.Window.WindowSettings)
at SFML.Window.Window..ctor (VideoMode mode, System.String title, Styles style, WindowSettings settings) [0x00000] in <filename unknown>:0
at SFML.Window.Window..ctor (VideoMode mode, System.String title) [0x00000] in <filename unknown>:0
at SFMLTest.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0
-
There are similar threads on this forum (DotNet, not General :evil:), most of them are for Linux but the fix should be similar.
-
There are similar threads on this forum (DotNet, not General :evil:), most of them are for Linux but the fix should be similar.
What csfml files do I need? I tried everything in the other posts.
-
What csfml files do I need?
The release version of csfml-window, csfml-graphics and csfml-audio.
-
What csfml files do I need?
The release version of csfml-window, csfml-graphics and csfml-audio.
I tried the .net CSFML files, the Linux ones, and the Mac ones, but none of them work. Why can't the .exe find it?
-
.exe? On Mac? :|
I can't help you with OS X anyway, sorry, you'll have to wait for someone else.
-
Sorry to bump this but im having the same issues with the window example.
I have tried changing the config file but still get this:
richy@Richy-Len:~/sfmlnet/examples/window$ dir
sfmlnet-audio-2.dll.config sfmlnet-window-2.dll.config window.csproj
sfmlnet-graphics-2.dll.config sfmlnet-window-2.dll.mdb window.exe
sfmlnet-window-2.dll Window.cs window.exe.mdb
richy@Richy-Len:~/sfmlnet/examples/window$ mono window.exe
Unhandled Exception: System.DllNotFoundException: libcsfml-window.so.2
at (wrapper managed-to-native) SFML.Window.Window:sfWindow_Create (SFML.Window.VideoMode,string,SFML.Window.Styles,SFML.Window.ContextSettings&)
at SFML.Window.Window..ctor (VideoMode mode, System.String title, Styles style, ContextSettings settings) [0x00000] in <filename unknown>:0
at window.Program.Main () [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: libcsfml-window.so.2
at (wrapper managed-to-native) SFML.Window.Window:sfWindow_Create (SFML.Window.VideoMode,string,SFML.Window.Styles,SFML.Window.ContextSettings&)
at SFML.Window.Window..ctor (VideoMode mode, System.String title, Styles style, ContextSettings settings) [0x00000] in <filename unknown>:0
at window.Program.Main () [0x00000] in <filename unknown>:0
richy@Richy-Len:~/sfmlnet/examples/window$ mono window.exe
Unhandled Exception: System.DllNotFoundException: libcsfml-window.so.2.0
at (wrapper managed-to-native) SFML.Window.Window:sfWindow_Create (SFML.Window.VideoMode,string,SFML.Window.Styles,SFML.Window.ContextSettings&)
at SFML.Window.Window..ctor (VideoMode mode, System.String title, Styles style, ContextSettings settings) [0x00000] in <filename unknown>:0
at window.Program.Main () [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: libcsfml-window.so.2.0
at (wrapper managed-to-native) SFML.Window.Window:sfWindow_Create (SFML.Window.VideoMode,string,SFML.Window.Styles,SFML.Window.ContextSettings&)
at SFML.Window.Window..ctor (VideoMode mode, System.String title, Styles style, ContextSettings settings) [0x00000] in <filename unknown>:0
at window.Program.Main () [0x00000] in <filename unknown>:0
richy@Richy-Len:~/sfmlnet/examples/window$ mono window.exe
Unhandled Exception: System.DllNotFoundException: libcsfml-window.so
at (wrapper managed-to-native) SFML.Window.Window:sfWindow_Create (SFML.Window.VideoMode,string,SFML.Window.Styles,SFML.Window.ContextSettings&)
at SFML.Window.Window..ctor (VideoMode mode, System.String title, Styles style, ContextSettings settings) [0x00000] in <filename unknown>:0
at window.Program.Main () [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: libcsfml-window.so
at (wrapper managed-to-native) SFML.Window.Window:sfWindow_Create (SFML.Window.VideoMode,string,SFML.Window.Styles,SFML.Window.ContextSettings&)
at SFML.Window.Window..ctor (VideoMode mode, System.String title, Styles style, ContextSettings settings) [0x00000] in <filename unknown>:0
at window.Program.Main () [0x00000] in <filename unknown>:0
richy@Richy-Len:~/sfmlnet/examples/window$ mono window.exe
Unhandled Exception: System.DllNotFoundException: libcsfml-window.so
at (wrapper managed-to-native) SFML.Window.Window:sfWindow_Create (SFML.Window.VideoMode,string,SFML.Window.Styles,SFML.Window.ContextSettings&)
at SFML.Window.Window..ctor (VideoMode mode, System.String title, Styles style, ContextSettings settings) [0x00000] in <filename unknown>:0
at window.Program.Main () [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: libcsfml-window.so
at (wrapper managed-to-native) SFML.Window.Window:sfWindow_Create (SFML.Window.VideoMode,string,SFML.Window.Styles,SFML.Window.ContextSettings&)
at SFML.Window.Window..ctor (VideoMode mode, System.String title, Styles style, ContextSettings settings) [0x00000] in <filename unknown>:0
at window.Program.Main () [0x00000] in <filename unknown>:0
richy@Richy-Len:~/sfmlnet/examples/window$ mono window.exe
Unhandled Exception: System.DllNotFoundException: libcsfml-window.so.2.0
at (wrapper managed-to-native) SFML.Window.Window:sfWindow_Create (SFML.Window.VideoMode,string,SFML.Window.Styles,SFML.Window.ContextSettings&)
at SFML.Window.Window..ctor (VideoMode mode, System.String title, Styles style, ContextSettings settings) [0x00000] in <filename unknown>:0
at window.Program.Main () [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: libcsfml-window.so.2.0
at (wrapper managed-to-native) SFML.Window.Window:sfWindow_Create (SFML.Window.VideoMode,string,SFML.Window.Styles,SFML.Window.ContextSettings&)
at SFML.Window.Window..ctor (VideoMode mode, System.String title, Styles style, ContextSettings settings) [0x00000] in <filename unknown>:0
at window.Program.Main () [0x00000] in <filename unknown>:0
richy@Richy-Len:~/sfmlnet/examples/window$
I built both SFML and cSFML and these are installed in /usr/local
with my config files looking like:
<configuration>
<dllmap dll="csfml-window-2" target="libcsfml-window.so.2.0" />
</configuration>
and my usr/local/lib has:
richy@Richy-Len:/usr/local/lib$ dir
libcsfml-audio-d.so libcsfml-window-d.so libsfml-network-d.so.2.0
libcsfml-audio-d.so.2 libcsfml-window-d.so.2 libsfml-network-s.a
libcsfml-audio-d.so.2.0 libcsfml-window-d.so.2.0 libsfml-network-s-d.a
libcsfml-audio.so libcsfml-window.so libsfml-network.so
libcsfml-audio.so.2 libcsfml-window.so.2 libsfml-network.so.2
libcsfml-audio.so.2.0 libcsfml-window.so.2.0 libsfml-network.so.2.0
libcsfml-graphics-d.so libsfml-audio-d.so libsfml-system-d.so
libcsfml-graphics-d.so.2 libsfml-audio-d.so.2 libsfml-system-d.so.2
libcsfml-graphics-d.so.2.0 libsfml-audio-d.so.2.0 libsfml-system-d.so.2.0
libcsfml-graphics.so libsfml-audio-s.a libsfml-system-s.a
libcsfml-graphics.so.2 libsfml-audio-s-d.a libsfml-system-s-d.a
libcsfml-graphics.so.2.0 libsfml-audio.so libsfml-system.so
libcsfml-network-d.so libsfml-audio.so.2 libsfml-system.so.2
libcsfml-network-d.so.2 libsfml-audio.so.2.0 libsfml-system.so.2.0
libcsfml-network-d.so.2.0 libsfml-graphics-d.so libsfml-window-d.so
libcsfml-network.so libsfml-graphics-d.so.2 libsfml-window-d.so.2
libcsfml-network.so.2 libsfml-graphics-d.so.2.0 libsfml-window-d.so.2.0
libcsfml-network.so.2.0 libsfml-graphics-s.a libsfml-window-s.a
libcsfml-system-d.so libsfml-graphics-s-d.a libsfml-window-s-d.a
libcsfml-system-d.so.2 libsfml-graphics.so libsfml-window.so
libcsfml-system-d.so.2.0 libsfml-graphics.so.2 libsfml-window.so.2
libcsfml-system.so libsfml-graphics.so.2.0 libsfml-window.so.2.0
libcsfml-system.so.2 libsfml-network-d.so pkgconfig
libcsfml-system.so.2.0 libsfml-network-d.so.2 python2.7
richy@Richy-Len:/usr/local/lib$
-
Is usr/local/lib in the library loader's search paths? It's controlled by the LD_LIBRARY_PATH environment variable under Linux, no idea if it's the same on OS X.
-
Is usr/local/lib in the library loader's search paths? It's controlled by the LD_LIBRARY_PATH environment variable under Linux, no idea if it's the same on OS X.
Yea this was my bad, I had the .config files inside a folder in my project, so when they were build they werent in the same folder as the exe