#nuvie@irc.freenode.net logs for 21 Nov 2015 (GMT)

Archive Today Yesterday Tomorrow
Nuvie homepage


[02:01:29] --> DominusExult has joined #nuvie
[02:05:58] <-- Dominus has left IRC (Ping timeout: 265 seconds)
[02:05:58] --- DominusExult is now known as Dominus
[02:36:10] --> Yuv422 has joined #nuvie
[02:41:26] --> Malignant_Manor has joined #nuvie
[02:42:01] <Malignant_Manor> Yuv422: Hi Eric
[02:46:05] <Yuv422> hey Malignant_Manor
[02:46:46] <Malignant_Manor> Yuv422: I tried setting up a building environment on this Win7 comp but have had several issues
[02:46:57] <Yuv422> ah k
[02:47:05] <Yuv422> wingw based?
[02:47:12] <Yuv422> mingw
[02:47:31] <Malignant_Manor> yeah
[02:48:09] <Yuv422> do you have fixes for the issues?
[02:48:44] <Malignant_Manor> I just looked at makefile.mingw and it doesn't have sdl2 libs but that probably doesn't have anything to do with the errors
[02:50:04] <Malignant_Manor> Several files in /files have #include <string> and #include <string.h> fixed that
[02:50:25] <Yuv422> ah k
[02:50:29] <Malignant_Manor> now I have GUI/GUI_text.cpp:73:12: error: 'free' was not declared in this scope
[02:50:31] <Malignant_Manor> free(text);
[02:51:14] <Yuv422> is free from stdlib?
[02:51:17] <Malignant_Manor> I know that SDL 1.2 had free defined as SDL_FREE
[02:51:17] <Yuv422> I can’t remember
[02:51:37] <Malignant_Manor> I'm pretty sure that it did anyway
[02:51:52] <Malignant_Manor> I have to start up the other computer to check.
[02:52:47] <Yuv422> you could try including stdlib.h
[02:52:54] <Yuv422> that might fix your free issue
[02:53:53] <Malignant_Manor> I'll see. This is a new gcc version and libraries
[02:57:16] <Malignant_Manor> That worked. I needed to add that to another file too.
[02:58:08] <Malignant_Manor> I'll look at my Exult makefile.mingw changes to see what I need to do for that. Should SDL2 be default?
[02:58:47] <Yuv422> I think it should be default. :)
[03:03:57] <Malignant_Manor> Dang, rxvt shell is buggy and keeps screwing up on lost focus
[03:05:50] <Kirben> SDL2 dropped alot of Windows compatibility though, with only Windows XP onwards been supported now.
[03:06:29] <Yuv422> hey Kirben
[03:06:51] <Yuv422> as long as we maintain the ability to compile against SDL1.2 I’d be happy
[03:07:02] <Malignant_Manor> http://pastebin.com/brT233pH
[03:07:20] <Yuv422> I think the fullscreen mode alone would be a selling point for most people to want an SDL2 win32 build
[03:08:00] <Yuv422> Malignant_Manor: stdlib again I think
[03:08:03] <Malignant_Manor> What is the difference in fullscreen mode? You could go fullscreen before.
[03:08:22] <Yuv422> did it work ok on windows?
[03:08:37] <Malignant_Manor> yeah
[03:08:47] <Yuv422> I’ve put in the vga aspect ratio stuff
[03:09:02] <Malignant_Manor> rand isn't even used in Sound.h NUVIE_RAND is
[03:09:34] <Yuv422> I’d be surprised if anyone was running anything older than xp though
[03:09:59] <Yuv422> NUVIE_RAND is just a define for rand
[03:10:06] <Yuv422> i’d imagine in this case
[03:10:08] <Kirben> Windows display drivers usually offer aspect ratio correction, any other advantages for SDL2?
[03:11:05] <Malignant_Manor> Including <stdlib.h> worked
[03:12:35] <Yuv422> I want to do an android port
[03:12:53] <Yuv422> so standardising on SDL2 would be better in the long run
[03:13:18] <Kirben> ok, just wondering if there was good reason to switch windows builds to SDL2 yet.
[03:13:36] <Yuv422> I thought that fullscreen didn’t work there either
[03:13:58] <Yuv422> I might have nuked fullscreen support for SDL1 with my changes
[03:14:03] <Yuv422> I’ll have to chgeck
[03:14:05] <Malignant_Manor> No, it works fine
[03:14:05] <Yuv422> check
[03:14:10] <Malignant_Manor> or worked fine
[03:14:15] <Yuv422> on the branch?
[03:14:19] <Yuv422> in SDL12 mode?
[03:14:45] <Malignant_Manor> on 1.2 branch
[03:14:52] <Malignant_Manor> I never tried your changes
[03:15:32] <Malignant_Manor> Kirben: can you please test your binary of SDL2 branch (compiled with SDL 1.2)?
[03:17:29] <Malignant_Manor> I wonder what gcc changed so <string> needs <string.h>.
[03:20:16] <Malignant_Manor> I guess the sting issue is because of using c in c++ but I wonder why it worked before.
[03:20:16] <Kirben> Full screen works in main branch, but not SDL 1.2 build of SDL2 branch.
[03:20:44] <Yuv422> yeah I was a bit heavy handed with fullscreen mode in the SDL2 branch
[03:20:49] <Yuv422> for SDL1.2 compat
[03:20:53] <Yuv422> I can put it back
[03:22:28] <Malignant_Manor> Eric, should I try changing the include <string.h> to include <cstring> ?
[03:23:05] <Yuv422> I think string.h is ok
[03:23:27] <Malignant_Manor> well, I need to change it anyway
[03:23:35] <Malignant_Manor> so whatever you prefer
[03:55:38] <Yuv422> it shouldn’t be too hard to put the fullscreen code back in for SDL1.2
[04:05:09] <Malignant_Manor> I've had to change/add include in lots of files and it still isn't compiled
[04:07:48] <Yuv422> what compiler are you using?
[04:09:48] <Malignant_Manor> 4.8.1
[04:17:55] <Malignant_Manor> Yuv422: http://pastebin.com/hhMmCFBL
[04:19:06] <Malignant_Manor> I noticed a slight error in my Makefile.mingw change
[04:25:51] <Malignant_Manor> SDL2 is including both x86 and x64 as separate directories in the same download. I wonder if I should have a 64 bit build option.
[04:28:45] <Yuv422> I guess we are building 32bit at the moment
[04:29:00] <Yuv422> probably not much need for a 64bit version
[04:39:45] <Yuv422> ok I’ve put fullscreen support back in for SDL 1.2
[05:01:31] <Malignant_Manor> Yuv422: do you think you will ever change the code so that the resolution, scale, and lighting style can be change in game?
[05:03:39] <Yuv422> yeah
[05:03:55] <Yuv422> I’m not against having it changable in game
[05:04:12] <Yuv422> it’s not up the top of my todo list though
[05:04:40] <Malignant_Manor> We still have 2 games that need a ton of work
[05:04:42] <Yuv422> I think most if not all config should be settable ingame
[05:04:45] <Yuv422> yeah
[05:06:07] <Malignant_Manor> I was hoping maybe SBX would be able to have time for it but I think remember him saying he was really busy
[05:06:31] <Yuv422> yeah :(
[05:07:16] <Malignant_Manor> Are you sure tools compiles for you?
[05:07:18] <Malignant_Manor> tools/unpack_conv.cpp:197:43: error: 'SDL_SetModuleHandle' was not declared in this scope
[05:07:35] <Yuv422> strange
[05:07:48] <Yuv422> yeah I compiled it from configure
[05:07:55] <Yuv422> and it compiled ok
[05:12:51] <Yuv422> why would unpack conv need SDL?
[05:13:08] <Yuv422> it compiles ok with SDL2 for me
[05:13:41] <Yuv422> oh
[05:13:56] <Yuv422> it’s in a WIN32 ifdef block
[05:17:15] <Yuv422> maybe try without that line
[05:17:20] <Yuv422> not sure what it does
[05:17:35] <Yuv422> might be needed if you link against sdl.dll
[05:17:46] <Yuv422> but shouldn’t be needed for SDL2
[05:32:23] <Malignant_Manor> Yuv422: sigh, I didn't notice that Nuvie (not tools) didn't link properly. http://pastebin.com/07S8Nf9H
[05:35:53] <Yuv422> I don’t think SDL2 needs it’s own main() function now
[05:43:01] <Malignant_Manor> I removed -lSDL2main and now have undefined reference to `WinMain@16'
[06:00:52] <Malignant_Manor> Yuv422: I'm done. I need to get ready for bed. Kirben do you have any suggestions (for the log)?
[06:01:05] <-- Malignant_Manor has left IRC (Quit: ChatZilla 0.9.92 [Firefox 42.0/20151029151421])
[06:39:15] <-- Lightkey has left IRC (Ping timeout: 240 seconds)
[06:52:17] --> Lightkey has joined #nuvie
[08:46:16] <-- Yuv422 has left IRC (Quit: Yuv422)
[09:26:07] --> Yuv422 has joined #nuvie
[11:04:00] <-- Yuv422 has left IRC (Quit: Yuv422)
[11:59:22] <-- Dark-Star has left IRC (Ping timeout: 260 seconds)
[12:11:28] --> Dark-Star has joined #nuvie
[12:16:45] <-- Kirben has left IRC ()
[20:58:37] --> Yuv422 has joined #nuvie
[21:40:36] --> Malignant_Manor has joined #nuvie
[21:40:52] <Malignant_Manor> Yuv422: Hi Eric
[21:46:36] <Yuv422> hey Malignant_Manor
[21:49:47] <Malignant_Manor> It seems like the msvc libraries are in the Mingw download of SDL 2.03
[21:51:01] <Malignant_Manor> Oh, yeah and they screwed up the release in more ways too
[21:55:32] <Yuv422> :(
[21:56:56] <Malignant_Manor> I was linking to msvc stuff earlier. I went with mingw in the archive and then needed to download a fixed include
[21:59:27] <Malignant_Manor> software upgrades can be so problematic
[22:00:18] <Yuv422> are you using this one? http://libsdl.org/release/SDL2-devel-2.0.3-mingw.tar.gz
[22:00:52] <Yuv422> you’d expect it to work without having to download additional files
[22:01:59] <Malignant_Manor> They screwed up the include and knew about it but I guess it wasn't enough for them to release a fix update
[22:03:39] <Yuv422> so it should be fixed in 2.0.4?
[22:10:17] <Malignant_Manor> Yeah, that problem
[22:12:18] <Yuv422> are you using 32 or 64?
[22:12:26] <Yuv422> does it affect both?
[22:12:43] <Malignant_Manor> 32
[22:13:24] <Yuv422> do you have a page that describes the problem?
[22:13:30] <Malignant_Manor> now I get a bunch of undefined SDL references at the linker using the x86_64-w64-mingw32
[22:13:36] <Yuv422> I can’t seem to find any info from a quick google
[22:15:30] <Malignant_Manor> grr x86_64-w64-mingw32 is 64 bit I guess
[22:15:53] <Malignant_Manor> guess I can try i686-w64-mingw32
[22:18:47] <Malignant_Manor> Okay, nuvie linked
[22:19:48] <Yuv422> :)
[22:20:59] <Malignant_Manor> It crashes on startup
[22:22:12] <Yuv422> doh
[22:22:42] <Malignant_Manor> Well, I used the other compile but I will try again from scratch.
[22:26:47] <Malignant_Manor> I should have just used the other computer and whatever version of SDL2 and GCC it had.
[22:27:28] <Malignant_Manor> It still crashes
[22:27:42] <Malignant_Manor> I don't even have GDB at the moment
[22:27:51] <Malignant_Manor> It did create a cfg
[22:32:08] <Malignant_Manor> http://pastebin.com/S9ymD51t
[22:33:12] <Malignant_Manor> I think I will try on the other computer later.
[22:38:20] <Malignant_Manor> I'll be back later. Watch the other computer work right away.
[22:38:41] <-- Malignant_Manor has left IRC (Quit: ChatZilla 0.9.92 [Firefox 42.0/20151029151421])
[23:16:41] <-- Yuv422 has left IRC (Quit: Yuv422)
[23:32:04] --> Malignant_Manor has joined #nuvie
[23:33:54] <Malignant_Manor> Yuv422: It still crashes on the other computer with the same build environment I had been using. It was compiled with SDL2.0.0. It also had the same problem with includes.
[23:34:29] <Malignant_Manor> The GDB version that this computer has shows much better info. http://pastebin.com/ubfmZKc4
[23:35:18] <Malignant_Manor> I don't feel like messing with it tonight.
[23:35:54] <-- Malignant_Manor has left IRC (Client Quit)