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

[eigen3] Headers build failed #12116

Closed
ollp opened this issue Jun 25, 2020 · 28 comments
Closed

[eigen3] Headers build failed #12116

ollp opened this issue Jun 25, 2020 · 28 comments
Assignees
Labels
category:question This issue is a question

Comments

@ollp
Copy link

ollp commented Jun 25, 2020

.\vcpkg.exe install eigen3:x86-windows
.\vcpkg.exe install eigen3:x64-windows

Both package's provide Cmake targets

Like in this I posted #7902

But for some reason stop worked.

find_package(Eigen3 CONFIG REQUIRED)

target_link_libraries(main PRIVATE Eigen3::Eigen)

visual studio 2015 I have also visual studio 2017 on the same machine non of them works.

I have tried ./vcpkg integrate install without result

I have tried ./vcpkg integrate project but non seems to work.

@NancyLi1013
Copy link
Contributor

Hi @ollp
Thanks for posting this issue.
You mean that you cannot use eignen3? If so, please provide your project case.

@NancyLi1013 NancyLi1013 added the category:question This issue is a question label Jun 28, 2020
@ollp
Copy link
Author

ollp commented Jun 28, 2020

Hi thanks for answer.
if I add the path in project properties vc++Directories it works.

But I don't think that is idea.

regards ollp

@NancyLi1013
Copy link
Contributor

Could you please post the error info if you don't add path in project?
Please also help confirm you have set CMAKE_TOOLCHAIN_FILE.

If possible, please provide your project case.

@ollp
Copy link
Author

ollp commented Jun 28, 2020

The biggest problem it does not give any real error no point compile if it cannot find te header file.
CMAKE_TOOLCHAIN_FILE how do I set that?

# This is the CMakeCache file.
# For build in directory: c:/vcpkg/buildtrees/eigen3/x64-windows-rel
# It was generated by CMake: C:/Program Files (x86)/CMake/bin/cmake.exe
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
# VALUE is the current value for the KEY.

########################
# EXTERNAL cache entries
########################

//No help, variable specified on the command line.
BUILD_SHARED_LIBS:UNINITIALIZED=ON

//Enable creation of Eigen tests.
BUILD_TESTING:BOOL=OFF

//The directory relative to CMAKE_PREFIX_PATH where Eigen3Config.cmake
// is installed
CMAKEPACKAGE_INSTALL_DIR:PATH=C:/vcpkg/packages/eigen3_x64-windows/share/eigen3

//Choose the type of build, options are: None Debug Release RelWithDebInfo
// MinSizeRel ...
CMAKE_BUILD_TYPE:STRING=Release

//CXX compiler
CMAKE_CXX_COMPILER:FILEPATH=C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe

CMAKE_CXX_FLAGS:STRING=' /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP '

CMAKE_CXX_FLAGS_DEBUG:STRING='/D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 '

//Flags used by the CXX compiler during MINSIZEREL builds.
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=/MD /O1 /Ob1 /DNDEBUG

CMAKE_CXX_FLAGS_RELEASE:STRING='/MD /O2 /Oi /Gy /DNDEBUG /Z7 '

//Flags used by the CXX compiler during RELWITHDEBINFO builds.
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=/MD /Zi /O2 /Ob1 /DNDEBUG

//Libraries linked by default with all C++ applications.
CMAKE_CXX_STANDARD_LIBRARIES:STRING=kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib

//C compiler
CMAKE_C_COMPILER:FILEPATH=C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe

CMAKE_C_FLAGS:STRING=' /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /MP '

CMAKE_C_FLAGS_DEBUG:STRING='/D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 '

//Flags used by the C compiler during MINSIZEREL builds.
CMAKE_C_FLAGS_MINSIZEREL:STRING=/MD /O1 /Ob1 /DNDEBUG

CMAKE_C_FLAGS_RELEASE:STRING='/MD /O2 /Oi /Gy /DNDEBUG /Z7 '

//Flags used by the C compiler during RELWITHDEBINFO builds.
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=/MD /Zi /O2 /Ob1 /DNDEBUG

//Libraries linked by default with all C applications.
CMAKE_C_STANDARD_LIBRARIES:STRING=kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib

//No help, variable specified on the command line.
CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION:UNINITIALIZED=ON

//Flags used by the linker during all build types.
CMAKE_EXE_LINKER_FLAGS:STRING=/machine:x64

//Flags used by the linker during DEBUG builds.
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=/nologo  /debug /INCREMENTAL

//Flags used by the linker during MINSIZEREL builds.
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=/INCREMENTAL:NO

CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING='/nologo /DEBUG /INCREMENTAL:NO /OPT:REF /OPT:ICF '

//Flags used by the linker during RELWITHDEBINFO builds.
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=/debug /INCREMENTAL

//Enable/Disable output of compile commands during generation.
CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=

//No help, variable specified on the command line.
CMAKE_EXPORT_NO_PACKAGE_REGISTRY:UNINITIALIZED=ON

//No help, variable specified on the command line.
CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY:UNINITIALIZED=ON

//No help, variable specified on the command line.
CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY:UNINITIALIZED=ON

//No help, variable specified on the command line.
CMAKE_INSTALL_BINDIR:STRING=bin

//Read-only architecture-independent data (DATAROOTDIR)
CMAKE_INSTALL_DATADIR:PATH=

//Read-only architecture-independent data root (share)
CMAKE_INSTALL_DATAROOTDIR:PATH=share

//Documentation root (DATAROOTDIR/doc/PROJECT_NAME)
CMAKE_INSTALL_DOCDIR:PATH=

//C header files (include)
CMAKE_INSTALL_INCLUDEDIR:PATH=include

//Info documentation (DATAROOTDIR/info)
CMAKE_INSTALL_INFODIR:PATH=

//No help, variable specified on the command line.
CMAKE_INSTALL_LIBDIR:STRING=lib

//Program executables (libexec)
CMAKE_INSTALL_LIBEXECDIR:PATH=libexec

//Locale-dependent data (DATAROOTDIR/locale)
CMAKE_INSTALL_LOCALEDIR:PATH=

//Modifiable single-machine data (var)
CMAKE_INSTALL_LOCALSTATEDIR:PATH=var

//Man documentation (DATAROOTDIR/man)
CMAKE_INSTALL_MANDIR:PATH=

//C header files for non-gcc (/usr/include)
CMAKE_INSTALL_OLDINCLUDEDIR:PATH=/usr/include

//Install path prefix, prepended onto install directories.
CMAKE_INSTALL_PREFIX:PATH=C:/vcpkg/packages/eigen3_x64-windows

//Run-time variable data (LOCALSTATEDIR/run)
CMAKE_INSTALL_RUNSTATEDIR:PATH=

//System admin executables (sbin)
CMAKE_INSTALL_SBINDIR:PATH=sbin

//Modifiable architecture-independent data (com)
CMAKE_INSTALL_SHAREDSTATEDIR:PATH=com

//Read-only single-machine data (etc)
CMAKE_INSTALL_SYSCONFDIR:PATH=etc

//No help, variable specified on the command line.
CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP:UNINITIALIZED=TRUE

//Path to a program.
CMAKE_LINKER:FILEPATH=C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/link.exe

//make program
CMAKE_MAKE_PROGRAM:FILEPATH=C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe

//Flags used by the linker during the creation of modules during
// all build types.
CMAKE_MODULE_LINKER_FLAGS:STRING=/machine:x64

//Flags used by the linker during the creation of modules during
// DEBUG builds.
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=/debug /INCREMENTAL

//Flags used by the linker during the creation of modules during
// MINSIZEREL builds.
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=/INCREMENTAL:NO

//Flags used by the linker during the creation of modules during
// RELEASE builds.
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=/INCREMENTAL:NO

//Flags used by the linker during the creation of modules during
// RELWITHDEBINFO builds.
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=/debug /INCREMENTAL

CMAKE_MSVC_RUNTIME_LIBRARY:STRING=MultiThreaded$<$<CONFIG:Debug>:Debug>$<$<STREQUAL:dynamic,dynamic>:DLL>

//Path to a program.
CMAKE_MT:FILEPATH=C:/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x64/mt.exe

//Value Computed by CMake
CMAKE_PROJECT_DESCRIPTION:STATIC=

//Value Computed by CMake
CMAKE_PROJECT_HOMEPAGE_URL:STATIC=

//Value Computed by CMake
CMAKE_PROJECT_NAME:STATIC=Eigen3

//RC compiler
CMAKE_RC_COMPILER:FILEPATH=C:/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x64/rc.exe

CMAKE_RC_FLAGS:STRING=-c65001 /DWIN32

//Flags for Windows Resource Compiler during DEBUG builds.
CMAKE_RC_FLAGS_DEBUG:STRING=-D_DEBUG

//Flags for Windows Resource Compiler during MINSIZEREL builds.
CMAKE_RC_FLAGS_MINSIZEREL:STRING=

//Flags for Windows Resource Compiler during RELEASE builds.
CMAKE_RC_FLAGS_RELEASE:STRING=

//Flags for Windows Resource Compiler during RELWITHDEBINFO builds.
CMAKE_RC_FLAGS_RELWITHDEBINFO:STRING=

//Flags used by the linker during the creation of shared libraries
// during all build types.
CMAKE_SHARED_LINKER_FLAGS:STRING=/machine:x64

//Flags used by the linker during the creation of shared libraries
// during DEBUG builds.
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=/nologo  /debug /INCREMENTAL

//Flags used by the linker during the creation of shared libraries
// during MINSIZEREL builds.
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=/INCREMENTAL:NO

CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING='/nologo /DEBUG /INCREMENTAL:NO /OPT:REF /OPT:ICF '

//Flags used by the linker during the creation of shared libraries
// during RELWITHDEBINFO builds.
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=/debug /INCREMENTAL

//If set, runtime paths are not added when installing shared libraries,
// but are added when building.
CMAKE_SKIP_INSTALL_RPATH:BOOL=NO

//If set, runtime paths are not added when using shared libraries.
CMAKE_SKIP_RPATH:BOOL=NO

//Flags used by the linker during the creation of static libraries
// during all build types.
CMAKE_STATIC_LINKER_FLAGS:STRING=/machine:x64

//Flags used by the linker during the creation of static libraries
// during DEBUG builds.
CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=/nologo

//Flags used by the linker during the creation of static libraries
// during MINSIZEREL builds.
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during the creation of static libraries
// during RELEASE builds.
CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=/nologo

//Flags used by the linker during the creation of static libraries
// during RELWITHDEBINFO builds.
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//The CMake toolchain file
CMAKE_TOOLCHAIN_FILE:FILEPATH=C:/vcpkg/scripts/buildsystems/vcpkg.cmake

//If this value is on, makefiles will be generated without the
// .SILENT directive, and all commands will be echoed to the console
// during the make.  This is useful for debugging only. With Visual
// Studio IDE projects all commands are done without /nologo.
CMAKE_VERBOSE_MAKEFILE:BOOL=ON

//Build benchmark suite
EIGEN_BUILD_BTL:BOOL=OFF

//No help, variable specified on the command line.
EIGEN_BUILD_PKGCONFIG:UNINITIALIZED=ON

//The CUDA compute architecture level to target when compiling
// CUDA code
EIGEN_CUDA_COMPUTE_ARCH:STRING=30

//Use row-major as default matrix storage order
EIGEN_DEFAULT_TO_ROW_MAJOR:BOOL=OFF

//Build internal documentation
EIGEN_INTERNAL_DOCUMENTATION:BOOL=OFF

//Split large tests into smaller executables
EIGEN_SPLIT_LARGE_TESTS:BOOL=ON

//Use the triSYCL Sycl implementation (ComputeCPP by default).
EIGEN_SYCL_TRISYCL:BOOL=OFF

//Force generating 32bit code.
EIGEN_TEST_32BIT:BOOL=OFF

//Enable/Disable AVX in tests/examples
EIGEN_TEST_AVX:BOOL=OFF

//Additional compiler flags when compiling unit tests.
EIGEN_TEST_CUSTOM_CXX_FLAGS:STRING=

//Additional linker flags when linking unit tests.
EIGEN_TEST_CUSTOM_LINKER_FLAGS:STRING=

//Enable testing with C++11 and C++11 features (e.g. Tensor module).
EIGEN_TEST_CXX11:BOOL=OFF

//Enable/Disable FMA/AVX2 in tests/examples
EIGEN_TEST_FMA:BOOL=OFF

//Maximal matrix/vector size, default is 320
EIGEN_TEST_MAX_SIZE:STRING=320

//Disables C++ exceptions
EIGEN_TEST_NO_EXCEPTIONS:BOOL=OFF

//Disable explicit alignment (hence vectorization) in tests/examples
EIGEN_TEST_NO_EXPLICIT_ALIGNMENT:BOOL=OFF

//Disable explicit vectorization in tests/examples
EIGEN_TEST_NO_EXPLICIT_VECTORIZATION:BOOL=OFF

//Enable/Disable OpenMP in tests/examples
EIGEN_TEST_OPENMP:BOOL=OFF

//Enable/Disable SSE2 in tests/examples
EIGEN_TEST_SSE2:BOOL=OFF

//Add Sycl support.
EIGEN_TEST_SYCL:BOOL=OFF

//Force using X87 instructions. Implies no vectorization.
EIGEN_TEST_X87:BOOL=OFF

//Value Computed by CMake
Eigen3_BINARY_DIR:STATIC=C:/vcpkg/buildtrees/eigen3/x64-windows-rel

//Value Computed by CMake
Eigen3_SOURCE_DIR:STATIC=C:/vcpkg/buildtrees/eigen3/src/head/master-c8153a02c7

//Value Computed by CMake
EigenBlas_BINARY_DIR:STATIC=C:/vcpkg/buildtrees/eigen3/x64-windows-rel/blas

//Value Computed by CMake
EigenBlas_SOURCE_DIR:STATIC=C:/vcpkg/buildtrees/eigen3/src/head/master-c8153a02c7/blas

//Value Computed by CMake
EigenDemos_BINARY_DIR:STATIC=C:/vcpkg/buildtrees/eigen3/x64-windows-rel/demos

//Value Computed by CMake
EigenDemos_SOURCE_DIR:STATIC=C:/vcpkg/buildtrees/eigen3/src/head/master-c8153a02c7/demos

//Value Computed by CMake
EigenDoc_BINARY_DIR:STATIC=C:/vcpkg/buildtrees/eigen3/x64-windows-rel/doc

//Value Computed by CMake
EigenDoc_SOURCE_DIR:STATIC=C:/vcpkg/buildtrees/eigen3/src/head/master-c8153a02c7/doc

//Value Computed by CMake
EigenLapack_BINARY_DIR:STATIC=C:/vcpkg/buildtrees/eigen3/x64-windows-rel/lapack

//Value Computed by CMake
EigenLapack_SOURCE_DIR:STATIC=C:/vcpkg/buildtrees/eigen3/src/head/master-c8153a02c7/lapack

//The directory relative to CMAKE_PREFIX_PATH where Eigen header
// files are installed
INCLUDE_INSTALL_DIR:PATH=include/eigen3

//The directory relative to CMAKE_PREFIX_PATH where eigen3.pc is
// installed
PKGCONFIG_INSTALL_DIR:PATH=C:/vcpkg/packages/eigen3_x64-windows/lib/pkgconfig

QT_QMAKE_EXECUTABLE:FILEPATH=NOTFOUND

//Automatically copy dependencies into the output directory for
// executables.
VCPKG_APPLOCAL_DEPS:BOOL=OFF

//No help, variable specified on the command line.
VCPKG_CHAINLOAD_TOOLCHAIN_FILE:UNINITIALIZED=C:/vcpkg/scripts/toolchains/windows.cmake

//No help, variable specified on the command line.
VCPKG_CRT_LINKAGE:UNINITIALIZED=dynamic

//No help, variable specified on the command line.
VCPKG_CXX_FLAGS:UNINITIALIZED=

//No help, variable specified on the command line.
VCPKG_CXX_FLAGS_DEBUG:UNINITIALIZED=

//No help, variable specified on the command line.
VCPKG_CXX_FLAGS_RELEASE:UNINITIALIZED=

//No help, variable specified on the command line.
VCPKG_C_FLAGS:UNINITIALIZED=

//No help, variable specified on the command line.
VCPKG_C_FLAGS_DEBUG:UNINITIALIZED=

//No help, variable specified on the command line.
VCPKG_C_FLAGS_RELEASE:UNINITIALIZED=

//No help, variable specified on the command line.
VCPKG_LINKER_FLAGS:UNINITIALIZED=

//No help, variable specified on the command line.
VCPKG_PLATFORM_TOOLSET:UNINITIALIZED=v141

//No help, variable specified on the command line.
VCPKG_SET_CHARSET_FLAG:UNINITIALIZED=ON

//No help, variable specified on the command line.
VCPKG_TARGET_ARCHITECTURE:UNINITIALIZED=x64

//Vcpkg target triplet (ex. x86-windows)
VCPKG_TARGET_TRIPLET:STRING=x64-windows

//Enables messages from the VCPKG toolchain for debugging purposes.
VCPKG_VERBOSE:BOOL=OFF

//No help, variable specified on the command line.
_VCPKG_INSTALLED_DIR:UNINITIALIZED=C:/vcpkg/installed

//No help, variable specified on the command line.
_VCPKG_ROOT_DIR:UNINITIALIZED=C:/vcpkg

//Dependencies for the target
eigen_lapack_LIB_DEPENDS:STATIC=general;eigen_blas;


########################
# INTERNAL cache entries
########################

//This is the directory where this CMakeCache.txt was created
CMAKE_CACHEFILE_DIR:INTERNAL=c:/vcpkg/buildtrees/eigen3/x64-windows-rel
//Major version of cmake used to create the current loaded cache
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
//Minor version of cmake used to create the current loaded cache
CMAKE_CACHE_MINOR_VERSION:INTERNAL=17
//Patch version of cmake used to create the current loaded cache
CMAKE_CACHE_PATCH_VERSION:INTERNAL=3
//Path to CMake executable.
CMAKE_COMMAND:INTERNAL=C:/Program Files (x86)/CMake/bin/cmake.exe
//Path to cpack program executable.
CMAKE_CPACK_COMMAND:INTERNAL=C:/Program Files (x86)/CMake/bin/cpack.exe
//Path to ctest program executable.
CMAKE_CTEST_COMMAND:INTERNAL=C:/Program Files (x86)/CMake/bin/ctest.exe
//ADVANCED property for variable: CMAKE_CXX_COMPILER
CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL
CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO
CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_STANDARD_LIBRARIES
CMAKE_CXX_STANDARD_LIBRARIES-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_COMPILER
CMAKE_C_COMPILER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS
CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL
CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_STANDARD_LIBRARIES
CMAKE_C_STANDARD_LIBRARIES-ADVANCED:INTERNAL=1
//Executable file format
CMAKE_EXECUTABLE_FORMAT:INTERNAL=Unknown
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS
CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1
//Name of external makefile project generator.
CMAKE_EXTRA_GENERATOR:INTERNAL=
//Name of generator.
CMAKE_GENERATOR:INTERNAL=Ninja
//Generator instance identifier.
CMAKE_GENERATOR_INSTANCE:INTERNAL=
//Name of generator platform.
CMAKE_GENERATOR_PLATFORM:INTERNAL=
//Name of generator toolset.
CMAKE_GENERATOR_TOOLSET:INTERNAL=
//Source directory with the top level CMakeLists.txt file for this
// project
CMAKE_HOME_DIRECTORY:INTERNAL=C:/vcpkg/buildtrees/eigen3/src/head/master-c8153a02c7
//ADVANCED property for variable: CMAKE_INSTALL_BINDIR
CMAKE_INSTALL_BINDIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_INSTALL_DATADIR
CMAKE_INSTALL_DATADIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_INSTALL_DATAROOTDIR
CMAKE_INSTALL_DATAROOTDIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_INSTALL_DOCDIR
CMAKE_INSTALL_DOCDIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_INSTALL_INCLUDEDIR
CMAKE_INSTALL_INCLUDEDIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_INSTALL_INFODIR
CMAKE_INSTALL_INFODIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_INSTALL_LIBDIR
CMAKE_INSTALL_LIBDIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_INSTALL_LIBEXECDIR
CMAKE_INSTALL_LIBEXECDIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_INSTALL_LOCALEDIR
CMAKE_INSTALL_LOCALEDIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_INSTALL_LOCALSTATEDIR
CMAKE_INSTALL_LOCALSTATEDIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_INSTALL_MANDIR
CMAKE_INSTALL_MANDIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_INSTALL_OLDINCLUDEDIR
CMAKE_INSTALL_OLDINCLUDEDIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_INSTALL_RUNSTATEDIR
CMAKE_INSTALL_RUNSTATEDIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_INSTALL_SBINDIR
CMAKE_INSTALL_SBINDIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_INSTALL_SHAREDSTATEDIR
CMAKE_INSTALL_SHAREDSTATEDIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_INSTALL_SYSCONFDIR
CMAKE_INSTALL_SYSCONFDIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_LINKER
CMAKE_LINKER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MT
CMAKE_MT-ADVANCED:INTERNAL=1
//number of local generators
CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=15
//Platform information initialized
CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_COMPILER
CMAKE_RC_COMPILER-ADVANCED:INTERNAL=1
CMAKE_RC_COMPILER_WORKS:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_FLAGS
CMAKE_RC_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_FLAGS_DEBUG
CMAKE_RC_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_FLAGS_MINSIZEREL
CMAKE_RC_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_FLAGS_RELEASE
CMAKE_RC_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_FLAGS_RELWITHDEBINFO
CMAKE_RC_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Path to CMake installation.
CMAKE_ROOT:INTERNAL=C:/Program Files (x86)/CMake/share/cmake-3.17
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH
CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_RPATH
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS
CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG
CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE
CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_TOOLCHAIN_FILE
CMAKE_TOOLCHAIN_FILE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
//Test COMPILER_SUPPORT_OPENMP
COMPILER_SUPPORT_OPENMP:INTERNAL=1
//Test COMPILER_SUPPORT_std=cpp03
COMPILER_SUPPORT_std=cpp03:INTERNAL=
//Test EIGEN_COMPILER_SUPPORT_CPP11
EIGEN_COMPILER_SUPPORT_CPP11:INTERNAL=
//ADVANCED property for variable: VCPKG_VERBOSE
VCPKG_VERBOSE-ADVANCED:INTERNAL=1
//CMAKE_INSTALL_PREFIX during last run
_GNUInstallDirs_LAST_CMAKE_INSTALL_PREFIX:INTERNAL=C:/vcpkg/packages/eigen3_x64-windows
//Test standard_math_library_linked_to_automatically
standard_math_library_linked_to_automatically:INTERNAL=1

is that what you mean? i have not done any manual config.`Except in in project properties vc++Directories

@NancyLi1013
Copy link
Contributor

If you used CMake project, you need to set CMAKE_TOOLCHAIN_FILE. You can refer to this to learn more about the usage of a port.

@ollp
Copy link
Author

ollp commented Jul 5, 2020

What do you mean ? I have not used it!
its only installed on mu computer.

@NancyLi1013
Copy link
Contributor

Could you please provide the steps to reproduce your problem?

@ollp
Copy link
Author

ollp commented Jul 6, 2020

.\vcpkg.exe install eigen3:x86-windows --head
.\vcpkg.exe install eigen3:x64-windows --head

find_package(Eigen3 CONFIG REQUIRED)
target_link_libraries(main PRIVATE Eigen3::Eigen)

I have tried ./vcpkg integrate install without result
I have tried ./vcpkg integrate project but non seems to work.

What creates the problem i have no idea if you follow does commands above. That is what I have done.

the screen gives same code as the answer AlvinZhangH posted in this #7902

regards

@ollp
Copy link
Author

ollp commented Jul 6, 2020

I can upload the whole vcpkg folder to you if you have a link to were

@NancyLi1013
Copy link
Contributor

I can install it successfully on my local.

PS F:\tools\vcpkg> .\vcpkg.exe install eigen3:x86-windows --head
Computing installation plan...
The following packages will be built and installed:
    eigen3[core]:x86-windows (from HEAD)
Starting package 1/1: eigen3:x86-windows
Building package eigen3[core]:x86-windows from HEAD...
-- Downloading https://gitlab.com/libeigen/eigen/-/archive/master/master.tar.gz...
-- Skipping hash check for F:/tools/vcpkg/downloads/temp/libeigen-eigen-master.tar.gz.
-- Extracting source F:/tools/vcpkg/downloads/libeigen-eigen-master.tar.gz
-- Using source at F:/tools/vcpkg/buildtrees/eigen3/src/head/master-89ad139672
-- Configuring x86-windows
-- Building x86-windows-dbg
-- Building x86-windows-rel
-- Fixing pkgconfig
-- Fixing pkgconfig - release
-- Checking file: F:/tools/vcpkg/packages/eigen3_x86-windows/lib/pkgconfig/eigen3.pc
-- Fixing pkgconfig - debug
-- Checking file: F:/tools/vcpkg/packages/eigen3_x86-windows/debug/lib/pkgconfig/eigen3.pc
-- Fixing pkgconfig --- finished
-- Performing post-build validation
-- Performing post-build validation done
Building package eigen3[core]:x86-windows... done
Installing package eigen3[core]:x86-windows...
Installing package eigen3[core]:x86-windows... done
Elapsed time for package eigen3:x86-windows: 1.582 min

Total elapsed time: 1.586 min

The package eigen3:x86-windows provides CMake targets:

    find_package(Eigen3 CONFIG REQUIRED)
    target_link_libraries(main PRIVATE Eigen3::Eigen)

So I don't know what your problem is.

@ollp
Copy link
Author

ollp commented Jul 7, 2020

And you can use

./vcpkg integrate install

./vcpkg integrate project

and find whatever header you need with out manual config?

in project properties?

@NancyLi1013
Copy link
Contributor

So you include the headers in your project, but you cannot find any headers if you don't config the include path in project properties?

Such as adding #include <eigen3/Eigen/src/Core/Array.h>

then try to build the project?

The steps are right?

@ollp
Copy link
Author

ollp commented Jul 8, 2020

now you got it

#include<> cannot find eigen3 as an sample

@NancyLi1013
Copy link
Contributor

I didn't met the issue that headers were not found, but there were some errors in the header file.

The errors like this:

1>------ Rebuild All started: Project: ConsoleApplication7, Configuration: Debug Win32 ------
1>Using triplet "x86-windows" from "F:\tools\vcpkg\installed\x86-windows\"
1>ConsoleApplication7.cpp
1>F:\tools\vcpkg\installed\x86-windows\include\eigen3\Eigen\src\Core\Array.h(17,14): error C2988: unrecognizable template declaration/definition
1>F:\tools\vcpkg\installed\x86-windows\include\eigen3\Eigen\src\Core\Array.h(17,14): error C2143: syntax error: missing ';' before '<'
1>F:\tools\vcpkg\installed\x86-windows\include\eigen3\Eigen\src\Core\Array.h(17,14): error C2059: syntax error: '<'
1>F:\tools\vcpkg\installed\x86-windows\include\eigen3\Eigen\src\Core\Array.h(17,85): error C2065: 'Matrix': undeclared identifier
1>F:\tools\vcpkg\installed\x86-windows\include\eigen3\Eigen\src\Core\Array.h(17,92): error C2065: '_Scalar': undeclared identifier
1>F:\tools\vcpkg\installed\x86-windows\include\eigen3\Eigen\src\Core\Array.h(17,101): error C2065: '_Rows': undeclared identifier
1>F:\tools\vcpkg\installed\x86-windows\include\eigen3\Eigen\src\Core\Array.h(17,108): error C2065: '_Cols': undeclared identifier
1>F:\tools\vcpkg\installed\x86-windows\include\eigen3\Eigen\src\Core\Array.h(17,115): error C2065: '_Options': undeclared identifier

@NancyLi1013
Copy link
Contributor

@ollp
Could you please help confirm if you have the same error with me?

@ollp
Copy link
Author

ollp commented Jul 16, 2020

yes if you show me how to find it. is there an error log or what?

@NancyLi1013
Copy link
Contributor

I added #include <eigen3/Eigen/src/Core/Array.h> in my project. When I built this project, I found the above errors from output item.

I didn't config the include path in project properties manually. Just execute ./vcpkg integrate install and ./vcpkg integrate project.

If you met the same errors with me, in my opinion, this is a bug for eigen3.

As for the issue that you cannot find headers, please restart your Visual Studio after execute ./vcpkg integrate project.

If I don't use integration, the error info like this:

1>------ Build started: Project: ConsoleApplication1, Configuration: Debug x64 ------
1>ConsoleApplication1.cpp
1>C:\Users\v-ruil\source\repos\ConsoleApplication1\ConsoleApplication1\ConsoleApplication1.cpp(5,10): fatal error C1083: Cannot open include file: 'eigen3/Eigen/src/Core/Block.h': No such file or directory
1>Done building project "ConsoleApplication1.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

@NancyLi1013
Copy link
Contributor

@ollp
Please let me know if you still have any concerns about this.

@ollp
Copy link
Author

ollp commented Jul 28, 2020

NancyLi1013

PowerShell 7.0.2
Copyright (c) Microsoft Corporation. All rights reserved.

https://aka.ms/powershell
Type 'help' to get help.

Loading personal and system profiles took 946ms.
PS C:\Users\Bent> cd\
PS C:\> cd vc*
PS C:\vcpkg> ./vcpkg integrate install
Applied user-wide integration for this vcpkg root.

All MSBuild C++ projects can now #include any installed libraries.
Linking will be handled automatically.
Installing new libraries will make them instantly available.

CMake projects should use: "-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake"
PS C:\vcpkg>
------------------------------------------------
The lines below is new to me now #include works
-------------------------------------------------
PS C:\vcpkg> ./vcpkg integrate project
Created nupkg: C:\vcpkg\scripts\buildsystems\vcpkg.C.vcpkg.1.0.0.nupkg

With a project open, go to Tools->NuGet Package Manager->Package Manager Console and paste:
    Install-Package vcpkg.C.vcpkg -Source "C:\vcpkg\scripts\buildsystems"

PS C:\vcpkg>`


`1>------ Build started: Project: testerror, Configuration: Debug Win32 ------
1>  Using triplet "x86-windows" from "C:\vcpkg\installed\x86-windows\"
1>  Source.cpp
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(17): error C2988: unrecognizable template declaration/definition
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(17): error C2143: syntax error: missing ';' before '<'
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(17): error C2059: syntax error: '<'
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(17): error C2065: 'Matrix': undeclared identifier
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(17): error C2065: '_Scalar': undeclared identifier
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(17): error C2065: '_Rows': undeclared identifier
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(17): error C2065: '_Cols': undeclared identifier
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(17): error C2065: '_Options': undeclared identifier
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(17): error C2065: '_MaxRows': undeclared identifier
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(17): error C2065: '_MaxCols': undeclared identifier
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(17): error C2974: 'Eigen::internal::traits': invalid template argument for '_Scalar', type expected
1>  C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(17): note: see declaration of 'Eigen::internal::traits'
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(17): error C2975: '_Rows': invalid template argument for 'Eigen::internal::traits', expected compile-time constant expression
1>  C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(16): note: see declaration of '_Rows'
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(17): error C2975: '_Cols': invalid template argument for 'Eigen::internal::traits', expected compile-time constant expression
1>  C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(16): note: see declaration of '_Cols'
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(17): error C2975: '_Options': invalid template argument for 'Eigen::internal::traits', expected compile-time constant expression
1>  C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(16): note: see declaration of '_Options'
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(17): error C2975: '_MaxRows': invalid template argument for 'Eigen::internal::traits', expected compile-time constant expression
1>  C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(16): note: see declaration of '_MaxRows'
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(17): error C2975: '_MaxCols': invalid template argument for 'Eigen::internal::traits', expected compile-time constant expression
1>  C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(16): note: see declaration of '_MaxCols'
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(17): error C2143: syntax error: missing ';' before '>'
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(17): error C2059: syntax error: '>'
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(18): error C2143: syntax error: missing ';' before '{'
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(18): error C2447: '{': missing function header (old-style formal list?)
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(46): error C2143: syntax error: missing ',' before '<'
1>  C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(302): note: see reference to class template instantiation 'Eigen::Array<_Scalar,_Rows,_Cols,_Options,_MaxRows,_MaxCols>' being compiled
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(50): error C2143: syntax error: missing ';' before '<'
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(50): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(50): error C2238: unexpected token(s) preceding ';'
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(53): error C2143: syntax error: missing ';' before 'enum [tag]'
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(53): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(53): warning C4183: 'EIGEN_DENSE_PUBLIC_INTERFACE': missing return type; assumed to be a member function returning 'int'
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(54): error C2653: 'Base': is not a class or namespace name
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(54): error C3646: 'PlainObject': unknown override specifier
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(54): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(58): error C2039: 'conservative_resize_like_impl': is not a member of 'Eigen::internal'
1>  C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(15): note: see declaration of 'Eigen::internal'
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(58): error C2365: 'Eigen::internal': redefinition; previous definition was 'namespace'
1>  C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(15): note: see declaration of 'Eigen::internal'
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(58): error C2146: syntax error: missing ';' before identifier 'conservative_resize_like_impl'
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(58): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(60): error C2653: 'Base': is not a class or namespace name
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(64): error C2653: 'Base': is not a class or namespace name
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(65): error C2653: 'Base': is not a class or namespace name
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(66): error C2653: 'Base': is not a class or namespace name
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(76): error C2061: syntax error: identifier 'EIGEN_STRONG_INLINE'
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(91): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(107): error C2061: syntax error: identifier 'EIGEN_STRONG_INLINE'
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(117): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(132): error C3646: 'EIGEN_STRONG_INLINE': unknown override specifier
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(132): error C3646: 'Array': unknown override specifier
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(132): error C2988: unrecognizable template declaration/definition
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(132): error C2059: syntax error: '('
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(132): error C2334: unexpected token(s) preceding ':'; skipping apparent function body
1>C:\vcpkg\installed\x86-windows\include\eigen3/Eigen/src/Core/Array.h(13): fatal error C1075: the left brace '{' was unmatched at the end of the file
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

@NancyLi1013
Copy link
Contributor

Thanks for your update. Now I have seen the problem that you met.
This is a bug for eiegn3.

@NancyLi1013 NancyLi1013 added category:port-bug The issue is with a library, which is something the port should already support and removed category:question This issue is a question labels Jul 29, 2020
@ollp
Copy link
Author

ollp commented Jul 29, 2020

Good then maybe they fix it

@NancyLi1013
Copy link
Contributor

I will check the latest source codes and confirm if it has been fixed now.

@NancyLi1013 NancyLi1013 changed the title How do Install Eigen3 [eigen3] Headers build failed Jul 29, 2020
@ollp ollp closed this as completed Aug 29, 2020
@NancyLi1013
Copy link
Contributor

@ollp
why do you close this issue? I'm so sorry for the long delay. Since there is something wrong my local environment, which blocks me to verify this. I will try it again.

@ollp ollp reopened this Aug 31, 2020
@ollp
Copy link
Author

ollp commented Aug 31, 2020

I reopen it for you, sorry but I am not using it any more. so when you are ready pls close it

@NancyLi1013
Copy link
Contributor

Thanks for your reply. We can close it when this issue is solved.

@PhoebeHui PhoebeHui assigned Cheney-W and unassigned NancyLi1013 Nov 22, 2021
@JackBoosY
Copy link
Contributor

It should be an upstream bug, I will report this to the upstream later.

@JackBoosY
Copy link
Contributor

Upstream issue: https://gitlab.com/libeigen/eigen/-/issues/2427

@JackBoosY JackBoosY added depends:upstream-changes Waiting on a change to the upstream project category:question This issue is a question and removed category:port-bug The issue is with a library, which is something the port should already support depends:upstream-changes Waiting on a change to the upstream project labels Jan 27, 2022
@JackBoosY
Copy link
Contributor

After confirmed with the upstream (https://gitlab.com/libeigen/eigen/-/issues/2427#note_824188662), we think this issue is a usage issue, please refer to the upstream link.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

4 participants