Giter Club home page Giter Club logo

Comments (5)

lithiumtoast avatar lithiumtoast commented on August 23, 2024

Unrecognized command or argument 'config.json'.

It's c2cs --config /path/to/config.json

from c2cs.

lithiumtoast avatar lithiumtoast commented on August 23, 2024

With C2CS version 5, the config.json you posted is first for CAstFfi.

castffi extract /path/to/config-linux.json
castffi merge --inputDirectoryPath /path/to/ast/directory --outputFilePath /path/to/cross-platform-ast.json
c2cs --config /path/to/config-cs.json

config-linux.json:

{
  "inputFilePath": "/usr/include/SDL/SDL.h",
  "userIncludeDirectories": [
    "/usr/include/SDL"
  ],
  "platforms": {
    "x86_64-unknown-linux-gnu": {},
  }
}

config-cs.json:

{
  "inputFilePath": "/path/to/cross-platform-ast.json",
  "outputFilePath": "/path/to/SDL.cs",
  "namespaceName": "",
  "className": "SDL"
}

from c2cs.

DeafMan1983 avatar DeafMan1983 commented on August 23, 2024

Okay thanks I will try again....

Oh I found generator can't find SDL_FillRect()

Unhandled exception. System.EntryPointNotFoundException: Unable to find an entry point named 'SDL_FillRect' in shared library 'SDL3'.
   at bottlenoselabs.SDL.SDL_FillRect(SDL_Surface* dst, SDL_Rect* rect, UInt32 color)

I already downloaded and tested from repository of your helloworld and it shows FillRect has not SDL_FillRect() It is impossible? I believe it is new version won't use longer with old SDL_FillRect()....

from c2cs.

lithiumtoast avatar lithiumtoast commented on August 23, 2024

You may need to re-point the SDL submodule to v2; perhaps in v3 of SDL SDL_FillRect is no longer there?

from c2cs.

DeafMan1983 avatar DeafMan1983 commented on August 23, 2024

Yes check out new version of SDL3 but I have already released SDL3 with ClangSharpPInvokeGenerator. Can you check my repository DeafMan1983.Interop.SDL3

If you have problem with sbyte * or string conversion.

Then you can try out if you have example sdl2/3 with SDL3 C#.

Enjoy your happy development! You can find in nuget.org also both packages. But both support Net 7.0

from c2cs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.