![]() |
#1 |
Rookie
Join Date: Aug 2018
Posts: 23
![]() |
SDL2 port when ?
Can anybody comment on when can we expect an SDL 2 port , not SDL 1.2 but SDL2 port.
|
![]() |
![]() |
![]() |
#2 |
Prophet
Join Date: Dec 2009
Posts: 9,022
![]() |
As soon as someone with the necessary time, willingness, and expertise makes one. So far as I'm aware, nobody has expressed any interest in doing that yet. You'd be more than welcome to take a stab at it yourself though.
|
![]() |
![]() |
![]() |
#3 | |||
Swordsman
Join Date: May 2016
Posts: 330
![]() |
Hahaha... oh wow
![]() Quote:
![]() Quote:
Quote:
|
|||
![]() |
![]() |
![]() |
#4 |
Prophet
Join Date: Dec 2009
Posts: 9,022
![]() |
|
![]() |
![]() |
![]() |
#5 | |
Swordsman
Join Date: May 2016
Posts: 330
![]() |
Quote:
![]() |
|
![]() |
![]() |
![]() |
#6 |
Swordsman
Join Date: May 2016
Posts: 330
![]() |
Hey, I found it!
https://github.com/takkaria/angband/...rc/main-sdl2.c Well, OP, now that you have it, what are you going to do with it? ![]() |
![]() |
![]() |
![]() |
#7 | |
Rookie
Join Date: Aug 2018
Posts: 23
![]() |
Quote:
Code:
~/games/takkaria-angband$ git-info ## Remote URLs: origin https://github.com/takkaria/angband.git (fetch) origin https://github.com/takkaria/angband.git (push) ## Remote Branches: origin/HEAD -> origin/master origin/avg-dmg origin/los-searching origin/master origin/pr-auto-books origin/pr-heal-other origin/pr-slot-sizes origin/text-out-cleanup origin/wip-textui2 ## Local Branches: * master ## Most Recent Commit: commit 6a5df0b662caca9fff9d332c1ec6b21e7b36e595 Author: Nick McConnell <nckmccnnll@gmail.com> Remove trap, door and stair detection Type 'git log' for more commits, or 'git show <commit id>' for full commit details. ## Configuration (.git/config): user.name=shirish agarwal user.email=xxxxxxxxxxxx core.repositoryformatversion=0 core.filemode=true core.bare=false core.logallrefupdates=true remote.origin.url=https://github.com/takkaria/angband.git remote.origin.fetch=+refs/heads/*:refs/remotes/origin/* branch.master.remote=origin branch.master.merge=refs/heads/master https://paste.debian.net/1043405/ The compilation fails as it looks for libsdl1.2 config The relevant bits - Code:
checking for sdl-config... no checking for SDL - version >= 1.2.10... no *** The sdl-config script installed by SDL could not be found *** If SDL was installed in PREFIX, make sure PREFIX/bin is in *** your path, or set the SDL_CONFIG environment variable to the *** full path to sdl-config. checking for Mix_OpenAudio in -lSDL_mixer... no Code:
$ sdl2-config --version 2.0.8 http://www.libsdl.org/projects/SDL_mixer/ https://github.com/katajakasa/SDL_kitchensink The first one is an all encompassing one, the second one is supposedly more narrower in scope. I am no developer but can help with compiling and telling what seems to come up short. |
|
![]() |
![]() |
![]() |
#8 | ||
Swordsman
Join Date: May 2016
Posts: 330
![]() |
Quote:
Quote:
![]() |
||
![]() |
![]() |
![]() |
#9 | |
Rookie
Join Date: Aug 2018
Posts: 23
![]() |
Quote:
It actually uses autogen.sh . When I run ./autogen.sh the following takes place - Code:
~/games/takkaria-angband$ ./autogen.sh *info* running aclocal (-I m4) *info* running autoheader *info* running autoconf The Makefile is generated when the .configure script is taken care of . Once it is complete, you get a makefile. If I just do - Code:
~/games/takkaria-angband$ ./configure --with-no-install There is a Makefile though but that's in - Code:
~/games/takkaria-angband/src$ cat Makefile.src | grep sdl SDLMAINFILES = main-sdl.o SNDSDLFILES = snd-sdl.o https://stackoverflow.com/questions/...n-linux-ubuntu Reading it few times it seems it needs the following info. - Code:
/usr/bin/sdl2-config /usr/include/SDL2/SDL.h /usr/lib/x86_64-linux-gnu/libSDL2.so Code:
/usr/include/SDL2/SDL_mixer /usr/lib/x86_64-linux-gnu/libSDL2_mixer.so from https://wiki.libsdl.org/FAQLinux#How..._my_project.3F it seems acinclude.m4 is what needs to be fixed - it needs https://hg.libsdl.org/SDL/file/default/sdl2.m4 I did try to do a copy and replace but didn't get far. This is what I did with acinclude.m4 https://paste.debian.net/1043458/ I get the following errors when I try to ./autogen.sh it - Code:
~/games/takkaria-angband$ ./autogen.sh *info* running aclocal (-I m4) acinclude.m4:157: warning: the serial number must appear before any macro definition configure.ac:269: warning: macro 'AM_PATH_SDL' not found in library *info* running autoheader *info* running autoconf configure.ac:269: error: possibly undefined macro: AM_PATH_SDL If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. *error* autoconf failed. (exit code = 1) Last edited by shirish; September 20, 2018 at 14:50. |
|
![]() |
![]() |
![]() |
#10 | ||
Swordsman
Join Date: May 2016
Posts: 330
![]() |
Quote:
![]() Code:
/usr/lib/x86_64-linux-gnu/libSDL2.so /usr/lib/x86_64-linux-gnu/libSDL2_mixer.so Quote:
![]() ![]() |
||
![]() |
![]() |
![]() |
Tags |
libsdl2 |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Android-port not work | Angrist | Vanilla | 1 | October 14, 2014 03:24 |
Web Port | wilbur07 | Vanilla | 6 | February 27, 2014 13:39 |
OpenGL port | BreathesFire | Development | 2 | November 3, 2011 07:22 |
[FA] NDS port | Donald Jonker | Variants | 54 | October 6, 2011 15:49 |
[V] Gtk port | Magnate | Development | 1 | February 24, 2009 09:48 |