Announcement

Collapse
No announcement yet.

How to compile KDE3 apps in Intrepid?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to compile KDE3 apps in Intrepid?

    Hi all,

    I just upgraded to Intrepid, which uses KDE4 only. However, some KDE programs still haven't been ported to KDE4 yet, so I still need to use KDE3 programs as well. This is actually no problem, for example, Intrepid comes with the old KDE3 amarok which works fine. My question is: How to compile KDE3 apps now? I tried to compile the latest version of kbibtex, and the configure script says

    ...
    checking for KDE... configure: error:
    in the prefix, you've chosen, are no KDE libraries installed. This will fail.
    So, check this please and use another prefix! :P

    What do I need to install to be able to compile KDE3 programs? Do I need to set environment variables in a particular way to make it work?

    Any help appreciated, best,
    zsaja

    #2
    Re: How to compile KDE3 apps in Intrepid?

    What tells config.log (1)? What is missing ? Something like:
    conftest.cc:2:21: error: qglobal.h: No such file or directory
    conftest.cc:3:26: error: qapplication.h: No such file or directory
    conftest.cc:4:21: error: qcursor.h: No such file or directory
    conftest.cc:5:27: error: qstylefactory.h: No such file or directory
    conftest.cc:6:34: error: private/qucomextra_p.h: No such file or directory
    => Search package(s) (2),(3) that has qglobal.h, qapplication.h,... and install it.


    About compiling kde 3 programs in II

    Intrepid don't have all kde3 packages. One of the missing is libkonq4 (and libkonq4-dev to build). You can install those packages from the Ubuntu Packages (2).

    Note that II is using gcc 4.3, if you get FTBFS like this:
    sq_converter.cpp: In destructor ‘virtual SQ_Converter::~SQ_Converter()’:
    sq_converter.cpp:57: error: ‘free’ was not declared in this scope
    sq_converter.cpp: In member function ‘void SQ_Converter::decodingCycle()’:
    sq_converter.cpp:271: error: ‘realloc’ was not declared in this scope
    sq_converter.cpp:312: error: ‘free’ was not declared in this scope
    make[4]: *** [sq_converter.o] Error 1
    It could be this > gcc 4.3 and archlinux
    In the meanwhile, I found out one big change: gcc 4.3 doesn't include C
    functions anymore when including c++ includes. This breaks a horrible
    amount of packages, but fixing is easy:
    Whenever there's a missing function, look it up in its manpage:

    strcpy: man 3 strcpy, look for include, which will be <string.h> in this
    case. As we're using C++ now and want a C include, this will become
    #include <cstring> without the .h and a c prepended.

    (1) config.log (snap from an INSTALL file)
    The `configure' shell script attempts to guess correct values for
    various system-dependent variables used during compilation. It uses
    those values to create a `Makefile' in each directory of the package.
    It may also create one or more `.h' files containing system-dependent
    definitions. Finally, it creates a shell script `config.status' that
    you can run in the future to recreate the current configuration, a file
    `config.cache' that saves the results of its tests to speed up
    reconfiguring, and a file `config.log' containing compiler output
    (useful mainly for debugging `configure').
    ..
    (2) Ubuntu Packages
    This site provides you with information about all the packages available in the Ubuntu Package archive.
    (3) How to: search for files in packages, installed or not
    Before you edit, BACKUP !

    Why there are dead links ?
    1. Thread: Please explain how to access old kubuntu forum posts
    2. Thread: Lost Information

    Comment


      #3
      Re: How to compile KDE3 apps in Intrepid?

      Thanks for your help, Rog131.

      The program I want to compile is the development snapshot of kbibtex, http://www.unix-ag.uni-kl.de/~fische...apshot.tar.bz2 . The config.log is very long, but I searched for "error" and found stuff like

      conftest.c:62:27: error: Carbon/Carbon.h: No such file or directory
      conftest.c:29:33: error: CoreAudio/CoreAudio.h: No such file or directory
      conftest.c:71:25: error: crt_externs.h: No such file or directory

      Searching with apt-file for the missing files however returned no hits at all. :P

      As configure says "in the prefix, you've chosen, are no KDE libraries installed", shouldn't I install kde3 libraries somehow? But what are the necessary packages and where do I get them? apt-file didn't help me in this case ...

      best,
      zsaja

      Comment


        #4
        Re: How to compile KDE3 apps in Intrepid?

        > FAQ: Installing from source


        The latest version in the repositories: kbibtex (0.2.1-1)

        But if you want to use the svn. Dowloading kbibtex-svnsnapshot.tar.bz2 and unpacking it.

        cd to the /kbibtex-svnsnapshot and
        Code:
        ./configure
        getting:
        checking for KDE... configure: error:
        in the prefix, you've chosen, are no KDE libraries installed. This will fail.
        So, check this please and use another prefix!
        Checking, what are the build dependencies: > Package: kbibtex (0.2.1-1)

        Downloading sources:
        kbibtex_0.2.1-1.diff.gz
        kbibtex_0.2.1-1.dsc
        kbibtex_0.2.1.orig.tar.gz

        In the same folder as sources ((1), you may need these later):
        Code:
        dpkg-source -x kbibtex_0.2.1-1.dsc
        cd /kbibtex-0.2.1/debian

        control file tells:
        Build-Depends: debhelper (>> 4.1), autotools-dev, cdbs, kdelibs4-dev (>= 3.3.2), libxslt1-dev
        Installing kdelibs4-dev:
        kdebase-dev will be removed
        kdebase-workspace-dev will be removed
        kdelibs5-dev will be removed
        kdepimlibs5-dev will be removed
        libkonq5-dev will be removed
        libplasma-dev will be removed
        kdelibs4-dev (version 4:3.5.10-0ubuntu6) will be installed

        Again:
        Code:
        ./configure
        and..
        Good - your configure finished. Start make now
        Now make+make install or checkinstall should work.


        Debbie's

        If you want to make debian packages (.deb) here is a way to do it.

        Unpacking kbibtex-svnsnapshot.tar.bz2 -> kbibtex-svnsnapshot and copying /debian folder from the /kbibtex-0.2.1/debian (earlier (1)) to the /kbibtex-svnsnapshot.

        cd to the /kbibtex-svnsnapshot/debian and start konsole there.

        Giving commands:
        Code:
         export DEBFULLNAME="Your Name"
        export DEBEMAIL="Your.Email@address.here"
        and (2)
        Code:
        dch -i
        adding:
        kbibtex (0.2.1-svnsnapshot-838) intrepid; urgency=low

        * Testbuild from the svn

        -- Your Name <Your.Email@address.here> Sat, 25 Oct 2008 13:39:56 +0300
        Saving and exit:
        Code:
        Ctrl-o, Ctrl-x
        Maybe you want to change "Maintainer:" and add something to the "Description:" in the control file.

        In the /kbibtex-svnsnapshot folder (konsole):
        Code:
        dpkg-buildpackage -us -uc -rfakeroot
        =>

        kbibtex_0.2.1-svnsnapshot-838.dsc
        kbibtex_0.2.1-svnsnapshot-838_i386.changes
        kbibtex_0.2.1-svnsnapshot-838_i386.deb
        kbibtex_0.2.1-svnsnapshot-838.tar.gz

        Right clicking kbibtex_0.2.1-svnsnapshot-838_i386.deb, Open With -> GDebi...


        Dropping sources to the > PPA (Personal Package Archives for Ubuntu) > kbibtex (0.2.1-svnsnapshot-838~ppa1)


        (2) man dch
        NAME
        debchange - Tool for maintenance of the debian/changelog file in a
        source package

        --increment, -i
        Increment either the final component of the Debian release num‐
        ber or, if this is a native Debian package, the version number.
        This creates a new section at the beginning of the changelog
        with appropriate headers and footers. Also, if this is a new
        version of a native Debian package, the directory name is
        changed to reflect this.
        dch is using here nano (nano - Nano’s ANOther editor, an enhanced free Pico clone).
        Attached Files
        Before you edit, BACKUP !

        Why there are dead links ?
        1. Thread: Please explain how to access old kubuntu forum posts
        2. Thread: Lost Information

        Comment


          #5
          Re: How to compile KDE3 apps in Intrepid?

          Thanks for your detailed advice!

          In my case, installing kdelibs4-dev was all I needed to make it work. However, for installing this package aptitude required to remove kdelibs5-dev and some other packages. I said OK, and kbibtex compiled and installed well. Unfortunately, after doing this I cannot compile KDE4 programs anymore, the concrete example being the svn version of digikam, which tells me

          CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:72 (MESSAGE):
          ERROR: cmake/modules/FindKDE4Internal.cmake not found

          I expect this is due to the now missing kdelibs5-dev? (Before removing this package I could compile digikam.) Is there a way to have both kdelibs dev packages installed so that I can compile KDE3 and KDE4 stuff, as in Kubuntu 8.04?

          Best,
          zsaja

          Comment


            #6
            Re: How to compile KDE3 apps in Intrepid?

            I expect this is due to the now missing kdelibs5-dev? (Before removing this package I could compile digikam.) Is there a way to have both kdelibs dev packages installed so that I can compile KDE3 and KDE4 stuff, as in Kubuntu 8.04?
            Yes, installing kdelibs4-dev will remove several packages as dependencies have:
            kdelibs5-dev Conflicts: kdelibs4-dev
            and
            libplasma-dev Depends: kdelibs5-dev
            libkonq5-dev Depends: kdelibs5-dev
            and so on...
            And those packages are:
            kdelibs4-dev: development files for the KDE (3) core libraries
            kdelibs5-dev: development files for the KDE 4 core libraries

            As in the Kubuntu 8.04...

            There KDE 4 packages were installed so that they could co-exist with the KDE 3.5 packages.

            After i compile KDE 3.5 application:
            Code:
            sudo apt-get install kdebase-dev kdebase-workspace-dev kdelibs5-dev kdepimlibs5-dev libkonq5-dev libplasma-dev
            Before you edit, BACKUP !

            Why there are dead links ?
            1. Thread: Please explain how to access old kubuntu forum posts
            2. Thread: Lost Information

            Comment


              #7
              Re: How to compile KDE3 apps in Intrepid?

              So every time I want to compile some kde3 app I should install kdelibs4-dev and uninstall kdelibs5-dev in the process, compile what I want to compile, and afterwards install kdelibs5-dev once again? Is there no tricky way to restore hardy's coexistence of the two also in intrepid?

              I see that doing as described above will work, but it's quite an uncomfortable procedure ... hopefully most kde3 programs will get ported to kde4 soon.

              Anyway, thanks for your help,
              zsaja

              Comment


                #8
                Re: How to compile KDE3 apps in Intrepid?

                I keep seeing solutions like this, but . . . I remember back when I first started using a 64-bit version of Kubuntu there were tons of things that wouldn't work in 64-bit, so instead one would have a second semi-install in a chroot and just have things set up there. Could not the same general procedure as was done for 32-bit stuff in 64-bit be done for KDE3 stuff in KDE4? Or am I missing something here?

                Also, as an alternative to the way above of building packages, I find "checkinstall" a bit more straightforward. I found out about it ages ago on the Ubuntu forums and I can't find the post, but this Debian article is accurate I think:

                http://www.debian-administration.org/articles/147

                Comment


                  #9
                  Re: How to compile KDE3 apps in Intrepid?

                  And in Ubuntu Documentation - Checkinstall
                  Using Kubuntu Linux since March 23, 2007
                  "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                  Comment

                  Working...
                  X