Closed myweak closed 9 months ago
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?
His question should also be the same as mine, mdk sdk android.7z is empty when downloaded back!
https://github.com/wang-bin/fvp/issues/17#issuecomment-1689318128
i need to see the log. are you in china? you may need a vpn to download.
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?
#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.
#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?
#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
@wang-bin
I added line message("extract mdk-sdk")
and saw it logged
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
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
Yes. I download manually then fvp build success.
I think maybe this problem is related to timeout when dowload mdk-sdk-android.7z
Will download again when rebuilding your project.