Author |
|
Virsacer
Joined: 16 Jan 2010 Posts: 108 Location: Germany, Darmstadt
|
Posted: Sun 24 Jul '11 16:26 Post subject: From UNIX source |
|
|
I have always been using the windows source but I wanted to try compiling from unix source.
So I downloaded "httpd-2.2.19.tar.bz2" and "apr-iconv-1.2.1.tar.bz2"
Then I ran "perl srclib\apr\build\lineends.pl" and started the building as if it was the windows source, but I get this error:
Quote: | Building Win32 Release targets (R suffixes)
cd srclib\apr
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd6\nmake.exe" -nologo -f apr.mak CFG="apr - Win32 Release" RECURSE=0
if not exist ".\LibR/" mkdir ".\LibR"
NMAKE : fatal error U1073: ""apr.h"" konnte nicht erstellt werden
Stop.
NMAKE : fatal error U1077: ""C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\nm
ake.exe"": Rückgabe-Code "0x2"
Stop.
NMAKE : fatal error U1077: ""C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\nm
ake.exe"": Rückgabe-Code "0x2"
Stop. |
Can you guys tell me what I did wrong? |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3094 Location: Hilversum, NL, EU
|
Posted: Sun 24 Jul '11 20:41 Post subject: |
|
|
You are only building apr here: cd srclib\apr ?
To build apache:
Copy lineends.pl to the apache source folder and run it from there and the cvtdsp.pl -2005.
Steffen |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Sun 24 Jul '11 21:36 Post subject: |
|
|
Did you try compiling it from the command line or the VC?
@Steffen there is no need to copy lineends.pl
Just run it from the main folder
e.g.
Code: |
cd C:\build\httpd-2.2.19
perl srclib\apr\build\lineends.pl
srclib\apr\build\cvtdsp.pl -2005
|
|
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Mon 25 Jul '11 8:08 Post subject: |
|
|
Actually
srclib/apr/build/lineends.pl
perl srclib/apr/build/cvtdsp.pl -2005
(Active)Perl will not see the @ARGV if you do not call perl, on lineends it doesn't matter
So has been my experience with it anyway, of course you could try it yourself
# showargs.pl
foreach (@ARGV) {
print $_."\n";
}
exit 0;
showargs.pl these are args
perl showargs.pl these are args |
|
Back to top |
|
Virsacer
Joined: 16 Jan 2010 Posts: 108 Location: Germany, Darmstadt
|
Posted: Mon 25 Jul '11 11:26 Post subject: |
|
|
Im building from commandline with "nmake /f Makefile.win"
"perl srclib\apr\build\cvtdsp.pl -2005" did not solve the problem - same error.
But I noticed a difference between win and unix source in "srclib\apr\apr.mak" and "libapr.mak"
win:
Quote: | "$(INTDIR)\apr_atomic.obj" : $(SOURCE) "$(INTDIR)" ".\include\apr.h" |
unix: Quote: | "$(INTDIR)\apr_atomic.obj" : $(SOURCE) "$(INTDIR)" {$(INCLUDE)}"apr.h" |
Is $INCLUDE set automatically or do I have to set it anywhere?
@glsmith:
The detection of arguments depends on your registry-settings for .pl files
shell-open-command: "C:\Programme\PERL\perl\bin\perl.exe" "%1" %* |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
|
Back to top |
|
Virsacer
Joined: 16 Jan 2010 Posts: 108 Location: Germany, Darmstadt
|
Posted: Wed 27 Jul '11 12:27 Post subject: |
|
|
Thanks for that info! |
|
Back to top |
|