Discussion:
Building Xerces-3.2.1 with cmake on Windows
Thomas Krebs
2018-03-16 13:04:33 UTC
Permalink
Hi,

According to the build instructions I try to build xerces-3.2.1 on
Windows 10 with VC14.
I type:

cmake -G "Visual Studio 14 2015 Win64"
-DCMAKE_INSTALL_PREFIX=I:\tools\x64 I:\tools\xerces-c-3.2.1\src


and I get:

I:\tools\xerces-c-3.2.1\build>cmake -G "Visual Studio 14 2015 Win64"
-DCMAKE_INSTALL_PREFIX=I:\tools\x64 I:\tools\xerces-c-3.2.1\src
-- Selecting Windows SDK version to target Windows 10.0.16299.
-- The C compiler identification is MSVC 19.0.24215.1
-- The CXX compiler identification is MSVC 19.0.24215.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual
Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual
Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft
Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft
Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:1291 (install):
install TARGETS given no ARCHIVE DESTINATION for static library target
"xerces-c".


CMake Error at C:/Program
Files/CMake/share/cmake-3.10/Modules/WriteBasicConfigVersionFile.cmake:40
(message):
No VERSION specified for WRITE_BASIC_CONFIG_VERSION_FILE()
Call Stack (most recent call first):
C:/Program
Files/CMake/share/cmake-3.10/Modules/CMakePackageConfigHelpers.cmake:207
(write_basic_config_version_file)
CMakeLists.txt:1308 (write_basic_package_version_file)


CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 3.10)

should be added at the top of the file. The version specified may be
lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
See also "I:/tools/xerces-c-3.2.1/build/CMakeFiles/CMakeOutput.log".


Any help?
Thomas

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-***@xerces.apache.org
For additional commands, e-mail: c-dev-***@xerces.apache.org
r***@codelibre.net
2018-03-16 14:56:38 UTC
Permalink
Post by Thomas Krebs
According to the build instructions I try to build xerces-3.2.1 on
Windows 10 with VC14.
cmake -G "Visual Studio 14 2015 Win64"
-DCMAKE_INSTALL_PREFIX=I:\tools\x64 I:\tools\xerces-c-3.2.1\src
^^^^

Remove the \src from the source path. You are missing the top-level
CMakeLists.txt. It should work with this change.

Regards,
Roger

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-***@xerces.apache.org
For additional commands, e-mail: c-dev-***@xerces.apache.org
Thomas Krebs
2018-03-16 15:13:34 UTC
Permalink
Roger,

Thanks, that did the trick.
One minor thing:
In former versions there was a .rc file for some dll resources, e.g. the
version number.
Why has this been removed?

Thomas
Post by Thomas Krebs
According to the build instructions I try to build xerces-3.2.1 on
Windows 10 with VC14.
cmake -G "Visual Studio 14 2015 Win64"
-DCMAKE_INSTALL_PREFIX=I:\tools\x64 I:\tools\xerces-c-3.2.1\src
                                                             ^^^^
Remove the \src from the source path.  You are missing the top-level
CMakeLists.txt.  It should work with this change.
Regards,
Roger
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-***@xerces.apache.org
For additional commands, e-mail: c-dev-***@xerces.apache.org
Cantor, Scott
2018-03-16 15:17:06 UTC
Permalink
Post by Thomas Krebs
Why has this been removed?
That would be a bug.

-- Scott


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-***@xerces.apache.org
For additional commands, e-mail: c-dev-***@xerces.apache.org
Cantor, Scott
2018-03-16 15:32:38 UTC
Permalink
Post by Cantor, Scott
Post by Thomas Krebs
Why has this been removed?
That would be a bug.
It doesn't appear to be a distribution building regression, rather the file isn't in svn on trunk that I can see unless it's been renamed. I suspect it's a regression in the change that builds more of the version-specific files, since this would have been one to do that with.

-- Scott


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-***@xerces.apache.org
For additional commands, e-mail: c-dev-***@xerces.apache.org
r***@codelibre.net
2018-03-16 16:47:40 UTC
Permalink
Post by Cantor, Scott
Post by Cantor, Scott
Post by Thomas Krebs
Why has this been removed?
That would be a bug.
It doesn't appear to be a distribution building regression, rather the
file isn't in svn on trunk that I can see unless it's been renamed. I
suspect it's a regression in the change that builds more of the
version-specific files, since this would have been one to do that
with.
It was removed in
https://github.com/apache/xerces-c/commit/66023ed75fd2587d80fb7cb3ed4101b5ec88dc89

Version.rc was part of the Win32MsgLoader implementation, and it
provided the string translations. It was dropped with the
Win32MsgLoader removal.

If the rc metadata is important to retain, we could provide a message
loader-independent rc file with just the version/vendor metadata?


Regards,
Roger

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-***@xerces.apache.org
For additional commands, e-mail: c-dev-***@xerces.apache.org
Cantor, Scott
2018-03-16 16:55:57 UTC
Permalink
Version.rc was part of the Win32MsgLoader implementation, and it provided
the string translations. It was dropped with the Win32MsgLoader removal.
Sorry, I didn't notice that.
If the rc metadata is important to retain, we could provide a message loader-
independent rc file with just the version/vendor metadata?
Yes, it's critical for Windows, that drives MSI installation policy.

-- Scott



---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-***@xerces.apache.org
For additional commands, e-mail: c-dev-***@xerces.apache.org

Loading...