Comments (9)
That is the problem, if you don't have a Mac. ;)
from dgame.
I've updated the v0.5.0-beta.3 tag.
from dgame.
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.
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.
See also: http://derelictorg.github.io/using.html
from dgame.
I've updated the install tutorial, hope it helps: http://dgame-dev.de/?page=tutorial&tut=installation
from dgame.
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.
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.
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)
- Iterating over SpriteSheet starts at index 1 and ends at index 0 HOT 13
- small issue on page HOT 2
- [Feature Request] A Window.draw overload with an offset HOT 4
- Dgame Does not render on multiple windows HOT 3
- Make Rect a template to allow for floating point HOT 1
- Necessary code doesn't execute when compiling in release mode HOT 3
- Shape color is being changed by unrelated objects HOT 5
- TTF_Init is not being called, formatting Text always errors "Font Invalid" HOT 5
- StopWatch Divide by 0 when trying to fill frame_ms HOT 1
- DerelictGL3 not able to find symbol ( glGetnTexImage ) HOT 3
- Window.wait Timeout is milliseconds, not seconds. HOT 1
- Collision detection HOT 4
- Wrong links in README.md? HOT 1
- Dgame crashing HOT 6
- Is this project still alive ? Couple bugs I ran into. HOT 8
- What about adding more built in colors? Like 400 plus . Color Enhancement idea . HOT 8
- Rect methods questions ? Add new method clamp ? HOT 1
- `object.Error@(0): Access Violation` on `DMD32` HOT 7
- D program quits unexpectedly when using Text HOT 11
- Text colors are wrong HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dgame.