4lex4 / scantailor-advanced

ScanTailor Advanced is the version that merges the features of the ScanTailor Featured and ScanTailor Enhanced versions, brings new ones and fixes.
GNU General Public License v3.0
1.15k stars 128 forks source link

Cmake Error on Ubuntu 22.04 #194

Closed THgithub19 closed 1 year ago

THgithub19 commented 1 year ago

Trying to build STA from git with gcc 11.2 on Ubuntu 22.04 I get an error message, and the build process is aborted.

`/scantailor-advanced/build$ cmake -G "Unix Makefiles" -S ../src -B . 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.

-- The C compiler identification is GNU 11.2.0 -- The CXX compiler identification is GNU 11.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at core/CMakeLists.txt:130 (translation_sources): Unknown CMake command "translation_sources".

CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 3.22)

should be added at the top of the file. The version specified may be lower if you wish to support older CMake versions for this project. For more information run "cmake --help-policy CMP0000". This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred! See also "/home/tobias/Downloads/scantailor-advanced/build/CMakeFiles/CMakeOutput.log".`

THgithub19 commented 1 year ago

This works: cmake -S . -B build cmake --build build

The building instructions given here https://github.com/4lex4/scantailor-libs-build: mkdir build; cd build cmake -G "Unix Makefiles" --build .. did not work here.