You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by manas mohanty <ma...@yahoo.co.in.INVALID> on 2018/02/27 05:07:39 UTC
Build Error for windows platform for Xerces-C++ Project
Hi,
I am building xerces-C++ Project for windows platform using Visual Studio 2012 and trying to create a static library.I am getting the below error even after I ran the configure script in the cywin command prompt.
fatal error C1083: Cannot open include file: 'xercesc/util/Xerces_autoconf_config.hpp': No such file or directory
Its basically the Xerces_autoconf_config.hpp file is not being generated.
Could you please guide me to proceed further on this ?
BR,Manas
Re: Build Error for windows platform for Xerces-C++ Project
Posted by Roger Leigh <rl...@codelibre.net>.
On 01/03/18 03:28, manas mohanty wrote:
> Hi Scott,
>
> Thanks for the quick answer.
>
> I have first done CMake for the generation of project files for Visual
> studio 2012 platform. But I do see there is some issue with the cmake
> command which is not generating the *Xerces_autoconf_config.hpp and
> config.h *file.
>
> Please let me know if the below CMake command is proper or I need to change.
>
> >> cmake -G "Visual Studio 11 2012 Win64"
> -DCMAKE_INSTALL_PREFIX=C:\libs -DCMAKE_INSTALL_LIBDIR=C:\libs
> C:\xerces-c-3.2.0\src
For the -D options, use ":PATH=c:\libs". The :PATH is needed to tell
CMake that you are providing a filepath, so that it gets converted into
a normalised path. The source directory is fine without since cmake
converts it for you. None of that should affect the header generation
though.
The headers are generated in the *build tree*, not the source tree.
They can be the same, but if you're building from a different location,
that's where they will be placed. This contains the project files as
well. If you build in this location, then install, you'll get a working
build.
See
https://ci.appveyor.com/project/ApacheSoftwareFoundation/xerces-c/history
for the continuous integration builds which test this. It should work
fine. You'll need to walk us through *exactly* what you did, and what
the error messages are, because I'm guessing based upon the information
you provided what might be wong.
Regards,
Roger
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org
RE: Build Error for windows platform for Xerces-C++ Project
Posted by "Cantor, Scott" <ca...@osu.edu>.
> I have first done CMake for the generation of project files for Visual studio
> 2012 platform. But I do see there is some issue with the cmake command
> which is not generating the Xerces_autoconf_config.hpp and config.h file.
I suspect you just don't know where to look, but I don't support this library in the sense of helping you use it, and I'm no CMake expert, sorry.
-- Scott
Re: Build Error for windows platform for Xerces-C++ Project
Posted by manas mohanty <ma...@yahoo.co.in.INVALID>.
Hi Scott,
Thanks for the quick answer.
I have first done CMake for the generation of project files for Visual studio 2012 platform. But I do see there is some issue with the cmake command which is not generating the Xerces_autoconf_config.hpp and config.h file.
Please let me know if the below CMake command is proper or I need to change.
>> cmake -G "Visual Studio 11 2012 Win64" -DCMAKE_INSTALL_PREFIX=C:\libs -DCMAKE_INSTALL_LIBDIR=C:\libs C:\xerces-c-3.2.0\src
BR,Manas
On Tuesday, 27 February, 2018, 7:11:30 PM IST, Cantor, Scott <ca...@osu.edu> wrote:
On 2/27/18, 12:08 AM, "manas mohanty" <ma...@yahoo.co.in.INVALID> wrote:
> I am getting the below error even after I ran the configure script in the cywin command prompt.
You have to use CMake, not autoconf. Cygwin is not supported for the build.
-- Scott
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org
Re: Build Error for windows platform for Xerces-C++ Project
Posted by "Cantor, Scott" <ca...@osu.edu>.
On 2/27/18, 12:08 AM, "manas mohanty" <ma...@yahoo.co.in.INVALID> wrote:
> I am getting the below error even after I ran the configure script in the cywin command prompt.
You have to use CMake, not autoconf. Cygwin is not supported for the build.
-- Scott
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org