Coder Social home page Coder Social logo

Comments (3)

FrankXie05 avatar FrankXie05 commented on June 25, 2024

@strelokndv Thanks for posting this issue, you can refer to this : android/ndk#1945 (comment)

from vcpkg.

FrankXie05 avatar FrankXie05 commented on June 25, 2024

Sorry, I don't have clang's compiler environment. I use gcc not clang.
I tried it locally but didn't reproduce this issue:

Test@docker:~/Frank/vcpkg$ ./vcpkg install libsodium:arm64-android
Computing installation plan...
The following packages will be built and installed:
    libsodium:[email protected]#1
Detecting compiler hash for triplet arm64-android...
Restored 0 package(s) from /home/Test/.cache/vcpkg/archives in 10.6 us. Use --debug to see more details.
Installing 1/1 libsodium:[email protected]#1...
Building libsodium:[email protected]#1...
-- Using cached jedisct1-libsodium-1.0.19.tar.gz.
-- Extracting source /home/Test/Frank/vcpkg/downloads/jedisct1-libsodium-1.0.19.tar.gz
-- Using source at /home/Test/Frank/vcpkg/buildtrees/libsodium/src/1.0.19-fdaa0be457.clean
-- Getting CMake variables for arm64-android-dbg
-- Getting CMake variables for arm64-android-rel
-- Generating configure for arm64-android
-- Finished generating configure for arm64-android
-- Configuring arm64-android-dbg
-- Configuring arm64-android-rel
-- Building arm64-android-dbg
-- Installing arm64-android-dbg
-- Building arm64-android-rel
-- Installing arm64-android-rel
-- Fixing pkgconfig file: /home/Test/Frank/vcpkg/packages/libsodium_arm64-android/lib/pkgconfig/libsodium.pc
-- Fixing pkgconfig file: /home/Test/Frank/vcpkg/packages/libsodium_arm64-android/debug/lib/pkgconfig/libsodium.pc
-- Installing: /home/Test/Frank/vcpkg/packages/libsodium_arm64-android/share/libsodium/copyright
-- Performing post-build validation
Stored binaries in 1 destinations in 197 ms.
Elapsed time to handle libsodium:arm64-android: 32 s
libsodium:arm64-android package ABI: 89987dbbecb4494a99b3fe235b8fec88c01a5ca1eff1fe3d2cbc209c89536aff
Total install time: 32 s
libsodium provides CMake targets:

  # this is heuristically generated, and may not be correct
  find_package(unofficial-sodium CONFIG REQUIRED)
  target_link_libraries(main PRIVATE unofficial-sodium::sodium)

libsodium provides pkg-config modules:

    # A modern and easy-to-use crypto library
    libsodium

Test@docker:~/Frank/vcpkg$ gcc --version
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE

from vcpkg.

dg0yt avatar dg0yt commented on June 25, 2024

Sorry, I don't have clang's compiler environment. I use gcc not clang.

If you have a suitable NDK, you have clang.
gcc in NDK has been deprecated a while ago. It is not the default with NDK r25 which is used in VCPKG CI.

$ gcc --version
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0

This is the not compiler used when building for android. See config or install log.


FTR the error is reproducible with NDK r26.

from vcpkg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.