You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by Will Sappington <ws...@ndma.us> on 2006/12/01 19:15:24 UTC
Problem building Xerces 2.7.0 with Cygwin
New user, first post, apologies in advance for any etiquette violations.
I'm having problems building 2.7.0 under Cygwin running on XP
Professional. I've followed the instructions (and previously built
2.7.0 under Linux), read the FAQ, searched the archives for "Cygwin
make" and haven't found what I need. I'm going to continue researching
this on my own, but I thought I'd get the question out there in case I
hit a dead end.
Here's what I did:
Unzip the tarball into a directory outside of Cygwin's file system -
c:\proj\3rdParty\libs\xerces-c-src_2_7_0\ (would like to build for Win32
out of the same tree.)
export XERCESCROOT = c:/proj/3rdParty/libs/xerces-c-src_2_7_0
start a Cygwin bash shell
cd to c:/proj/3rdParty/libs/xerces-c-src_2_7_0/src/xercesc
./runConfigure -pcygwin -cgcc -xg++
Everything went OK up to this point. The output from runConfigure
looked OK (same as the successful Linux build) so I tried to do the
"gmake". Here's the output that went to the console:
(begin)
If the result of the above commands look OK to you, go to the directory
c:/proj/3rdParty/libs/xerces-c-src_2_7_0/src/xercesc and type "gmake" to
make the XERCES-C system.
wsappington@NDMA-WSappingto
/cygdrive/c/proj/3rdparty/libs/xerces-c-src_2_7_0/src/xercesc
$ gmake
bash: gmake: command not found
wsappington@NDMA-WSappingto
/cygdrive/c/proj/3rdparty/libs/xerces-c-src_2_7_0/src/xercesc
$ make
Makefile:73: *** target pattern contains no `%'. Stop.
(end)
I'm not particularly surprised about the failure of the gmake command,
Cygwin "make" is GNU make, V3.81 to be specific. So I tried just "make"
and got the error above. Any help would be much appreciated, TIA.
-will
RE: Problem building Xerces 2.7.0 with Cygwin
Posted by Will Sappington <ws...@ndma.us>.
-----Original Message-----
From: David Bertoni [mailto:dbertoni@apache.org]
Sent: Friday, December 01, 2006 1:43 PM
To: c-users@xerces.apache.org
Subject: Re: Problem building Xerces 2.7.0 with Cygwin
Will Sappington wrote:
(snip)
>>
>>
>> export XERCESCROOT = c:/proj/3rdParty/libs/xerces-c-src_2_7_0
> Why are you using a DOS-style specification here? I would recommend
you
> use /cygdrve/c/proj/3rdParty/libs/xerces-c-src_2_7_0 instead.
This was the problem and I suspected it might be. That's what I was
referring to when I said I would keep digging into it - trying other
path specifications. I tried this because Cygwin seems to handle the
various path conventions on the command line and in scripts with no
problems. It was just what I decided to try first.
(snip)
>> /cygdrive/c/proj/3rdparty/libs/xerces-c-src_2_7_0/src/xercesc
>>
>> $ make
>>
>> Makefile:73: *** target pattern contains no `%'. Stop.
>>
> I believe this is a result of the way you specified XERCESCROOT.
Indeed it was. Thank you for the help.
-will
Re: Problem building Xerces 2.7.0 with Cygwin
Posted by David Bertoni <db...@apache.org>.
Will Sappington wrote:
> New user, first post, apologies in advance for any etiquette violations.
> I'm having problems building 2.7.0 under Cygwin running on XP
> Professional. I've followed the instructions (and previously built
> 2.7.0 under Linux), read the FAQ, searched the archives for "Cygwin
> make" and haven't found what I need. I'm going to continue researching
> this on my own, but I thought I'd get the question out there in case I
> hit a dead end.
>
>
>
> Here's what I did:
>
>
>
> Unzip the tarball into a directory outside of Cygwin's file system -
> c:\proj\3rdParty\libs\xerces-c-src_2_7_0\ (would like to build for Win32
> out of the same tree.)
>
>
>
> export XERCESCROOT = c:/proj/3rdParty/libs/xerces-c-src_2_7_0
Why are you using a DOS-style specification here? I would recommend you
use /cygdrve/c/proj/3rdParty/libs/xerces-c-src_2_7_0 instead.
>
>
>
> start a Cygwin bash shell
>
>
>
> cd to c:/proj/3rdParty/libs/xerces-c-src_2_7_0/src/xercesc
>
>
>
> ./runConfigure -pcygwin -cgcc -xg++
>
>
>
> Everything went OK up to this point. The output from runConfigure
> looked OK (same as the successful Linux build) so I tried to do the
> "gmake". Here's the output that went to the console:
>
>
>
> (begin)
>
>
>
> If the result of the above commands look OK to you, go to the directory
>
> c:/proj/3rdParty/libs/xerces-c-src_2_7_0/src/xercesc and type "gmake" to
> make the XERCES-C system.
>
>
>
> wsappington@NDMA-WSappingto
> /cygdrive/c/proj/3rdparty/libs/xerces-c-src_2_7_0/src/xercesc
>
> $ gmake
>
> bash: gmake: command not found
>
>
>
> wsappington@NDMA-WSappingto
> /cygdrive/c/proj/3rdparty/libs/xerces-c-src_2_7_0/src/xercesc
>
> $ make
>
> Makefile:73: *** target pattern contains no `%'. Stop.
>
I believe this is a result of the way you specified XERCESCROOT.
Dave