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

Graphics tablet - Sensitivity gone?

Tags: None
(comma "," separated)
slangkamp
KDE Developer
Posts
607
Karma
4
Recently there was a problem with pressure in Qt. The problem has been fixed upstream and a few distributions have shipped updates. You probably need a new Qt version with the fix.
User avatar
Scnd101
Registered Member
Posts
34
Karma
0
OS
slangkamp wrote:Recently there was a problem with pressure in Qt. The problem has been fixed upstream and a few distributions have shipped updates. You probably need a new Qt version with the fix.


I've 4.6.2 right now, which version do I need to update to?
slangkamp
KDE Developer
Posts
607
Karma
4
There is no official release with the fix yet. I don't think Arch patches Qt, so you probably have to wait for 4.6.3
enkithan
Registered Member
Posts
18
Karma
0
OS
building Qt with the pressure sensitivity patch on Arch :

1.download all files at:
http://repos.archlinux.org/wsvn/packages/qt/trunk/

2.replace the PKGBUILD by this one :
Code: Select all
pkgname=qt
pkgver=4.6.2
pkgrel=3
pkgdesc='A cross-platform application and UI framework'
arch=('i686' 'x86_64')
url='http://qt.nokia.com/'
license=('GPL3' 'LGPL')
depends=('libpng' 'fontconfig' 'libtiff' 'libmng' 'sqlite3' 'xdg-utils' 'ca-certificates'
         'hicolor-icon-theme' 'alsa-lib' 'glib2' 'dbus' 'libxrender' 'libgl' 'libsm')
optdepends=('postgresql-libs' 'libmysqlclient' 'unixodbc')
makedepends=('mesa' 'inputproto' 'postgresql-libs' 'mysql' 'unixodbc' 'cups' 'libxfixes' 'gtk2')
install=qt.install
options=('!libtool')
_pkgfqn="qt-everywhere-opensource-src-${pkgver}"
source=("ftp://ftp.qt.nokia.com/qt/source/${_pkgfqn}.tar.gz"
        'assistant.desktop' 'designer.desktop' 'linguist.desktop' 'qtconfig.desktop'
        'ca-certificates.patch' 'http://qt.gitorious.org/qt/qt/commit/f1e39e7dea8634695263435f0bf912ce19c43195.patch')
md5sums=('eb651ee4b157c01696aa56777fc6e0e5'
         'a445c6917086d80f1cfc1e40cb6b0132'
         'd457f0a0ad68a3861c3cadefe3b42ded'
         '668331d9798a0e2b94381efb7be4c513'
         'c29f2993d6a0f73d756d2fa36e130e1c'
         'd5c4cad7af93f1d736d4569a207bd739'
         '135bfbb750735c9cb86579b5bbbe822e')

build() {
   unset QMAKESPEC
   export QT4DIR=$srcdir/$_pkgfqn
   export PATH=${QT4DIR}/bin:${PATH}
   export LD_LIBRARY_PATH=${QT4DIR}/lib:${LD_LIBRARY_PATH}

   cd $srcdir/$_pkgfqn

   # see http://cvs.fedoraproject.org/viewvc/rpms/qt/devel/
   # use system ssl cert bundle
   patch -p1 -i $srcdir/ca-certificates.patch || return 1
    patch -p1 -i $srcdir/f1e39e7dea8634695263435f0bf912ce19c43195.patch || return 1

    sed -i "s|-O2|$CXXFLAGS|" mkspecs/common/g++.conf
    sed -i "/^QMAKE_RPATH/s| -Wl,-rpath,||g" mkspecs/common/g++.conf
    sed -i "/^QMAKE_LFLAGS\s/s|+=|+= $LDFLAGS|g" mkspecs/common/g++.conf

    ./configure -confirm-license -opensource \
        -prefix /usr \
        -sysconfdir /etc \
        -plugindir /usr/lib/qt/plugins \
        -translationdir /usr/share/qt/translations \
        -datadir /usr/share/qt \
        -docdir /usr/share/doc/qt \
        -examplesdir /usr/share/doc/qt/examples \
        -demosdir /usr/share/doc/qt/demos \
        -largefile \
        -plugin-sql-{psql,mysql,sqlite,odbc} \
        -system-sqlite \
        -xmlpatterns \
        -no-phonon \
        -no-phonon-backend \
        -svg \
        -webkit \
        -scripttools \
        -system-zlib \
        -system-libtiff \
        -system-libpng \
        -system-libmng \
        -system-libjpeg \
        -openssl-linked \
        -nomake demos \
        -nomake examples \
        -nomake docs \
        -no-rpath \
        -silent \
        -optimized-qmake \
        -dbus \
        -no-separate-debug-info \
        -reduce-relocations \
        -gtkstyle \
        -opengl \
        -no-openvg \
        -glib
    make
}

package() {
    cd $srcdir/$_pkgfqn
    make INSTALL_ROOT=$pkgdir install

    # install missing icons and desktop files
    for icon in tools/linguist/linguist/images/icons/linguist-*-32.png ; do
        size=$(echo $(basename ${icon}) | cut -d- -f2)
        install -p -D -m644 ${icon} ${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/linguist.png
    done
    install -p -D -m644 src/gui/dialogs/images/qtlogo-64.png ${pkgdir}/usr/share/icons/hicolor/64x64/apps/qtlogo.png
    install -p -D -m644 tools/assistant/tools/assistant/images/assistant.png ${pkgdir}/usr/share/icons/hicolor/32x32/apps/assistant.png
    install -p -D -m644 tools/designer/src/designer/images/designer.png ${pkgdir}/usr/share/icons/hicolor/128x128/apps/designer.png
    install -d ${pkgdir}/usr/share/applications
    install -m644 ${srcdir}/{linguist,designer,assistant,qtconfig}.desktop ${pkgdir}/usr/share/applications/

    # install license addition
    install -D -m644 LGPL_EXCEPTION.txt ${pkgdir}/usr/share/licenses/qt/LGPL_EXCEPTION.txt

    # Fix wrong path in pkgconfig files
    find ${pkgdir}/usr/lib/pkgconfig -type f -name '*.pc' \
        -exec perl -pi -e "s, -L${srcdir}/?\S+,,g" {} \;
    # Fix wrong path in prl files
    find ${pkgdir}/usr/lib -type f -name '*.prl' \
        -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/' {} \;
}


3.to build the package, type
Code: Select all
$ makepkg

4.to install:
Code: Select all
# pacman -U qt-4.6.2-3-"arch".pkg.tar.gz

replace "arch" by x86_64 or i686

5.after that, it would be a good idea to restart X or reboot ;D
User avatar
Scnd101
Registered Member
Posts
34
Karma
0
OS
wow, thanks man :) I suppose it would work if I replaced qt with qtmod? Otherwise the qt from arch seemed to run fine with kdemod so I should be fine either way :)
User avatar
Kubuntiac
Registered Member
Posts
786
Karma
2
@ Scnd101 - Please let me know how you go with this. I installed Arch + KDEmod via Chakra recently, but ran into the same issue. I've been trying to get tablet sensitivity in KDE apps now for YEARS. If this works I would desperately love to know!

@ enkithan - I saw you mentioned that you were working on an svn PKGBUILD for Krita in another thread. Any news on this? *hint!* *hint!* ;)
enkithan
Registered Member
Posts
18
Karma
0
OS
Scnd101 : hm good question, I don't know at all ;D.
If that doesn't works, we could still try to modify the qtmod PKGBUILD the same way I did for the qt PKGBUILD (I only changed 3 lines).

Kubuntiac : Actually, the PKGBUILD exist since at least a year, I'm just too lazy to edit my post :p
..ok ok I'll do it.
User avatar
Kubuntiac
Registered Member
Posts
786
Karma
2
enkithan wrote:Kubuntiac : Actually, the PKGBUILD exist since at least a year, I'm just too lazy to edit my post :p ..ok ok I'll do it.


Ahhhhhhhhhhhhhhhhh!!!!! When I searched the AUR, the most recent one for Krita was something ridiculous like 2008. It also seemed to be for a specific version of Krita (ie 2.0) rather than a "latest from SVN" version.

Posting a "latest from SVN" PKGBUILD would be very, very awesome! :)

(thankyou!)
enkithan
Registered Member
Posts
18
Karma
0
OS
I edited the post earlier in the day viewtopic.php?f=139&t=86990#p153589 :)
User avatar
Kubuntiac
Registered Member
Posts
786
Karma
2
enkithan wrote:I edited the post earlier in the day viewtopic.php?f=139&t=86990#p153589 :)


Kubuntiac runs off to boot into Arch amid squeals of girlish glee

enkthan - Thankyou! You ROCK! (officially)
User avatar
Scnd101
Registered Member
Posts
34
Karma
0
OS
Kubuntiac wrote:@ Scnd101 - Please let me know how you go with this. I installed Arch + KDEmod via Chakra recently, but ran into the same issue. I've been trying to get tablet sensitivity in KDE apps now for YEARS. If this works I would desperately love to know!


It worked perfectly :D, using the qt package from arch
User avatar
Kubuntiac
Registered Member
Posts
786
Karma
2
When I go to install this, Pacman tells me that it conflicts with QTmod and so doesn't install it. It should be ok to just remove QTmod as long as I immediately install this QT package, shouldn't it?

I just noticed the full error message is:
error: replacing packages with -U is not supported yet
error: you can replace packages manually using -Rd and -U
error: failed to prepare transaction (conflicting dependencies)
:: qt: conflicts with qtmod


Time to research this -Rd option, methinks...
User avatar
Kubuntiac
Registered Member
Posts
786
Karma
2
Scnd101 wrote:It worked perfectly :D, using the qt package from arch


Do you mean that you used standard qt from the Arch repo's, or did you rebuild qt as per enthikan's instructions above?

I just rebuilt qt with the pressure sensitivity patch, and I *still* have the same problem... *sigh*
User avatar
Scnd101
Registered Member
Posts
34
Karma
0
OS
Kubuntiac wrote:Do you mean that you used standard qt from the Arch repo's, or did you rebuild qt as per enthikan's instructions above?


I did it as in enthikan's instructions :)
partymetroid
Registered Member
Posts
5
Karma
0
OS
Er, um, hello... I am using Ubuntu 10.04 codenamed "Lucid Lynx". :<

I have compiled Krita and Karbon from source code acquired from Subversion (earlier today), as per my own mixture of these tutorials: http://wiki.koffice.org/index.php?title=Build_KOffice and http://forum.kde.org/viewtopic.php?f=139&t=86990.

Everything is working hunky-dory except two things (one is probably fixable; the other problem probably isn't (but I'll post about it nonetheless):

My tablet's sensitivity is not recognized by Krita, despite being recognized by the GIMP. I've looked into the problem already, and it seems to be a problem with Qt4.5; however, the repositories in Ubuntu 10.04 provide Qt4.6.

... help? 8)

[edit] Oh, the second thing is that Krita's speed is rather poor with OpenGL disabled; I enable it (in conjunction with my 3D-accelerated graphics card/drivers (ATi Radeon HD 4670 with fglrx). It's fast; however, the screen blanks out between brush strokes sometimes. Sometimes it doesn't. Idk. xD

[edit2] My OpenGL graphics are finicky in most other programs, so it's probably not Krita's problem.


Bookmarks



Who is online

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