conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
966 stars 1.78k forks source link

[question] not installing in android poco #20368

Open ZeroXKiritsu opened 1 year ago

ZeroXKiritsu commented 1 year ago

What is your question?

Configure project :

conan install ../src/main/cpp --profile android -s build_type=Debug -s arch=armv7 --build missing -c tools.cmake.cmake_layout:build_folder_vars=['settings.arch']

======== Input profiles ======== Profile host: [settings] arch=armv7 build_type=Debug compiler=clang compiler.cppstd=17 compiler.libcxx=c++_static compiler.version=12 os=Android os.api_level=21 [conf] tools.android:ndk_path=/home/zerox/Android/Sdk/ndk/26.0.10792818/ tools.cmake.cmake_layout:build_folder_vars=['settings.arch']

Profile build: [settings] arch=x86_64 build_type=Release compiler=gcc compiler.cppstd=gnu17 compiler.libcxx=libstdc++11 compiler.version=13 os=Linux

======== Computing dependency graph ======== Graph root conanfile.txt: /home/zerox/chromium/app/src/main/cpp/conanfile.txt Requirements bzip2/1.0.8#411fc05e80d47a89045edc1ee6f23c1d - Cache expat/2.5.0#91e43e4544923e4c934bfad1fa4306f9 - Cache libmysqlclient/8.0.31#3441c9fece86de8f7d96943988327502 - Cache libpq/14.7#171c3ba1fadc7ae7ac9c9c9befd9958c - Cache lz4/1.9.4#1217a03c990b79aa34ed0faede18f534 - Cache openssl/3.1.1#1cbd87ea4577736bee50f0b954941a00 - Cache pcre2/10.42#74a354d74d291503aadffe6453d976f5 - Cache poco/1.12.4#05ceb4ee7bfa19f7cb96741fcebb2a1f - Cache sqlite3/3.42.0#a731fc3f0c93706bb5ced39cdee508d5 - Cache zlib/1.3#06023034579559bb64357db3a53f88a4 - Cache zstd/1.5.5#93372fe14bb7883bd4de82914e0a1841 - Cache Resolved version ranges zlib/[>=1.2.11 <2]: zlib/1.3

======== Computing necessary packages ======== libmysqlclient/8.0.31: Checking 11 compatible configurations libmysqlclient/8.0.31: Compatible configurations not found in cache, checking servers libmysqlclient/8.0.31: 'b2920e64c1a340eaec6757b3815856258df50d3a': compiler.cppstd=98 libmysqlclient/8.0.31: 'eb310fab5ed2b89811d100d95d148a7edacaca26': compiler.cppstd=gnu98 libmysqlclient/8.0.31: '19d7b5ee8576335e47a0c733e9e29eac100326e4': compiler.cppstd=11 libmysqlclient/8.0.31: 'a695cb46f5a0b6617344fad986c59ef169ba8930': compiler.cppstd=gnu11 libmysqlclient/8.0.31: '7ef9a553cda3f55734b6bcb218f85531f825bc7f': compiler.cppstd=14 libmysqlclient/8.0.31: 'b4c1ae372133befdf2e41e794167598c217a6781': compiler.cppstd=gnu14 libmysqlclient/8.0.31: '606993cc6b3b7fc67c12b0dd0a63b29a66b4362e': compiler.cppstd=gnu17 libmysqlclient/8.0.31: '81d1d51171c0f13690bb8c9a5175bc71ddb8b478': compiler.cppstd=20 libmysqlclient/8.0.31: 'e30ee66159f2d90de6566d09f3e5d141c1142f87': compiler.cppstd=gnu20 libmysqlclient/8.0.31: '2aec7af5ff1ac5685d15716fc58ab1e05eba8797': compiler.cppstd=23 libmysqlclient/8.0.31: 'fe0c0b0540b92e673ba5b68710973d6fe20d01a2': compiler.cppstd=gnu23 poco/1.12.4: Checking 11 compatible configurations poco/1.12.4: Compatible configurations not found in cache, checking servers poco/1.12.4: '271dacea5418b7785f2bc874ac835de10445a554': compiler.cppstd=98 poco/1.12.4: '994c380615b2b7694b617bc06e5c13cc08503266': compiler.cppstd=gnu98 poco/1.12.4: '6a0e4b55eae4ad8ed16fb2c868809bda60226ff4': compiler.cppstd=11 poco/1.12.4: 'a049a8dacc642de1f36575a0efcd15d7547a5106': compiler.cppstd=gnu11 poco/1.12.4: '7e2f858d6ede24ac75e91e5699ce83bbe1793326': compiler.cppstd=14 poco/1.12.4: '83a845fbf5652f881b8ab24264851b0ef23d5ad4': compiler.cppstd=gnu14 poco/1.12.4: '661bd5f71e282edf00e3069303721fcc7e417e2d': compiler.cppstd=gnu17 poco/1.12.4: 'fee3b4d617888b713762e60421b1fc574e84bc1e': compiler.cppstd=20 poco/1.12.4: '61ad1d837307a7271c7dfaf44ad3847f2afc6b42': compiler.cppstd=gnu20 poco/1.12.4: '253023b9fdb67dc495caa094494cfdf5fe6d2c40': compiler.cppstd=23 poco/1.12.4: 'caef85446d26ff4d5aa89964eb0b2ac4f814355a': compiler.cppstd=gnu23 Requirements bzip2/1.0.8#411fc05e80d47a89045edc1ee6f23c1d:9628479068bcf9c7e65d9115d64990bdcc3e5117 - Build expat/2.5.0#91e43e4544923e4c934bfad1fa4306f9:c7c3e292f9bb6244701ce3918be6dada86445873 - Build libmysqlclient/8.0.31#3441c9fece86de8f7d96943988327502:dd0a123eb35cd79e1e2c3d22361276a66d7fcc93 - Invalid libpq/14.7#171c3ba1fadc7ae7ac9c9c9befd9958c:85eb9306f0b8dedc3d01a019984dc1c6a9566816 - Build lz4/1.9.4#1217a03c990b79aa34ed0faede18f534:5791918c1eb89ede3aa3243332c47d8aca20455c - Build openssl/3.1.1#1cbd87ea4577736bee50f0b954941a00:64a86edf18e60434e57d5fda794dc1e916df543a - Build pcre2/10.42#74a354d74d291503aadffe6453d976f5:48604bc9c411c8b20a1f15414df109e5911e28a5 - Build poco/1.12.4#05ceb4ee7bfa19f7cb96741fcebb2a1f:abf989fafa8d9a5dbf534e1afe2193913d7b8648 - Build sqlite3/3.42.0#a731fc3f0c93706bb5ced39cdee508d5:1f6807c08b1ccb4849e6b623b4ebf8b832ac2ef9 - Build zlib/1.3#06023034579559bb64357db3a53f88a4:5791918c1eb89ede3aa3243332c47d8aca20455c - Build zstd/1.5.5#93372fe14bb7883bd4de82914e0a1841:6a2a83358319377ef0ee9e46eef963ba079e5f1e - Build

======== Installing packages ======== ERROR: There are invalid packages: libmysqlclient/8.0.31: Cannot build for this configuration: Cross compilation not yet supported by the recipe. Contributions are welcomed.

I cant add to android studio poco and gived this error this is my task:

task conanInstall { def conanExecutable = "conan" def buildDir = new File("app/build") buildDir.mkdirs() ["Debug", "Release"].each { String build_type -> ["armv7", "armv8", "x86", "x86_64"].each { String arch -> def cmd = conanExecutable + " install " + "../src/main/cpp --profile android -s build_type=" + build_type + " -s arch=" + arch + " --build missing -c tools.cmake.cmake_layout:build_folder_vars=['settings.arch']" print(">> ${cmd} \n")

        def sout = new StringBuilder(), serr = new StringWriter()
        def proc = cmd.execute(null, buildDir)
        proc.consumeProcessOutput(sout, serr)
        proc.waitFor()
        println "$sout $serr"
        if (proc.exitValue() != 0) {
            throw new Exception("out> $sout err> $serr" + "\nCommand: ${cmd}")
        }
    }
}

} what i do wrong?

SpaceIm commented 1 year ago

Error is quite explicit. libmysqlclient recipe doesn't support cross-build. Try to disable enable_data_mysql poco option.