Giter Club home page Giter Club logo

Comments (9)

Dgame avatar Dgame commented on May 24, 2024

That is the problem, if you don't have a Mac. ;)

from dgame.

Dgame avatar Dgame commented on May 24, 2024

I've updated the v0.5.0-beta.3 tag.

from dgame.

joelcnz avatar joelcnz commented on May 24, 2024

I can compile the library now, but I'm stuck again:

Joels-MacBook-Pro:test joelcnz$ ls
SDL2.dll libjpeg-9.dll libvorbis.dll
SDL2_image.dll libmikmod-2.dll libvorbisfile-3.dll
SDL2_mixer.dll libmodplug-1.dll libvorbisfile.dll
SDL2_ttf.dll libogg-0.dll libwebp-4.dll
cmd.lnk libogg.dll main.d
dub.json libpng16-16.dll samples
libFLAC-8.dll libtiff-5.dll smpeg2.dll
libfreetype-6.dll libvorbis-0.dll zlib1.dll
Joels-MacBook-Pro:test joelcnz$ dirs
~/jpro/dpro2/OtherPeoples/Dgame/source/Dgame/test
Joels-MacBook-Pro:test joelcnz$ dub
Target derelict-util 1.9.1 is up to date. Use --force to rebuild.
Target derelict-sdl2 1.9.4 is up to date. Use --force to rebuild.
Target m3 0.0.6 is up to date. Use --force to rebuild.
Target derelict-gl3 1.0.12 is up to date. Use --force to rebuild.
Building dgame ~master configuration "main", build type debug.
Compiling using dmd...
4LU
16LU
64LU
80LU
8LU
20LU
8LU
8LU
32LU
Linking...
Running ./dgame-example
derelict.util.exception.SharedLibLoadException@../../../../.dub/packages/derelict-util-1.9.1/source/derelict/util/exception.d(35):
Failed to load one or more shared libraries:
../Frameworks/SDL2_image.framework/SDL2_image -
dlopen(../Frameworks/SDL2_image.framework/SDL2_image, 2): image not found
/Library/Frameworks/SDL2_image.framework/SDL2_image -
dlopen(/Library/Frameworks/SDL2_image.framework/SDL2_image, 2): image not
found
/System/Library/Frameworks/SDL2_image.framework/SDL2_image -
dlopen(/System/Library/Frameworks/SDL2_image.framework/SDL2_image, 2):
image not found
Error executing command run: Program exited with code 1

Joels-MacBook-Pro:test joelcnz$

On Mon, Mar 16, 2015 at 9:23 PM, Randy Schütt [email protected]
wrote:

I've updated the v0.5.0-beta.3 tag.


Reply to this email directly or view it on GitHub
#35 (comment).

from dgame.

Dgame avatar Dgame commented on May 24, 2024

That's a derelict issue. Derelict tries to load the neccessary files by itself, as you can see here: https://github.com/DerelictOrg/DerelictSDL2/blob/master/source/derelict/sdl2/sdl.d#L42
For Mac you need *.dylib files, I deliver only *.dll files for Windows (only for 32 bit target because I compile mostly with dmd for 32 bit targets). So you need to build these files by yourself or take a look here: http://libsdl.org/download-2.0.php
There should be files for Mac and Windows, look at 'Development Libraries'.

I've described that in the install tutorial under 'Build Dgame'. But I should make that more visible.

from dgame.

Dgame avatar Dgame commented on May 24, 2024

See also: http://derelictorg.github.io/using.html

from dgame.

Dgame avatar Dgame commented on May 24, 2024

I've updated the install tutorial, hope it helps: http://dgame-dev.de/?page=tutorial&tut=installation

from dgame.

joelcnz avatar joelcnz commented on May 24, 2024

How come I don't need to install things like SDL2 with the Dlang UI library?

On Tue, Mar 17, 2015 at 9:28 PM, Randy Schütt [email protected]
wrote:

I've updated the install tutorial, hope it helps:
http://dgame-dev.de/?page=tutorial&tut=installation


Reply to this email directly or view it on GitHub
#35 (comment).

from dgame.

Dgame avatar Dgame commented on May 24, 2024

I don't know, maybe they use static linking instead of dynamic. But it seems that on Linux you also need to install the SDL development files by yourself: https://github.com/buggins/dlangui#linux-builds

from dgame.

Dgame avatar Dgame commented on May 24, 2024

I tested it on Ubuntu and I was right: you have to build/install SDL by yourself. It delivers (as Dgame) only *.dll files (for Win32).

from dgame.

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.