GithubHelp home page GithubHelp logo

sfml.jl's Introduction

SFML.jl Build Status

This is a binding of the C++ game and multimedia library SFML (Simple and Fast Multimedia Library), developed by Laurent Gomila, for Julia. SFML is often used for game development but it can be used for anything graphics-related.

It also has audio libraries and networking libraries.

There is currently almost complete support for graphics, great support for audio, and complete support for network.

SFML.jl works on Mac OS X, Linux, and Windows.

Take a look at the examples folder to see some usage examples.

For much larger examples (games) see these two examples: Jumping Game and Space Shooter (this one is more complex).

You can view a talk I gave about SFML.jl at JuliaCon 2015 here. All the demos that I used in that talk are available in the JuliaCon-SFML repository.

Installation

To install on any OS, run:

julia> Pkg.add("SFML")

If you want to install the master version use:

julia> Pkg.clone("SFML")
julia> Pkg.build("SFML")

Linux

Please make sure you have Glibc 2.14 installed, and let me know if there are any build problems on Linux (I don't use Linux very much). The Linux binaries don't come with any of the dependencies so you have to install them yourself. Here is the list:

  • pthread
  • opengl
  • xlib
  • xrandr
  • freetype
  • glew
  • jpeg
  • sndfile
  • openal

On Debian you can install the package libsfml-dev which will also install all dependencies. You can also run the commands here (you don't need to install cmake-gui).

Screenshots and Gifs

It is very simple to take a screen shot using SFML. Just use screenshot(window, filename).

You can also take a screenshot and store it in an Image object without saving the image using image = capture(window)


To create a gif, you must have imagemagick installed.

Making gifs is only slightly more complicated. You can use the make_gif(window, width, height, duration, filename, delay) function (duration and delay are in seconds).

When you run the program, it will asynchronously create the gif and will give you constant feedback in the console. If you don't see anything in the console, add a sleep(0) declaration at the start of the animation loop to allow Julia time to switch between the processes.

The gif creation is done when it says Created gif XXX.gif.

What has not been bound (yet)

  • SoundStreams
  • SoundStreamRecorders
  • SFML threads (pthreads)
  • Transforms

For the first three, we will probably have to wait for Julia to support multithreading.

License

This software is a binding of the SFML library created by Laurent Gomila, which is provided under the Zlib/png license.

This software is provided under the same license as SFML, the Zlib/png license.

sfml.jl's People

Contributors

dbeach24 avatar haberdashpi avatar iainnz avatar ibadr avatar jw3126 avatar lschuma avatar scls19fr avatar tkelman avatar tom--lee avatar wookay avatar zehcnas34 avatar zyedidia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sfml.jl's Issues

Build fails on Windows 7 with Julia 0.6.3

julia> Pkg.add("SFML")
INFO: Cloning cache of SFML from https://github.com/zyedidia/SFML.jl.git
INFO: Installing SFML v0.2.0
INFO: Building WinRPM
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE
eap_42.2/repodata/repomd.xml
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE
eap_42.2/repodata/repomd.xml
INFO: Building SFML
====================================================[ ERROR: SFML ]===================================================


LoadError: UndefVarError: @windows_only not defined
while loading C:\Users\Paul\.julia\v0.6\SFML\deps\build.jl, in expression starting on line 1

======================================================================================================================

Julia 0.7/1.0

Hello,

it will be nice to have Julia0.7/1.0 support.
Anyone ever tried it?

Kind regards

Fails on installation on Ubuntu linux

Stacktrace:
[1] depwarn(::String, ::Symbol) at ./deprecated.jl:68
[2] is_linux() at ./deprecated.jl:31
[3] anonymous at ./:?
[4] include_relative(::Module, ::String) at ./loading.jl:464
[5] include(::Module, ::String) at ./sysimg.jl:14
[6] process_options(::Base.JLOptions) at ./client.jl:315
[7] _start() at ./client.jl:383
while loading /home/kohlten/.julia/v0.7/SFML/deps/build.jl, in expression starting on line 69
ERROR: LoadError: UndefVarError: WORD_SIZE not defined
Stacktrace:
[1] macro expansion at /home/kohlten/.julia/v0.7/SFML/deps/build.jl:81 [inlined]
[2] anonymous at ./:?
[3] include_relative(::Module, ::String) at ./loading.jl:464
[4] include(::Module, ::String) at ./sysimg.jl:14
[5] process_options(::Base.JLOptions) at ./client.jl:315
[6] _start() at ./client.jl:383
while loading /home/kohlten/.julia/v0.7/SFML/deps/build.jl, in expression starting on line 69

I was able to fix this by just changing "systemLibPath = /usr/lib" to "systemLibPath = /usr/local/lib" where my sfml files are installed. Thanks!

Crash on calling draw() with non hardware-accelerated OpenGL on Windows

With SFML version 2.2 and non hardware-accelerated OpenGL on Windows, running the SFML examples results in Julia crashing

Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x0 -- unknown function (ip: 0000000000000000)

In particular, the crash happens when execution reaches the draw() function, e.g. draw(window, line) in line.jl example.

After some investigation, I can confirm that this issue is related to this discussion
http://en.sfml-dev.org/forums/index.php?topic=17793.0

In fact, I upgraded the SFML binaries to version 2.3 in this fork (https://github.com/ibadr/sfml-binaries), and changed the build.jl script to point there for downloading the SFML binaries, and I was subsequently able to build SFML.jl using these upgraded binaries. Afterwards, the examples run just fine, with some warnings that confirm my speculation, e.g.

Warning: Detected "Microsoft Corporation GDI Generic" OpenGL implementation
The current OpenGL implementation is not hardware-accelerated
Warning: The created OpenGL context does not fully meet the settings that were requested
Requested: version = 2.2 ; depth bits = 0 ; stencil bits = 0 ; AA level = 0 ; core = false ; debug = false
Created: version = 1.1 ; depth bits = 16 ; stencil bits = 8 ; AA level = 0 ; core = false ; debug = false

Info about upcoming removal of packages in the General registry

As described in https://discourse.julialang.org/t/ann-plans-for-removing-packages-that-do-not-yet-support-1-0-from-the-general-registry/ we are planning on removing packages that do not support 1.0 from the General registry. This package has been detected to not support 1.0 and is thus slated to be removed. The removal of packages from the registry will happen approximately a month after this issue is open.

To transition to the new Pkg system using Project.toml, see https://github.com/JuliaRegistries/Registrator.jl#transitioning-from-require-to-projecttoml.
To then tag a new version of the package, see https://github.com/JuliaRegistries/Registrator.jl#via-the-github-app.

If you believe this package has erroneously been detected as not supporting 1.0 or have any other questions, don't hesitate to discuss it here or in the thread linked at the top of this post.

Linux: Show dependencies if they are not installed

I'm on Linux and I have SFML 2.3 installed, but I cannot run any of the examples since I get errors of the type

libsfml-graphics.so.2.2.0:  cannot open shared object file: No such file or directory.

Also it would be good for SFML.jl to check for library requirements at installation time.

Cheers, and thanks for your work.

Got ERROR: The following package names could not be resolved: * SFML (not found in project, manifest or registry) Please specify by known `name=uuid`.

Thanks for your work on this project! Is it still active and useable? I am using Julia 1.3.1, running on Windows 10. As directed by the README, I attempted the following command,

Pkg.add("SFML")

and got the following error message and stacktrace (I wasn't supposed to install SFML first, was I? Based on the README I got the impression that it automatically installed with your package):

Pkg.add("SFML") Cloning default registries into C:\Users\jekostas.juliaCloning registry from "https://github.com/JuliaRegistries/General.git" Added registryGeneraltoC:\Users\jekostas.julia\registries\General`
ERROR: The following package names could not be resolved:

  • SFML (not found in project, manifest or registry)
    Please specify by known name=uuid.
    Stacktrace:
    [1] pkgerror(::String) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\Types.jl:113
    [2] #ensure_resolved#101(::Bool, ::typeof(Pkg.Types.ensure_resolved), ::Pkg.Types.EnvCache, ::Array{Pkg.Types.PackageSpec,1}) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\Types.jl:936
    [3] #ensure_resolved at .\none:0 [inlined]
    [4] #add#25(::Bool, ::Pkg.BinaryPlatforms.Windows, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(Pkg.API.add), ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:97
    [5] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:72
    [6] #add#24 at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:69 [inlined]
    [7] add at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:69 [inlined]
    [8] #add#21 at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:67 [inlined]
    [9] add at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:67 [inlined]
    [10] #add#20(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(Pkg.API.add), ::String) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:66
    [11] add(::String) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:66
    [12] top-level scope at REPL[3]:1`

Thank you in advance!

Build fails on Linux Mint 17 (debian derivative)

I installed libsfml-dev but it went in /usr/ , not /usr/local/

Also all the header files were .hpp not .h , i tried old versions of SFML from their site but they've been .hpp as far as version 1.6

julia> Pkg.build("SFML")
INFO: Building SFML
Window/event.c:2:31: fatal error: SFML/Window/Event.h: No such file or directory
 #include <SFML/Window/Event.h>
                               ^
compilation terminated.
Network/Network.c:2:26: fatal error: SFML/Network.h: No such file or directory
 #include <SFML/Network.h>
                          ^
compilation terminated.
Graphics/shader.c:2:27: fatal error: SFML/Graphics.h: No such file or directory
 #include <SFML/Graphics.h>
                           ^
compilation terminated.
ERROR: failed process: Process(`gcc -fPIC -I/home/oliver/.julia/v0.3/SFML/deps/csfml/include -c Window/event.c Network/Network.c Graphics/shader.c`, ProcessExited(1)) [1]
 in pipeline_error at process.jl:502
 in run at ./process.jl:479
 in include at ./boot.jl:245
 in include_from_node1 at loading.jl:128
 in process_options at ./client.jl:285
 in _start at ./client.jl:354
while loading /home/oliver/.julia/v0.4/SFML/src/c/createlib.jl, in expression starting on line 9
=============================================[ ERROR: SFML ]=============================================

Time for another release?

I just fixed a bunch of SFML.jl issues that turned up when I upgraded to Julia 0.5, only to find that they had already all been fixed in master. With 0.5 now official, it would be nice if the default release of SFML.jl was up to date.

CSFML Libraries on Windows

I would like to note a small issue I had while trying to use this package (after building), on the Windows operating system (It did not occur for me on Debian Linux).

I took the following steps using Julia v0.4.0-dev on a Jupyter notebook:

The package itself can be imported, without any errors:

using SFML

My first error occurred with the following code:

rec = SoundBufferRecorder()
LoadError: error compiling call: could not load library "libcsfml-audio"
The specified module could not be found.

while loading In[3], in expression starting on line 1

Here after I added the builded csml DLL's explicitly to my Windows environment.
While running the same code as above from the command line:

julia sound_test.jl
PS D:\dev\tmp> julia .\test_sound.jl

WARNING: deprecated syntax "Ptr{Void} (" at C:\Users\Foresterre\.julia\v0.4\SFML\src\julia/Network/udpSocket.jl:12.
Use "Ptr{Void}(" instead.
ERROR: LoadError: error compiling call: could not load library "libcsfml-audio"
The specified module could not be found.

 in include at boot.jl:259
 in include_from_node1 at loading.jl:267
 in process_options at client.jl:308
 in _start at client.jl:411
while loading D:\dev\tmp\test_sound.jl, in expression starting on line 3

Both times libcsfml-audio could not be found on the system.
The reason for this is because the SFML DLL's on Windows are build and named in the following format:
sfml--2.dll
or in the case of csfml csfml--2 (e.g. csfml-graphics-2).

I solved it for my install by copying & renaming the DLL's (from the format: csfml--2.dll formatting to libcsfml-.dll) from

C:\Users\Foresterre\.julia\v0.4\SFML\deps\sfml-binaries\csfml\csfml-32\bin

to

C:\Users\Foresterre\.julia\v0.4\SFML\deps\

Textures are not finalized

# finalizer(t, destroy)
# t

type Texture
    ptr::Ptr{Void}

    function Texture(ptr::Ptr{Void})
        t = new(ptr)
        # finalizer(t, destroy)
        # t
    end
end

Is there a reason the finalizer is commented out? I need these two lines uncommented or I end up leaking memory like crazy.

Method definition overwritten

Hello,

Since 980bd35#diff-b33605dd532e71660d3736608eb0f2fe have been merged, testing SFML.jl raises some warnings Method definition overwritten

WARNING: Method definition (::Type{SFML.FloatRect})(Float32, Float32, Float32, Float32) in module SFML at /home/scls/.julia/v0.6/SFML/src/julia/Graphics/rect.jl:2 overwritten at /home/scls/.julia/v0.6/SFML/src/julia/Graphics/rect.jl:2.
WARNING: Method definition (::Type{SFML.FloatRect})(Any, Any, Any, Any) in module SFML at /home/scls/.julia/v0.6/SFML/src/julia/Graphics/rect.jl:2 overwritten at /home/scls/.julia/v0.6/SFML/src/julia/Graphics/rect.jl:2.
WARNING: Method definition (::Type{SFML.IntRect})(Int32, Int32, Int32, Int32) in module SFML at /home/scls/.julia/v0.6/SFML/src/julia/Graphics/rect.jl:9 overwritten at /home/scls/.julia/v0.6/SFML/src/julia/Graphics/rect.jl:9.
WARNING: Method definition (::Type{SFML.IntRect})(Any, Any, Any, Any) in module SFML at /home/scls/.julia/v0.6/SFML/src/julia/Graphics/rect.jl:9 overwritten at /home/scls/.julia/v0.6/SFML/src/julia/Graphics/rect.jl:9.
WARNING: Method definition contains(SFML.IntRect, Int64, Int64) in module SFML at /home/scls/.julia/v0.6/SFML/src/julia/Graphics/rect.jl:21 overwritten at /home/scls/.julia/v0.6/SFML/src/julia/Graphics/rect.jl:21.
WARNING: Method definition contains(SFML.FloatRect, Real, Real) in module SFML at /home/scls/.julia/v0.6/SFML/src/julia/Graphics/rect.jl:16 overwritten at /home/scls/.julia/v0.6/SFML/src/julia/Graphics/rect.jl:16

Kind regards

Vertex array issues: don't appear when drawn, incorrect getbounds result, and segfault when accessing texCoords

I am having trouble drawing VertexArrays. They simply don't appear on the screen. This may or may not be linked to incorrect output from getbounds, and to the fact that when a vertex is access via get_vertex, we get a segfault when accessing the texCoord field. Here is some code that reproduces the issues. The segfaulting line is commented out:

using SFML

function test()

    va = VertexArray()
    SFML.set_primitive_type(va, SFML.triangles)

    #three vertices to make a triangle
    v1 = Vertex(Vector2f(0,0), SFML.green, Vector2f(0,0))
    v2 = Vertex(Vector2f(100,0), SFML.green, Vector2f(0,0))
    v3 = Vertex(Vector2f(100,100), SFML.green, Vector2f(0,0))
    append(va,v1)
    append(va,v2)
    append(va,v3)

    @show getbounds(va) # <-- this gives an incorrect result

    #get the first vertex
    gv = get_vertex(va, 0)

    # the original v1 members can be accessed without issue
    @show v1.position #ok
    @show v1.color #ok
    @show v1.texCoords #ok

    #but when we try to use gv.texCoords we get a segfault
    @show gv.position #ok
    @show gv.color #ok
    # @show gv.texCoords #segfault

    #
    window = RenderWindow("Input Example", 600, 600)
    event = Event()

    #use a circle as a control
    circle = CircleShape()
    set_position(circle, Vector2f(400.0, 400.0))
    set_radius(circle, 30)
    set_fillcolor(circle, SFML.red)

    while isopen(window)
        while pollevent(window, event)
            if get_type(event) == EventType.CLOSED
                close(window)
            end
        end

        clear(window, SFML.black)
        draw(window, circle) #drawn
        draw(window, va) #not drawn :(
        display(window)
    end
end

test()

I have tried and failed to get any further than this. Happy to help debug if I can.

get_pixels - wrong size of array returned (with solution)

The returned pointer array is not of size imgsize.x * imgsize.y
This is in RGBA so there are 4 values for each pixel.

convert(Array{UInt8}, unsafe_string(ptr, imgsize.x * imgsize.y))

Solution:

function get_pixels(image::SFML.Image)
    imgsize = get_size(image)
    ptr = ccall((:sfImage_getPixelsPtr, SFML.libcsfml_graphics), Ptr{UInt8}, (Ptr{Void},), image.ptr)
    # Here multiply by 4
    convert(Array{UInt8}, unsafe_string(ptr, imgsize.x * imgsize.y * 4))
end

cannot install SFML on Julia 0.4

Hi,
I was curious about the SFML package. I have installed it by Pkg.add("SFML")in the most recent version of julia (pulled and built today from the github 'master' branch). I have then updated all packages.

I now get:

julia> using SFML
Something has gone wrong with the SFML installation.
ErrorException("could not load library \"libsfml-graphics\"\ndlopen(/Users/michael/.julia/SFML/deps/libsfml-graphics.dylib, 9): Library not loaded: @rpath/../Frameworks/freetype.framework/Versions/A/freetype\n  Referenced from: /Users/michael/.julia/SFML/deps/libsfml-graphics.dylib\n  Reason: image not found")

Do I just need to be patient for the release, or am I doing something wrong?

libGLEW.so.1.10 => not found

julia> using SFML
INFO: Precompiling module SFML.
WARNING: replacing module SFML.
Could not resolve dependencies:
	libGLEW.so.1.10 => not found
Something has gone wrong with the SFML installation.
ErrorException("could not load library \"libsfml-graphics\"\nlibGLEW.so.1.10: cannot open shared object file: No such file or directory")
julia> VERSION
v"0.5.2"

When searching for libGLEW I got:

/usr/share/doc/libglew1.13
/var/lib/dpkg/info/libglew1.13:amd64.list
/var/lib/dpkg/info/libglew1.13:amd64.md5sums
/var/lib/dpkg/info/libglew1.13:amd64.shlibs
/var/lib/dpkg/info/libglew1.13:amd64.symbols
/var/lib/dpkg/info/libglew1.13:amd64.triggers
/usr/lib/x86_64-linux-gnu/libGLEW.so.1.13
/usr/lib/x86_64-linux-gnu/libGLEW.so.1.13.0

It would seem that either libglew needs to be rolled back (which could affect other programs I'm using) or SFML needs updating to support the newer libglew package.
Linux version: Linux Mint 18.1 Serena

Could not load library "csfml-graphics-2" The specified module could not be found.

Hi, I'm fairly new to Julia and SFML and I don't really if I'm doing it right and if it is the right place to post my issue but still, here it is:

error compiling main: could not load library "csfml-graphics-2" The specified module could not be found.

I have no idea what raises it neither how to fix it.

Feel free to tell me if I'm not in the right place to ask that kind of question.

Thanks in advance.

Issue during build on OSX 10.11 with Julia v0.4.0

julia> Pkg.add("SFML")
INFO: Updating cache of SFML...
INFO: Installing SFML v0.1.0
INFO: Building SFML
Downloading SFML...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   168  100   168    0     0    282      0 --:--:-- --:--:-- --:--:--   282
100 6198k  100 6198k    0     0   194k      0  0:00:31  0:00:31 --:--:--  239k
Downloading CSFML...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   168  100   168    0     0    501      0 --:--:-- --:--:-- --:--:--   502
100 1791k  100 1791k    0     0   398k      0  0:00:04  0:00:04 --:--:--  514k
==================================================[ ERROR: SFML ]===================================================

LoadError: could not spawn `julia createlib.jl`: no such file or directory (ENOENT)
while loading /Users/idunning/.julia/v0.4/SFML/deps/build.jl, in expression starting on line 128

====================================================================================================================

==================================================[ BUILD ERRORS ]==================================================

WARNING: SFML had build errors.

 - packages with build errors remain installed in /Users/idunning/.julia/v0.4
 - build the package(s) and all dependencies with `Pkg.build("SFML")`
 - build a single package by running its `deps/build.jl` script

====================================================================================================================
INFO: Package database updated

Add SFML.jl to JuliaGraphics

I find SFML super intuitive but I know it from C++.
It would be good to suggest it to other people not familiar with C++ multimedia libraries.
I got to know Plotly, PlotlyJS and GR just because someone had put it into an intuitively named package called Plots
Great binding by the way!
Include it here: JuliaGraphics

Build Fails for Linux

Hello,

For some reason, the latest version of the SFML package fails to build for Julia v.0.6.0 under an Arch Linux based Manjaro (ver. 17.0.2) operating system on a x_64 bit architecture.

Here is the error output:

_ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_) | Documentation: https://docs.julialang.org _ _ _| |_ __ _ | Type "?help" for help. | | | | | | |/ _ | |
| | || | | | (| | | Version 0.6.0 (2017-06-19 13:05 UTC)
/ |_'|||_'_| |
|__/ | x86_64-pc-linux-gnu

julia>
julia> Pkg.update()
INFO: Updating METADATA...
INFO: Computing changes...
INFO: Upgrading JSON: v0.12.0 => v0.13.0

julia> Pkg.add("SFML")
INFO: Cloning cache of SFML from https://github.com/zyedidia/SFML.jl.git
INFO: Installing SFML v0.2.0
INFO: Building SFML
==================================================================================================[ ERROR: SFML ]==================================================================================================

LoadError: UndefVarError: @windows_only not defined
while loading /home/mike/.julia/v0.6/SFML/deps/build.jl, in expression starting on line 1

===================================================================================================================================================================================================================

=================================================================================================[ BUILD ERRORS ]==================================================================================================

WARNING: SFML had build errors.

  • packages with build errors remain installed in /home/mike/.julia/v0.6
  • build the package(s) and all dependencies with Pkg.build("SFML")
  • build a single package by running its deps/build.jl script

===================================================================================================================================================================================================================
INFO: Package database updated

julia> `

Resurrect SFML.jl

First, thanks for your work on the package.

I write because several of us are interested in update SFML to Julia 1.0, see
https://discourse.julialang.org/t/problem-porting-sfml-jl-to-julia-1-1/20029/10.
Now there is a better installer
https://github.com/Gnimuc/SFMLBuilder and a wrapper using CSFML https://github.com/Gnimuc/LibCSFML.jl. Also, we have a version in SFML with Julia 1.x that we will update to use new LibCSFML.jl package.
Because it seems that you are not working more in SFML.jl package, we would like that you could give permission over the SFML.jl package to us or another structure (as JuliaGraphics) in which several could maintain the package, see
#45

Best regards, Daniel

Why is the C code required?

Hey @zyedidia, I haven't done a deep dive into the code, but I was wondering why the C bindings are needed?

Looking forward to seeing a demo of a Julia-powered game at JuliaCon!

Other glibc version then 2.14?

I am trying to install SFML.jl on a linux machine and read the install instructions. They insist on glibc 2.14, however I don't want to downgrade it (I use 2.23). Is there a chance to get SFML.jl to work anyway?

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.