Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[xlnt] find_package failure #12107

Closed
ZeeWanderer opened this issue Jun 25, 2020 · 4 comments
Closed

[xlnt] find_package failure #12107

ZeeWanderer opened this issue Jun 25, 2020 · 4 comments

Comments

@ZeeWanderer
Copy link
Contributor

ZeeWanderer commented Jun 25, 2020

Describe the bug
After vcpkg install and integration using find_package(xlnt CONFIG REQUIRED) in a cmake project results in

1> [CMake] CMake Error at E:/Tools/vcpkg/installed/x64-windows/share/xlnt/XlntConfig.cmake:13 (message):
1> [CMake]   File or directory include referenced by variable XLNT_INCLUDE_DIR does not
1> [CMake]   exist !

Environment

  • OS: Windows 10
  • Compiler: MSVC 19.26.28806.0

To Reproduce
Steps to reproduce the behavior:

  1. ./vcpkg install xlnt:x64-windows
  2. ./vcpkg integrate install
  3. use find_package(xlnt CONFIG REQUIRED) in a cmake project
  4. See error
@johnco3
Copy link

johnco3 commented Jul 9, 2020

I get the same behavior, I also tried vcpkg install xlnt:x64-windows --head to pull from the latest source but the problem persists. Unfortunately I don't know vcpkg sufficiently to fix it. Here is part of my CMake command output where I use find_package(Xlnt CONFIG REQUIRED)

The CMake output is as follows:

. . .
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Found Boost: C:/Users/johnc/main/extlibs/vcpkg/installed/x64-windows/include (found suitable version "1.73.0", minimum required is "1.73.0") found components: program_options date_time log log_setup filesystem thread regex chrono atomic
CMake Error at C:/Users/johnc/main/extlibs/vcpkg/installed/x64-windows/share/xlnt/XlntConfig.cmake:13 (message):
  File or directory include referenced by variable XLNT_INCLUDE_DIR does not
  exist !
Call Stack (most recent call first):
  C:/Users/johnc/main/extlibs/vcpkg/installed/x64-windows/share/xlnt/XlntConfig.cmake:31 (set_and_check)
  C:/Users/johnc/main/extlibs/vcpkg/scripts/buildsystems/vcpkg.cmake:415 (_find_package)
  CMakeLists.txt:29 (find_package)


-- Configuring incomplete, errors occurred!
See also "C:/Users/johnc/main/tcdu/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/johnc/main/tcdu/build/CMakeFiles/CMakeError.log".


@ZeeWanderer
Copy link
Contributor Author

ZeeWanderer commented Jul 9, 2020

@johnco3 This is an upstream xlnt cmake problem as I tried using upstream repo as a submodule and the result is the same. In the end, I settled for MSBuild. Originally I wanted to open an upstream issue but haven't got to it yet.

@johnco3
Copy link

johnco3 commented Jul 9, 2020 via email

@fly2sky2018
Copy link

fly2sky2018 commented Mar 22, 2021

meet the same problem. how to use xInt....

1)Cmake erro at
Erro is below:

**CMake Error at third-party/libstudxml.build/CMakeLists.txt:52 (add_library):
Cannot find source file:
C:/xlnt-master/third-party/libstudxml/libstudxml/parser.cxx
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .h .hh .h++.hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .ispc

CMake Error at third-party/libstudxml.build/CMakeLists.txt:52 (add_library):
No SOURCES given to target: libstudxml**

the 52 is below
add_library(libstudxml OBJECT ${LIBSTUDXML} ${GENX} ${EXPAT})

I can't understand what it means..................

2)vcpkg erro ..
at the shell :
PS C:\vcpkg-master> .\vcpkg.exe install xInt

Computing installation plan...
Error: while loading xint:
The port directory (C:\vcpkg-master\ports\xint) does not exist
Error: failed to load port from C:\vcpkg-master\ports\xint
Note: Updating vcpkg by rerunning bootstrap-vcpkg may resolve this failure.

wanted help.........Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants