cl-sdl2-image
c2ffi
Our great sponsors
cl-sdl2-image | c2ffi | |
---|---|---|
1 | 4 | |
17 | 219 | |
- | - | |
3.0 | 6.3 | |
6 months ago | 6 days ago | |
Common Lisp | C++ | |
MIT License | GNU Lesser General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cl-sdl2-image
-
sketch, sdl2, c2ffi on M1 Mac?
In that same thread, someone mentioned adding some OSX specific paths to :sysincludes in the autowrap.lisp file, so basically I downloaded the git repos for https://github.com/lispgames/cl-sdl2-image and https://github.com/Failproofshark/cl-sdl2-ttf into quicklisp/local-projects as well as the repos referenced in the cl-sdl2 thread above.
c2ffi
-
sketch, sdl2, c2ffi on M1 Mac?
Quickloading :sketch or :sdl2 wants the c2ffi library which seems to be available on neither Quicklisp nor Homebrew. Downloading that library from source and following the build instructions (and several alternative variants found by Googling ) leads to errors like:
-
C Isn't a Programming Language Anymore
> C compiler based tool that outputs DWARF or DWARF-like debug output that actually lays out everything
That sounds like C2FFI: https://github.com/rpav/c2ffi
The only language ecosystem where I've seen it used is Common Lisp. But it emits plain JSON and depends only on LLVM (albeit a specific version thereof), and I don't see any reason why you couldn't build e.g. a Python auto-binding library on top of it.
-
Alternative to ECL?
There is the cl-autowrap that can generate lisp packages from C header filesc- I am unsure if it sticks to ANSI C or goes beyond. It inturn depends on c2ffi for the first time around.
-
Installing c2ffi on Ubuntu
git clone https://github.com/rpav/c2ffi git checkout -b llvm-11.0.0 refs/remotes/origin/llvm-11.0.0 cd build cmake .. # -DBUILD_CONFIG=Release LIBRARY_PATH=/usr/lib/llvm-11/lib/ make # -j8 sudo checkinstall
What are some alternatives?
cl-sdl2 - Common Lisp bindings for SDL2 using C2FFI.
cl-autowrap - (c-include "file.h") => complete FFI wrapper
processing - Source code for the Processing Core and Development Environment (PDE)
c-mera - Next-level syntax for C-like languages :)
cl-sdl2-ttf - A common lisp wrapper for SDL2_TTF used for loading fonts and creating text assets
mal - mal - Make a Lisp
chibi-scheme - Official chibi-scheme repository
CMake - Mirror of CMake upstream repository
veloren