16
D / DSFML broken
« on: January 30, 2011, 06:03:05 pm »
That's because DSFML1 on the download page is targeted at D1 (and quite outdated).
Only use the svn version and SFML2.
Only use the svn version and SFML2.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Another example: transforming all the LoadFromXxx functions to constructors (or Create functions in the C binding). I doubt this can be done automatically.
And what about bindings that must use the C binding, not the C++ API?
External libraries can use whatever they like to create their bindings.
CMake Error at F:/cmake-2.8.2-win32-x86/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:70 (MESSAGE):
Could NOT find SFML (missing: SFML_INCLUDE_DIR SFML_SYSTEM_LIBRARY
SFML_WINDOW_LIBRARY SFML_NETWORK_LIBRARY SFML_GRAPHICS_LIBRARY
SFML_AUDIO_LIBRARY)
Call Stack (most recent call first):
F:/cmake-2.8.2-win32-x86/share/cmake-2.8/Modules/FindSFML.cmake:67 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
src/SFML/CMakeLists.txt:22 (find_package)
CMake Error at cmake/Macros.cmake:55 (csfml_parse_arguments):
Syntax error in cmake code at
ð;É8ë7ð;ÉrojeèÂÀeclipse/work:55
when parsing string
SOURCES;G:/Daten/.........;G:\Daten\D-Projekte\eclipse\workspace\sfml2\install\lib;debug;G:\Daten\D-Projekte\eclipse\workspace\sfml2\install\lib
Invalid escape sequence \D
Call Stack (most recent call first):
src/SFML/System/CMakeLists.txt:24 (csfml_add_library)
I modified druntime to support stack-tracing for all kind of exceptions.
It's very simple:
1) In object_.d, change traceContext() function linkage to C:
extern(C) Throwable.TraceInfo traceContext(void* ptr = null) { ... }
2) In rt\deh.c, declare
Interface* traceContext(void* ptr);
and add the following line to _d_create_exception_object (rt\deh.c)
exc->info = traceContext(NULL);