Forum Replies Created
-
AuthorPosts
-
CedricBlocked
Hi all,
I am getting the same errors. I cannot use the apt install because I do not have admin privileges.
Can we reopen this thread?
Kind regards,
Cedric
CedricBlockedDear all,
I also seem to be running in the same CMake Error:
CMake Error at SofaKernel/SofaFramework/SofaMacros.cmake:489 (message): Missing parameter VALUE. Call Stack (most recent call first): SofaKernel/SofaFramework/CMakeLists.txt:26 (sofa_set_01)
It indicated that the issue is in the CMakeLists of the SofaFramework. Here I could see that line 26 has been called:
sofa_set_01(SOFA_WITH_DEPRECATED_COMPONENTS_ VALUE ${SOFA_WITH_DEPRECATED_COMPONENTS}) # build_option_deprecated_components.h.in
This corresponds to the following piece of code in the SofaMacros.cmake (line 489)
macro(sofa_set_01 name) set(optionArgs PARENT_SCOPE BOTH_SCOPES) set(oneValueArgs VALUE) set(multiValueArgs) cmake_parse_arguments("ARG" "${optionArgs}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} ) # Required arguments foreach(arg ARG_VALUE) if("${${arg}}" STREQUAL "") string(SUBSTRING "${arg}" 4 -1 arg_name) message(SEND_ERROR "Missing parameter ${arg_name}.") endif() endforeach() if(ARG_VALUE) if(ARG_BOTH_SCOPES OR NOT ARG_PARENT_SCOPE) set(${name} 1) endif() if(ARG_BOTH_SCOPES OR ARG_PARENT_SCOPE) set(${name} 1 PARENT_SCOPE) endif() else() if(ARG_BOTH_SCOPES OR NOT ARG_PARENT_SCOPE) set(${name} 0) endif() if(ARG_BOTH_SCOPES OR ARG_PARENT_SCOPE) set(${name} 0 PARENT_SCOPE) endif() endif() endmacro()
I do not understand why an empty string is passed as VALUE which triggers the ERROR message.
I am trying to build Sofa using:
Windows Version 10.0.19041.685
MSVS 2019
CMake Version 3.19.1
Sofa V20.06Hopefully Hugo could share how he resolved the issue of Dina.
Kind regards,
Cedric
-
AuthorPosts