Announcement

Collapse
No announcement yet.

FAQ: Installing from source

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

    FAQ: Installing from source

    Here is couple links how to install/compile/package from source:


    Compiling / Ubuntu

    > Compiling things on Ubuntu Linux the Easy Way

    > CompilingSoftware

    > CheckInstall


    Packaging / Ubuntu

    > KubuntuTutorialsDay / Packaging

    > PackagingGuide

    > PackagingGuide/Python


    Build like a Ninja

    > Kubuntu/Ninjas


    DEBIAN (K/X/Ubuntu is Debian derived Linux release)

    > Compiling Software With Debian Linux

    > DebianKDE

    > Debian New Maintainers' Guide

    > How to make deb packages

    > Debian Library Packaging guide

    > The Debian GNU/Linux FAQ
    Chapter 7 - Basics of the Debian package management system



    LINUX

    > Installing software from source in Linux - 1.2

    > An beginners guide to compiling programs under Linux.


    README or INSTALL
    When you have unpacked tar, check if there is README or INSTALL files. They could contain exact instructions how to compile

    Example (from smplayer install.txt)
    This document explains how to compile and install smplayer.

    Compiling smplayer should be easy. It only depends on Qt. It can be compiled
    with both Qt 3 and Qt 4.

    First I'll explain how to do it in Linux. After that there's how to do it
    in Windows.

    1) Compiling with Qt 3
    2) Compiling with Qt 4
    3) Differences between Qt 3 and Qt 4
    4) Compiling with Qt 3 + KDE 3 support
    5) Changing installation path
    6) How to make a rpm package
    7) How to make a deb package
    8 ) How to compile in Windows


    1) Compiling with Qt 3
    ----------------------
    Be sure you have installed the Qt 3 development package. Its name maybe
    qt3-devel, libqt3-dev or something similar.

    Uncompress the source code, open a console (konsole or similar) and cd
    to the smplayer-0.5.x directory. Type "make". That's it.
    If compilation fails, be sure QTDIR points to the right path.

    To install it, type: "make install". That will install smplayer in
    /usr/local.

    You may run it without install it if you want to. It won't find the
    translation files and other required files, but you'll be able to take a
    look at it before installing.

    To uninstall it, just type "make uninstall".

    Packages for DIY compilers - errors and solutions

    build-essential
    informational list of build-essential packages

    This package contains an informational list of packages which are
    considered essential for building Debian packages. This package also
    depends on the packages on that list, to make it easy to have the
    build-essential packages installed.

    Error message:
    configure: error: C++ preprocessor "/lib/cpp" fails sanity check
    Do you have build-essential ? More at > configure: error: C++ preprocessor "/lib/cpp" fails sanity check

    Error message:
    checking for X... configure: error: Can't find X includes.
    or
    checking for X... configure: error: Can't find X libraries. Please check your installation and add the correct paths!
    This package helpped here: kdebase-dev
    development files for the KDE base module
    This package contains headers and other development files needed to
    compile software based on the KDE base module.
    More: X... configure: error: Can't find X includes

    Error message:
    configure: error: "Header file konq_operations.h is missing. Please install kdebase-devel package.
    This package helpped here: kde-devel
    the K Desktop Environment development files and modules

    This metapackage includes official KDE modules that are useful to developers,
    including KDE's software development kit (SDK), Qt3's designer tool, and all
    core KDE header and development packages.
    Error message:
    checking for FFMPEG... no
    configure: error: +Could not find ffmpeg. Please update PKG_CONFIG_PATH to point at location of ffmpeg pkgconfig files directory.
    These packages helpped: ffmpeg, libavutil, libavformat, libavcodec and libswscale.

    Links to: Topic: k3b compiling trouble
    http://kubuntuforums.net/forums/inde...opic=3091284.0

    Error message:
    checking for Qt... configure: error: Qt (>= Qt 3.0.3) (headers and libraries) not found. Please check your installation!
    ?? But, i do have:
    libqt3-headers; Qt3 header files
    libqt3-compat-headers; Qt 1.x and 2.x compatibility includes
    libqt3-mt; Qt GUI Library (Threaded runtime version), Version 3
    libqt3-mt-dev; Qt development files (Threaded)

    libqt4-dev; Qt 4 development files
    libqt4-qt3support; Qt 3 compatibility library for Qt 4
    JDoyle: Ho to install kmediagrab
    You need to set the qt directory in the PATH. Do this, add thes lines to your ~/.bashrc file
    QTDIR=/usr/share/qt3
    PATH=$QTDIR/bin:$PATH
    MANPATH=$QTDIR/doc/man:$MANPATH
    LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH

    export QTDIR PATH MANPATH LD_LIBRARY_PATH
    Alternative is to use:
    Code:
    QTDIR=/usr/share/qt3
    PATH=$QTDIR/bin:$PATH
    MANPATH=$QTDIR/doc/man:$MANPATH
    LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
    export QTDIR PATH MANPATH LD_LIBRARY_PATH
    ./configure
    Here it gives:
    ...
    checking for Qt... libraries /usr/share/qt3/lib, headers /usr/share/qt3/include using -mt
    checking if Qt compiles without flags... yes
    ...
    => configuration successful

    More at: Qt headers not found!


    Here is example how to fulfill the dependencies

    Compiling kalva-0.8.81.tar.bz2

    Code:
    :~$./configure
    checking for Qt... configure: error: Qt (>= Qt 3.3 and < 4.0) (library qt-mt) not found. Please check your installation!
    For more details about this problem, look at the end of config.log.
    Make sure that you have compiled Qt with thread support !
    Hmm - libraryqt3 is missing

    Using Ubuntu packages
    http://packages.ubuntu.com/

    There is several libqt3 packages -> libqt3-mt, libqt3-mt-dev
    installing libqt3-mt-dev (3:3.3.8really3.3.7-0ubuntu4)
    --installs-->libxrandr-dev (2:1.2.0-3ubuntu1)


    Another way to search packages:
    How to: search for files in packages, installed or not
    http://kubuntuforums.net/forums/inde...opic=3089149.0


    Again

    Code:
    :~$./configure
    checking for KDE... configure: error:
    in the prefix, you've chosen, are no KDE headers installed. This will fail.
    So, check this please and use another prefix!
    Hmm - search with error message (google), --> kde-devel --> installing it
    kde-devel (5:47)
    --installs-->
    kdebase-dev (4:3.5.6-0ubuntu19)
    kdelibs4-dev (4:3.5.6-0ubuntu13)
    kdesdk (4:3.5.6-0ubuntu2)
    kspy (4:3.5.6-0ubuntu2)
    libarts1-dev (1.5.6-0ubuntu1)
    libavahi-qt3-dev (0.6.17-0ubuntu3)
    libkonq4-dev (4:3.5.6-0ubuntu19)

    And again
    Code:
    :~$./configure
    Next step :
    Code:
    :~$ make
    Next
    Code:
    :~$ sudo checkinstall
    checkinstall — Track installation of local software, and produce
    a binary manageable with your package management software.
    And finally :
    Done. The new package has been installed and saved to
    /home/rog131/tmp/waiting/kalva-0.8.81/kalva_0.8.81-1_i386.deb
    You can remove it from your system anytime using:
    dpkg -r kalva

    Linux distributions

    There is differences between Linux distributions:

    Example:
    Michael Aust(Dolphin developer) wrote:
    THree seems to be a problem with the configure script we are using at
    the moment. The documentation has bene placed in
    /usr/share/doc/HTML/en/dolphin/ which is correct for non-debian
    systems. However on debian systems the documentation should go in
    /usr/share/doc/kde/HTML/en/dolphin/

    If you copy the contents of /usr/share/doc/HTML/en/dolphin/ to
    /usr/share/doc/kde/HTML/en/dolphin/ then the documentation will show.

    Michael.

    Note
    If you install programs without package management then you can't find programs with package managers (apt, aptitude, adept, synaptic...)


    More links

    > CheckInstall

    > Topic: TAR BALLS

    > Installing Software in Ubuntu

    > How to install ANYTHING in Ubuntu!

    > FAQ: Package Managers

    > Making Local Repository

    Before you edit, BACKUP !

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

    #2
    Re: FAQ: Installing from source

    Another guide from the Ubuntu Community Documentation:
    https://help.ubuntu.com/community/CompilingSoftware
    Jucato&#39;s Data Core

    Comment


      #3
      Re: FAQ: Installing from source

      That is good guide.

      Thank you, Jucato


      And more good links from Qqmike:

      Compiling things on Ubuntu Linux the Easy Way
      https://help.ubuntu.com/community/CompilingEasyHowTo

      CheckInstall
      https://help.ubuntu.com/community/CheckInstall


      Adding links to the "Here is couple links how to install/compile from source:"
      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


        #4
        Re: FAQ: Installing from source

        DIY Backport

        Links to the Topic: Installing a .tar.bz2 file?
        http://kubuntuforums.net/forums/inde...opic=3091916.0


        UbuntuBackports
        https://help.ubuntu.com/community/UbuntuBackports
        What are Backports

        Ubuntu releases a new version of its OS every 6 months. After a release, the version of all packages stays constant for the entire 6 months. For example, if Ubuntu ships with OpenOffice.org 2.0.x, it will remain at OpenOffice.org 2.0.x for the entire 6-month release cycle, even if a later version gets released during this time. The Ubuntu team may apply important security fixes to 2.0.x, but any new features or non-security bugfixes will not be made available.

        This is where Ubuntu Backports comes in. The Backports team believes that the best update policy is a mix of Ubuntu's security-only policy AND providing new versions of some programs. Candidates for version updates are primarily desktop applications, such as your web browser, word processor, IRC client, or IM client. These programs can be updated without replacing a large part of the operating system that would affect stability of the whole system.

        Backports is an official Ubuntu repository and maintained by knowledgeable Ubuntu developers who are often present on IRC and other communications media.

        If your favorite package isn't backported, you can backport it yourself (or try to ).


        Example

        Backporting freedroidrpg from Hardy Heron (8.04) to the Gutsy Gibbon (7.10).

        Donwloading the lastest (repo) version of freedroidrpg from Ubuntu Packages =>

        Downloading:
        • freedroidrpg_0.10.3-3.diff.gz
        • freedroidrpg_0.10.3-3.dsc
        • freedroidrpg_0.10.3.orig.tar.gz



        The Debian Maintenance HOWTO
        Chapter 9 - Building Packages
        http://www.infodrom.org/Debian/doc/m...-pkgbuild.html
        9.1 Source Packages

        The Debian distribution comes in form of binary and source packages. While you would only install binary packages, source packages can be of more interest to you. You can learn a lot by reading other peoples code or patches. This can also be important if you want to use the same software on different OSes or want to use a specific Debian patch somewhere else.

        A Debian source package usually consists of three files:

        * .dsc containing meta information about the source package
        * .diff.gz containing all patches that Debian applied to the package
        * .orig.tar.gz containing the pristine upstream source tarball

        Automatic Dependency Solving

        In the konsole:
        Code:
        sudo apt-get build-dep freedroidrpg
        man apt-get
        build-dep
        build-dep causes apt-get to install/remove packages in an attempt to satisfy the build dependencies for a source package.
        => installing:
        libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2 libsdl-net1.2-dev
        libsmpeg-dev...

        Note !
        The Kubuntu Gutsy Gibbon (7.10) has freedroidrpg 0.10.1-1ubuntu1, So this attempts to satisfy the build dependencies with freedroidrpg 0.10.1-1ubuntu1.


        Compiling

        In the same folder as .dsc, diff.gz and .orig.tar.gz :
        Code:
        dpkg-source -x freedroidrpg_0.10.3-3.dsc
        man dpkg-source
        dpkg-source - Debian source package (.dsc) manipulation tool

        Moving to the freedroidrpg-0.10.3 folder. In the konsole:
        Code:
        dpkg-buildpackage -rfakeroot -b -uc
        or
        Code:
        logsave /media/sda6/tmp/output.txt dpkg-buildpackage -rfakeroot -b -uc
        if you want to check the output of the compilation process.

        man dpkg-buildpackage
        dpkg-buildpackage - build binary or source packages from sources
        man fakeroot
        fakeroot - run a command in an environment faking root privileges for file manipulation
        man logsave
        logsave - save the output of a command in a logfile

        Result

        Time passes... =>
        freedroidrpg_0.10.3-3_i386.deb
        freedroidrpg-data_0.10.3-3_all.deb
        Installing - Topic: Making Local Repository

        Installed the following packages:
        freedroidrpg (0.10.3-3)
        freedroidrpg-data (0.10.3-3)
        and freedroidrpg seems to work.


        Other Backports

        ScummVM 0.11
        http://kubuntuforums.net/forums/inde...opic=3092350.0

        Kile 2
        http://kubuntuforums.net/forums/inde...opic=3092369.0

        Eric 4.
        http://kubuntuforums.net/forums/inde...opic=3092578.0
        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: FAQ: Installing from source

          DIY Forwardport

          Links to the Topic: KSynaptics removed from repositories

          Downloading from the Ubuntu Packages
          • ksynaptics_0.3.3-2ubuntu1.diff.gz
          • ksynaptics_0.3.3.orig.tar.gz
          • ksynaptics_0.3.3-2ubuntu1.dsc


          In the same folder as .dsc, diff.gz and .orig.tar.gz :
          Code:
          dpkg-source -x ksynaptics_0.3.3-2ubuntu1.dsc
          cd to the ksynaptics-0.3.3: In the konsole:
          Code:
          dpkg-buildpackage -rfakeroot -b -uc
          =>
          dpkg-checkbuilddeps: Unmet build dependencies: cdbs libsynaptics-dev automake1.9 autoconf
          Installing those: =>

          Installed the following packages:
          autoconf (2.61-4)
          automake1.7 (1.7.9-9)
          automake1.9 (1.9.6+nogfdl-3ubuntu1)
          cdbs (0.4.51ubuntu1)
          fdupes (1.40-4build1)
          intltool (0.37.1-1ubuntu1)
          libsynaptics-dev (0.14.6c-1)
          libsynaptics0 (0.14.6c-1)
          m4 (1.4.10-1)
          Again:
          Code:
          dpkg-buildpackage -rfakeroot -b -uc
          => ksynaptics_0.3.3-2ubuntu1_i386.deb (225 k)


          Notes
          Using Kubuntu Hardy Heron Beta (8.04). Compilation output tells:
          Log of dpkg-buildpackage -rfakeroot -b -uc
          Sat Mar 29 20:56:13 2008

          snip
          *************** Important *************************

          This module contains unreleased software.

          The software may compile and work, but it may just
          as well neither compile nor work.

          ************************************************** **
          snap
          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


            #6
            Re: FAQ: Installing from source

            This is linking to the Topic: Dolphin RAW image thumbnails


            KSquirrel

            > KSquirrel Home
            > KSquirrel / KDE-Apps
            > KSquirrel wiki


            Compiling KSquirrel in the Kubuntu 8.04 Hardy Heron


            Kubuntu 8.04 Hardy Heron has in the repositories ksquirrel lib packages:

            Ubuntu Packages
            Package libksquirrel-dev

            * hardy (libdevel): KDE image viewer [universe]
            0.8.0-0ubuntu1: i386

            Package libksquirrel-tools

            * hardy (libs): KDE image viewer [universe]
            0.8.0-0ubuntu1: i386

            Package libksquirrel0

            * hardy (libs): KDE image viewer [universe]
            0.8.0-0ubuntu1: i386

            BUT there are no main KSquirrel program. Bug #107228 in Ubuntu / [needs packaging] KSquirrel - image viewer for KDE tells:
            Ubuntu Hardy Heron (8.04), the next version of Ubuntu, is in feature freeze. So ksquirrel will go into Ubuntu 8.10 as soon as it's developmented is kicked off.

            One way to get Ksquirrel to the Hardy:

            Downloading ksquirrel-0.8.0.tar.bz2 from the KSquirrel Home, unpacking it to the /media/sdc6/tmp_ksquirrel/ksquirrel-0.8.0/ source file is in the /media/sdc6/tmp_ksquirrel/path/.

            In the /ksquirrel-0.8.0/ directory:
            Code:
            dh_make -e [email]name@domain.dom[/email] -f /media/sdc6/tmp_ksquirrel/path/ksquirrel-0.8.0.tar.bz2
            Type of package: single binary, multiple binary, library, kernel module or cdbs?
            [s/m/l/k/b] s

            Maintainer name : Rog131
            Email-Address : name@domain.dom
            Date : Mon, 24 Mar 2008 20:15:32 +0200
            Package Name : ksquirrel
            Version : 0.8.0
            License : blank
            Type of Package : Single
            Hit <enter> to confirm:
            Done. Please edit the files in the debian/ subdirectory now. ksquirrel
            uses a configure script, so you probably don't have to edit the Makefiles.
            control - file in the debian subdirectory:
            Source: ksquirrel
            Section: unknown
            Priority: extra
            Maintainer: Rog131
            Build-Depends: debhelper (>= 5), autotools-dev
            Standards-Version: 3.7.2

            Package: ksquirrel
            Architecture: any
            Depends: ${shlibsepends}, ${miscepends}
            Description: Image viewer for KDE
            KSquirrel is an image viewer for KDE implementing OpenGL. Homepage: http://ksquirrel.sourceforge.net/
            changelog:
            ksquirrel (0.8.0-1) unstable; urgency=low

            * Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>

            -- Rog131 <name@domain.dom> Mon, 24 Mar 2008 20:15:32 +0200

            In the /ksquirrel-0.8.0/ directory:
            Code:
            dpkg-buildpackage -rfakeroot -b -uc

            Errors:

            checking for X... configure: error: Can't find X libraries. Please check your installation and add the correct paths!
            Installed:
            kdebase-dev.

            checking for ksquirrellibs... no
            configure: error: Ksquirrel-libs development file (.pc) is not installed. Please install ksquirrel-libs first.
            Installed the following packages:
            libksquirrel-dev (0.8.0-0ubuntu1)
            libksquirrel-tools (0.8.0-0ubuntu1)

            checking for konq_operations.h... no
            configure: error: "Header file konq_operations.h is missing. Please install libkonq-devel package."
            Installed:
            kde-devel

            => ksquirrel_0.8.0-1_i386.deb


            Checking additional support =>
            KIPI support: no
            KEXIF support: no
            Installed the following packages:
            libkipi0-dev
            libexif-dev
            libkexif1
            libkexif1-dev


            Compiling:
            Code:
            dpkg-buildpackage -rfakeroot -b -uc
            => ksquirrel_0.8.0-1_i386.deb 1,1 M

            and
            KIPI support: yes
            KEXIF support: yes
            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: FAQ: Installing from source

              From source to the Debian package (.deb)


              This is linking to the Video previews.


              Kubuntu Intrepid Ibex pre-alpha, KDE 4.1 Beta 2


              Downloading source from the KDE-APPS.org > MPlayerThumbs

              Version: 1.0

              Description:
              MPlayerThumbs is a video thumbnail generator for KDE file managers (Konqueror, Dolphin, ...) , now available also for KDE 4.
              It needs mplayer (of course) to generate thumbnails, and it contains no linking to any library, so in a x86_64 system you can freely use the 32bit mplayer binary with win32codecs by configuring the application launching the mplayerthumbsconfig helper application.
              It catches a random frame from 15% to 70%, checking also how contrasted is the image, and dropping bad frames.

              Changelog:
              2008-06-20 MPlayerThumbs 1.0
              * First stable release
              * Porting to KDE 4
              * Refactoring code, for more stability and speed
              * Also KDE 4 adds for us a free feature, random thumbnail generation on
              the preview on the information toolbar on each mouseover


              #1 Dropping mplayerthumbs-1.0.tar.bz2 to the /media/sdc6/tmp_mplayerthumbs/source

              #2 Unpacking mplayerthumbs-1.0.tar.bz2 to the /media/sdc6/tmp_mplayerthumbs/mplayerthumbs-1.0

              #3 cd to /media/sdc6/tmp_mplayerthumbs/mplayerthumbs-1.0

              #4 Reading README file


              #5 In the konsole:

              Code:
              export QTDIR=/usr/share/qt4
              export KDEDIR=/usr
              export KDEDIRS=$KDEDIR
              export KDE_BUILD=$KDEDIR
              export DBUSDIR=$KDEDIR
              export LD_LIBRARY_PATH=$QTDIR/lib:$KDEDIR/lib:$LD_LIBRARY_PATH
              export PKG_CONFIG_PATH=$DBUSDIR/lib/pkgconfig:/usr/lib/pkgconfig
              export PATH=$QTDIR/bin:$KDEDIR/bin:$PATH
              cmake -DCMAKE_INSTALL_PREFIX=$KDEDIR -DCMAKE_BUILD_TYPE=release /media/sdc6/tmp_mplayerthumbs/mplayerthumbs-1.0
              -- Found Qt-Version 4.4.0 (using /usr/bin/qmake)
              -- Found X11: /usr/lib/libX11.so
              -- Found Automoc4: /usr/bin/automoc4
              -- Found Perl: /usr/bin/perl
              -- Found KDE 4.1 include dir: /usr/include
              -- Found KDE 4.1 library dir: /usr/lib
              -- Found KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
              -- Found KDE4 automoc: /usr/bin/automoc4
              -- Configuring done
              -- Generating done
              -- Build files have been written to: /media/sdc6/tmp_mplayerthumbs/mplayerthumbs-1.0

              #6 Debianzing (making /debian)

              Code:
              dh_make -e [email]name@domain.dom[/email] -f /media/sdc6/tmp_mplayerthumbs/source/mplayerthumbs-1.0.tar.bz2
              Type of package: single binary, multiple binary, library, kernel module or cdbs?
              [s/m/l/k/b] s

              Maintainer name : Rog131
              Email-Address : name@domain.dom
              Date : Wed, 25 Jun 2008 12:30:35 +0300
              Package Name : mplayerthumbs
              Version : 1.0
              License : blank
              Using dpatch : no
              Type of Package : Single
              Hit <enter> to confirm:
              Done. Please edit the files in the debian/ subdirectory now. You should also
              check that the mplayerthumbs Makefiles install into $DESTDIR and not in / .

              #7 Editing:


              /media/sdc6/tmp_mplayerthumbs/mplayerthumbs-1.0/debian/changelog
              mplayerthumbs (1.0-1) unstable; urgency=low

              * Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>

              -- Rog131 <name@domain.dom> Wed, 25 Jun 2008 12:30:35 +0300
              /media/sdc6/tmp_mplayerthumbs/mplayerthumbs-1.0/debian/control
              Source: mplayerthumbs
              Section: kde
              Priority: extra
              Maintainer: Rog131 <name@domain.dom>
              Build-Depends: cmake, kdelibs5-dev, libqt4-dev, debhelper (>= 6)
              Standards-Version: 3.7.3
              Homepage: http://www.kde-apps.org/content/show...?content=41180

              Package: mplayerthumbs
              Architecture: any
              Depends: ${shlibsepends}, ${miscepends}
              Description: thumbnail generator for video files on Dolphin and Konqueror
              MPlayerThumbs is a thumbnail generator for all KDE file managers (konqueror, dolphin, ...) It needs mplayer (of course) to generate thumbnails, and it contains no linking to any library, so in a x86_64 system you can freely use the 32bit mplayer binary with win32codecs by configuring the application launching the mplayerthumbsconfig helper application. Homepage: http://kde-apps.org/content/show.php?content=41180
              /media/sdc6/tmp_mplayerthumbs/mplayerthumbs-1.0/debian/README.Debian
              mplayerthumbs for Debian
              ------------------------

              Compiled in the Kubuntu Intrepib Ibex pre-alpha, KDE 4.1 Beta 2

              -- Rog131 <name@domain.dom> Wed, 25 Jun 2008 12:30:35 +0300

              #8 finally building packages

              Code:
              dpkg-buildpackage -rfakeroot -b -uc

              Result: mplayerthumbs_1.0-1_i386.deb (35 kB)


              #9 Testing

              Installing:
              Code:
              sudo dpkg -i mplayerthumbs_1.0-1_i386.deb
              Looking info:
              Code:
              apt-cache show mplayerthumbs
              Package: mplayerthumbs
              Status: install ok installed
              Priority: extra
              Section: unknown
              Installed-Size: 180
              Maintainer: Rog131 <name@domain.dom>
              Architecture: i386
              Version: 1.0-1
              Depends: kdebase-runtime (>= 4:4.0.66), kdelibs5 (>= 4:4.0.83), libbz2-1.0, libc6 (>= 2.4), libgcc1 (>= 1:4.1.1), libice6 (>= 1:1.0.0), libqt4-dbus (>= 4.4.0), libqt4-network (>= 4.4.0), libqt4-svg (>= 4.4.0), libqt4-xml (>= 4.4.0), libqtcore4 (>= 4.4.0), libqtgui4 (>= 4.4.0), libsm6, libstdc++6 (>= 4.1.1), libx11-6, libxau6, libxcursor1 (>> 1.1.2), libxdmcp6, libxext6, libxfixes3 (>= 1:4.0.1), libxft2 (>> 2.1.1), libxrender1, libxtst6, zlib1g (>= 1:1.1.4)
              Description: thumbnail generator for video files on Dolphin and Konqueror
              MPlayerThumbs is a thumbnail generator for all KDE file managers (konqueror, dolphin, ...) It needs mplayer (of course) to generate thumbnails, and it contains no linking to any library, so in a x86_64 system you can freely use the 32bit mplayer binary with win32codecs by configuring the application launching the mplayerthumbsconfig helper application. Homepage: http://kde-apps.org/content/show.php?content=41180

              Link to the Video previews.
              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


                #8
                Re: FAQ: Installing from source

                GCC 4.3/4.4


                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.

                and more > GCC 4.4 related build problems: missing #include
                By Martin Michlmayr

                C++ header dependencies got cleaned up in GCC 4.3, which broke a lot of code which relied on headers to be included indirectly through some other headers. I found some new build failures with GCC 4.4 related to missing #includes; in particular, #include <cstdio> is missing in a lot of code.

                Typical errors look like these:

                error: 'sscanf' was not declared in this scope
                error: 'EOF' was not declared in this scope
                error: '::fseek' has not been declared
                error: 'uint32_t' does not name a type

                Below is a table showing which header needs to be included for a number of common functions:
                Functions and defines Header
                fopen, fwrite, fclose cstdio
                fread, fseek, feof cstdio
                sscanf, sprintf cstdio
                rename, open cstdio
                EOF cstdio
                memset, memcpy, strdup cstring
                va_list cstdarg
                int16_t, uint32_t stdint.h
                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

                Working...
                X