xmake icon indicating copy to clipboard operation
xmake copied to clipboard

package conan::Poco in msvc environment cannot install

Open TabNahida opened this issue 1 year ago • 2 comments

Xmake 版本

v2.9.1

操作系统版本和架构

Windows 11

描述问题

When I try to use poco package in my project, error: install failed! occurred. This is my xmake.lua.

set_languages("cxx20")
set_policy("build.c++.modules", true)

add_rules("mode.debug", "mode.release")
add_requires("conan::poco/1.13.3",{alias = "poco"})

target("P1")
    set_kind("static")
    add_files("_2248_.cpp")

target("main")
    set_kind("binary")
    add_files("main.cpp")
    add_packages("poco")
    add_deps("P1")

This is the output.

checking for platform ... windows
checking for architecture ... x64
checking for Microsoft Visual Studio (x64) version ... 2022
note: install or modify (m) these packages (pass -y to skip confirm)?
in conan:
  -> conan::poco/1.13.3 latest [settings:{"compiler.cppstd=17"}, runtimes:"MT", build_requires:{"compiler.cppstd=17"}]
please input: y (y/n/m)
y
  => install conan::poco/1.13.3 latest .. failed 

======== Input profiles ========
Profile host:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=17
compiler.runtime=static
compiler.runtime_type=Release
compiler.version=193
os=Windows
Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=14
if you want to get more verbose errors, please see:
  -> C:\Project\CPP\TestBed\Modules\P1\build\.packages\c\conan_poco\1.13.3\latest\cache\installdir.failed\logs\install.txt
error: install failed!

And the install.txt shows.

======== Input profiles ========
Profile host:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=14
compiler.runtime=static
compiler.runtime_type=Release
compiler.version=193
os=Windows

Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=14
compiler.runtime=static
compiler.runtime_type=Release
compiler.version=193
os=Windows


======== Computing dependency graph ========
Graph root
    conanfile.txt: C:\Project\CPP\TestBed\Modules\P1\build\.conan\poco\1.13.3\conanfile.txt
Requirements
    bzip2/1.0.8#457c272f7da34cb9c67456dd217d36c4 - Cache
    expat/2.6.2#2d385d0d50eb5561006a7ff9e356656b - Cache
    libmysqlclient/8.1.0#ecca1993f7ce32371ef5436f3639074a - Cache
    libpq/15.4#cbae5e1ee85bd5e959e039e00307e8b1 - Cache
    lz4/1.9.4#1217a03c990b79aa34ed0faede18f534 - Cache
    openssl/3.2.1#c7b554068caae5eda12b735ea6f23d70 - Cache
    pcre2/10.42#a7a2c122056510509a7525c83d6a6695 - Cache
    poco/1.13.3#007642154974b1f81167b7a3581749aa - Cache
    sqlite3/3.45.0#3a7911478ffd14e7acc694ac113449b6 - Cache
    zlib/1.3.1#f52e03ae3d251dec704634230cd806a2 - Cache
    zstd/1.5.5#e03fb7b37b87f0174e9db4a8407e3f4d - Cache
Build requirements
    nasm/2.15.05#058c93b2214a49ca1cfe9f8f26205568 - Cache
    strawberryperl/5.32.1.1#8f83d05a60363a422f9033e52d106b47 - Cache
Resolved version ranges
    expat/[>=2.6.2 <3]: expat/2.6.2
    openssl/[>=1.1 <4]: openssl/3.2.1
    zlib/[>=1.2.11 <2]: zlib/1.3.1

======== Computing necessary packages ========
libmysqlclient/8.1.0: Checking 3 compatible configurations
libmysqlclient/8.1.0: Compatible configurations not found in cache, checking servers
libmysqlclient/8.1.0: '17f95e77b514cb10429fd6d1341caa3f4f8601fd': compiler.cppstd=17
libmysqlclient/8.1.0: 'f7aadc97e4330647be06fe154f6b265a7c45d500': compiler.cppstd=20
libmysqlclient/8.1.0: 'f708582340555937553616f966ab6d95f6fe79f9': compiler.cppstd=23
Requirements
    bzip2/1.0.8#457c272f7da34cb9c67456dd217d36c4:e9dea45a36dc6fbd2ad47011f0b43e832dec069d#d0df8ef5d4791cb59c845e3805a76d29 - Cache
    expat/2.6.2#2d385d0d50eb5561006a7ff9e356656b:32691cf95b72c8c88c619abc6bb0cb483dba217d#e0ccd411c3923b2e85f52c9435cf346d - Cache
    libmysqlclient/8.1.0#ecca1993f7ce32371ef5436f3639074a:11217f4dcb7b5eed95a271f47f0fe9164efecb85 - Invalid
    libpq/15.4#cbae5e1ee85bd5e959e039e00307e8b1:a83d8363581a13887a77578c63ad18921cf03430 - Build
    lz4/1.9.4#1217a03c990b79aa34ed0faede18f534:04a6c37bc15f9f5fab59d7085ff6c17c75bc552d#94f5c67b45e671dde3e9e58f1d4bd9fc - Cache
    openssl/3.2.1#c7b554068caae5eda12b735ea6f23d70:e5629f8aa4e1e84dffd7801960456a4c475dd814 - Build
    pcre2/10.42#a7a2c122056510509a7525c83d6a6695:e9bfc2a514c0fe04a2a69228c07f039bf263216a - Build
    poco/1.13.3#007642154974b1f81167b7a3581749aa:621fc2152473f5c15152e72346259d2759206111 - Invalid
    sqlite3/3.45.0#3a7911478ffd14e7acc694ac113449b6:e5fb3eac8d9bc91f327b326223b5c53bfa0dee46 - Build
    zlib/1.3.1#f52e03ae3d251dec704634230cd806a2:04a6c37bc15f9f5fab59d7085ff6c17c75bc552d - Build
    zstd/1.5.5#e03fb7b37b87f0174e9db4a8407e3f4d:2ff18ea37db632344ad5d9e6cf2152510c726435 - Build
Build requirements
    nasm/2.15.05#058c93b2214a49ca1cfe9f8f26205568:723257509aee8a72faf021920c2874abc738e029#d8ed631ad7024475859e1b94de1f123c - Cache
    strawberryperl/5.32.1.1#8f83d05a60363a422f9033e52d106b47:522dcea5982a3f8a5b624c16477e47195da2f84f#a365b3810f698e2f0a00fbeece022903 - Cache
ERROR: There are invalid packages:
libmysqlclient/8.1.0: Cannot build for this configuration: Current cppstd (14) is lower than the required C++ standard (17).
poco/1.13.3: Invalid: Current cppstd (14) is lower than the required C++ standard (17).

However, my project already set to C++20. Why Current cppstd (14) is lower than the required C++ standard (17) still appear.

期待的结果

Fix the compile std version bug with poco?

工程配置

set_languages("cxx20") set_policy("build.c++.modules", true)

add_rules("mode.debug", "mode.release") add_requires("conan::poco/1.13.3",{alias = "poco"})

target("P1") set_kind("static") add_files("2248.cpp")

target("main") set_kind("binary") add_files("main.cpp") add_packages("poco") add_deps("P1")

附加信息和错误日志

======== Input profiles ======== Profile host: [settings] arch=x86_64 build_type=Release compiler=msvc compiler.cppstd=14 compiler.runtime=static compiler.runtime_type=Release compiler.version=193 os=Windows

Profile build: [settings] arch=x86_64 build_type=Release compiler=msvc compiler.cppstd=14 compiler.runtime=static compiler.runtime_type=Release compiler.version=193 os=Windows

======== Computing dependency graph ======== Graph root conanfile.txt: C:\Project\CPP\TestBed\Modules\P1\build.conan\poco\1.13.3\conanfile.txt Requirements bzip2/1.0.8#457c272f7da34cb9c67456dd217d36c4 - Cache expat/2.6.2#2d385d0d50eb5561006a7ff9e356656b - Cache libmysqlclient/8.1.0#ecca1993f7ce32371ef5436f3639074a - Cache libpq/15.4#cbae5e1ee85bd5e959e039e00307e8b1 - Cache lz4/1.9.4#1217a03c990b79aa34ed0faede18f534 - Cache openssl/3.2.1#c7b554068caae5eda12b735ea6f23d70 - Cache pcre2/10.42#a7a2c122056510509a7525c83d6a6695 - Cache poco/1.13.3#007642154974b1f81167b7a3581749aa - Cache sqlite3/3.45.0#3a7911478ffd14e7acc694ac113449b6 - Cache zlib/1.3.1#f52e03ae3d251dec704634230cd806a2 - Cache zstd/1.5.5#e03fb7b37b87f0174e9db4a8407e3f4d - Cache Build requirements nasm/2.15.05#058c93b2214a49ca1cfe9f8f26205568 - Cache strawberryperl/5.32.1.1#8f83d05a60363a422f9033e52d106b47 - Cache Resolved version ranges expat/[>=2.6.2 <3]: expat/2.6.2 openssl/[>=1.1 <4]: openssl/3.2.1 zlib/[>=1.2.11 <2]: zlib/1.3.1

======== Computing necessary packages ======== libmysqlclient/8.1.0: Checking 3 compatible configurations libmysqlclient/8.1.0: Compatible configurations not found in cache, checking servers libmysqlclient/8.1.0: '17f95e77b514cb10429fd6d1341caa3f4f8601fd': compiler.cppstd=17 libmysqlclient/8.1.0: 'f7aadc97e4330647be06fe154f6b265a7c45d500': compiler.cppstd=20 libmysqlclient/8.1.0: 'f708582340555937553616f966ab6d95f6fe79f9': compiler.cppstd=23 Requirements bzip2/1.0.8#457c272f7da34cb9c67456dd217d36c4:e9dea45a36dc6fbd2ad47011f0b43e832dec069d#d0df8ef5d4791cb59c845e3805a76d29 - Cache expat/2.6.2#2d385d0d50eb5561006a7ff9e356656b:32691cf95b72c8c88c619abc6bb0cb483dba217d#e0ccd411c3923b2e85f52c9435cf346d - Cache libmysqlclient/8.1.0#ecca1993f7ce32371ef5436f3639074a:11217f4dcb7b5eed95a271f47f0fe9164efecb85 - Invalid libpq/15.4#cbae5e1ee85bd5e959e039e00307e8b1:a83d8363581a13887a77578c63ad18921cf03430 - Build lz4/1.9.4#1217a03c990b79aa34ed0faede18f534:04a6c37bc15f9f5fab59d7085ff6c17c75bc552d#94f5c67b45e671dde3e9e58f1d4bd9fc - Cache openssl/3.2.1#c7b554068caae5eda12b735ea6f23d70:e5629f8aa4e1e84dffd7801960456a4c475dd814 - Build pcre2/10.42#a7a2c122056510509a7525c83d6a6695:e9bfc2a514c0fe04a2a69228c07f039bf263216a - Build poco/1.13.3#007642154974b1f81167b7a3581749aa:621fc2152473f5c15152e72346259d2759206111 - Invalid sqlite3/3.45.0#3a7911478ffd14e7acc694ac113449b6:e5fb3eac8d9bc91f327b326223b5c53bfa0dee46 - Build zlib/1.3.1#f52e03ae3d251dec704634230cd806a2:04a6c37bc15f9f5fab59d7085ff6c17c75bc552d - Build zstd/1.5.5#e03fb7b37b87f0174e9db4a8407e3f4d:2ff18ea37db632344ad5d9e6cf2152510c726435 - Build Build requirements nasm/2.15.05#058c93b2214a49ca1cfe9f8f26205568:723257509aee8a72faf021920c2874abc738e029#d8ed631ad7024475859e1b94de1f123c - Cache strawberryperl/5.32.1.1#8f83d05a60363a422f9033e52d106b47:522dcea5982a3f8a5b624c16477e47195da2f84f#a365b3810f698e2f0a00fbeece022903 - Cache ERROR: There are invalid packages: libmysqlclient/8.1.0: Cannot build for this configuration: Current cppstd (14) is lower than the required C++ standard (17). poco/1.13.3: Invalid: Current cppstd (14) is lower than the required C++ standard (17).

TabNahida avatar Apr 26 '24 16:04 TabNahida

see https://github.com/xmake-io/xmake/issues/4281#issuecomment-1779374455

waruqi avatar Apr 27 '24 09:04 waruqi

I have changed my xmake.lua into

set_languages("c++20")
set_policy("build.c++.modules", true)

add_rules("mode.debug", "mode.release")
add_requires("conan::poco/1.13.3",{alias = "poco",configs = {settings = "compiler.cppstd=20"}})

target("P1")
    set_kind("static")
    add_files("_2248_.cpp")

target("main")
    set_kind("binary")
    add_files("main.cpp")
    add_packages("poco")
    add_deps("P1")

However, I still received

checking for platform ... windows
checking for architecture ... x64
checking for Microsoft Visual Studio (x64) version ... 2022
note: install or modify (m) these packages (pass -y to skip confirm)?
in conan:
  -> conan::poco/1.13.3 latest [runtimes:"MT"]
please input: y (y/n/m)
y
  => install conan::poco/1.13.3 latest .. failed 
error: install failed!
PS C:\Project\CPP\TestBed\Modules\P1> xmake
checking for platform ... windows
checking for architecture ... x64
checking for Microsoft Visual Studio (x64) version ... 2022
note: install or modify (m) these packages (pass -y to skip confirm)?
in conan:
  -> conan::poco/1.13.3 latest [runtimes:"MT"]
please input: y (y/n/m)
y
  => install conan::poco/1.13.3 latest .. failed 

======== Input profiles ========
Profile host:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=14
compiler.runtime=static
compiler.runtime_type=Release
compiler.version=193
os=Windows
Profile build:
[settings]
arch=x86_64
  => install conan::poco/1.13.3 latest .. failed 

======== Input profiles ========
Profile host:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=20
compiler.runtime=static
compiler.runtime_type=Release
compiler.version=193
os=Windows
Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=14
if you want to get more verbose errors, please see:
  -> C:\Project\CPP\TestBed\Modules\P1\build\.packages\c\conan_poco\1.13.3\latest\cache\installdir.failed\logs\install.txt
error: install failed!

And here is the install.txt

======== Input profiles ========
Profile host:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=20
compiler.runtime=static
compiler.runtime_type=Release
compiler.version=193
os=Windows

Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=14
compiler.runtime=static
compiler.runtime_type=Release
compiler.version=193
os=Windows


======== Computing dependency graph ========
Graph root
    conanfile.txt: C:\Project\CPP\TestBed\Modules\P1\build\.conan\poco\1.13.3\conanfile.txt
Requirements
    bzip2/1.0.8#457c272f7da34cb9c67456dd217d36c4 - Cache
    expat/2.6.2#2d385d0d50eb5561006a7ff9e356656b - Cache
    libmysqlclient/8.1.0#ecca1993f7ce32371ef5436f3639074a - Cache
    libpq/15.4#cbae5e1ee85bd5e959e039e00307e8b1 - Cache
    lz4/1.9.4#1217a03c990b79aa34ed0faede18f534 - Cache
    openssl/3.2.1#c7b554068caae5eda12b735ea6f23d70 - Cache
    pcre2/10.42#a7a2c122056510509a7525c83d6a6695 - Cache
    poco/1.13.3#007642154974b1f81167b7a3581749aa - Cache
    sqlite3/3.45.0#3a7911478ffd14e7acc694ac113449b6 - Cache
    zlib/1.3.1#f52e03ae3d251dec704634230cd806a2 - Cache
    zstd/1.5.5#e03fb7b37b87f0174e9db4a8407e3f4d - Cache
Build requirements
    nasm/2.15.05#058c93b2214a49ca1cfe9f8f26205568 - Cache
    strawberryperl/5.32.1.1#8f83d05a60363a422f9033e52d106b47 - Cache
Resolved version ranges
    expat/[>=2.6.2 <3]: expat/2.6.2
    openssl/[>=1.1 <4]: openssl/3.2.1
    zlib/[>=1.2.11 <2]: zlib/1.3.1

======== Computing necessary packages ========
libmysqlclient/8.1.0: Checking 3 compatible configurations
libmysqlclient/8.1.0: Compatible configurations not found in cache, checking servers
libmysqlclient/8.1.0: '11217f4dcb7b5eed95a271f47f0fe9164efecb85': compiler.cppstd=14
libmysqlclient/8.1.0: '17f95e77b514cb10429fd6d1341caa3f4f8601fd': compiler.cppstd=17
libmysqlclient/8.1.0: 'f708582340555937553616f966ab6d95f6fe79f9': compiler.cppstd=23
poco/1.13.3: Checking 2 compatible configurations
poco/1.13.3: Compatible configurations not found in cache, checking servers
poco/1.13.3: 'a334ff462bae146f2fd7e2c744914a2cdb793aa7': compiler.cppstd=17
poco/1.13.3: 'fb33992a47d3bd8945e42c9dc06b9c069ef819b2': compiler.cppstd=23
Requirements
    bzip2/1.0.8#457c272f7da34cb9c67456dd217d36c4:e9dea45a36dc6fbd2ad47011f0b43e832dec069d#d0df8ef5d4791cb59c845e3805a76d29 - Cache
    expat/2.6.2#2d385d0d50eb5561006a7ff9e356656b:32691cf95b72c8c88c619abc6bb0cb483dba217d#e0ccd411c3923b2e85f52c9435cf346d - Cache
    libmysqlclient/8.1.0#ecca1993f7ce32371ef5436f3639074a:f7aadc97e4330647be06fe154f6b265a7c45d500 - Build
    libpq/15.4#cbae5e1ee85bd5e959e039e00307e8b1:a83d8363581a13887a77578c63ad18921cf03430 - Build
    lz4/1.9.4#1217a03c990b79aa34ed0faede18f534:04a6c37bc15f9f5fab59d7085ff6c17c75bc552d#94f5c67b45e671dde3e9e58f1d4bd9fc - Cache
    openssl/3.2.1#c7b554068caae5eda12b735ea6f23d70:e5629f8aa4e1e84dffd7801960456a4c475dd814 - Build
    pcre2/10.42#a7a2c122056510509a7525c83d6a6695:e9bfc2a514c0fe04a2a69228c07f039bf263216a - Build
    poco/1.13.3#007642154974b1f81167b7a3581749aa:fec2e54eb12caa46b7df8b4c51b12aed1a16bb92 - Build
    sqlite3/3.45.0#3a7911478ffd14e7acc694ac113449b6:e5fb3eac8d9bc91f327b326223b5c53bfa0dee46 - Build
    zlib/1.3.1#f52e03ae3d251dec704634230cd806a2:04a6c37bc15f9f5fab59d7085ff6c17c75bc552d - Build
    zstd/1.5.5#e03fb7b37b87f0174e9db4a8407e3f4d:2ff18ea37db632344ad5d9e6cf2152510c726435 - Build
Build requirements
    nasm/2.15.05#058c93b2214a49ca1cfe9f8f26205568:723257509aee8a72faf021920c2874abc738e029#d8ed631ad7024475859e1b94de1f123c - Cache
    strawberryperl/5.32.1.1#8f83d05a60363a422f9033e52d106b47:522dcea5982a3f8a5b624c16477e47195da2f84f#a365b3810f698e2f0a00fbeece022903 - Cache

======== Installing packages ========
bzip2/1.0.8: Already installed! (1 of 13)
expat/2.6.2: Already installed! (2 of 13)
lz4/1.9.4: Already installed! (3 of 13)

-------- Installing package sqlite3/3.45.0 (4 of 13) --------
sqlite3/3.45.0: Building from source
sqlite3/3.45.0: Package sqlite3/3.45.0:e5fb3eac8d9bc91f327b326223b5c53bfa0dee46
sqlite3/3.45.0: Copying sources to build folder
sqlite3/3.45.0: Building your package in C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b
sqlite3/3.45.0: Calling generate()
sqlite3/3.45.0: Generators folder: C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\build\generators
sqlite3/3.45.0: CMakeToolchain generated: conan_toolchain.cmake
sqlite3/3.45.0: CMakeToolchain generated: CMakePresets.json
sqlite3/3.45.0: Generating aggregated env files
sqlite3/3.45.0: Generated aggregated env files: ['conanbuild.bat', 'conanrun.bat']
sqlite3/3.45.0: Calling build()
sqlite3/3.45.0: Running CMake.configure()
sqlite3/3.45.0: RUN: cmake -G "Visual Studio 17 2022" -DCMAKE_TOOLCHAIN_FILE="C:/Users/TabYe/.conan2/p/b/sqlit563229e676c43/b/build/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/Users/TabYe/.conan2/p/b/sqlit563229e676c43/p" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" "C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\src\.."
-- Using Conan toolchain: C:/Users/TabYe/.conan2/p/b/sqlit563229e676c43/b/build/generators/conan_toolchain.cmake
-- Conan toolchain: CMAKE_GENERATOR_TOOLSET=v143
-- Conan toolchain: Setting BUILD_SHARED_LIBS = OFF
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- The C compiler identification is MSVC 19.39.33523.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE
-- Looking for log in m
-- Looking for log in m - not found
-- Looking for system
-- Looking for system - found
-- Configuring done (5.4s)
-- Generating done (0.0s)
-- Build files have been written to: C:/Users/TabYe/.conan2/p/b/sqlit563229e676c43/b/build

sqlite3/3.45.0: Running CMake.build()
sqlite3/3.45.0: RUN: cmake --build "C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\build" --config Release
适用于 .NET Framework MSBuild 版本 17.9.8+b34f75857

  1>Checking Build System
  Building Custom Rule C:/Users/TabYe/.conan2/p/b/sqlit563229e676c43/b/CMakeLists.txt
  sqlite3.c
  sqlite3.vcxproj -> C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\build\Release\sqlite3.lib
  Building Custom Rule C:/Users/TabYe/.conan2/p/b/sqlit563229e676c43/b/CMakeLists.txt
  shell.c
C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\src\shell.c(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 [C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\build\sqlite3-bin.vcxproj]
C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\src\shell.c(26303,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 [C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\build\sqlite3-bin.vcxproj]
C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\src\shell.c(26338,35): error C2001: 常量中有换行符 [C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\build\sqlite3-bin.vcxproj]
C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\src\shell.c(26339,5): error C2143: 语法错误: 缺少“;”(在“const”的前面) [C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\build\sqlite3-bin.vcxproj]
C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\src\shell.c(26353,16): error C2065: “zBom”: 未声明的标识符 [C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\build\sqlite3-bin.vcxproj]
C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\src\shell.c(26353,16): warning C4047: “=”:“int”与“const char *”的间接级别不同 [C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\build\sqlite3-bin.vcxproj]
C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\src\shell.c(26420,18): error C2065: “zBom”: 未声明的标识符 [C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\build\sqlite3-bin.vcxproj]
C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\src\shell.c(26420,20): error C2065: “zBom”: 未声明的标识符 [C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\build\sqlite3-bin.vcxproj]
C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\src\shell.c(26420,20): warning C4047: “函数”:“const char *”与“int”的间接级别不同 [C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\build\sqlite3-bin.vcxproj]
C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\src\shell.c(26420,20): warning C4024: “oPutsUtf8”: 形参和实参 1 的类型不同 [C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\build\sqlite3-bin.vcxproj]
C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\src\shell.c(26433,18): error C2065: “zBom”: 未声明的标识符 [C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\build\sqlite3-bin.vcxproj]
C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\src\shell.c(26433,20): error C2065: “zBom”: 未声明的标识符 [C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\build\sqlite3-bin.vcxproj]
C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\src\shell.c(26433,20): warning C4047: “函数”:“const char *”与“int”的间接级别不同 [C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\build\sqlite3-bin.vcxproj]
C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\src\shell.c(26433,20): warning C4024: “oPutsUtf8”: 形参和实参 1 的类型不同 [C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\build\sqlite3-bin.vcxproj]

sqlite3/3.45.0: ERROR: 
Package 'e5fb3eac8d9bc91f327b326223b5c53bfa0dee46' build failed
sqlite3/3.45.0: WARN: Build folder C:\Users\TabYe\.conan2\p\b\sqlit563229e676c43\b\build
ERROR: sqlite3/3.45.0: Error in build() method, line 160
	cmake.build()
	ConanException: Error 1 while executing

I think this problem is related with xmake, since when I clone and make the poco with cmake in msvc env, nothing like these happened.

TabNahida avatar Apr 27 '24 15:04 TabNahida

C:\Users\TabYe.conan2\p\b\sqlit563229e676c43\b\src\shell.c(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 [C:\Users\TabYe.conan2\p\b\sqlit563229e676c43\b\build\sqlite3-bin.vcxproj]

这种安装错误,你应该到 conan 那边去反馈,conan 包问题,跟 xmake 没啥关系

waruqi avatar May 08 '24 08:05 waruqi

Bot detected the issue body's language is not English, translate it automatically.


C:\Users\TabYe.conan2\p\b\sqlit563229e676c43\b\src\shell.c(1,1): warning C4819: The file contains characters that cannot be represented in the current code page (936). Please save the file in Unicode format to prevent data loss [C:\Users\TabYe.conan2\p\b\sqlit563229e676c43\b\build\sqlite3-bin.vcxproj]

For this kind of installation error, you should go to conan to report it. The conan package problem has nothing to do with xmake.

Issues-translate-bot avatar May 08 '24 08:05 Issues-translate-bot

C:\Users\TabYe.conan2\p\b\sqlit563229e676c43\b\src\shell.c(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 [C:\Users\TabYe.conan2\p\b\sqlit563229e676c43\b\build\sqlite3-bin.vcxproj]

这种安装错误,你应该到 conan 那边去反馈,conan 包问题,跟 xmake 没啥关系

Thank you.

TabNahida avatar May 08 '24 09:05 TabNahida

C:\Users\TabYe.conan2\p\b\sqlit563229e676c43\b\src\shell.c(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 [C:\Users\TabYe.conan2\p\b\sqlit563229e676c43\b\build\sqlite3-bin.vcxproj]

这种报错在 gbk win 很常见,编译时要加 /utf-8,估计 conan 那没处理

https://github.com/xmake-io/xmake-repo/blob/dev/packages%2Fs%2Fsqlite3%2Fxmake.lua#L44

star-hengxing avatar May 08 '24 10:05 star-hengxing