Giter VIP home page Giter VIP logo

Comments (12)

wang-bin avatar wang-bin commented on May 30, 2024 1

#17 (comment)
i need to see the log. are you in china? you may need a vpn to download.

do you think its a good idea to set GitHub releases and get the archives from it? or there is a limitation to it?
maybe as a fallback?

A fallback is a good idea. But I still need the log to known the STATUS value when download failed.

yes i dont mind the logs to keep track of what happens, can a check for md5 or sha256 be added or you think it will be a not needed work?

i upload sdk to the same url, so the content changes, md5 is not an option

from fvp.

wang-bin avatar wang-bin commented on May 30, 2024

add a line before execute_process https://github.com/wang-bin/fvp/blob/master/android/CMakeLists.txt#L57

if(NOT EXISTS ${MDK_SDK_SAVE})
    message("Downloading mdk-sdk from ${MDK_SDK_URL}")
    file(DOWNLOAD ${MDK_SDK_URL} ${MDK_SDK_SAVE} SHOW_PROGRESS)
  endif()
  message("extract mdk-sdk")  # ADD THIS LINE
  execute_process(

then show me the output again.

Does /Users/womo/.pub-cache/hosted/pub.dev/fvp-0.2.1/android/mdk-sdk-android.7z exist?

from fvp.

AnonymHK avatar AnonymHK commented on May 30, 2024

His question should also be the same as mine, mdk sdk android.7z is empty when downloaded back!

from fvp.

wang-bin avatar wang-bin commented on May 30, 2024

#17 (comment)

i need to see the log. are you in china? you may need a vpn to download.

from fvp.

abdelaziz-mahdy avatar abdelaziz-mahdy commented on May 30, 2024

#17 (comment)

i need to see the log. are you in china? you may need a vpn to download.

do you think its a good idea to set GitHub releases and get the archives from it? or there is a limitation to it?

maybe as a fallback?

from fvp.

wang-bin avatar wang-bin commented on May 30, 2024

#17 (comment)
i need to see the log. are you in china? you may need a vpn to download.

do you think its a good idea to set GitHub releases and get the archives from it? or there is a limitation to it?

maybe as a fallback?

A fallback is a good idea. But I still need the log to known the STATUS value when download failed.

from fvp.

abdelaziz-mahdy avatar abdelaziz-mahdy commented on May 30, 2024

#17 (comment)
i need to see the log. are you in china? you may need a vpn to download.

do you think its a good idea to set GitHub releases and get the archives from it? or there is a limitation to it?
maybe as a fallback?

A fallback is a good idea. But I still need the log to known the STATUS value when download failed.

yes i dont mind the logs to keep track of what happens, can a check for md5 or sha256 be added or you think it will be a not needed work?

from fvp.

vanvixi avatar vanvixi commented on May 30, 2024

@wang-bin
I added line message("extract mdk-sdk") and saw it logged
Screenshot 2023-09-05 at 14 17 22

from fvp.

vanvixi avatar vanvixi commented on May 30, 2024

This is full log

[CXX1405] error when building with cmake using /Users/tastech-sakura/.pub-cache/hosted/pub.dev/fvp-0.4.0/android/CMakeLists.txt: -- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Users/tastech-sakura/Library/Android/sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring incomplete, errors occurred!
See also "/Users/tastech-sakura/.pub-cache/hosted/pub.dev/fvp-0.4.0/android/.cxx/Debug/3zb46495/arm64-v8a/CMakeFiles/CMakeOutput.log".

C++ build system [configure] failed while executing:
    /Users/tastech-sakura/Library/Android/sdk/cmake/3.18.1/bin/cmake \
      -H/Users/tastech-sakura/.pub-cache/hosted/pub.dev/fvp-0.4.0/android \
      -DCMAKE_SYSTEM_NAME=Android \
      -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
      -DCMAKE_SYSTEM_VERSION=16 \
      -DANDROID_PLATFORM=android-16 \
      -DANDROID_ABI=arm64-v8a \
      -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a \
      -DANDROID_NDK=/Users/tastech-sakura/Library/Android/sdk/ndk/23.1.7779620 \
      -DCMAKE_ANDROID_NDK=/Users/tastech-sakura/Library/Android/sdk/ndk/23.1.7779620 \
      -DCMAKE_TOOLCHAIN_FILE=/Users/tastech-sakura/Library/Android/sdk/ndk/23.1.7779620/build/cmake/android.toolchain.cmake \
      -DCMAKE_MAKE_PROGRAM=/Users/tastech-sakura/Library/Android/sdk/cmake/3.18.1/bin/ninja \
      -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/tastech-sakura/Sakura/Dev/triptube/trimo/build/fvp/intermediates/cxx/Debug/3zb46495/obj/arm64-v8a \
      -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/Users/tastech-sakura/Sakura/Dev/triptube/trimo/build/fvp/intermediates/cxx/Debug/3zb46495/obj/arm64-v8a \
      -DCMAKE_BUILD_TYPE=Debug \
      -B/Users/tastech-sakura/.pub-cache/hosted/pub.dev/fvp-0.4.0/android/.cxx/Debug/3zb46495/arm64-v8a \
      -GNinja \
      -DANDROID_STL=c++_shared
  from /Users/tastech-sakura/.pub-cache/hosted/pub.dev/fvp-0.4.0/android
CMake Warning at /Users/tastech-sakura/Library/Android/sdk/ndk/23.1.7779620/build/cmake/android-legacy.toolchain.cmake:416 (message):
  An old version of CMake is being used that cannot automatically detect
  compiler attributes.  Compiler identification is being bypassed.  Some
  values may be wrong or missing.  Update to CMake 3.19 or newer to use
  CMake's built-in compiler identification.
Call Stack (most recent call first):
  /Users/tastech-sakura/Library/Android/sdk/ndk/23.1.7779620/build/cmake/android.toolchain.cmake:55 (include)
  /Users/tastech-sakura/Library/Android/sdk/cmake/3.18.1/share/cmake-3.18/Modules/CMakeDetermineSystem.cmake:93 (include)
  CMakeLists.txt:8 (project)


CMake Warning at /Users/tastech-sakura/Library/Android/sdk/ndk/23.1.7779620/build/cmake/android-legacy.toolchain.cmake:416 (message):
  An old version of CMake is being used that cannot automatically detect
  compiler attributes.  Compiler identification is being bypassed.  Some
  values may be wrong or missing.  Update to CMake 3.19 or newer to use
  CMake's built-in compiler identification.
Call Stack (most recent call first):
  /Users/tastech-sakura/Library/Android/sdk/ndk/23.1.7779620/build/cmake/android.toolchain.cmake:55 (include)
  /Users/tastech-sakura/.pub-cache/hosted/pub.dev/fvp-0.4.0/android/.cxx/Debug/3zb46495/arm64-v8a/CMakeFiles/3.18.1-g262b901/CMakeSystem.cmake:6 (include)
  /Users/tastech-sakura/.pub-cache/hosted/pub.dev/fvp-0.4.0/android/.cxx/Debug/3zb46495/arm64-v8a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)


------------->extract mdk-sdk
CMake Error: Problem with archive_read_next_header(): 
CMake Error: Problem extracting tar: /Users/tastech-sakura/.pub-cache/hosted/pub.dev/fvp-0.4.0/android/mdk-sdk-android.7z
CMake Error at CMakeLists.txt:65 (message):
  Failed to extract mdk-sdk.  You can download manually from
  https://sourceforge.net/projects/mdk-sdk/files/nightly/mdk-sdk-android.7z
  and extract to
  /Users/tastech-sakura/.pub-cache/hosted/pub.dev/fvp-0.4.0/android

from fvp.

wang-bin avatar wang-bin commented on May 30, 2024

You can download manually from
https://sourceforge.net/projects/mdk-sdk/files/nightly/mdk-sdk-android.7z
and extract to
/Users/tastech-sakura/.pub-cache/hosted/pub.dev/fvp-0.4.0/android

from fvp.

vanvixi avatar vanvixi commented on May 30, 2024

Yes. I download manually then fvp build success.
I think maybe this problem is related to timeout when dowload mdk-sdk-android.7z

from fvp.

wang-bin avatar wang-bin commented on May 30, 2024

Will download again when rebuilding your project.

from fvp.

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.