Announcement

Collapse
No announcement yet.

Build Problems

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

    Build Problems

    I am attempting to build a package for the first time under Kubuntu and am receiving some strange errors at the configure step of the process. I'm attempting to build the latest version of kdar which I have downloaded and extracted to /usr/local/kdar-2.0.7. I'm building on an AMD 64-bit platform, onto which I installed the 64-bit Kubuntu 7.10. The INSTALL file tells me to use the following configure statement:

    ./configure --prefix=$HOME/.kde --enable-mode=64 --enable-largefile

    I did this and it failed fairly early on, generating a config.log file which I have attached as config.txt.

    Being relatively inexperienced at this process, I am having problems seeing where the problem is in the config.log file and what I need to do to fix it.

    Can anyone provide a bit of help?

    Thanks.
    Bill Lugg
    Attached Files

    #2
    Re: Build Problems

    Is your configuring stopping at the:
    Syntax error
    configure:6179: error: C++ preprocessor "/lib/cpp" fails sanity check
    Do you have build-essential ? > configure: error: C++ preprocessor "/lib/cpp" fails sanity check


    Link: FAQ: Installing 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


      #3
      Re: Build Problems

      That was my initial problem...thanks!

      Now I'm running into the problem of finding the Qt libraries. I'm currently working through the FAQ and some of the references it provides to see if I can figure this out before I ask for more help.

      I had a somewhat canned configure statement that worked under an old SuSE installation on my 64-bit machine, but obviously everything is different under Kubuntu. )

      Thanks again for the help.
      Bill Lugg

      Comment


        #4
        Re: Build Problems

        OK, on further research in the links pointed to by the FAQ provide in a previous post, it appears that I may be missing the -dev packages for Qt. The problem is that I don't know the names of them to feed in to the apt-get command. How does one typically find this info out?

        The other strange thing is that I can see a long list of Qt libraries in the /usr/lib64 folder, but using a statement like the following still doesn't seem to work.

        ./configure --prefix=/opt/kde3 --enable-mode=64 --enable-largefile --with-qtdir=/usr/lib64/ --with-qt-libraries=/usr/lib64/ --with-extra-libs=/usr/lib64

        It still complains with the following error:

        checking for Qt... configure: error: Qt (>= Qt 3.3) (headers and libraries) not found. Please check your installation!
        For more details about this problem, look at the end of config.log.

        FWIW, I have not migrated to KDE 4, so I should still be using some version of Qt predating Qt 4, right? I have once again attached the latest config.log as config.txt if anyone is interested.
        Attached Files

        Comment


          #5
          Re: Build Problems

          it appears that I may be missing the -dev packages for Qt. The problem is that I don't know the names of them to feed in to the apt-get command. How does one typically find this info out?
          Hmm - i simply install kde-devel =>

          kde-devel
          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
          .

          Your error:
          checking for Qt... configure: error: Qt (>= Qt 3.3) (headers and libraries) not found. Please check your installation!
          For more details about this problem, look at the end of config.log.
          and
          config.log
          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
          What tells:
          Code:
          locate qglobal.h
          Here:
          /usr/include/qt3/qglobal.h
          /usr/include/qt4/Qt/qglobal.h
          /usr/include/qt4/QtCore/qglobal.h
          If you can locate/find those files => This is a path problem...


          man locate/updatedb
          Secure Locate provides a secure way to index and quickly search for all files on your system regardless of ownership...
          ...
          updatedb - update the slocate database
          If this is new installation, it is good to update datebase first:
          Code:
          sudo updatedb
          and then locate...


          About qglobal.h (and qapplication.h, qcursor.h...)

          Ubuntu Packages
          This site provides you with information about all the packages available in the Ubuntu Package archive.
          tells that:
          You have searched for filenames that contain qglobal.h in suite gutsy, all sections, and all architectures. Found 4 results.

          File Packages
          /usr/include/lsb3/qt3/qglobal.h lsb-build-desktop3
          /usr/include/qt3/qglobal.h libqt3-headers
          /usr/include/qt4/Qt/qglobal.h libqt4-dev
          /usr/include/qt4/QtCore/qglobal.h libqt4-dev

          FWIW, I have not migrated to KDE 4, so I should still be using some version of Qt predating Qt 4, right?
          GutsyGibbon/Tribe1/Kubuntu
          For you KDE developers out there, Kubuntu is announcing the latest Qt release, version 4.3.
          KDE 3 needs Qt 3.X or later, but Kubuntu has the latest stable Qt release. To Gutsy it was Qt 4.3.2.
          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: Build Problems

            Thanks for the additional info. That was what I needed to get through the configure script. Loading kde-devel and the suggested and recommended packages did the trick for me. However, it now has compile problems during the make process, associated with libdar. I'm guessing that it might be associated with the fact that I'm building on a 64-bit platform. It looks like Kdar is dead so I think I need to look for another backup tool.

            I might post another question about that under another topic.

            Thanks again for the help.
            Bill Lugg

            Comment


              #7
              Re: Build Problems

              if u get any lib errors - install the -dev of it in the adept/synaptic. Alas build-essential won't be enough once u compile more programs, etc.. u'll need to download and install more -dev (development headers/files, etc..) then.
              Wanna know more about Me and My computer then click here

              Comment


                #8
                Re: Build Problems

                I finally got a chance to give your suggestion a spin, but couldn't find a -dev package for libdar or dar to help me out, so it would seem I'm right back where I started. Can you point me to the location of the -dev package or the correct name to refer to it by to get adept to find it?

                Thanks.
                Bill Lugg

                Comment


                  #9
                  Re: Build Problems

                  in terminal

                  Code:
                  sudo apt-get install libdar-dev
                  ur pw won't show as you type.

                  if that won't work, enable more repositories.

                  then

                  sudo apt-get update

                  sudo apt-get upgrade #to get all the updates needed first.
                  Wanna know more about Me and My computer then click here

                  Comment

                  Working...
                  X