Ali hocam haydi SFMLD yi geçtim ama ben bu SDL 2 yide derleyemedim .. Acaba burda nerede hata yapıyorum ?
https://github.com/xyproto/sdl2-examples/tree/master/d
dub dosyasını çalıştırdığım zaman şöyle bir hata mesajı aldım;
'Performing "debug" build using /usr/bin/dmd for x86_64.
derelict-util 2.0.6: target for configuration "library" is up to date.
derelict-sdl2 2.1.4: target for configuration "library" is up to date.
main ~master: target for configuration "application" is up to date.
To force a rebuild of up-to-date targets, run again with --force.
Running ./main
derelict.util.exception.SharedLibLoadException@../../../.dub/packages/derelict-util-2.0.6/derelict-util/source/derelict/util/exception.d(35): Failed to load one or more shared libraries:
libSDL2_image.so - libSDL2_image.so: cannot open shared object file: No such file or directory
libSDL2_image-2.0.so - libSDL2_image-2.0.so: cannot open shared object file: No such file or directory
libSDL2_image-2.0.so.0 - libSDL2_image-2.0.so.0: cannot open shared object file: No such file or directory
/usr/local/lib/libSDL2_image.so - /usr/local/lib/libSDL2_image.so: cannot open shared object file: No such file or directory
/usr/local/lib/libSDL2_image-2.0.so - /usr/local/lib/libSDL2_image-2.0.so: cannot open shared object file: No such file or directory
/usr/local/lib/libSDL2_image-2.0.so.0 - /usr/local/lib/libSDL2_image-2.0.so.0: cannot open shared object file: No such file or directory
./../../.dub/packages/derelict-util-2.0.6/derelict-util/source/derelict/util/exception.d:66 void derelict.util.exception.SharedLibLoadException.throwNew(immutable(char)[][], immutable(char)[][]) [0x55eb6290ff35]
./../../.dub/packages/derelict-util-2.0.6/derelict-util/source/derelict/util/sharedlib.d:155 void derelict.util.sharedlib.SharedLib.load(immutable(char)[][]) [0x55eb6290f986]
./../../.dub/packages/derelict-util-2.0.6/derelict-util/source/derelict/util/loader.d:197 void derelict.util.loader.SharedLibLoader.load(immutable(char)[][]) [0x55eb6290da2f]
./../../.dub/packages/derelict-util-2.0.6/derelict-util/source/derelict/util/loader.d:143 void derelict.util.loader.SharedLibLoader.load(immutable(char)[]) [0x55eb6290d9b4]
./../../.dub/packages/derelict-util-2.0.6/derelict-util/source/derelict/util/loader.d:82 void derelict.util.loader.SharedLibLoader.load() [0x55eb6290d897]
source/app.d:11 _Dmain [0x55eb628fb60b]
Program exited with code 1'
şimdi bu soruyu altlık kabul ederek başka bir soru daha sorayım; dub dışında kütüphaneleri kurmanın başka bir yolu yokmudur ? yani direk olarak git den bunları indirip programımıza dahil edemiyor muyuz ? ben bu dub dan bırakın sevmeyi nefret etmeye başladım :-D
--
[ Bu gönderi, http://ddili.org/forum'dan dönüştürülmüştür. ]