Results 1 to 17 of 17

Thread: No xshape support note

  1. #1
    Join Date
    Jan 2006
    Location
    Riverside, Rhode Island, USA
    Posts
    245
    Thanks
    52
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default No xshape support note

    I am running Kubuntu 6.06. I have installed "g++", "make", and several opengl packages.

    when running " ,/conflgure -xshape" I get the message.
    Qt Code:
    1. XShape support cannot be enabled due to functionality tests!
    To copy to clipboard, switch view to plain text mode 

    Looking at the "configure" options I find
    Qt Code:
    1. * -xshape ............ Compile XShape support.
    2. Requires X11/extensions/shape.h.
    To copy to clipboard, switch view to plain text mode 
    my question is where do I go to get the necessary packages?

    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: No xshape support note

    It should be available in one of the X11 packages in your Linux distribution tree. AFAIR it is resposible (mostly?) for manipulating cursor shapes and Qt uses in (only?) in Designer while dragging widgets from the toolbox.

  3. The following user says thank you to wysota for this useful post:

    impeteperry (16th August 2006)

  4. #3
    Join Date
    Jan 2006
    Location
    Riverside, Rhode Island, USA
    Posts
    245
    Thanks
    52
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: No xshape support note

    Following your suggestion I went to
    http://packages.debian.org/testing/devel/qt4-dev-tools
    for a list of packages which solved that problem.

    but when I run "qmake examples.pro" I get
    pete@newCompaq:/usr/local/Trolltech/Qt-4.1.4/examples$ qmake examples.pro Failure to open file: /usr/local/Trolltech/Qt-4.1.4/examples/Makefile
    Unable to generate makefile for: examples.pro
    pete@newCompaq:/usr/local/Trolltech/Qt-4.1.4/examples$
    I find "qmake" in "/usr/Trolltech/Qt-4.1.4/bin
    My "bash_profile" is
    # ~/.bash_profile: executed by bash(1) for login shells.
    # see /usr/share/doc/bash/examples/startup-files for examples.
    # the files are located in the bash-doc package.

    # the default umask is set in /etc/login.defs
    #umask 022

    # include .bashrc if it exists
    if [ -f ~/.bashrc ]; then
    . ~/.bashrc
    fi

    # set PATH so it includes user's private bin if it exists
    if [ -d ~/bin ] ; then
    PATH=~/bin:"${PATH}"
    fi
    PATH=/usr/local/Trolltech/Qt-4.1.4/bin:$PATH
    export PATH
    fi
    I don't understand why "qmake" isn't found.
    Any help would be most appreciated

  5. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: No xshape support note

    qmake works, but it can't open /usr/local/Trolltech/Qt-4.1.4/examples/Makefile. Check your access rights.

  6. #5
    Join Date
    Jan 2006
    Location
    Riverside, Rhode Island, USA
    Posts
    245
    Thanks
    52
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: No xshape support note

    The owner of "usr" is "root"

    I am able to rus designer from a terminal in my home directory.

  7. #6
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: No xshape support note

    User "pete" doesn't have write access to /usr/local/Trolltech/Qt-4.1.4/*. So copy the desired example for example to your home dir and play around with the example there.
    Alternatively you could give write access to the examples directory or play around as root but I wouldn't recommend either of these latter alternatives..
    J-P Nurmi

  8. #7
    Join Date
    Jan 2006
    Location
    Riverside, Rhode Island, USA
    Posts
    245
    Thanks
    52
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: No xshape support note

    shouldn't the "user" have access to the "usr" directory?
    can I change ownership to it?
    I am unable to compile my .pro files for the same reason.

  9. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: No xshape support note

    Quote Originally Posted by impeteperry
    shouldn't the "user" have access to the "usr" directory?
    No, because then he would be able to mess up the whole system.

    Quote Originally Posted by impeteperry
    can I change ownership to it?
    Better not, but if you really want change it only for /usr/local/Trolltech/Qt-4.1.4/ and its subdirectories.

  10. #9
    Join Date
    Jan 2006
    Location
    Riverside, Rhode Island, USA
    Posts
    245
    Thanks
    52
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: No xshape support note

    I'm sorry to be so stupid, but I thought putting the "PATH" stuff in my bash_profile took care of user access.

  11. #10
    Join Date
    Jan 2006
    Location
    Riverside, Rhode Island, USA
    Posts
    245
    Thanks
    52
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: No xshape support note

    Thanks, I really have a lot to learn. Thanks, Have to go now.

  12. #11
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: No xshape support note

    Quote Originally Posted by impeteperry
    I'm sorry to be so stupid, but I thought putting the "PATH" stuff in my bash_profile took care of user access.
    PATH only tells the interpreter where to look for commands without an explicit path. And "access" is not the same as "write permission" -- you had problems with the latter.

  13. #12
    Join Date
    Jan 2006
    Location
    Riverside, Rhode Island, USA
    Posts
    245
    Thanks
    52
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: No xshape support note

    I had Qt-4.1.1 installed before my computers crashed and I had to reinstall everything.on both of them.

    I have Qt-3 on the old one and Qt-4 on the new one.
    Qt-3 no problem. I know it goes to /usr/share while Qt-4 goes to /usr/local but share is "root" all the way accross as is local.

    I don't remember this problems when I loaded Qt-4.1.1. (I don't think I was using opengl then.)

    I know I was able to compile the examples from /usr/local/Trolltech/Qt-4.1.1/examples as I have them on my backup disks.

    As I said Qt-4 designer, which is in the same directory as qmake, loads from a terminal in my home directory.

    I have also installed KDevelop. It can't find qmake either.

  14. #13
    Join Date
    Jan 2006
    Location
    Riverside, Rhode Island, USA
    Posts
    245
    Thanks
    52
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: No xshape support note

    I don't think the problem is permission
    QMake has two modes, one mode for generating project files based on
    some heuristics, and the other for generating makefiles. Normally you
    shouldn't need to specify a mode, as makefile generation is the default
    mode for qmake, but you may use this to test qmake on an existing project
    Ok, I'm back. I don't know why but "qmake" is now working as it should on my stuff. I still can't use it on any of the Qt-4 examples however.

  15. #14
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: No xshape support note

    Quote Originally Posted by impeteperry
    Ok, I'm back. I don't know why but "qmake" is now working as it should on my stuff. I still can't use it on any of the Qt-4 examples however.
    Run it as root.

  16. The following user says thank you to wysota for this useful post:

    impeteperry (18th August 2006)

  17. #15
    Join Date
    Jan 2006
    Location
    Riverside, Rhode Island, USA
    Posts
    245
    Thanks
    52
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: No xshape support note

    Quote Originally Posted by wysota
    Run it as root.
    That seem to work, sort of. I seem to be missing an "opengl" package,
    pete@newCompaq:/usr/local/Trolltech/Qt-4.1.4/examples$ make
    cd dialogs && make -f Makefile
    make[1]: Entering directory `/usr/local/Trolltech/Qt-4.1.4/examples/dialogs'
    cd complexwizard && make -f Makefile
    make[2]: Entering directory `/usr/local/Trolltech/Qt-4.1.4/examples/dialogs/complexwizard'
    g++ -o complexwizard complexwizard.o licensewizard.o main.o moc_complexwizard.o -L/usr/lib -lQtGui_debug -lQtCore_debug -lpthread
    /usr/bin/ld: cannot find -lQtGui_debug
    collect2: ld returned 1 exit status
    Which I will look for.

    I am able to compile several of the "sub-examples" ok except there are no code elements in "2dpainting" in "opengl" examples and when I run "textures" it automatically logs me out and I have to log in again.
    I know I never had any of this stuff in Qt-4.1.1, but I am happy as I can get an with my work. Thanks for your patience.

  18. #16
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: No xshape support note

    You probably have a broken OpenGL installation in your system. I doubt Qt has anything to do with this. As for the linking errros -- do you have Qt compiled in debug mode?

  19. #17
    Join Date
    Jan 2006
    Location
    Riverside, Rhode Island, USA
    Posts
    245
    Thanks
    52
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: No xshape support note

    I don't know about debug in compiling Qt. I had to load a bunch of "debug" packages thou.
    A complete intallation of Linux was done last week end.
    Once I got the modules listed in the URL I sent you from Debian, The only switch I used was the "-xshape" . I
    do use "opengl" in one of my programs.
    I use "ddd" or "KDevelop" for debugging.
    My ".pro" file is
    Qt Code:
    1. ######################################################################
    2. # Automatically generated by qmake (2.00a) Wed Jun 28 11:25:58 2006
    3. ######################################################################
    4.  
    5. TEMPLATE = app
    6. TARGET +=
    7. DEPENDPATH += .
    8. INCLUDEPATH += .
    9.  
    10. # Input
    11. CONFIG += opengl qt warn_on debug
    12. HEADERS += beams.h \
    13. columns.h \
    14. controlfunctions.h \
    15. drawingfunctions.h \
    16. editfunctions.h \
    17. edpform.h \
    18. existproject.h \
    19. helpfunction.h \
    20. listing.h \
    21. newproject.h \
    22. operations.h \
    23. plank.h \
    24. printing.h \
    25. products.h \
    26. supportlines.h
    27. FORMS += edpform.ui
    28. SOURCES += beams.cpp \
    29. columns.cpp \
    30. controlfunctions.cpp \
    31. drawingfunctions.cpp \
    32. editfunctions.cpp \
    33. edpform.cpp \
    34. existproject.cpp \
    35. helpfunction.cpp \
    36. listing.cpp \
    37. main.cpp \
    38. newproject.cpp \
    39. operations.cpp \
    40. plank.cpp \
    41. printing.cpp \
    42. products.cpp \
    43. supportlines.cpp
    To copy to clipboard, switch view to plain text mode 
    which works fine.

Similar Threads

  1. how to correctly compile threads support?
    By srhlefty in forum Installation and Deployment
    Replies: 9
    Last Post: 25th June 2006, 19:15
  2. MNG Support
    By Kruti in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 14th June 2006, 01:13
  3. 64-bit support in Windows?
    By jamos in forum Qt Programming
    Replies: 1
    Last Post: 12th May 2006, 16:29
  4. Problem building Qt4.1.0 with thread support on windows XP
    By pavithra in forum Installation and Deployment
    Replies: 1
    Last Post: 1st April 2006, 11:35
  5. Qt will not be built with XShape support.
    By manfredfr in forum Installation and Deployment
    Replies: 4
    Last Post: 14th March 2006, 08:26

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.