digitalmars.D.ide - dlangide dub build error
based on this page: https://github.com/buggins/dlangide/blob/master/README.md I executed these commands on Ubuntu 16.04 with dub 1.5.0, built on Sep 1 2017 dub fetch dlangide dub run --build=release dlangide The first command appeared to work: Fetching dlangide 0.8.8... Please note that you need to use `dub run <pkgname>` or add it to dependencies of your package to actually use/run it. dub does not do actual installation of packages outside of its own ecosystem. but got this error on the second command: Building package dlangide in /home/user/.dub/packages/dlangide-0.8.8/dlangide/ Fetching dcd 0.9.1 (getting selected version)... Fetching msgpack-d 1.0.0-beta.6 (getting selected version)... Fetching dsfml 2.1.1 (getting selected version)... Fetching libdparse 0.7.1 (getting selected version)... Fetching dsymbol 0.2.9 (getting selected version)... Fetching dlangui 0.9.167 (getting selected version)... Fetching derelict-util 2.0.6 (getting selected version)... Fetching x11 1.0.19 (getting selected version)... Fetching derelict-gl3 1.0.23 (getting selected version)... Fetching derelict-ft 1.1.3 (getting selected version)... Fetching derelict-sdl2 2.0.2 (getting selected version)... Fetching emsi_containers 0.5.3 (getting selected version)... Performing "release" build using dmd for x86_64. emsi_containers 0.5.3: building configuration "library"... libdparse 0.7.1: building configuration "library"... dsymbol 0.2.9: building configuration "library"... msgpack-d 1.0.0-beta.6: building configuration "library"... dcd 0.9.1: building configuration "library"... derelict-util 2.0.6: building configuration "library"... derelict-ft 1.1.3: building configuration "library"... derelict-gl3 1.0.23: building configuration "library"... derelict-sdl2 2.0.2: building configuration "library"... dlangui 0.9.167: building configuration "default"... dlangide 0.8.8: building configuration "default"... ../.dub/packages/dlangide-0.8.8/dlangide/src/dlangide/tools/d dmdtrace.d(224,46): Deprecation: module core.demangle is not accessible here, perhaps add 'static import core.demangle;' ../.dub/packages/dlangide-0.8.8/dlangide/src/dlangide/ui/dmdpr filerview.d(98,26): Deprecation: dlangui.widgets.controls.to is not visible from module dmdprofilerview ../.dub/packages/dlangide-0.8.8/dlangide/src/dlangide/ui/settings.d(121,111): Deprecation: dlangui.core.settings.to is not visible from module settings Linking... Running ../.dub/packages/dlangide-0.8.8/dlangide/bin/dlangide 2017-10-31 21:21:24.439 E Cannot load SDL2 libraryderelict.util.exception.SharedLibLoadException ../.dub/packages/derelict-util-2.0.6/derelict-util/source/derelict/u il/exception.d(35): Failed to load one or more shared libraries: libSDL2.so - libSDL2.so: cannot open shared object file: No such file or directory libSDL2-2.0.so - libSDL2-2.0.so: cannot open shared object file: No such file or directory libSDL2-2.0.so.0 - libSDL2-2.0.so.0: cannot open shared object file: No such file or directory /usr/local/lib/libSDL2.so - /usr/local/lib/libSDL2.so: cannot open shared object file: No such file or directory /usr/local/lib/libSDL2-2.0.so - /usr/local/lib/libSDL2-2.0.so: cannot open shared object file: No such file or directory /usr/local/lib/libSDL2-2.0.so.0 - /usr/local/lib/libSDL2-2.0.so.0: cannot open shared object file: No such file or directory ---------------- ??:? void derelict.util.sharedlib.SharedLib.load(immutable(char)[][]) [0xdd4cb5] ??:? int dlangui.platforms.sdl.sdlapp.sdlmain(immutable(char)[][]) [0xc66e1e] ??:? DLANGUImain [0xc66b97] ??:? _Dmain [0xb17d5b] Program exited with code 1
Oct 31 2017
Oops, never mind. Took a closer look at the error message and noticed the SDL2-2 lib missing and installed that with Synaptic and now it has built and run.
Oct 31 2017