Results 1 to 16 of 16

Thread: KDE on QT4

  1. #1
    Join Date
    Dec 2009
    Posts
    26
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default KDE on QT4

    hi all,
    I have installed QT 4 on Ubuntu 9.04 and I would like to use KDE resources from QT designer tool but I received some error compilation when I am tried to use it.
    Please advice what I need to install(packages) and how configure it. A web link will be good
    Many thanks
    Simbad

  2. #2
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    1
    Thanked 29 Times in 27 Posts

    Default Re: KDE on QT4

    Very informative.
    What errors did you get? When did you get them?
    I'm a rebel in the S.D.G.

  3. #3
    Join Date
    Dec 2009
    Posts
    26
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: KDE on QT4

    Thanks for your reply, I recieved the following error
    .../ui_file.h:22: error: kled.h: No such file or directory
    I didn't write this first since I think I need to install KDE lib such as Kled and others

  4. #4
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    1
    Thanked 29 Times in 27 Posts

    Default Re: KDE on QT4

    You need to install kdelibs4-dev and make sure that INCLUDEPATH points to the right location of kled.h
    I'm a rebel in the S.D.G.

  5. #5
    Join Date
    Dec 2009
    Posts
    26
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: KDE on QT4

    I have installed it OK but when I tried to search kled.h file, it does not exist....

  6. #6
    Join Date
    Dec 2009
    Posts
    26
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: KDE on QT4

    I found it on /usr/include/kde

    Thanks

  7. #7
    Join Date
    Dec 2009
    Posts
    26
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: KDE on QT4

    Now I got problem with reference
    ../ui_filename.h:56: undefined reference to `KLed::KLed(QWidget*, char const*)'

  8. #8
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    1
    Thanked 29 Times in 27 Posts

    Default Re: KDE on QT4

    If you are using .pro file then you need to specify DEPENDPATH and LIBS, if not, make sure you specify correct library path through -L and correct libraryname through -l flags (el)
    I'm a rebel in the S.D.G.

  9. #9
    Join Date
    Dec 2009
    Posts
    26
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: KDE on QT4

    yes, I am using *.pro file but I didn't find the library that contains Kled. please help..

  10. #10
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    1
    Thanked 29 Times in 27 Posts

    Default Re: KDE on QT4

    What is the list of files installed by that package (that you have installed) recently?
    I'm a rebel in the S.D.G.

  11. #11
    Join Date
    Dec 2009
    Posts
    26
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: KDE on QT4

    I fixed OK, but now I had new error
    error: collect2: ld returned 1 exit status

  12. #12
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    1
    Thanked 29 Times in 27 Posts

    Default Re: KDE on QT4

    The linking didn't succeed. Can you show this pro file?
    I'm a rebel in the S.D.G.

  13. #13
    Join Date
    Dec 2009
    Posts
    26
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: KDE on QT4

    # ################################################## ###################
    # Automatically generated by qmake (2.01a) Tue Nov 10 13:22:55 2009
    # ################################################## ###################
    TEMPLATE = app
    TARGET =
    LIBS += /usr/lib/kde4
    INCLUDEPATH += $(PROJECT)/SimpleUseStatic/ /home/simbad/workspace/SimpleUseLib/ /usr/include/kde
    # Input
    HEADERS += keypadfirsttest.h \
    TestKeypad.h \
    /home/simbad/workspace/SimpleUseLib/CSimpleUser.h \
    /home/simbad/workspace/SimpleUseStatic/CSimpleStaticUse.h
    FORMS += keypadfirsttest.ui
    SOURCES += keypadfirsttest.cpp \
    main.cpp \
    TestKeypad.cpp \
    /home/simbad/workspace/SimpleUseLib/CSimpleUser.cpp \
    /home/simbad/workspace/SimpleUseStatic/CSimpleStaticUse.cpp
    OTHER_FILES +=

  14. #14
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    1
    Thanked 29 Times in 27 Posts

    Default Re: KDE on QT4

    That is not correct.
    Your LIBS is not properly defined.
    You LIBS should look like this:
    Qt Code:
    1. LIBS += -L/usr/lib/kde4 -l<kde_lib>
    To copy to clipboard, switch view to plain text mode 

    where <kde_lib> is the name of the library (without word 'lib') which contains the function that you are using.

    E.g. You are using the function from the libextracthere.so, then you have to specify "-lextracthere".

    Sorry, I can't be more specific, because I'm not familiar with your code.
    I'm a rebel in the S.D.G.

  15. #15
    Join Date
    Dec 2009
    Posts
    26
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: KDE on QT4

    OK, thanks I will try to fix it.
    Maybe you know how could I know which KDE c or cpp file are related to specific header file. I mean how could I recolonize which KLed.h belong to specif library in the link process.

  16. #16
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    1
    Thanked 29 Times in 27 Posts

    Default Re: KDE on QT4

    You are using some KDE function which is declared in kled.h, right? So, you know its name. If I didn't know the name of the lib, I would use nm or objdump to explore libs in /usr/lib/kde4. (This approach is not the fastest, but the easiest, at least for me).
    I'm a rebel in the S.D.G.

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
  •  
Qt is a trademark of The Qt Company.