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: Anonymous Maarten
Subject: Re: Issues while building ncurses 6.2 using Visual Studio
Date: Mon, 2 Mar 2020 18:24:18 +0100


On Sun, 1 Mar 2020 at 00:23, Thomas Dickey <address@hidden> wrote:
I'm not using automake anywhere in ncurses :-)

The compile and ar-lib script of automake is sometimes of use to wrap the msvc compiler.

offhand, I'd do
        CC="cl -w4"

(ymmv)

Indeed, cl does not have to be wrapped. (On current master at least, I haven't tested 6.2 yet)
 >    export LD="link -nologo"
 
>    export LDFLAGS=user32.lib
>    export NM="dumpbin -symbols"
>    export STRIP=:
>    export AR="/usr/share/automake-1.16/ar-lib lib"

I hadn't noticed that before -- but it doesn't appear to have a case for msys2.

I have pushed a new patch set to https://github.com/mirror/ncurses/pull/1
which does not wrap AR.
The configure script does not recognize ar and fails when building the archive.
It also contains a fix for the configure script. My patch for aclocal.m4 was not correct.
You should thoroughly check the configure changes,

ok... I was curious if $PATH would be transformed (will find out, a little
later).

I don't think so. I run the program using sh. So maybe?
 
I'll have to investigate that when I get a development environment set up
for this (have started, but am only halfway through - for the moment am
reviewing/validating the patches against mingw).
 
I have also pushed a quick CI build script for ncurses on Windows using AppVeyor and conan.
See https://ci.appveyor.com/project/madebr/ncurses/builds/31187216 for the output.
The logs shows my problem with the static build (not recognizing AR) and shared builds.
It also shows mingw building fine.

btw, STDIN_FILENO should be "0" (not "1").

Thanks!

The configure script checks if either --without-progs or --without-tests
was given (both require getopt), so if you add --without-tests, the build
"should" work.
 
Also thanks, I have disabled the progs in the CI script mentioned above.
Hopefully soon, conan will have a getopt package. (a pr has been sent, waiting on approval)

(The Ada binding also uses getopt, but I don't suppose you're using that).
 
Nope. ada is disabled.
 

reply via email to

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