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

Errors during cmake #1

Open
kerat71 opened this issue Oct 6, 2024 · 3 comments
Open

Errors during cmake #1

kerat71 opened this issue Oct 6, 2024 · 3 comments

Comments

@kerat71
Copy link

kerat71 commented Oct 6, 2024

Hi, I'm trying to build OpenLayout as alternative to SprintLayout6 but I;m getting errors:
milen@milen-IdeaPad-Pro-5-16APH8:~/Документи/OpenLayout-qt/build$ cmake ..
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.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 CMakeLists.txt:5 (find_package):
By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"Qt5Widgets", but CMake did not find one.

Could not find a package configuration file provided by "Qt5Widgets" with
any of the following names:

Qt5WidgetsConfig.cmake
qt5widgets-config.cmake

Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set
"Qt5Widgets_DIR" to a directory containing one of the above files. If
"Qt5Widgets" provides a separate development package or SDK, be sure it has
been installed.

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

cmake_minimum_required(VERSION 3.25)

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!
Please, provide some help here? What I missed? Attach log.
CMakeOutput.log

@nikita-yfh
Copy link
Owner

nikita-yfh commented Oct 10, 2024

Hello, the OpenLayout is still too raw to use as an alternative.

You can compile it newest version by installing QT5:
sudo apt install qtbase5-dev

Or you can compile older version on WXwidgets:

git checkout wx
mkdir build
cd build
cmake ..
make -j$(nproc)

I need to update the readme...

@kerat71
Copy link
Author

kerat71 commented Oct 10, 2024

Hi, thank you for the answer. It builds! But now how to install?
"sudo make install" return:
make: *** Няма правило за изграждане на целта „install“. Край.
This is something like "(make: *** No rule to make target 'install'. Stop.)"

Here is build directory content:
drwxrwxr-x 4 milen milen 4096 окт 10 21:43 .
drwxr--r-- 6 milen milen 4096 окт 10 21:42 ..
-rw-rw-r-- 1 milen milen 16622 окт 10 21:42 CMakeCache.txt
drwxrwxr-x 7 milen milen 4096 окт 10 21:43 CMakeFiles
-rw-rw-r-- 1 milen milen 1664 окт 10 21:42 cmake_install.cmake
-rw-rw-r-- 1 milen milen 26156 окт 10 21:42 Makefile
-rwxrwxr-x 1 milen milen 754528 окт 10 21:43 openlayout
drwxrwxr-x 4 milen milen 4096 окт 10 21:43 openlayout_autogen

@nikita-yfh
Copy link
Owner

There is no make install there right now... It's too raw yet

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