2014-05-24 7:17 GMT+02:00 PCMan <pcman...@gmail.com>:
> Hello,
> As promised, I started to work on the Qt5 port of liblxqt. I took some
> time to merge the changes done by gilir into the qt5 branch of
> liblxqt.
> See: https://github.com/lxde/liblxqt/tree/qt5
>
> The following new changes are done.
> 1. Retain the old lib name liblxqt4 and liblxqt5. (I proposed using
> liblxqt-qt4/5 previously, but I got few feedback on this issue. So,
> leave it as it is and change it later if needed)
> 2. Use more portable header names in #include<> for Qt and qtxdg.
> 3. Fix broken detection of qmake path
> 4. Some clean up
> 5. Install lxqt portable headers with new prefix LXQt.
> Examples for Qt4:
> /usr/include/liblxqt4/LXQt/Settings
> /usr/include/liblxqt4/LXQt/lxqtsettings.h
> For Qt5:
> /usr/include/liblxqt5/LXQt/Settings
> /usr/include/liblxqt5/LXQt/lxqtsettings.h
> So newly written code using liblxqt should use something like this:
> #include <LXQt/Settings>
>
> Please help the testing and give some comments. The qt5 branch of
> lxqt-about already compiles with the qt5 liblxqt. I'll wait for a week
> for comments and bug reports. Then, if there're no objections, I'll
> start merging the qt5 branches into the master branches later.
>
> Thanks!

I tried to build lxqt-about with qt4, but it doesn't seem to work.
Building with qt5 is ok.

Build log :
[100%] Building CXX object CMakeFiles/lxqt-about.dir/main.cpp.o
/usr/bin/x86_64-linux-gnu-g++   -DLXQT_ETC_XDG_DIR=\"/etc/xdg\"
-DLXQT_SHARE_DIR=\"/usr/share/lxqt\" -DLXQT_VERSION=\"0.7.0\"
-DQT_CORE_LIB -DQT_GUI_LIB -g -O2 -fstack-protector
--param=ssp-buffer-size=4 -Wformat -Werror=format-security
-D_FORTIFY_SOURCE=2  -I/usr/include/lxqt -isystem /usr/include/qt4
-isystem /usr/include/qt4/QtGui -isystem /usr/include/qt4/QtCore
-I/home/gilir/Lubuntu/lxqt/qt5/lxqt-about    -o
CMakeFiles/lxqt-about.dir/main.cpp.o -c
/home/gilir/Lubuntu/lxqt/qt5/lxqt-about/main.cpp
/home/gilir/Lubuntu/lxqt/qt5/lxqt-about/main.cpp:28:28: fatal error:
LXQt/Application: Aucun fichier ou dossier de ce type
 #include <LXQt/Application>
                            ^
compilation terminated.

Using find_package(lxqt4 REQUIRED QUIET) in CmakeLists.txt also failed
(missing /usr/include/qt4 for the compilation).
Build log :
[100%] Building CXX object CMakeFiles/lxqt-about.dir/main.cpp.o
/usr/bin/x86_64-linux-gnu-g++   -DLXQT_ETC_XDG_DIR=\"/etc/xdg\"
-DLXQT_SHARE_DIR=\"/usr/share/lxqt4\" -DLXQT_VERSION=\"0.7.0\" -g -O2
-fstack-protector --param=ssp-buffer-size=4 -Wformat
-Werror=format-security -D_FORTIFY_SOURCE=2  -I/usr/include/lxqt4
-I/home/gilir/Lubuntu/lxqt/qt5/lxqt-about -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtGui    -o CMakeFiles/lxqt-about.dir/main.cpp.o -c
/home/gilir/Lubuntu/lxqt/qt5/lxqt-about/main.cpp
In file included from /usr/include/qt4/QtGui/QApplication:1:0,
                 from /usr/include/lxqt4/LXQt/lxqtapplication.h:31,
                 from /usr/include/lxqt4/LXQt/Application:1,
                 from /home/gilir/Lubuntu/lxqt/qt5/lxqt-about/main.cpp:28:
/usr/include/qt4/QtGui/qapplication.h:45:37: fatal error:
QtCore/qcoreapplication.h: Aucun fichier ou dossier de ce type
 #include <QtCore/qcoreapplication.h>
                                     ^
compilation terminated.

Regards,
Julien Lavergne

------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
_______________________________________________
Lxde-list mailing list
Lxde-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxde-list

Reply via email to