Skip to content

Wrong open dialog default directory [closes #4] #16

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

Open
wants to merge 108 commits into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
c0e455f
cmake: Remove check for older CMake
krf Nov 13, 2017
22cb894
custom-dai: Don't crash when batch editing
krf Nov 13, 2017
4db1ad1
abstractnavigationwidget: Add missing DUChain lock
krf Nov 14, 2017
da49f7b
fix "none" being set as default compiler on windows
geetam Nov 15, 2017
6ae542f
gcclikecompiler: Fix execution of compiler qprocess under windows
geetam Nov 15, 2017
c345009
Minor: Fix coding style
krf Sep 14, 2017
638e8f0
Minor: Fix coding style
krf Nov 15, 2017
1dbef93
test_lldb: Skip test if lldb-mi not found
krf Nov 15, 2017
021cac8
Fix in-source build of release tarball
krf Nov 16, 2017
f57b460
appimage: Bump KF5 version to 5.37.0
krf Nov 16, 2017
7e25d7b
test_lldbformatters: Skip test if lldb-mi not found
krf Nov 16, 2017
1cf0f6b
test_definesandincludes: Speedup test
krf Nov 16, 2017
c92a8f1
Move QtSingleApplication to own dir in 3rdparty/
krf Nov 16, 2017
6bec34d
appimage: Update Dockerfile
krf Nov 16, 2017
fd2d83c
appimage: Use Qt 5.9.1 from new docker image
krf Nov 16, 2017
56263bc
app: Use categorized logging everywhere
krf Nov 16, 2017
a2712c8
work around clang bug 35333: don't crash when switching git branches
Nov 16, 2017
dde2a12
GIT_SILENT made messages (after extraction)
Nov 17, 2017
d80ec0c
SVN_SILENT made messages (.desktop file) - always resolve ours
Nov 17, 2017
44e45cf
Minor: Fix typo
krf Nov 16, 2017
a767101
Minor: Fix compiler warning
krf Nov 17, 2017
13edc89
Build on Qt <5.6 again
krf Nov 17, 2017
37a11f9
projectmanagerview: Don't collapse tree view
krf Nov 17, 2017
49b5df4
Use Software scene graph backend for welcome page
Nov 17, 2017
5984874
Documentation viewer: fix handling of clicked links with QtWebKit
kossebau Nov 17, 2017
015141e
kdev-clang: Offer all include paths for code completion
milianw Nov 18, 2017
448a640
Fix assert, line index 0 is a valid one
kossebau Nov 18, 2017
c2f9b5f
Don't add the same targets multiple times for nested CMake projects
milianw Nov 19, 2017
53ec893
compute itemrepository version from version plus KDEVELOP_VERSION
Nov 20, 2017
6d4591f
Fix crash deep inside VcsOverlayProxyModel::data()
krf Nov 16, 2017
0e43fa9
test_kdevformatsource: Fix crash on Windows
krf Nov 20, 2017
80536b4
SVN_SILENT made messages (.desktop file) - always resolve ours
Nov 21, 2017
be15d46
Minor: Fix conversion warning under MSVC
krf Nov 21, 2017
d350899
Remove bogus translations from template files
kossebau Nov 21, 2017
191aebf
debuggercommon: Fix build on Windows
krf Nov 13, 2017
7097724
test_path: Fix test under Windows
krf Nov 21, 2017
e3df584
test_path: Doesn't need a KDevelop shell
krf Nov 21, 2017
7e61e01
test_backgroundparser: Don't hang under Windows
krf Nov 21, 2017
5c37d75
Fix compilation with Qt <5.8, QString::operator==(QChar) only added a…
kossebau Nov 21, 2017
d551c34
templates: Add some debugging output
krf Nov 21, 2017
527cffd
test_docker: Prefer QVERIFY over Q_ASSERT
krf Nov 22, 2017
a65be45
appimage: Bump to Qt 5.9.2
krf Nov 22, 2017
a35de90
Fix progress widget on bottom bar not being shown in some sessions
kossebau Nov 21, 2017
9bd590c
cvs: Use K_PLUGIN_FACTORY_WITH_JSON properly
krf Nov 22, 2017
aeade80
Add debug output for isVersionControlled function
krf Nov 22, 2017
e7d9009
appimage: Fixup dockerfile
krf Nov 22, 2017
f4363a0
kdevelop: prevent empty dockwidget context menuitems
RJVB Nov 22, 2017
8622a1b
cvs: Fix porting bug in QDir usage
krf Nov 22, 2017
4182c47
Use kdevelop icon for all plugins without an existing own icon
kossebau Nov 22, 2017
26fe4c7
Use 'rm -f' on tempfile, in case 'rm' is aliased to 'rm -i'.
Nov 23, 2017
161e09e
shell: Add more debug output if no plugins found
krf Nov 23, 2017
9e9ddb6
CMake: Explicity use old behaviour for automoc of generated files.
FLHerne Nov 23, 2017
967df1e
cmake: Add a note why we're setting CMP0071
krf Nov 23, 2017
d1d19ba
CMakeLists.txt: Append KF5 macros to CMAKE_AUTOMOC_MACRO_NAMES
FLHerne Nov 22, 2017
f537d64
fix compile warning
Nov 23, 2017
b060b4d
Set version number to 5.2.1
Nov 23, 2017
aa5163b
Fix kdevelop! to use new version of "pss" cmld argument with kdevelop v5
kossebau Nov 23, 2017
d8b111c
QtCreator shortcuts: fix Alt-Left/Alt-Right.
dfaure Nov 25, 2017
213a145
GIT_SILENT made messages (after extraction)
Nov 27, 2017
eb89ac1
SVN_SILENT made messages (.desktop file) - always resolve ours
Nov 27, 2017
fda10ae
Make sure the flatpak filename rx is what we expected it to be
aleixpol Nov 27, 2017
4bc8cb5
port last away from deprecated kate modeline "remove-trailing-space-s…
kossebau Nov 30, 2017
b4fd209
SVN_SILENT made messages (.desktop file) - always resolve ours
Dec 4, 2017
64535f1
GIT_SILENT made messages (after extraction)
Dec 5, 2017
8e20d4d
SVN_SILENT made messages (.desktop file) - always resolve ours
Dec 5, 2017
98dc5be
Fix thread not being tagged as "(running)"
kossebau Dec 6, 2017
b8de65d
Amend 5c95479cee5a to fix crash when pasting files in projectmanager
croick Dec 7, 2017
32e17f9
SVN_SILENT made messages (.desktop file) - always resolve ours
Dec 9, 2017
a2dcaf1
SVN_SILENT made messages (.desktop file) - always resolve ours
Dec 10, 2017
e58eb2c
Remove unused GenericName property from plugin metadata
kossebau Dec 10, 2017
aa92de6
SVN_SILENT made messages (.desktop file) - always resolve ours
Dec 11, 2017
8ccaf0c
Fix missing KF5ItemModels dep in KDevPlatform cmake config file
kossebau Dec 12, 2017
1824f06
TemplatesModel: remove broken and unneeded paths addition
kossebau Dec 21, 2017
42a8dde
SVN_SILENT made messages (.desktop file) - always resolve ours
Jan 1, 2018
8ceabdb
SVN_SILENT made messages (.desktop file) - always resolve ours
Jan 4, 2018
4e3879f
SVN_SILENT made messages (.desktop file) - always resolve ours
Jan 6, 2018
56416bd
Set toolbar/toolbutton font on quickopen line edit
milianw Dec 22, 2017
2f2ac00
Format comments before setting them on the DUChain
milianw Dec 21, 2017
9761e02
Format comments before setting them on the DUChain
milianw Dec 21, 2017
4a9455f
Only set CMAKE_AUTOMOC_MACRO_NAMES with KF5 < 5.42
kossebau Jan 10, 2018
64c1251
Remove unused file
Montel Jan 7, 2018
3881efb
Remove unused file
Montel Jan 7, 2018
f2a6941
Cache ProblemPointers per translation unit
milianw Jan 10, 2018
94ed49a
Performance: Reuse the global icon loader
milianw Jan 10, 2018
f0fbcb7
fix crash when stopping process
Jan 13, 2018
2adeca0
Minor: Fix -Wunused-lambda-capture warning
krf Jan 15, 2018
e6ee67c
work around bug in kLineEdit
weatherhead99 Jan 15, 2018
7add59d
Also unbreak QtPrintersTest::testQByteArray
milianw Jan 16, 2018
7a47aa5
Unbreak QtPrintersTest::testQString
milianw Jan 16, 2018
a2a4632
Unbreak the GDB QUrl pretty printer test
milianw Jan 16, 2018
ad23481
Properly quote expected string value in lldb formatter unittests
Aetf Jan 16, 2018
c6f68e5
test_path: Fix unit tests
krf Jan 16, 2018
8d47eda
test_gdb: Don't hang in GdbTest::testCoreFile
krf Jan 16, 2018
2e74079
test_compilerprovider: Do not load all plugins
krf Jan 16, 2018
6e1ed66
test_shell*: Speed up tests
krf Jan 17, 2018
59a0edf
test_documentcontroller: Speed up test
krf Jan 17, 2018
51233cc
Fix ctestsuites unit test
Noughmad Jan 18, 2018
39c110e
Link against KF5::Purpose if it's available
milianw Jan 16, 2018
57e452e
debuggercommon: Remove number of lines printed
krf Jan 18, 2018
9aca2af
SVN_SILENT made messages (.desktop file) - always resolve ours
Feb 2, 2018
bda9fd5
SVN_SILENT made messages (.desktop file) - always resolve ours
Feb 5, 2018
291158c
documentswitcher: Allow to cancel with Escape key
krf Feb 6, 2018
b7dd5a0
SVN_SILENT made messages (.desktop file) - always resolve ours
Feb 13, 2018
7dc0a29
Check KDEV_PLUGIN_PREFIX for loaded plugins [fixes #7]
midenok Nov 11, 2017
19eff08
Don't open empty documents on startup
midenok Nov 12, 2017
e2b9c3a
[BRANCH START] Directory for New document fix
midenok Nov 12, 2017
70cf2fc
Progress
midenok Nov 12, 2017
187596b
Reverted directory for New document
midenok Nov 12, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .reviewboardrc

This file was deleted.

19 changes: 17 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.0)
project(KDevelop VERSION 5.2.0)
project(KDevelop VERSION 5.2.1)

# KDevelop SOVERSION
# E.g. for KDevelop 5.2.0 => SOVERSION 52 (we only promise ABI compatibility between patch version updates)
Expand Down Expand Up @@ -31,6 +31,13 @@ include(CheckFunctionExists)
include(KDEInstallDirs)
include(KDECMakeSettings)

if(POLICY CMP0071)
# CMake 3.10 generates warnings when projects combine AUTOMOC with qt5_wrap_ui() or qt5_add_resources()
# Avoid that by setting this policy (cf. https://bugreports.qt.io/browse/QTBUG-63442)
# Note: Once we depend on a Qt which has this fix (likely Qt 5.9.4+), remove this
cmake_policy(SET CMP0071 OLD)
endif()

set(QT_MIN_VERSION "5.5.0")
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED Widgets Concurrent Quick QuickWidgets)
if(BUILD_TESTING)
Expand Down Expand Up @@ -74,6 +81,14 @@ set_package_properties(KDevelop-PG-Qt PROPERTIES

find_package(SharedMimeInfo REQUIRED)

if(NOT CMAKE_VERSION VERSION_LESS "3.10.0" AND KF5_VERSION VERSION_LESS "5.42.0")
# CMake 3.9+ warns about automoc on files without Q_OBJECT, and doesn't know about other macros.
# 3.10+ lets us provide more macro names that require automoc.
# KF5 >= 5.42 takes care itself of adding its macros in its cmake config files
list(APPEND CMAKE_AUTOMOC_MACRO_NAMES
"K_PLUGIN_FACTORY_WITH_JSON" "K_EXPORT_PLASMA_DATAENGINE_WITH_JSON" "K_EXPORT_PLASMA_RUNNER")
endif()

add_definitions(
-DQT_DEPRECATED_WARNINGS
-DQT_DISABLE_DEPRECATED_BEFORE=0x050500
Expand Down Expand Up @@ -160,6 +175,6 @@ configure_file(${CMAKE_SOURCE_DIR}/CTestCustom.cmake ${CMAKE_BINARY_DIR}/CTestCu
install(FILES org.kde.kdevelop.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})

# Make it possible to use the po files fetched by the fetch-translations step
ki18n_install("${CMAKE_CURRENT_BINARY_DIR}/po")
ki18n_install(po)

feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
8 changes: 8 additions & 0 deletions app/3rdparty/qtsingleapplication/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
set(qtsingleapplication_SRCS qtlocalpeer.cpp qtsingleapplication.cpp qtlockedfile.cpp)
if(WIN32)
list(APPEND qtsingleapplication_SRCS qtlockedfile_win.cpp)
else()
list(APPEND qtsingleapplication_SRCS qtlockedfile_unix.cpp)
endif()
add_library(qtsingleapplication STATIC ${qtsingleapplication_SRCS})
target_link_libraries(qtsingleapplication Qt5::Core Qt5::Network Qt5::Widgets)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 6 additions & 11 deletions app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,7 @@ endif()

option(KDEVELOP_SINGLE_APP "Use QtSingleApplication as KDevelop's base" OFF)

set(singleapp_SRCS qtlocalpeer.cpp qtsingleapplication.cpp qtlockedfile.cpp)
if(WIN32)
set(singleapp_SRCS ${singleapp_SRCS} qtlockedfile_win.cpp)
else()
set(singleapp_SRCS ${singleapp_SRCS} qtlockedfile_unix.cpp)
endif()

set(kdevelop_SRCS main.cpp kdevideextension.cpp)
if(KDEVELOP_SINGLE_APP)
set(kdevelop_SRCS ${kdevelop_SRCS} ${singleapp_SRCS})
endif()

ecm_qt_declare_logging_category(kdevelop_SRCS
HEADER debug.h
Expand All @@ -46,7 +36,6 @@ ecm_add_app_icon(kdevelop_SRCS ICONS

qt5_add_resources(kdevelop_SRCS kdevelop.qrc)
add_executable(kdevelop ${kdevelop_SRCS} )

target_link_libraries(kdevelop
KDev::Interfaces
KDev::Shell
Expand All @@ -55,10 +44,16 @@ target_link_libraries(kdevelop
KF5::Declarative
KF5::IconThemes
KF5::Crash

Qt5::Quick
)
IF(APPLE)
target_link_libraries(kdevelop "-framework CoreFoundation")
ENDIF()
if(KDEVELOP_SINGLE_APP)
add_subdirectory(3rdparty/qtsingleapplication)
target_link_libraries(kdevelop qtsingleapplication)
endif()

install(TARGETS kdevelop ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )

Expand Down
2 changes: 1 addition & 1 deletion app/kdevelop!
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export APPLICATION=KDevelop
if ! [ "$KDEV_ATTACHED_PID" ]; then
ARGS=""
if [ $# -eq 0 ]; then
ARGS="-pss"
ARGS="--pss"
else
ARGS="$@"
fi
Expand Down
1 change: 1 addition & 0 deletions app/kdevelop.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<comment xml:lang="de">KDevelop-Projektdatei</comment>
<comment xml:lang="en_GB">KDevelop Project File</comment>
<comment xml:lang="es">Archivo de proyecto de KDevelop</comment>
<comment xml:lang="fr">Fichiers de projet KDevelop</comment>
<comment xml:lang="gl">Ficheiro de proxecto de KDevelop</comment>
<comment xml:lang="it">File di progetto di KDevelop</comment>
<comment xml:lang="nl">Projectbestand van KDevelop</comment>
Expand Down
17 changes: 13 additions & 4 deletions app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
#include <QDBusInterface>
#include <QDBusReply>

#include <QQuickWindow>

#include <shell/core.h>
#include <shell/mainwindow.h>
#include <shell/projectcontroller.h>
Expand Down Expand Up @@ -94,7 +96,7 @@ void openFiles(const QVector<UrlInfo>& infos)
{
foreach (const UrlInfo& info, infos) {
if (!ICore::self()->documentController()->openDocument(info.url, info.cursor)) {
qWarning() << i18n("Could not open %1", info.url.toDisplayString(QUrl::PreferLocalFile));
qWarning(APP) << i18n("Could not open %1", info.url.toDisplayString(QUrl::PreferLocalFile));
}
}
}
Expand Down Expand Up @@ -164,7 +166,7 @@ private Q_SLOTS:
QString x11SessionId = QStringLiteral("%1_%2").arg(sm.sessionId()).arg(sm.sessionKey());
const auto activeSession = KDevelop::Core::self()->sessionController()->activeSession();
if (!activeSession) {
qWarning() << "No active session, can't save state";
qWarning(APP) << "No active session, can't save state";
return;
}

Expand Down Expand Up @@ -304,6 +306,13 @@ int main( int argc, char *argv[] )
QElapsedTimer timer;
timer.start();

#if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
// If possible, use the Software backend for QQuickWidget (currently used in the
// welcome page plugin). This means we don't need OpenGL at all, avoiding issues
// like https://bugs.kde.org/show_bug.cgi?id=386527.
QQuickWindow::setSceneGraphBackend(QSGRendererInterface::Software);
#endif

// TODO: Maybe generalize, add KDEVELOP_STANDALONE build option
#if defined(Q_OS_WIN) || defined(Q_OS_MAC)
qputenv("KDE_FORK_SLAVES", "1"); // KIO slaves will be forked off instead of being started via DBus
Expand Down Expand Up @@ -658,7 +667,7 @@ int main( int argc, char *argv[] )
const KDevelop::SessionInfo* sessionData = findSessionInList(availableSessionInfos, session);

if( !sessionData ) {
qCritical() << "session not given or does not exist";
qCritical(APP) << "session not given or does not exist";
return 5;
}

Expand All @@ -668,7 +677,7 @@ int main( int argc, char *argv[] )
std::cout << pid << std::endl;
return 0;
} else {
qCritical() << sessionData->uuid.toString() << sessionData->name << "is not running";
qCritical(APP) << sessionData->uuid.toString() << sessionData->name << "is not running";
return 5;
}
}
Expand Down
3 changes: 3 additions & 0 deletions app/org.kde.kdevelop.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ GenericName[zh_TW]=整合開發環境
Comment=Plugin-extensible IDE for C/C++ and other programming languages
Comment[ca]=Un IDE ampliable amb connectors per al C/C++ i altres llenguatges de programació
Comment[ca@valencia]=Un IDE ampliable amb connectors per al C/C++ i altres llenguatges de programació
Comment[de]=Eine integrierte Entwicklungsumgebung (IDE) für C/C++ und andere Programmiersprachen, die durch Module erweitert werden kann.
Comment[en_GB]=Plugin-extensible IDE for C/C++ and other programming languages
Comment[es]=Entorno de desarrollo integrado para C/C++ y otros lenguajes de programación que se puede extender con complementos
Comment[fr]=Il s'agit d'un environnement de développement complet et extensible pour le C / C++ et d'autres langages de programmation.
Comment[it]=IDE estensibile per C/C++ ed altri linguaggi di programmazione
Comment[nl]=IDE voor C/C++ en andere programmeertalen, uit te breiden met plug-ins.
Comment[pl]=Zintegrowane środowisko programistyczne dla C/C++ i innych języków programowania z możliwością rozszerzenia o wtyczki
Expand Down
3 changes: 3 additions & 0 deletions app/org.kde.kdevelop_ps.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ GenericName[zh_TW]=整合開發環境(選擇要開始的工作階段)
Comment=Plugin-extensible IDE for C/C++ and other programming languages (Pick Session to start with)
Comment[ca]=Un IDE ampliable amb connectors per al C/C++ i altres llenguatges de programació (trieu Sessió per a començar-hi)
Comment[ca@valencia]=Un IDE ampliable amb connectors per al C/C++ i altres llenguatges de programació (trieu Sessió per a començar-hi)
Comment[de]=Eine integrierte Entwicklungsumgebung (IDE) für C/C++ und andere Programmiersprachen, die durch Module erweitert werden kann. Wählen Sie eine Sitzung zum Starten aus.
Comment[en_GB]=Plugin-extensible IDE for C/C++ and other programming languages (Pick Session to start with)
Comment[es]=Entorno de desarrollo integrado para C/C++ y otros lenguajes de programación que se puede extender con complementos (escoger sesión con la que empezar)
Comment[fr]=Il s'agit d'un environnement de développement complet et extensible pour le C / C++ et d'autres langages de programmation (sélectionnez la session avec laquelle vous voulez commencer).
Comment[it]=IDE estensibile per C/C++ ed altri linguaggi di programmazione (Scegliere la sessione con cui iniziare)
Comment[nl]=IDE voor C/C++ en andere programmeertalen, uit te breiden met plug-ins. (Kies sessie om mee te beginnen)
Comment[pl]=Zintegrowane środowisko programistyczne dla C/C++ i innych języków programowania z możliwością rozszerzenia o wtyczki (Wybór sesji do rozpoczęcia)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
{
"KPlugin": {
"Description": "%{APPNAME}",
"Description[x-test]": "xx%{APPNAME}xx",
"Id": "%{APPNAMELC}",
"Name": "%{APPNAME}",
"Name[x-test]": "xx%{APPNAME}xx",
"ServiceTypes": [
"KDevelop/Plugin"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Name=QMake Qt5 QWidgets GUI Application
Name[ca]=Una aplicació IGU per a QMake Qt5 QWidgets
Name[ca@valencia]=Una aplicació IGU per a QMake Qt5 QWidgets
Name[cs]=Aplikace prostředí QMake Qt5 QWidgets
Name[en_GB]=QMake Qt5 QWidgets GUI Application
Name[es]=Aplicación con interfaz gráfica con QWidgets de Qt5 y QMake
Name[fr]=Une application graphique avec Qt5, QMake et QWidgets
Name[it]=Applicazione con GUI in QWidgets di Qt5 e QMake
Expand All @@ -20,8 +21,9 @@ Comment=Generate a QMake/Qt5 based GUI application (crossplatform compatible)
Comment[ca]=Genera una aplicació IGU basada en QMake/Qt5 (compatible amb multiplataforma)
Comment[ca@valencia]=Genera una aplicació IGU basada en QMake/Qt5 (compatible amb multiplataforma)
Comment[cs]=Vytvořit aplikaci založenou na QMake/Qt5 (multiplatformní)
Comment[en_GB]=Generate a QMake/Qt5 based GUI application (crossplatform compatible)
Comment[es]=Genera una aplicación con interfaz gráfica basada en QMake/Qt5 (compatible multiplataforma)
Comment[fr]=Générer une application graphique basée sur QMake/Qt5 (compatible multi-plate-forme)
Comment[fr]=Générer une application graphique fondée sur QMake/Qt5 (compatible multi-plate-forme)
Comment[it]=Genera un'applicazione basata su QMake/Qt5 con interfaccia utente grafica (compatibile multipiattaforma)
Comment[nl]=Op QMake/Qt5 gebaseerde GUI-toepassing genereren (crossplatform compatibel)
Comment[pl]=Uwórz aplikację opartą na interfejsie użytkownika QMake/Qt5 (zgodne na wielu platformach)
Expand Down
25 changes: 19 additions & 6 deletions appimage/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,34 @@
FROM centos:6.8

RUN yum -y update && yum -y install wget && yum -y install centos-release-scl epel-release && yum -y update && yum -y install devtoolset-4-gcc devtoolset-4-gcc-c++ devtoolset-4-binutils wget tar bzip2 git libtool which fuse fuse-devel libpng-devel automake cppunit-devel cmake glibc-headers libstdc++-devel gcc-c++ freetype-devel fontconfig-devel libxml2-devel libstdc++-devel libXrender-devel patch xcb-util-keysyms-devel libXi-devel libudev-devel.x86_64 openssl-devel sqlite-devel.x86_64 gperftools.x86_64 gperf.x86_64 libicu-devel.x86_64 boost-devel.x86_64 libxslt-devel.x86_64 docbook-style-xsl.noarch python27.x86_64 cmake3.x86_64 ruby bison flex bison-devel ruby-devel flex-devel xz pcre-devel pcre2-devel pcre pcre2 mesa-libEGL-devel mesa-libGL-devel glib-devel gettext perl-URI.noarch bzip2-devel.x86_64 subversion-devel.x86_64 subversion.x86_64 sqlite2-devel.x86_64 hunspell-devel aspell-devel hspell-devel vim sudo unzip
RUN yum -y update && yum -y install wget && yum -y install centos-release-scl epel-release && yum -y update && yum -y install devtoolset-4-gcc devtoolset-4-gcc-c++ devtoolset-4-binutils wget tar bzip2 git libtool which fuse fuse-devel libpng-devel automake cppunit-devel cmake glibc-headers libstdc++-devel gcc-c++ freetype-devel fontconfig-devel libxml2-devel libstdc++-devel libXrender-devel patch xcb-util-keysyms-devel libXi-devel libudev-devel.x86_64 openssl-devel sqlite-devel.x86_64 gperftools.x86_64 gperf.x86_64 libicu-devel.x86_64 boost-devel.x86_64 libxslt-devel.x86_64 docbook-style-xsl.noarch python27.x86_64 cmake3.x86_64 ruby bison flex bison-devel ruby-devel flex-devel xz pcre-devel pcre2-devel pcre pcre2 mesa-libEGL-devel mesa-libGL-devel glib-devel gettext perl-URI.noarch bzip2-devel.x86_64 subversion-devel.x86_64 subversion.x86_64 sqlite2-devel.x86_64 hunspell-devel aspell-devel hspell-devel vim sudo unzip xkeyboard-config
RUN cd /tmp && wget http://opensource.wandisco.com/rhel/6/svn-1.9/RPMS/x86_64/subversion-1.9.4-3.x86_64.rpm http://opensource.wandisco.com/rhel/6/svn-1.9/RPMS/x86_64/subversion-devel-1.9.4-3.x86_64.rpm http://opensource.wandisco.com/rhel/6/svn-1.9/RPMS/x86_64/serf-1.3.7-1.x86_64.rpm && yum -y install subversion* serf*; rm subversion* serf*

RUN echo ". /opt/rh/devtoolset-4/enable && chmod +x /opt/rh/python27/enable && . /opt/rh/python27/enable" >> /root/.bashrc

ENV LC_ALL=en_US.UTF-8 LANG=en_us.UTF-8 QTVERSION=5.7.1 QVERSION_SHORT=5.7 LLVM_ROOT=/opt/llvm/ QTV=5.7.1 LD_LIBRARY_PATH=$QTDIR/lib/
ENV LC_ALL=en_US.UTF-8 LANG=en_us.UTF-8 QTVERSION=5.9.2 QTVERSION_SHORT=5.9 LLVM_VERSION=5.0.0 LLVM_ROOT=/opt/llvm/ LD_LIBRARY_PATH=$QTDIR/lib/
ENV QTDIR=/usr/local/Qt-${QTVERSION}/

RUN bash -c "mkdir -p /qt && cd /qt && wget http://download.qt.io/archive/qt/${QVERSION_SHORT}/${QTVERSION}/single/qt-everywhere-opensource-src-${QTVERSION}.tar.xz && tar xvf qt-everywhere-opensource-src-${QTVERSION}.tar.xz && ln -sf /opt/rh/devtoolset-4/root/usr/bin/g++ /usr/bin/g++ && ln -sf /opt/rh/devtoolset-4/root/usr/bin/c++ /usr/bin/c++ && cd /qt/qt-everywhere-opensource-src-$QTV && ./configure -v -skip qt3d -skip qtgamepad -platform linux-g++ -qt-pcre -qt-xcb -qt-xkbcommon -xkb-config-root /usr/share/X11/xkb -no-pch -qt-sql-sqlite -qt-sql-sqlite2 -nomake tests -nomake examples -confirm-license -opensource && make -j$(nproc) || make -j 1 install; make -j$(nproc) install && rm -Rf /qt"
RUN bash -c "ln -sf /opt/rh/devtoolset-4/root/usr/bin/g++ /usr/bin/g++ && ln -sf /opt/rh/devtoolset-4/root/usr/bin/c++ /usr/bin/c++"

RUN bash -c "ln -sf /usr/local/Qt-$QTV/bin/qmake /usr/bin/qmake-qt5 && mkdir -p /qtwk && cd /qtwk && wget http://download.qt.io/community_releases/${QVERSION_SHORT}/${QTV}/qtwebkit-opensource-src-${QTV}.tar.xz && tar xvf qtwebkit-opensource-src-${QTV}.tar.xz && cd /qtwk/qtwebkit-opensource-src-${QTV} && $QTDIR/bin/qmake && make -j$(nproc) || make -j$(nproc) && make -j$(nproc) install && rm -Rf /qtwk"
# Build Qt5
RUN bash -c "mkdir -p /qt && cd /qt && wget http://download.qt.io/archive/qt/${QTVERSION_SHORT}/${QTVERSION}/single/qt-everywhere-opensource-src-${QTVERSION}.tar.xz && tar xvf qt-everywhere-opensource-src-${QTVERSION}.tar.xz "
RUN bash -c "export MAKEFLAGS=-j$(nproc) && cd /qt/qt-everywhere-opensource-src-${QTVERSION} && ./configure -v -skip qt3d -skip qtgamepad -platform linux-g++ -qt-pcre -qt-xcb -qt-xkbcommon-x11 -xkb-config-root /usr/share/X11/xkb -no-pch -nomake tests -nomake examples -confirm-license -opensource && make -j$(nproc) || make -j 1 install; make -j$(nproc) install && rm -Rf /qt"

RUN bash -c "mkdir -p /llvm && cd /llvm && wget http://llvm.org/releases/3.9.1/llvm-3.9.1.src.tar.xz && tar xvf llvm-3.9.1.src.tar.xz && cd llvm-3.9.1.src && cd tools && wget http://llvm.org/releases/3.9.1/cfe-3.9.1.src.tar.xz && tar xvf cfe-3.9.1.src.tar.xz && . /opt/rh/python27/enable && . /opt/rh/devtoolset-4/enable && python --version && cd /llvm/llvm-3.9.1.src && mkdir -p build && cd build && cmake3 .. -DCMAKE_INSTALL_PREFIX=/opt/llvm/ -DCMAKE_BUILD_TYPE=Release && make -j$(nproc) install && rm -Rf /llvm"
RUN ln -sf /usr/local/Qt-${QTVERSION}/bin/qmake /usr/bin/qmake-qt5

RUN bash -c "mkdir -p /python && cd /python && wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tar.xz && tar xvf Python-3.6.0.tar.xz && cd /python/Python-3.6.0 && mkdir -p /usr/lib/pkgconfig && ./configure --prefix=/usr --enable-shared && make -j$(nproc) install && rm -Rf /python"
# Build qtwebkit
RUN bash -c "mkdir -p /qtwk && cd /qtwk && wget http://download.qt.io/archive/qt/${QTVERSION_SHORT}/5.9.1/submodules/qtwebkit-opensource-src-5.9.1.tar.xz && tar xvf qtwebkit-opensource-src-5.9.1.tar.xz"
RUN bash -c "cd /qtwk/qtwebkit-opensource-src-5.9.1 && $QTDIR/bin/qmake && make -j$(nproc) || make -j$(nproc) && make -j$(nproc) install && rm -Rf /qtwk"

# Install ninja
RUN bash -c "yum install unzip && mkdir -p /tmp/deploy && cd /tmp/deploy && wget https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-linux.zip && unzip ninja-linux.zip && mv -f ninja /usr/local/bin && cd .. && rm -Rf deploy"

# Build Clang/LLVM
RUN bash -c "mkdir -p /llvm && cd /llvm && wget http://llvm.org/releases/${LLVM_VERSION}/llvm-${LLVM_VERSION}.src.tar.xz && tar xvf llvm-${LLVM_VERSION}.src.tar.xz && cd llvm-${LLVM_VERSION}.src && cd tools && wget http://llvm.org/releases/${LLVM_VERSION}/cfe-${LLVM_VERSION}.src.tar.xz && tar xvf cfe-${LLVM_VERSION}.src.tar.xz"
RUN bash -c ". /opt/rh/python27/enable && . /opt/rh/devtoolset-4/enable && python --version && cd /llvm/llvm-${LLVM_VERSION}.src && mkdir -p build && cd build && cmake3 -G Ninja .. -DCMAKE_INSTALL_PREFIX=/opt/llvm/ -DCMAKE_BUILD_TYPE=Release && ninja install && rm -Rf /llvm"

# Build Python
RUN bash -c "mkdir -p /python && cd /python && wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tar.xz && tar xvf Python-3.6.0.tar.xz && cd /python/Python-3.6.0 && mkdir -p /usr/lib/pkgconfig && ./configure --prefix=/usr --enable-shared && make -j$(nproc) install && rm -Rf /python"


CMD /bin/bash
6 changes: 3 additions & 3 deletions appimage/kdevelop-recipe-centos6.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ git_pull_rebase_helper()

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

QTVERSION=5.7.1
QVERSION_SHORT=5.7
QTVERSION=5.9.2
QTVERSION_SHORT=5.9
QTDIR=/usr/local/Qt-${QTVERSION}/

if [ -z "$KDEVELOP_VERSION" ]; then
Expand All @@ -29,7 +29,7 @@ fi
if [ -z "$KDEV_PG_QT_VERSION" ]; then
KDEV_PG_QT_VERSION=2.0
fi
KF5_VERSION=v5.32.0
KF5_VERSION=v5.37.0
KDE_PLASMA_VERSION=master # need libksysguard master (contains a0e69617442d720c76da5ebe3323e7a977929db4 -- patch which makes plasma dep optional)
KDE_APPLICATION_VERSION=v16.12.3
GRANTLEE_VERSION=v5.1.0
Expand Down
Loading