How to generate bindings for SDL Example

133 views
Skip to first unread message

Oscar Vargas Torres

unread,
Aug 27, 2016, 11:07:12 PM8/27/16
to CppSharp
Hi!

How can I generate the bindings for SDL example here https://github.com/mono/CppSharp/tree/master/examples/SDL ?
I am not generating the bindings after running https://github.com/mono/CppSharp/blob/master/examples/SDL/SDL.cs#L92

1. What am I missing? Should I do something with premake4.lua here https://github.com/mono/CppSharp/blob/master/examples/SDL/premake4.lua ?
2. How can I run/execute IncludeExamples https://github.com/mono/CppSharp/blob/master/build/Tests.lua#L183 ? Is that necessary to do what I want (generate C# bindings for the example)?

Help please! I've been working all day to get to this point, and I am stuck.

Notes:
a). I think I have already compiled what's necessary (I've followed instructions to compile from source llvm, clang; studied premake docs)

b). I have also added
     options.addIncludeDirs("C:/Program Files (x86)/Windows Kits/8.0/Include/shared");
after this line: https://github.com/mono/CppSharp/blob/master/examples/SDL/SDL.cs#L16

c). I cloned the sdl repo with this:
C:\development\CppSharp\build> .\premake5.exe --file=..\examples\SDL\SDL.lua clone_sdl

(I didn't find any documentation on how to work through this **example**!!)

João Matos

unread,
Aug 29, 2016, 5:02:51 PM8/29/16
to Oscar Vargas Torres, CppSharp
Hi, please open a new issue in Github and paste all the relevant information.

In this specific case, the console output of running the SDL binding generator, maybe there's some error preventing the generation.

And this issue was written a while ago and not tested with latest SDL so there's a chance it's broken with latest versions.

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



--
João Matos
Reply all
Reply to author
Forward
0 new messages