Hello,

I'm trying to learn the kde framework so I went on searching for examples with 
version 5. However I wasn't able to compile them in my system so I took a step 
backguards and try a simple Qt5 app.

I haven't been able to make a simple one _using_ the packages from my linux 
distro, and I don't know if I need to install other packages or it just lacks 
support for it.


Am facing various problems mixed with ignorance. I have borrowed an 
example code from the web and the CMakeLists file, in it I've placed 
'find_package(QT5Widgets REQUIRED)', but it is failing to find it, even 
though i've installed the 'libqt5quickwidgets5' package, I'm asssuming 
that I need the development one, probably something like 
'libqt5quickwidgets5-dev', however It seems there is no such package.

Another question, in the cmake modules dir (/usr/share/cmake-3.0.0/Module) I 
see 'FindQt3, FindQt4 and FindQt; 
should I expect also the Qt5 to be there?, I'm a little bit confused 
because 'find_package(Qt5Core REQUIRED)' throws no errors.

Finally my machine is currently running Kubuntu 15.04 upgraded from Kubuntu 
14.10 Tech Preview.

Any help will be apreciated, also if there is a more suitable list for this 
kind of questions (but using standad package from the distro as the development 
platform) please let me know.

Thanks in advance.

Regards.

Javier

PD: The 'full' code and CMakeLists file.

cmake_minimum_required(VERSION 3.0)
project (qt-hello)
find_package(QT5Widgets REQUIRED)
find_package(Qt5Core REQUIRED)
set(qt-hello_SRCS main.cpp)
add_executable(qt-hello main.cpp)
qt5_use_modules(qt-hello Core Gui Widgets)


--

#include <QApplication>
#include <Qlabel>

int main(int argc, char * argv[]){

  QApplication app(argc, argv);
  QLabel * label = new QLabel("Hello QT");
  label->show();
  return app.exec();
}
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to