Verified Commit ebc8485f authored by ita1024's avatar ita1024

Configuration tests for FreeBSD

parent 6509841a
Semantik 1.0.1
--------------
* Fix improper pdf document dimensions
* Added installation notes for Fedora
Semantik 1.0.0
--------------
* Port to KDE5 and Python 3
......
......@@ -6,15 +6,15 @@ Source code: https://github.com/ita1024/semantik
1. Compilation and installation:
The main dependencies are Qt webengine, KDE 5 and Python 3.
The main dependencies are Qt Webengine, KDE 5 and Python 3. Here are
a few examples for typical setups:
A few dependencies may be tricky to find, for example:
Ubuntu: apt install libkf5kdelibs4support-dev libqt5svg5-dev qtwebengine5-dev qtpositioning5-dev python3-dev kio-dev
Gentoo: emerge --ask kde-frameworks/kdelibs4support dev-qt/qtwebengine
Suse: zypper install python3-devel kio-devel kiconthemes-devel ki18n-devel kdelibs4support-devel
Fedora: dnf install python3-devel kf5-kio-devel kf5-kdelibs4support-devel kf5-ki18n-devel kf5-kiconthemes-devel gcc-c++ qt5-linguist qt5-qtsvg-devel qt5-qtwebengine-devel
For troubleshooting, make sure that the file libKF5KDELibs4Support.so is present on the system
Fedora: dnf install python3-devel kf5-kio-devel kf5-kdelibs4support-devel kf5-ki18n-devel kf5-kiconthemes-devel
gcc-c++ qt5-linguist qt5-qtsvg-devel qt5-qtwebengine-devel
FreeBSD: pkg add qt5-svg python36 qt5-webengine kf5-kio kf5-kdelibs4support kf5-ki18n kf5-kiconthemes
To build the project, run:
./waf configure build
......
......@@ -3,7 +3,7 @@
# Thomas Nagy, 2007-2016 GPLV3
APPNAME = 'semantik'
VERSION = '1.0.0'
VERSION = '1.0.1'
top = '.'
......@@ -220,10 +220,37 @@ def configure(conf):
elif lst[0].endswith('.defines'):
conf.env.append_value('DEFINES_KDECORE', lst[1])
conf.env.append_value('INCLUDES_KDECORE', '/usr/include/KF5/KDELibs4Support')
conf.env.append_value('LIB_KDECORE', 'KF5KDELibs4Support')
conf.check(fragment='#include <kio/job.h>\n#include <KDE/KDialog>\n', features='cxx qt5',
msg='Checking for kdelibs4support', use='KDECORE QT5CORE QT5GUI QT5WIDGETS')
for x in ('', '/usr/include/KF5/KDELibs4Support', '/usr/local/include/KF5/KDELibs4Support'):
conf.env.stash()
if os.path.exists(x):
conf.env.append_value('INCLUDES_KDECORE', x)
try:
conf.check(fragment='#include <kio/job.h>\n#include <KDE/KDialog>\n',
features='cxx qt5',
msg='Checking for kdelibs4support %s' % x,
use='KDECORE QT5CORE QT5GUI QT5WIDGETS')
break
except conf.errors.ConfigurationError:
conf.env.revert()
else:
conf.fatal('kdelibs4support was not found, check the config.log file')
for x in ('', '/usr/local/include'):
conf.env.stash()
if os.path.exists(x):
conf.env.append_value('INCLUDES_QT5GUI', x)
try:
conf.check(fragment='#include <QtGui>\n',
features='cxx qt5',
msg='Checking for QT5GUI %s' % x,
use='QT5CORE QT5GUI')
break
except conf.errors.ConfigurationError:
conf.env.revert()
else:
conf.fatal('It seems that QtGui is not working properly, check the config.log')
conf.define('cmd_add_item', 0)
conf.define('cmd_update_item', 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment