Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Aabhash23 opened this issue Aug 13, 2024 · 10 comments
Open

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

Aabhash23 opened this issue Aug 13, 2024 · 10 comments

Comments

@Aabhash23
Copy link

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
Copy link
Contributor

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
Copy link
Author

Aabhash23 commented Aug 13, 2024

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

@alwalidsalama
Copy link
Contributor

could you show me the complete error message?

@Aabhash23
Copy link
Author

-- 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 [email protected] (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 [email protected] (v2.3.0 at /home/Desktop/qbox/Packages/rpclib/d3e988855411a37a9f7744dffd41e2bf821803fe)
-- pybind11 v2.11.1
-- CPM: adding package [email protected] (v2.11.1 at /home/Desktop/qbox/Packages/pybind11/fc3d4938b5d4afd094c87d5a8d8ce29648b36e52)
-- CPM: adding package [email protected] (v5.4.2 at /home/Desktop/qbox/Packages/lua/43eeec4c592cc3dddd625e92d4e9176effe470d6)
-- CPM: adding package [email protected] (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
Copy link
Contributor

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
Copy link
Author

which meson
/home/.local/bin/meson

sir it is perfectly installed in my system path

@alwalidsalama
Copy link
Contributor

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
Copy link
Author

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
Copy link
Author

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants