@bvonhall I have tried compiling QC from sources in a direct way, that is simply running CMake outside of the alibuild environment and trying to pick the packages from the FLP suite.
What I am trying to do is basically the following:
cd QualityControl
mkdir build
cd build
cmake3 ..
However at the moment I am stuck with several issues:
- in
/opt/o2/lib/cmake/O2/Findms_gsl.cmake
the Microsoft.GSL::GSL
target is not global. I had to add
set_target_properties(Microsoft.GSL::GSL PROPERTIES IMPORTED_GLOBAL TRUE)
before
add_library(ms_gsl::ms_gsl ALIAS Microsoft.GSL::GSL)
to avoid the following error:
CMake Error at /opt/o2/lib/cmake/O2/Findms_gsl.cmake:22 (add_library):
add_library cannot create ALIAS target "ms_gsl::ms_gsl" because target
"Microsoft.GSL::GSL" is imported but not globally visible.
Call Stack (most recent call first):
/opt/o2/lib/cmake/O2/O2Dependencies.cmake:76 (find_package)
/opt/o2/lib/cmake/O2/O2Config.cmake:11 (include)
CMakeLists.txt:96 (find_package)
- the
o2-ROOT
package does not provide the CMake configuration files. I have tried to copy and adapt those installed by aliBuild, but it seems not so trivial and I still get lots of CMake errors
-
RapidJSON
is not installed, and installing rapidjson-devel
fails due to file conflicts with mesos
:
Transaction check error:
file /usr/include/rapidjson/allocators.h from install of rapidjson-devel-1.1.0-2.el7.noarch conflicts with file from package mesos-1.11.0-2.0.1.el7.x86_64
file /usr/include/rapidjson/document.h from install of rapidjson-devel-1.1.0-2.el7.noarch conflicts with file from package mesos-1.11.0-2.0.1.el7.x86_64
file /usr/include/rapidjson/encodedstream.h from install of rapidjson-devel-1.1.0-2.el7.noarch conflicts with file from package mesos-1.11.0-2.0.1.el7.x86_64
file /usr/include/rapidjson/encodings.h from install of rapidjson-devel-1.1.0-2.el7.noarch conflicts with file from package mesos-1.11.0-2.0.1.el7.x86_64
file /usr/include/rapidjson/error/en.h from install of rapidjson-devel-1.1.0-2.el7.noarch conflicts with file from package mesos-1.11.0-2.0.1.el7.x86_64
I ended up doing
sudo yum install alisw-RapidJSON+v1.1.0-alice2-11
and
export RapidJSON_ROOT=/opt/alisw/el7/RapidJSON/v1.1.0-alice2-11
but I guess this is not the right way to go…
3. I get a lot of error related to abseil
, however I cannot find any abseil development package I could install, and no O2 package (included o2-grpc
) seems to depend on abseil:
-- BASENAME parameter is deprecated. Will be ignored
-- BASENAME parameter is deprecated. Will be ignored
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Configuring done
CMake Error at Framework/CMakeLists.txt:39 (add_library):
Target "QualityControl" links to target "absl::optional" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
CMake Error at Framework/CMakeLists.txt:39 (add_library):
Target "QualityControl" links to target "absl::time" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
...........
That’s were I am at the moment… hope it can help.
Cheers, Andrea