PDCurses for SDL

Developer's Forum, for discussion of bugs, code, and other developmental aspects of DOSBox.

PDCurses for SDL

Postby ripsaw8080 » 2012-5-06 @ 13:55

PDCurses for SDL has some features not found in the non-SDL Win32 version, so I thought I'd check it out for the DOSBox debugger.

The library (libpdcurses.a) is built similarly to the non-SDL library, which seems to work OK, but then all of the SDL functions referenced by the library are unresolved when the DOSBox executable is linked. The non-SDL library has no problem because it has no references to functions in SDL.DLL.

I've been searching for some way (compile switches or so) that will make the objects in the library understand that the SDL functions are resolved at runtime (dynamic), not at link time (static), but so far haven't figured it out. The included README has not shed any light on the matter. I'd prefer not to have to resort to statically linked SDL for my little experiment, so I'm hoping someone knows of a solution.

I'm using the current (supposedly stable) 3.4 version of PDCurses with MinGW.
User avatar
ripsaw8080
DOSBox Author
 
Posts: 4273
Joined: 2006-4-25 @ 23:24

Re: PDCurses for SDL

Postby ripsaw8080 » 2012-5-06 @ 17:49

Managed to get DOSBox to successfully link by putting -lpdcurses before -lSDL in the list of linked libs; the configure script puts it after. Not sure how that is an important difference...

However, the debugger is displayed over the main DOSBox window, perhaps because SDL 1.2.x can only manage one output surface. So it seems the SDL variant of PDCurses is not going to be useful here.
User avatar
ripsaw8080
DOSBox Author
 
Posts: 4273
Joined: 2006-4-25 @ 23:24

Re: PDCurses for SDL

Postby jomalin » 2012-5-18 @ 08:37

ripsaw8080 wrote:the debugger is displayed over the main DOSBox window, perhaps because SDL 1.2.x can only manage one output surface. So it seems the SDL variant of PDCurses is not going to be useful here.

Incoming SDL 2.0 can manage multiple output surfaces.

What is the advantage using PDCurses library on Dosbox? Wich library is currently using DosBox for console?
jomalin
Newbie
 
Posts: 59
Joined: 2010-12-14 @ 11:42

Re: PDCurses for SDL

Postby wd » 2012-5-18 @ 09:42

Incoming SDL 2.0 can manage multiple output surfaces.

Incoming SDL 2.0 is in a very useless state that may not change till a release looking from what it targets.
wd
DOSBox Author
 
Posts: 10818
Joined: 2003-12-03 @ 21:23


Return to DOSBox Development

Who is online

Users browsing this forum: Google Feedfetcher and 0 guests