This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Building Kexi 2.9.11 with Debian Jessie

Tags: None
(comma "," separated)
patrickgelin
Registered Member
Posts
8
Karma
0
Hi,

I'm trying to build (correction by jstaniek) Kexi from Calligra 2.9.11 source code into Debian Jessie. But I going over first step with cmake because cmake failled to find qtcore/QtGlobal.... I'm using QT 4.8.6, and there is may be some Qt5 libraries (only binaries but not dev tools) installed into my PC...

It's like this thread into Qt center, but without any responses...

This is the error message :

Code: Select all
cmake -DCMAKE_INSTALL_PREFIX=$HOME/kde4/inst /home/gelinp/kde4/src/calligra-2.9.11 -DQT_QMAKE_EXECUTABLE=/usr/lib/i386-linux-gnu/qt4/bin/qmake  -DCMAKE_BUILD_TYPE=RelWithDebInfo -DPRODUCTSET=KEXI
-- Calligra version: 2.9.11
-- Release build: TRUE
-- -------------------------------------------------------------------
-- Configured with product set "KEXI"
-- -------------------------------------------------------------------
-- Found Qt-Version 4.8.6 (using /usr/lib/i386-linux-gnu/qt4/bin/qmake)
Change Dir: /home/gelinp/kde4/src/calligra-2.9.11/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTryCompileExec2824470793/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec2824470793.dir/build.make CMakeFiles/cmTryCompileExec2824470793.dir/build
make[1]: Entering directory '/home/gelinp/kde4/src/calligra-2.9.11/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/gelinp/kde4/src/calligra-2.9.11/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec2824470793.dir/check_qt_application.cpp.o
/usr/bin/c++    -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics  -I/usr/include/qt4/phonon -I/usr/include/qt4/QtXmlPatterns -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtWebKit -I/usr/include/qt4/QtUiTools -I/usr/include/qt4/QtTest -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtScriptTools -I/usr/include/qt4/QtScript -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtHelp -I/usr/include/qt4/QtDesigner -I/usr/include/qt4/QtDeclarative -I/usr/include/qt4/QtDBus -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4/Qt -I/usr/share/qt4/mkspecs/default -I/usr/include/i386-linux-gnu/qt5    -o CMakeFiles/cmTryCompileExec2824470793.dir/check_qt_application.cpp.o -c /home/gelinp/kde4/src/calligra-2.9.11/CMakeTmp/check_qt_application.cpp
/home/gelinp/kde4/src/calligra-2.9.11/CMakeTmp/check_qt_application.cpp:1:27: fatal error: QtCore/QtGlobal: Aucun fichier ou dossier de ce type
 #include <QtCore/QtGlobal>
                           ^
compilation terminated.
CMakeFiles/cmTryCompileExec2824470793.dir/build.make:57: recipe for target 'CMakeFiles/cmTryCompileExec2824470793.dir/check_qt_application.cpp.o' failed
make[1]: Leaving directory '/home/gelinp/kde4/src/calligra-2.9.11/CMakeFiles/CMakeTmp'
make[1]: *** [CMakeFiles/cmTryCompileExec2824470793.dir/check_qt_application.cpp.o] Error 1
Makefile:118: recipe for target 'cmTryCompileExec2824470793/fast' failed
make: *** [cmTryCompileExec2824470793/fast] Error 2

CMake Error at /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:1316 (message):
  Unable to compile a basic Qt application.  Qt has not been found correctly.
Call Stack (most recent call first):
  /usr/share/cmake-3.0/Modules/FindKDE4.cmake:108 (find_package)
  CMakeLists.txt:154 (find_package)


-- Configuring incomplete, errors occurred!



Thank you for your help....

Last edited by patrickgelin on Tue Mar 22, 2016 5:57 am, edited 1 time in total.
User avatar
jstaniek
Moderator
Posts
1027
Karma
2
OS
Hi Patrick. I renamed the thread because you're building Callingra, not installing.

Please see the https://community.kde.org/Calligra/Building page. In particular you seem to need -dev packages - dependencies needed for build time, all build tools are also needed to build Kexi:

https://community.kde.org/Calligra/Buil ... tributions

Presence of Qt 5 on the same system is not going to be any problem for building Qt 4 applications (such as Kexi 2.9). Qt is designed to be usable side-by-side for both versions. The same with KDE libraries (4) and KDE Frameworks (5).


Best regards,
Jarosław Staniek
• Qt Certified Specialist
KEXI - Open Source Visual DB Apps Builder
• Request a feature or fix for KEXI here
May I help you? Please mention your app's version and OS when asking for help
patrickgelin
Registered Member
Posts
8
Karma
0
Ok but I don't understand if the command "sudo apt-get build-dep calligra" is suitable because Calligra packages for Debian Jessie are based on Calligra 2.8 not 2.9.11 as needed to the build... My be I'm wrong because I thing Calligra sources packages and not calligra build... I'll test this evening !

Last edited by patrickgelin on Mon Mar 21, 2016 12:07 pm, edited 2 times in total.
User avatar
jstaniek
Moderator
Posts
1027
Karma
2
OS
`apt-get build-dep calligra` is a good approximation: it finds build dependencies for you in a very convenient way. They most likely did not change since the last time...


Best regards,
Jarosław Staniek
• Qt Certified Specialist
KEXI - Open Source Visual DB Apps Builder
• Request a feature or fix for KEXI here
May I help you? Please mention your app's version and OS when asking for help
patrickgelin
Registered Member
Posts
8
Karma
0
Do I need new KDE depot for Debian Jessie ? Because Debian Jessie use Calligra binaries packages 2.8 and to build I need Calligra 2.9.11 build packages ?
User avatar
jstaniek
Moderator
Posts
1027
Karma
2
OS
I don't think you need that. 2.8 and 2.9 are both minor releases. You an safely try to build 2.9.11 with these dependencies that worked for 2.8. Or if you can and want, code from calligra/2.9 branch of calligra.git is the newest one (newer than 2.9.11)


Best regards,
Jarosław Staniek
• Qt Certified Specialist
KEXI - Open Source Visual DB Apps Builder
• Request a feature or fix for KEXI here
May I help you? Please mention your app's version and OS when asking for help
patrickgelin
Registered Member
Posts
8
Karma
0
Sorry, I missed to explain I would like to build Kexi (Calligra) 2.9.11 because I understand Kexi (Calligra 2.8) can't open SQLite files... Or I doesn't understand how to use SQLigts files with Kexi 2.8 (comming with Debian Jessie distribution). Last Kexi featrures show it will be now OK with Sqlite 3.2, but I can't say it's 2.9.11 stables features or 3.0.a developement features ?
User avatar
jstaniek
Moderator
Posts
1027
Karma
2
OS
If you mean support for SQLite3 files not created with Kexi: support for this depends on interest:

A wish is here https://bugs.kde.org/show_bug.cgi?id=125843
And funding here https://www.bountysource.com/issues/268 ... -databases

Kexi is not meant to be specific database editor/designer, it's a rapid application development environment, so you start with it until you develop a final product/result.

For general SQLite3 editing via GUI, there's sqliteman for example.


Best regards,
Jarosław Staniek
• Qt Certified Specialist
KEXI - Open Source Visual DB Apps Builder
• Request a feature or fix for KEXI here
May I help you? Please mention your app's version and OS when asking for help
patrickgelin
Registered Member
Posts
8
Karma
0
OK ! Thank you for your explanations. But my problem is that kexi 2.8 can't run on windows, and I need a cross platform application (with no install). So I would like to use Kexi to manage sqlite file (and use a tool like Kexi with formulas to populate database quicly) as a prototype, then I would like to use lazarus (Pascal Object alternative to Delphi) to build final cross platform application...
User avatar
jstaniek
Moderator
Posts
1027
Karma
2
OS
Interesting. Creating prototypes (even UX mockups) is within Kexi future reach. 3.0 is "almost" ready for Windows :)

PS: sqliteman runs on Windows. It's a tool often used for testing content's of Kexi files out there.


Best regards,
Jarosław Staniek
• Qt Certified Specialist
KEXI - Open Source Visual DB Apps Builder
• Request a feature or fix for KEXI here
May I help you? Please mention your app's version and OS when asking for help
patrickgelin
Registered Member
Posts
8
Karma
0
This evening I'm on my debian. So the command below :

Code: Select all
sudo apt-get build-dep calligra
[sudo] password for gelinp:
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.


And looking for buid-dep calligra package into synaptic without any success, ask myself about the this package exist or not... It look's like there is no build-dep calligra package...

This is my source list :

Code: Select all
# deb cdrom:[Debian GNU/Linux 8.1.0 _Jessie_ - Official i386 DVD Binary-1 20150606-13:00]/ jessie contrib main

# deb cdrom:[Debian GNU/Linux 8.1.0 _Jessie_ - Official i386 DVD Binary-1 20150606-13:00]/ jessie main contrib

deb http://ftp.fr.debian.org/debian/ jessie main
deb-src http://ftp.fr.debian.org/debian/ jessie main

# deb http://security.debian.org/ jessie/updates contrib main
# deb-src http://security.debian.org/ jessie/updates main contrib

# jessie-updates, previously known as 'volatile'
deb http://ftp.fr.debian.org/debian/ jessie-updates contrib main 
deb-src http://ftp.fr.debian.org/debian/ jessie-updates contrib main 

deb http://ftp.fr.debian.org/debian/ jessie contrib 
deb-src http://ftp.fr.debian.org/debian/ jessie contrib 

deb http://ftp.debian.org/debian/ jessie-backports non-free contrib main 

deb http://www-fourier.ujf-grenoble.fr/~parisse/debian/ stable main

# deb http://www.deb-multimedia.org/ jessie main non-free
User avatar
jstaniek
Moderator
Posts
1027
Karma
2
OS
Regarding configuration distributions I'd redirect you to distribution forums. Unless a Debian user helps here.

Feel free to improve the build instructions linked above when you find working solution.


Best regards,
Jarosław Staniek
• Qt Certified Specialist
KEXI - Open Source Visual DB Apps Builder
• Request a feature or fix for KEXI here
May I help you? Please mention your app's version and OS when asking for help


Bookmarks



Who is online

Registered users: Bing [Bot], gfielding, Google [Bot], markhm, sethaaaa, Sogou [Bot], Yahoo [Bot]