logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Building & Member Downloads View previous topic :: View next topic
Reply to topic   Topic: Compiling Apache 2.4.3 - Win 32 - Windows XP SP3
Author
jigarakatidus



Joined: 15 Oct 2012
Posts: 7
Location: jigarakatidus

PostPosted: Mon 15 Oct '12 14:22    Post subject: Compiling Apache 2.4.3 - Win 32 - Windows XP SP3 Reply with quote

Hi,

I am a student(Newbie). I am trying to learn building Apache. I have some queries.

I tried compiling myself but got stuck in the begining itself.

I have Microsoft Visual Studio 2008 (VC9), Microsft SDK v6.0A, httpd-2.4.3.tar.gz source. Copied apr, apr-util, apr-iconv, pcre source to srclib directory of apache. I guess its okay if I skip openssl and other dependencies.

I tried running "nmake /f Makefile.win" in command prompt it gave an error that "msdev could not be found", after little searching i found that msdev was in MVS 2003 later it became devenv so I replaced all msdev with devenv in whole folder of http source including srclib directory.

Then the same command throws an error saying i need to convert the project for 2008 VS. So I decided to open a workspace in IDE which asked me for the converstion. But It did not even load saying files were corrupt. I think I will have to convert all src files to dos structure. Is it true ? is their any software to convert all files at once ? Also is awk.exe compulsory if yes where should I place it ?

Please let me know if I am missing anything in between. Please check my requirements too. Sorry for being totally noob.

Any help would be appreciated.
Thanks in advance.

Regards,
Jigar
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Mon 15 Oct '12 14:35    Post subject: Reply with quote

There are some posts here about building, for example http://www.apachelounge.com/viewtopic.php?t=4469

Steffen
Back to top
jigarakatidus



Joined: 15 Oct 2012
Posts: 7
Location: jigarakatidus

PostPosted: Mon 15 Oct '12 16:08    Post subject: Reply with quote

Hi,

Thanks that helped a lot.

But now I am stuck at the last command you provided before converting the project to 2008

i.e Building OpenSSL
Code:
nmake /f ms\ntdll.mak


I got this following error...

Code:
Building OpenSSL
        cl /Fotmp32dll\uplink.obj -Iinc32 -Itmp32dll /MD /Ox /O2 /Ob2 /W3 /WX /G
s0 /GF /Gy /nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDS
O_WIN32 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DOPENSSL_CPUID_O
BJ -DOPENSSL_IA32_SSE2 -DAES_ASM -DBN_ASM -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_
BN_ASM_MONT -DMD5_ASM -DSHA1_ASM -DRMD160_ASM -DOPENSSL_USE_APPLINK -I. /Fdout32
dll -DOPENSSL_NO_IDEA -DOPENSSL_NO_SEED -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -DOPE
NSSL_NO_CMS -DOPENSSL_NO_JPAKE -DOPENSSL_NO_CAPIENG -DOPENSSL_NO_KRB5 -DOPENSSL_
NO_DYNAMIC_ENGINE -D_WINDLL  -c ms\uplink.c
uplink.c
ms\uplink.c(11) : fatal error C1083: Cannot open include file: 'windows.h': No s
uch file or directory
NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
\cl.EXE"' : return code '0x2'
Stop.


FYI : I am using Microsoft SDK v6.0A. And I can see windows.h located in C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include

Code:
srclib\openssl>echo %mssdk%
C:\Program Files\Microsoft SDKs\Windows\v6.0A
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Mon 15 Oct '12 16:17    Post subject: Reply with quote

There are some posts here about windows.h, for example http://www.apachelounge.com/viewtopic.php?t=3920

Steffen
Back to top
jigarakatidus



Joined: 15 Oct 2012
Posts: 7
Location: jigarakatidus

PostPosted: Tue 16 Oct '12 9:19    Post subject: Reply with quote

Hi,

Thanks a lot. I was successfully able to compile Apache.

I think I don't have to write the steps as this forum already has perfect posts related to this.

Btw, after converting src files to VS 2008. If I want to compile apache from command line with PREFIX(INSTDIR) is the following command right ?

Code:
nmake /f Makefile.win INSTDIR="C:\Program Files\Apache24" installr


Thanks again.
Jigar.
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Tue 16 Oct '12 21:29    Post subject: Reply with quote

Typically the tar.gz files (unix source) do not include a full set of make files for windows so you could not compile from command line.

If there were the .mak/.dep files that would be the command to type.

If you wanted to try it anyway, there's a full set of win32 sources here;
http://people.apache.org/~gsmith/httpd/releases/

no lineends.pl or cvtdsp.pl conversions needed for these to build from command line.
Back to top
jigarakatidus



Joined: 15 Oct 2012
Posts: 7
Location: jigarakatidus

PostPosted: Wed 17 Oct '12 12:21    Post subject: Reply with quote

Thank you. Smile
Back to top


Reply to topic   Topic: Compiling Apache 2.4.3 - Win 32 - Windows XP SP3 View previous topic :: View next topic
Post new topic   Forum Index -> Building & Member Downloads