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

Error compiling KDEnlive from source

Tags: None
(comma "," separated)
gregramirez
Registered Member
Posts
7
Karma
0
Hi, I am having problems compiling kdenlive from source code, as instructed in the tutorial on the official page. I am getting an error that looks something like this:


/home/alex/Documents/kdenlive_project/kdenlive/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: ‘Q_WS_X11’ undeclared (first use in this function)
return ((int*)(&Q_WS_X11))[argc];

This is in the CMakeErrorLog.txt file generated when using the command:
$cmake .. -DCMAKE_INSTALL_PREFIX=/usr;

I have done some research and it seems there must be something wrong with some missing Qt libraries, but as of today I have been unable to fix it. Can anyone help me? If any more detail is needed I can include it ASAP
User avatar
google01103
Manager
Posts
6668
Karma
25
gregramirez - I moved your post to Kdenlive -> Installation (there's a shadow post still in place) as it seems more appropriate


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
Steve Guilford
Registered Member
Posts
207
Karma
0
Do you have QT5 installed?
gregramirez
Registered Member
Posts
7
Karma
0
Yes, I have just run the command qmake --version, and the output I got is:
QMake version 3.0
Using Qt version 5.2.1 in /usr/lib/x86_64-linux-gnu
Would the correct option be to downgrade to Qt4? Or maybe to use an older, more stable release of the source code?
User avatar
Steve Guilford
Registered Member
Posts
207
Karma
0
gregramirez wrote:Yes, I have just run the command qmake --version, and the output I got is:
QMake version 3.0
Using Qt version 5.2.1 in /usr/lib/x86_64-linux-gnu
Would the correct option be to downgrade to Qt4? Or maybe to use an older, more stable release of the source code?

What O/S and version are you using?

You may just need to install some more of QT4 in order to get it to compile. I run Ubuntu 14.04 LTS and have both QT4 and QT5 installed. They can co-exist on a machine if you install 'qtchooser'.
gregramirez
Registered Member
Posts
7
Karma
0
I'm using Kubuntu 14.04, I'm going to install Qt4 right now, maybe that will solve the problem if they can both reside in my system nicely.
I'll let you know of the results! Thanks!
vpinon
KDE Developer
Posts
708
Karma
6
OS

Fri Oct 31, 2014 7:08 am
Yes, Kdenlive is not yet ported to Qt5/KF5.
The easies way to get everything needed is to install source repository (deb-src line in addition to deb line in your apt source.list) and run apt-get build-dep kdenlive
gregramirez
Registered Member
Posts
7
Karma
0
Thanks to everyone for the help!

Firtly I have to say I'm very new to this and as much as I'm searching on Google, I can't find a way to install Qt4 while Qt5 is installed on the system. I tried the guide from this link, http://qt-project.org/doc/qt-4.8/install-x11.html, but it didn't work properly.
vpinion, would you be so kind as to explain these steps in a little more detail, since I don't quite understand what I have to do.

Thank you very much,

Greg
User avatar
Steve Guilford
Registered Member
Posts
207
Karma
0
vpinon
KDE Developer
Posts
708
Karma
6
OS

Fri Oct 31, 2014 7:59 pm
as super-user (sudo), edit /etc/apt/sources.list
copy the line looking like:
Code: Select all
deb http://fr.archive.ubuntu.com/ubuntu trusty main universe

and edit the duplicate like:
Code: Select all
deb-src http://fr.archive.ubuntu.com/ubuntu trusty main universe

save & quit, then run
Code: Select all
sudo apt-get update
apt-get build-dep kdenlive

On my plain chroot it offers to pull:
Code: Select all
automoc binutils bsdmainutils build-essential cmake cmake-data debhelper dh-apparmor dpkg-dev g++ g++-4.8 gcc
  gcc-4.8 gettext gettext-base hardening-wrapper intltool-debian kdelibs5-dev libarchive13 libasan0 libasprintf0c2
  libatomic1 libavcodec-dev libavdevice-dev libavformat-dev libavutil-dev libc-dev-bin libc6-dev libcroco3 libcurl3
  libdpkg-perl libdrm-dev libgcc-4.8-dev libgl1-mesa-dev libglu1-mesa-dev libitm1 libkimproxy4 libknewstuff2-4
  libkprintutils4 libkunitconversion4 libkutils4 liblzo2-2 libmlt++-dev libmlt-dev libnettle4 libphonon-dev
  libpipeline1 libpthread-stubs0-dev libqjson-dev libqt4-dev libqt4-dev-bin libqt4-help libqt4-opengl-dev
  libqt4-scripttools libqt4-test libquadmath0 libsoprano-dev libstdc++-4.8-dev libtsan0 libunistring0 libx11-dev
  libx11-xcb-dev libxau-dev libxcb-dri2-0-dev libxcb-dri3-dev libxcb-glx0-dev libxcb-present-dev libxcb-randr0
  libxcb-randr0-dev libxcb-render0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0 libxcb-xfixes0-dev
  libxcb1-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxshmfence-dev libxxf86vm-dev linux-libc-dev
  make man-db mesa-common-dev patch pkg-config po-debconf qt4-linguist-tools qt4-qmake x11proto-core-dev
  x11proto-damage-dev x11proto-dri2-dev x11proto-fixes-dev x11proto-gl-dev x11proto-input-dev x11proto-kb-dev
  x11proto-xext-dev x11proto-xf86vidmode-dev xorg-sgml-doctools xtrans-dev xz-utils

better than entering each by hand ;)
gregramirez
Registered Member
Posts
7
Karma
0
Thank you very much guys! I got it working in the end!!
I actually used a bit of both of the last two answers and in the end it compiled perfectly, and I learnt some things in the process too.
I'm glad there's people like you to help newbies like me for this kind of things.

-Greg Ramirez


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]