Cmake and make question

According CTA-v4 code tutorial, I do some steps, how can I resolve the problem?
(Build CTA - EOSCTA Docs)

cmake3 -DPackageOnly:Bool=true …/CTA

CMake Warning (dev) in CMakeLists.txt:
No project() command is present. The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command. Add a line of
code such as

project(ProjectName)

near the top of the file, but after cmake_minimum_required().

CMake is pretending there is a “project(Project)” command on the first
line.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in CMakeLists.txt:
cmake_minimum_required() should be called prior to this top-level project()
call. Please see the cmake-commands(7) manual for usage documentation of
both commands.
This warning is for project developers. Use -Wno-dev to suppress it.

grep: /root/…/cta.spec.in: No such file or directory
CMake Error at CMakeLists.txt:77 (string):
string sub-command REPLACE requires at least four arguments.

CMake Error at CMakeLists.txt:80 (include):
include could not find requested file:

…/cmake/UseRPMToolsEnvironment.cmake

CMake Error at CMakeLists.txt:86 (file):
file failed to open for reading (No such file or directory):

/root/…/continuousintegration/docker/ctafrontend/cc7/etc/yum/pluginconf.d/versionlock.list

– Configuring incomplete, errors occurred!

make cta_srpm

make: *** No rule to make target ‘cta_srpm’. Stop.

Hello Patrick, thank you for reaching out.

We are currently in the process of updating our documentation, so the instructions in v4 might be outdated. I would advise trying the steps in the containerized installation page instead: CI Runner in Alma9 - EOSCTA Docs. Could you try this approach instead and let us know if it works?

Regards,
Konstantina

Hi Patrick,

In case you are still wondering about this, we have been streamlining the build process recently. I would advise you to have a look at the updated documentation page on the development setup: Development Setup - CTA Docs.

It would be ideal if you could follow the instructions for setting up the minikube environment and the containerised build/deploy as this ensures correct compilation and prevents pollution of the host machine.
However, if you simply want to build it locally, have a look at the section Local Compilation.

Cheers,
Niels