bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issues while building ncurses 6.2 using Visual Studio


From: Thomas Dickey
Subject: Re: Issues while building ncurses 6.2 using Visual Studio
Date: Tue, 25 Feb 2020 21:04:59 -0500
User-agent: NeoMutt/20170113 (1.7.2)

On Wed, Feb 26, 2020 at 12:47:54AM +0100, Maarten Anonymous wrote:
> Hello people!
> 
> While packaging ncurses 6.2 for conan, I needed to build it using Visual
> Studio.
> I had to apply some patches to let MSVC build it.

thanks - will take a look.

> The patches can be found at https://github.com/mirror/ncurses/pull/1

I don't maintain that _copy_ of my snapshots, which
can be found here:

https://github.com/ThomasDickey/ncurses-snapshots

but as noted, I don't accept pull-requests.

> My wip conan script for building ncurses can be found at
> https://github.com/madebr/conan-center-index/tree/ncurses/recipes/ncurses/all
> 
> What these patches do not fix is building shared ncurses libraries (dlls)
> on Windows.
> NCURSES_IMPEXP is defined globally and is the same for every ncurses
> sublibrary.
> Whereas each sublibrary must have its own definition.
> What I mean is that when building libmenu, a preprocessor variable
> LIBMENU_IMPEXP must be __declspec(dllexport) but NCURSES_IMPEXP must be
> __declspec(dllimport).

what I have seems to work with MinGW...
 
> In these patches, I added code to the autoconf build system to create a
> mk_shared_lib.sh for visual studio.
> I believe this is a bit too lowlevel to add to a build system of a library.
> It's like reinventing the wheel once again.
> I think adding deeper libtool support (using LT_INIT(win32-dll) etc) and
> don't create these mk_shared_lib.sh scripts, would simplify the build
> system a lot.
> 
> I don't know how supportive the developers are about adding support for
> modern build systems such as cmake/meson?

"modern" is frequently misused.
Don't go there.
 
> It would be nice if (some of) these problems could be adressed upstream.
> 
> Best regards
> Maarten

-- 
Thomas E. Dickey <address@hidden>
https://invisible-island.net
ftp://ftp.invisible-island.net

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]