I had CMake errors, while using obs and osc.
53s] CMake Error in :
53s] No CMAKE_CXX_COMPILER could be found.
53s]
53s] Tell CMake where to find the compiler by setting either the environment
53s] variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
53s] to the compiler, or to the compiler name if it is in the PATH.
53s]
53s]
53s] CMake Warning (dev) in CMakeLists.txt:
53s] No cmake_minimum_required command is present. A line of code such as
53s]
53s] cmake_minimum_required(VERSION 3.0)
53s]
53s] should be added at the top of the file. The version specified may be lower
53s] if you wish to support older CMake versions for this project. For more
53s] information run "cmake --help-policy CMP0000".
53s] This warning is for project developers. Use -Wno-dev to suppress it.
53s]
53s] -- Configuring incomplete, errors occurred!
Spec file is:
#
# spec file for package libgreattao2
#
# Copyright (c) 2015 Sławomir Lach <slawek@lach.art.pl>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
Name: libgreattao2
Version: 1.98.0
Release: 2
License: LGPL-3.0
BuildRequires: openssl-devel SDL2_image-devel libsell-devel libnotify-devel glib2-devel cmake
Requires: openssl SDL2_image libsell libnotify glib2
BuildRoot: %{_tmppath}/libgreattao2-1.98.0
Summary: Library to generating interfaces
Source: libgreattao2-1.98.0.tar.gz
%description
Library responsible for interaction with user. It could works in one of three modes: shell, normal, network. In normal mode it could to load one of backend: GTK+, Qt or console. It also using xml-like files with rules to generate GUI/CUI.
%prep
%setup -q
%build
make %{?_smp_mflags} INSTALLPATH=/usr/ -C Modules/common
make %{?_smp_mflags} INSTALLPATH=/usr/ -C Modules/GTK+
make %{?_smp_mflags} INSTALLPATH=/usr/ -C Modules/console
(
mkdir -p Modules/QT5/src/build
cd Modules/QT5/src/build
cmake ..
make
)
make %{?_smp_mflags} INSTALLPATH=/usr/
%install
mkdir -p ${RPM_BUILD_ROOT}/usr/share/tao-design
cp -r tao-design ${RPM_BUILD_ROOT}/usr/share
mkdir -p ${RPM_BUILD_ROOT}/usr/%_lib/mWidgets_modules
cp Modules/tao-*.so.1.0 -t ${RPM_BUILD_ROOT}/usr/%_lib/mWidgets_modules
ln -fs tao-gtk.so.1.0 ${RPM_BUILD_ROOT}/usr/%_lib/mWidgets_modules/tao-gtk.so.1
ln -fs tao-gtk.so.1 ${RPM_BUILD_ROOT}/usr/%_lib/mWidgets_modules/tao-gtk.so
cp libgreattao.so.2.0 ${RPM_BUILD_ROOT}/usr/%_lib
ln -fs libgreattao.so.2.0 ${RPM_BUILD_ROOT}/usr/%_lib/libgreattao.so.2
ln -fs libgreattao.so.2 ${RPM_BUILD_ROOT}/usr/%_lib/libgreattao.so
mkdir -p ${RPM_BUILD_ROOT}/usr/include/libgreattao
cp Includes/tao.h ${RPM_BUILD_ROOT}/usr/include/libgreattao
cp Includes/config.h ${RPM_BUILD_ROOT}/usr/include/libgreattao
cp Includes/network.h ${RPM_BUILD_ROOT}/usr/include/libgreattao
cp Includes/log.h ${RPM_BUILD_ROOT}/usr/include/libgreattao
%files
%defattr(-,root,root)
%doc LICENSE
%dir %{_libdir}/mWidgets_modules
%dir /usr/share/tao-design
%{_libdir}/libgreattao.so*
/usr/share/tao-design/*
%{_libdir}/mWidgets_modules/tao-console.so.1.0
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%package devel
Summary: Development files for libgreattao
Requires: %{name} = %{version}
%description devel
Development files for libgreattao\
%files devel
%defattr(-,root,root)
%dir %{_includedir}/libgreattao
/usr/include/libgreattao/*
%package module-gtk2
Summary: Gtk+2 backend for libgreattao
Requires: %{name}, gtk2
BuildRequires: gtk2-devel
%description module-gtk2
Backend for libgreattao, which could be used, when libgreattao working in normal mode
%files module-gtk2
%defattr(-,root,root)
%dir %{_libdir}/mWidgets_modules
%{_libdir}/mWidgets_modules/tao-gtk.so.1
%{_libdir}/mWidgets_modules/tao-gtk.so.1.0
%{_libdir}/mWidgets_modules/tao-gtk.so
%package module-qt4
Summary: Qt4 backend for libgreattao
Requires: %{name}, pkgconfig(Qt5Core), pkgconfig(Qt5Widget)
%description module-qt4
Backend for libgreattao, which could be used, when libgreattao working in normal mode
%files module-qt4
%defattr(-,root,root)
%dir %{_libdir}/mWidgets_modules
%{_libdir}/mWidgets_modules/tao-Qt5.so.1.0