quic / qbox

Qbox
Other
42 stars 10 forks source link

Getting meson seup error at CMakeLists.txt at line 198 #9

Open Aabhash23 opened 3 months ago

Aabhash23 commented 3 months ago

CMake Error at CMakeLists.txt:198 (message): The command 'meson setup' failed with the output error:

command used : cmake -B build -DCPM_SOURCE_CACHE=pwd/Packages

alwalidsalama commented 3 months ago

Is there a reason why you want to pass -DCPM_SOURCE_CACHE? if you are just trying to build qbox for aarch64 try this: cmake -Bbuild -DLIBQEMU_TARGETS=aarch64 -DGS_ENABLE_VIRCLRENDERER=OFF -DGS_ENABLE_VIRGLRENDERER=OFF

Aabhash23 commented 3 months ago

Im still getting the same error Im using ubuntu lts 20 i have installed the dependencies but still facing the issues

alwalidsalama commented 3 months ago

could you show me the complete error message?

Aabhash23 commented 3 months ago

-- CPM: adding package SystemCCCI@ (main at /home/Desktop/qbox/Packages/systemccci/ff6a31bfacc92a6c96ecab84ed4489da052c2db2) -- Using SystemCCI (/home/Desktop/qbox/Packages/systemccci/ff6a31bfacc92a6c96ecab84ed4489da052c2db2) -- CPM: adding package initiator_id@ (/home/Desktop/qbox/Packages/scp/69b7bfe331405c2ecd9d5ac8515604619b0c5dd3/tlm_extensions/initiator_id) -- CPM: adding package path_trace@ (/home/Desktop/qbox/Packages/scp/69b7bfe331405c2ecd9d5ac8515604619b0c5dd3/tlm_extensions/path_trace) -- CPM: adding package report@ (/home/Desktop/qbox/Packages/scp/69b7bfe331405c2ecd9d5ac8515604619b0c5dd3/report) -- Module support is disabled. -- Version: 9.1.0 -- Build type: Release -- CXX_STANDARD: 14 -- Required features: cxx_variadic_templates -- CPM: report: adding package fmt@9.1.0 (9.1.0 at /home/Desktop/qbox/Packages/fmt/71777dfd3ab98725b13f54f86915ba641d2f3ce2) -- CPM: adding package SCP@ (main at /home/Desktop/qbox/Packages/scp/69b7bfe331405c2ecd9d5ac8515604619b0c5dd3) -- CPM: adding package rpclib@2.3.0 (v2.3.0 at /home/Desktop/qbox/Packages/rpclib/d3e988855411a37a9f7744dffd41e2bf821803fe) -- pybind11 v2.11.1 -- CPM: adding package pybind11@2.11.1 (v2.11.1 at /home/Desktop/qbox/Packages/pybind11/fc3d4938b5d4afd094c87d5a8d8ce29648b36e52) -- CPM: adding package lua@5.4.2 (v5.4.2 at /home/Desktop/qbox/Packages/lua/43eeec4c592cc3dddd625e92d4e9176effe470d6) -- CPM: adding package libslirp@4.8.0 (v4.8.0 at /home/Desktop/qbox/Packages/libslirp/553fca7b1c9c81c08f055c2dea689a8f60b0d3b9) CMake Error at CMakeLists.txt:198 (message): The command 'meson setup' failed with the output error:

-- Configuring incomplete, errors occurred!

See if this helps

alwalidsalama commented 3 months ago

Please ensure that Meson is installed and accessible in your system’s PATH. You can verify this by running meson --version in your terminal.

Aabhash23 commented 3 months ago

which meson /home/.local/bin/meson

sir it is perfectly installed in my system path

alwalidsalama commented 3 months ago

It seems like you ended up installing the libslirp under/home/Desktop/qbox/Packages/libslirp which is expected by meson to be under <cmake_binary_dir>/_deps. Please remove your build directory and start again without setting -DCPM_SOURCE_CACHE

Aabhash23 commented 3 months ago

CMake Error at /snap/cmake/1409/share/cmake-3.30/Modules/FetchContent.cmake:1918 (message): Build step for libqemu failed: 2 Call Stack (most recent call first): /snap/cmake/1409/share/cmake-3.30/Modules/FetchContent.cmake:1609 (__FetchContent_populateSubbuild) /snap/cmake/1409/share/cmake-3.30/Modules/FetchContent.cmake:2145:EVAL:2 (FetchContent_doPopulation) /snap/cmake/1409/share/cmake-3.30/Modules/FetchContent.cmake:2145 (cmake_language) /snap/cmake/1409/share/cmake-3.30/Modules/FetchContent.cmake:1978:EVAL:1 (FetchContent_Populate) /snap/cmake/1409/share/cmake-3.30/Modules/FetchContent.cmake:1978 (cmake_language) build/_deps/cpm-cmake-src/cmake/CPM.cmake:738 (FetchContent_Populate) build/_deps/cpm-cmake-src/cmake/CPM.cmake:595 (cpm_fetch_package) build/_deps/cpm-cmake-src/cmake/CPM.cmake:493 (CPMAddPackage) cmake/boilerplate.cmake:332 (CPMAddPackage) CMakeLists.txt:217 (gs_addpackage)

This comes up with another error

CMakeLists 217 : gs_addpackage(qemu/qemu GIT_SUBMODULES "CMakeLists.txt")

Aabhash23 commented 3 months ago

set(GREENSOCS_GIT "" CACHE STRING "Git directory from which to clone all gs repositories") set(QEMU_PATH_NAME "https://github.com/qemu/qemu" CACHE STRING "The name of the path of qemu in the git directory") Do i have to change anything in the above lines for GREENSOCS_GIT and QEMU_PATH_NAME

alwalidsalama commented 3 months ago

Hello @Aabhash23, could you check what is the value of "${GIT_URL}" for you? if it "" you may need to add this to your CMakeLists.txt#L14

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 766aa4a..a10f066 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,6 +12,10 @@ execute_process(COMMAND git config --get remote.origin.url
     OUTPUT_STRIP_TRAILING_WHITESPACE
     OUTPUT_VARIABLE GIT_URL)

+if("${GIT_URL}" STREQUAL "")
+    set(GIT_URL "https://github.com/quic/qbox.git")
+endif()
+
 string(FIND "${GIT_URL}" "github" GITHUB_URL)
 if(GITHUB_URL EQUAL -1)
     set(QEMU_PATH_NAME "qemu/qemu")

Best regards Alwalid Salama