Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example doesn't run on ubuntu #16

Open
commandodev opened this issue Sep 14, 2021 · 1 comment
Open

Example doesn't run on ubuntu #16

commandodev opened this issue Sep 14, 2021 · 1 comment

Comments

@commandodev
Copy link

I've got a fresh checkout of chaosbox which I've run stack build on.

I get the following:

$ stack exec chaosbox-example
chaosbox-example: SDLCallFailed {sdlExceptionCaller = "SDL.Video.updateWindowSurface", sdlFunction = "SDL_UpdateWindowSurface", sdlExceptionError = "Window surface is invalid, please call SDL_GetWindowSurface() to get a new surface"}

ldd output:

ldd .stack-work/install/x86_64-linux-tinfo6/554fc345da7e2388412f8a6ac62c9ab68f20c5699196add852e84b1354d0b302/8.6.5/bin/chaosbox-example
	linux-vdso.so.1 (0x00007ffd31759000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f97acf7e000)
	libSDL2-2.0.so.0 => /lib/x86_64-linux-gnu/libSDL2-2.0.so.0 (0x00007f97ace29000)
	libcairo-gobject.so.2 => /lib/x86_64-linux-gnu/libcairo-gobject.so.2 (0x00007f97ace1d000)
	libgobject-2.0.so.0 => /lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007f97acdbd000)
	libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f97acc94000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f97acc78000)
	libcairo.so.2 => /lib/x86_64-linux-gnu/libcairo.so.2 (0x00007f97acb53000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f97acb48000)
	libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f97acb43000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f97acb3d000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f97acb1a000)
	libgmp.so.10 => /lib/x86_64-linux-gnu/libgmp.so.10 (0x00007f97aca96000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f97ac8a2000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f97ad0ed000)
	libasound.so.2 => /lib/x86_64-linux-gnu/libasound.so.2 (0x00007f97ac7a7000)
	libpulse.so.0 => /lib/x86_64-linux-gnu/libpulse.so.0 (0x00007f97ac752000)
	libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f97ac615000)
	libXext.so.6 => /lib/x86_64-linux-gnu/libXext.so.6 (0x00007f97ac600000)
	libXcursor.so.1 => /lib/x86_64-linux-gnu/libXcursor.so.1 (0x00007f97ac5f3000)
	libXinerama.so.1 => /lib/x86_64-linux-gnu/libXinerama.so.1 (0x00007f97ac5ec000)
	libXi.so.6 => /lib/x86_64-linux-gnu/libXi.so.6 (0x00007f97ac5da000)
	libXrandr.so.2 => /lib/x86_64-linux-gnu/libXrandr.so.2 (0x00007f97ac5cd000)
	libXss.so.1 => /lib/x86_64-linux-gnu/libXss.so.1 (0x00007f97ac5c8000)
	libXxf86vm.so.1 => /lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007f97ac5c1000)
	libwayland-egl.so.1 => /lib/x86_64-linux-gnu/libwayland-egl.so.1 (0x00007f97ac5bc000)
	libwayland-client.so.0 => /lib/x86_64-linux-gnu/libwayland-client.so.0 (0x00007f97ac5a9000)
	libwayland-cursor.so.0 => /lib/x86_64-linux-gnu/libwayland-cursor.so.0 (0x00007f97ac59e000)
	libxkbcommon.so.0 => /lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007f97ac55c000)
	libffi.so.7 => /lib/x86_64-linux-gnu/libffi.so.7 (0x00007f97ac550000)
	libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f97ac4dd000)
	libpixman-1.so.0 => /lib/x86_64-linux-gnu/libpixman-1.so.0 (0x00007f97ac434000)
	libfontconfig.so.1 => /lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f97ac3ed000)
	libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f97ac32e000)
	libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f97ac2f6000)
	libxcb-shm.so.0 => /lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007f97ac2f1000)
	libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f97ac2c7000)
	libxcb-render.so.0 => /lib/x86_64-linux-gnu/libxcb-render.so.0 (0x00007f97ac2b6000)
	libXrender.so.1 => /lib/x86_64-linux-gnu/libXrender.so.1 (0x00007f97ac0ac000)
	libpulsecommon-13.99.so => /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-13.99.so (0x00007f97ac02a000)
	libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f97abfd9000)
	libXfixes.so.3 => /lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f97abfd1000)
	libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f97abfa1000)
	libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f97abf98000)
	libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f97abf92000)
	libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f97abf8a000)
	libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f97abedb000)
	libwrap.so.0 => /lib/x86_64-linux-gnu/libwrap.so.0 (0x00007f97abecd000)
	libsndfile.so.1 => /lib/x86_64-linux-gnu/libsndfile.so.1 (0x00007f97abe4f000)
	libasyncns.so.0 => /lib/x86_64-linux-gnu/libasyncns.so.0 (0x00007f97abc49000)
	libapparmor.so.1 => /lib/x86_64-linux-gnu/libapparmor.so.1 (0x00007f97abc34000)
	libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f97abc1a000)
	liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f97abbef000)
	liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f97abbce000)
	libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f97abab0000)
	libnsl.so.1 => /lib/x86_64-linux-gnu/libnsl.so.1 (0x00007f97aba93000)
	libFLAC.so.8 => /lib/x86_64-linux-gnu/libFLAC.so.8 (0x00007f97aba55000)
	libogg.so.0 => /lib/x86_64-linux-gnu/libogg.so.0 (0x00007f97aba48000)
	libvorbis.so.0 => /lib/x86_64-linux-gnu/libvorbis.so.0 (0x00007f97aba18000)
	libvorbisenc.so.2 => /lib/x86_64-linux-gnu/libvorbisenc.so.2 (0x00007f97ab96d000)
	libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f97ab951000)
	libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f97ab92e000)
uname -a
... 5.11.0-27-generic #29~20.04.1-Ubuntu SMP Wed Aug 11 15:58:17 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
@commandodev
Copy link
Author

edit seems to work OK with the -s flag...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant