0

Task is to generate static libraries out of the SDKs we currently have for various OSs.

I have generated the artifacts for my project, use it to run a conan install and cmake in the build_release folder.

I was able to generate a single lib (I changed all the settings to false where it says SHARED - so instead of .lib, .dll and some other file, it generated .lib only).

But when I run conan create ., it complains

poco/1.13.3#00..... Invalid


ERROR: There are invalid packages:
poco/1.13.3: Invalid: Current cppstd (14) is lower than the required C++ standard (17).

Having 14 vs 17 CMAKE_CXX_STANDARD issue. I made sure CMakeLists file sets this parameter to 17.

I even ran the command with 17 explicitly mentioned:

conan install . -o xf_iam_client/*:shared=False --output-folder=build_release --build=missing --profile build_profiles\win_x86_64_msvc_17_193_Release -s compiler.cppstd=17 -v trace

Need help with this error. thanks.

Other things I did:

  1. Installed MSVC 2019 first, then downloaded 2022.

  2. Cleared cache, cleaned the builds, rebuild the file structure, build_release folder is deleted and started over the process using

    cmake --build . --config Release

Still face the same issue.

6
  • 1
    Wrong language Tag? Did you mean C++ instead of C#? Commented Jun 9 at 14:31
  • 1
    The -s compiler.cppstd=17 should work, unless for some reason you have poco in the build context, that is, as tool-require (which is not very expected, as it is a library, not a tool). In that case you would need also -s:b compiler.cppstd=17 to define it in the "build" context too. If not, I'd suggest reporting an issue in github.com/conan-io/conan/issues Commented Jun 9 at 14:35
  • @drodri, thanks, will try to do a cleanup and try again with :b Commented Jun 9 at 15:03
  • @drodri, poco/1.13.3#: - Invalid sqlite3/3.45.0#:# - Download (conan) ProjectName/1.5.0#: - Build zlib/1.3.1#:# - Cache zstd/1.5.5#:# - Download (conan) Build requirements Skipped binaries nasm/2.16.01, strawberryperl/5.32.1.1 ERROR: There are invalid packages: poco/1.13.3: Invalid: Current cppstd (14) is lower than the required C++ standard (17). same error even after :b Commented Jun 9 at 15:14
  • please show a minimal reproducible example with your full conan file and conan profile. If you aren't getting as far as running your cmake build it would simplify your question if you remove cmake references Commented Jun 9 at 17:04

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.