You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Mladen Turk <mt...@apache.org> on 2021/11/30 21:18:17 UTC
Building apr/trunk for Windows
Fighting with that for almost a week ...
Makefile.win
apr.dsp
apr.dsw
libapr.dsp
Also a simple search for *.dsp gives 17 additional matches
Eg.
nmake -f Makefile.win
'msdev' is not recognized as an internal or external command, operable
program or batch file.
Sure, since msdev.exe was part of Visual Studio 6, which
you cannot download since 2008 (or something)
OK, let's try this ...
nmake -f Makefile.win USESLN=1
'devenv' is not recognized as an internal or external command,
operable program or batch file.
So, Makefile.win, all those .dsp, .dsw files are useless.
Let's try cmake ...
Use cl from Windows7.1 DDK ...
cmake --version
cmake version 3.21.4
cmake -G "NMake Makefiles"
...
-- The C compiler identification is MSVC 15.0.30729.207
The C compiler
is not able to compile a simple test program.
...
So that sucks.
The question is why do we have
so many basically useless build solutions.
Also, apr/trunk still contains code for windows95 and
windowsCE, although one cannot compile it with cl from Visual Studio 9
Also, can someone point to a workable
step-by-step solution to build basic apr/trunk on windows with
required tools.
Regards
--
^TM
Re: Building apr/trunk for Windows
Posted by Mladen Turk <mt...@apache.org>.
Here is what I'm using ...
Drop this on top of apr/1.7.x branch
https://github.com/mturk/aprw/tree/main/apr/1.7.x
Open Visual Studio command prompt in that directory
> nmake
... Done
Also one can try
> nmake check
... Running Test suite
Simple and effective
On 30/11/2021 22:18, Mladen Turk wrote:
> Fighting with that for almost a week ...
>
> Makefile.win
> apr.dsp
> apr.dsw
> libapr.dsp
> Also a simple search for *.dsp gives 17 additional matches
>
>
Regards
--
^TM
Re: Building apr/trunk for Windows
Posted by Mladen Turk <mt...@apache.org>.
Finally ...
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.11.7
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
> cmake -G "NMake Makefiles"
... bla bla
> nmake
...
apr_atomic64.c
[ 4%] Building C object CMakeFiles/libapr-2.dir/buckets/apr_brigade.c.obj
apr_brigade.c
C:\Shared\Workplace\apache\apr\trunk\bbuild\bucket\apr_brigade.c(401):
error C2036: 'const void *': unknown size
C:\Shared\Workplace\apache\apr\trunk\bbuild\buckets\apr_brigade.c(404):
error C2036: 'const void *': unknown size
C:\Shared\Workplace\apache\apr\trunk\bbuild\buckets\apr_brigade.c(411):
error C2036: 'const void *': unknown size
On 30/11/2021 22:18, Mladen Turk wrote:
> Fighting with that for almost a week ...
>
--
^TM