Re: qt5ct for Wily

2015-09-21 Thread Ralf Mardorf
Thank you,

On Mon, 21 Sep 2015 13:40:37 +0300, Timo Jyrinki wrote:
>> [weremouse@moonstudio qt5ct-0.17]$ qtchooser -qt=5 -run-tool=qmake
>> PREFIX=/usr/local
>
>Just use export QT_SELECT=5 (or export QT_SELECT := 5 in debian/rules)
>and run qmake normally.

I already tried this too and it doesn't change anything.

>> main.cpp:29:38: fatal error: qpa/qplatformthemeplugin.h: No such
>> file or directory
>
>That's in qtbase5-private-dev since it's a private header that normal
>apps should not be using.

Yes, the problem is the qt4 path.

On Arch Linux just qmake is selected and it seems to work:

$ grep build -A4 /mnt/archlinux/var/abs/community/qt5ct/PKGBUILD 
build() {
cd $pkgname-$pkgver
qmake-qt5 $pkgname.pro 
make
}

However, on Arch I didn't build it, I just installed the binary package.
Perhaps there's a reason that qt5ct isn't provided by the Ubuntu
repositories and there's another solution already provided to select
theme and fonts, when not using KDE.

It might be related:
Maybe something is broken for my Ubuntu openbox install, e.g. font
sizes selected by .gtkrc-2.0 doesn't affect the menu bar of GTK2 apps
such as spacefm. I don't experience such issues for my Arch install.
For Ubuntu I need to start sessions with  export XDG_CONFIG_DIRS=""
to avoid unwanted autostarts, IOW Ubuntu handles a lot of things in a
different way, compared to the way I know. To handle things in
different ways is ok, unfortunately I can't find links were those
things are documented.

Regards,
Ralf

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: qt5ct for Wily

2015-09-21 Thread Timo Jyrinki
2015-09-20 12:24 GMT+03:00 Ralf Mardorf :
> does somebody know a link that introduces how to build qt5 applications
> for Wily?

The closest might be http://pkg-kde.alioth.debian.org/packagingqtstuff.html

> [weremouse@moonstudio qt5ct-0.17]$ qtchooser -qt=5 -run-tool=qmake 
> PREFIX=/usr/local

Just use export QT_SELECT=5 (or export QT_SELECT := 5 in debian/rules)
and run qmake normally.

> main.cpp:29:38: fatal error: qpa/qplatformthemeplugin.h: No such file or 
> directory

That's in qtbase5-private-dev since it's a private header that normal
apps should not be using.

> I wonder why the include paths are qt4.

Possibly since you were only specifying the Qt version to use for the
single tool, and the default fallback is Qt 4. That is, Qt 4
applications don't need to know about different Qt versions, but Qt 5
applications need to for example set that environment variable.

-Timo

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


qt5ct for Wily

2015-09-20 Thread Ralf Mardorf
Hi,

does somebody know a link that introduces how to build qt5 applications
for Wily?

My Internet connection is very slow at the moment, so web research is
very hard to do.

Btw. is http://packages.ubuntu.com/ relatively often down at the
moment? Often I cannot reach it, while my Interconnection seems to be ok.

I successfully build Qjackctl from git with Qt5, just building the
package failed, resp. it's incomplete, but QjackCtl runs.

Now I try to build qt5ct.


[weremouse@moonstudio qt5ct-0.17]$ qtchooser -qt=5 -run-tool=qmake 
PREFIX=/usr/local 
Project MESSAGE: Found lrelease executable: 
/usr/lib/x86_64-linux-gnu/qt5/bin/lrelease
Project MESSAGE: generating translations
Updating './src/qt5ct/translations/qt5ct_[snip]
Project MESSAGE: PREFIX=/usr/local
Project MESSAGE: BINDIR=/usr/local/bin
Project MESSAGE: DATADIR=/usr/local/share
Project MESSAGE: PLUGINDIR=/usr/lib/x86_64-linux-gnu/qt5/plugins/platformthemes


[weremouse@moonstudio qt5ct-0.17]$ make
cd src/qt5ct-qtplugin/ && ( test -e Makefile || 
/usr/lib/x86_64-linux-gnu/qt5/bin/qmake 
/usr/src/qt5ct-0.17/src/qt5ct-qtplugin/qt5ct-qtplugin.pro PREFIX=/usr/local -o 
Makefile ) && make -f Makefile 
make[1]: Entering directory '/usr/src/qt5ct-0.17/src/qt5ct-qtplugin'
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIC 
-DQT5CT_DATADIR=\"/usr/local/share\" -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB 
-DQT_CORE_LIB -DQT_SHARED -I../../../../share/qt4/mkspecs/linux-g++-64 -I. 
-I../../../../include/qt4/QtCore -I../../../../include/qt4/QtGui 
-I../../../../include/qt4 -I.. -I.build/moc -o .build/obj/main.o main.cpp
main.cpp:29:38: fatal error: qpa/qplatformthemeplugin.h: No such file or 
directory
compilation terminated.
Makefile:234: recipe for target '.build/obj/main.o' failed
make[1]: *** [.build/obj/main.o] Error 1
make[1]: Leaving directory '/usr/src/qt5ct-0.17/src/qt5ct-qtplugin'
Makefile:43: recipe for target 'sub-src-qt5ct-qtplugin-make_first' failed
make: *** [sub-src-qt5ct-qtplugin-make_first] Error 2


[weremouse@moonstudio qt5ct-0.17]$ ls -hAl 
/usr/include/x86_64-linux-gnu/qt5/QtGui/5.4.2/QtGui/qpa/qplatformthemeplugin.h
-rw-r--r-- 1 root root 2.4K May 29 22:30 
/usr/include/x86_64-linux-gnu/qt5/QtGui/5.4.2/QtGui/qpa/qplatformthemeplugin.h


I wonder why the include paths are qt4.

Regards,
Ralf

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss