Re: [Tuxpaint-devel] SDL2 for the next release for windows?
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
From: Bill K. <nb...@so...> - 2022-05-19 08:59:26
|
On Wed, May 18, 2022 at 11:41:40PM -0700, Bill Kendrick wrote: <snip> > I notice the sdl-2.0 branch has a LOT of compiler warnings. > I think I'll try tackling them. (It looks like that branch > has DEBUG #define'd, which probably causes a lot of them. > The main branch has that problem as well.) I mended most of them. There are two classes of warnings which appear multiple times each, but I _believe_ I got everything else covered. I came up with some tricks to make sure all of the changes were done in SDL-agnostic ways. (i.e., the code is identical in the SDL 1.2 (master) and SDL 2.0 branches, despite major differences under those versions' hoods.) These are the two types of warnings that still linger: * ‘rsvg_handle_close’ is deprecated: Use 'rsvg_handle_read_stream_sync' instead * passing argument 3 of ‘autoscale_copy_smear_free’ from incompatible pointer type (SDL_BlitSurface) One problem for me is that I can't get SDL2_Pango working. I'm on Ubuntu, and tried installing the .deb packages from Pere's SF.net project page (admittedly old, these days). When doing so, I get a "pre-dependency problem": libsdl2-pango1 pre-depends on multiarch-support multiarch-support is not installed. I'm not sure how to address that. And when I try to compile the source .tar.gz, I also run into trouble: kendrick@gambit:~/tuxpaint/SDL2_Pango-0.1.2$ ./configure checking whether to enable maintainer-specific portions of Makefiles... no checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c [...] checking that generated files are newer than configure... done configure: creating ./config.status config.status: error: cannot find input file: `Makefile.in' It's been a LONG time since I installed anything with autoconf, so I'm stumped. (Googling lands all sorts of different answers,a and often project-specific. Ugh.) I'd like to make sure the SDL2_Pango stuff works. Under SDL 1.2 ("master") branch, when I build I get SDL_Pango: kendrick@gambit:~/tuxpaint/tuxpaint$ ldd ./tuxpaint|grep -i pango libSDL_Pango.so.1 => /lib/x86_64-linux-gnu/libSDL_Pango.so.1 (0x00007f0cd3472000) libpangoft2-1.0.so.0 => /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0 (0x00007f0cd1ce1000) libpango-1.0.so.0 => /lib/x86_64-linux-gnu/libpango-1.0.so.0 (0x00007f0cd1c92000) libpangocairo-1.0.so.0 => /lib/x86_64-linux-gnu/libpangocairo-1.0.so.0 (0x00007f0cd177a000) ...but, obviously, under SDL 2.0, I don't get SDL2_Pango: :-( kendrick@gambit:~/tuxpaint/tuxpaint$ ldd ./tuxpaint|grep -i pango libpangocairo-1.0.so.0 => /lib/x86_64-linux-gnu/libpangocairo-1.0.so.0 (0x00007f12a3ac6000) libpango-1.0.so.0 => /lib/x86_64-linux-gnu/libpango-1.0.so.0 (0x00007f12a3a77000) libpangoft2-1.0.so.0 => /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0 (0x00007f12a2ac6000) Thanks in advance! -- -bill! Sent from my computer |