Announcement

Collapse
No announcement yet.

Error: Make for KDE C++ project in KDevelop

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

    Error: Make for KDE C++ project in KDevelop

    running Make on a KDE C++ project in KDevelop gives the following error:

    Code:
    ./admin/cvs.sh: 651: --version: not found
    *** AUTOCONF NOT FOUND!.
    *** KDE requires autoconf 2.53 or newer
    make[1]: *** [cvs] Error 1
    make: *** [all] Error 2
    *** Exited with status: 2 ***
    'regular' (command line) CPP projects compile and run fine. Is there a remedy?

    #2
    Re: Error: Make for KDE C++ project in KDevelop

    in the "main" section of feisty's repositories,
    autoconf is version 2.63.
    so, have a go with:
    Code:
    sudo apt-get install autoconf
    then try "make" again.

    gnu/linux is not windoze

    Comment


      #3
      Re: Error: Make for KDE C++ project in KDevelop

      apt-get says: "autoconf is already the newest version."

      Comment


        #4
        Re: Error: Make for KDE C++ project in KDevelop

        Originally posted by lightnb
        ./admin/cvs.sh: 651: --version: not found
        You may check line 651 "et al." of the mentioned script for a typo or the like ... (?)

        Comment


          #5
          Re: Error: Make for KDE C++ project in KDevelop

          line 651 reads:
          Code:
           echo "  package-merge package-messages"
          In the context:

          Code:
          arg=`echo $1 | tr .- __`
          case $arg in
           cvs | dist | subdir_dist | configure_in | configure_files | subdirs | \
           cvs_clean | package_merge | package_messages | Makefile_am | acinclude_m4 | extract_messages ) $arg ;;
           configure ) call_and_fix_autoconf ;;
           * ) echo "Usage: cvs.sh <target>"
             echo "Target can be one of:"
             echo "  cvs svn dist"
             echo "  configure.in configure.files"
             echo "  package-merge package-messages"
             echo ""
             echo "Usage: anything but $1"
             exit 1 ;;
          esac
          I don't understand what this script is doing, so I can't really guess at how to fix it...

          Comment


            #6
            Re: Error: Make for KDE C++ project in KDevelop

            in looking for line 651, pls consider "split" lines, like this:
            cvs | dist | subdir_dist | configure_in | configure_files | subdirs | \
            cvs_clean | package_merge | package_messages | Makefile_am | acinclude_m4 | extract_messages ) $arg ;;
            that's 2 lines for the text editor, but only 1 for the interpreter.
            could you pls, post the entire script as an attachment?
            cheers
            gnu/linux is not windoze

            Comment


              #7
              Re: Error: Make for KDE C++ project in KDevelop

              Code:
                 echo "Usage: anything but $1"
              Ehehehe.

              Anyway, it says "--version" is not found, so somewhere around line 651, it's trying to execute "--version".

              (What you might try doing is going to line 651, then searching for "--version" from there.)
              For external use only.

              Comment


                #8
                Re: Error: Make for KDE C++ project in KDevelop

                "--version" seems to be inside of a function near the top of the file:

                Code:
                check_autotool_versions()
                {
                required_autoconf_version="2.53 or newer"
                AUTOCONF_VERSION=`$AUTOCONF --version | head -n 1`
                case $AUTOCONF_VERSION in
                 Autoconf*2.5* | autoconf*2.5* | autoconf*2.6* ) : ;;
                 "" )
                  echo "*** AUTOCONF NOT FOUND!."
                  echo "*** KDE requires autoconf $required_autoconf_version"
                  exit 1
                  ;;
                 * )
                  echo "*** YOU'RE USING $AUTOCONF_VERSION."
                  echo "*** KDE requires autoconf $required_autoconf_version"
                  exit 1
                  ;;
                esac
                
                AUTOHEADER_VERSION=`$AUTOHEADER --version | head -n 1`
                case $AUTOHEADER_VERSION in
                 Autoconf*2.5* | autoheader*2.5* | autoheader*2.6* ) : ;;
                 "" )
                  echo "*** AUTOHEADER NOT FOUND!."
                  echo "*** KDE requires autoheader $required_autoconf_version"
                  exit 1
                  ;;
                 * )
                  echo "*** YOU'RE USING $AUTOHEADER_VERSION."
                  echo "*** KDE requires autoheader $required_autoconf_version"
                  exit 1
                  ;;
                esac
                
                AUTOMAKE_STRING=`$AUTOMAKE --version | head -n 1`
                required_automake_version="1.6.1 or newer"
                case $AUTOMAKE_STRING in
                 automake*1.5d* | automake*1.5* | automake*1.5-* )
                  echo "*** YOU'RE USING $AUTOMAKE_STRING."
                  echo "*** KDE requires automake $required_automake_version"
                  exit 1
                  ;;
                 automake*1.6.* | automake*1.7* | automake*1.8* | automake*1.9* | automake*1.10*)
                  echo "*** $AUTOMAKE_STRING found."
                  UNSERMAKE=no
                  ;;
                 "" )
                  echo "*** AUTOMAKE NOT FOUND!."
                  echo "*** KDE requires automake $required_automake_version"
                  exit 1
                  ;;
                 *unsermake* ) :
                  echo "*** YOU'RE USING UNSERMAKE."
                  echo "*** GOOD LUCK!! :)"
                  UNSERMAKE=unsermake
                  ;;
                 * )
                  echo "*** YOU'RE USING $AUTOMAKE_STRING."
                  echo "*** KDE requires automake $required_automake_version"
                  exit 1
                  ;;
                esac
                unset required_automake_version
                }
                I've attached the entire cvs.sh file as .txt.
                Attached Files

                Comment


                  #9
                  Re: Error: Make for KDE C++ project in KDevelop

                  Unless someone else comes up with a better idea, you may add to check_autotool_versions() code similar to the following:

                  Code:
                  echo "Identified version of 'autoconf': $AUTOCONF_VERSION" >> ~/debug.log
                  Hopefully, this is going to reveal the script's "sight" of autoconf - thus bringing us one step closer to a solution.

                  Comment


                    #10
                    Re: Error: Make for KDE C++ project in KDevelop

                    it's good to me.

                    right at the beginning of the check_autotool_versions() function, before the penguin's suggested

                    Code:
                    echo "Identified version of 'autoconf': $AUTOCONF_VERSION" >> ~/debug.log
                    debug line, i would also put:

                    Code:
                    echo "Identified 'autoconf': $AUTOCONF" >> ~/debug.log
                    gnu/linux is not windoze

                    Comment


                      #11
                      Re: Error: Make for KDE C++ project in KDevelop

                      I tried adding:

                      Code:
                        echo "Identified version of 'autoconf': $AUTOCONF_VERSION" >> ~/debug.log
                      	echo "Identified 'autoconf': $AUTOCONF" >> ~/debug.log
                      in:

                      Code:
                      check_autotool_versions()
                      {
                      echo "Identified version of 'autoconf': $AUTOCONF_VERSION" >> ~/debug.log
                      echo "Identified 'autoconf': $AUTOCONF" >> ~/debug.log
                      required_autoconf_version="2.53 or newer"
                      AUTOCONF_VERSION=`$AUTOCONF --version | head -n 1`
                      case $AUTOCONF_VERSION in
                       Autoconf*2.5* | autoconf*2.5* | autoconf*2.6* ) : ;;
                       "" )
                      but it didn't change the error output.

                      Comment


                        #12
                        Re: Error: Make for KDE C++ project in KDevelop

                        But what's in ~/debug.log?
                        For external use only.

                        Comment


                          #13
                          Re: Error: Make for KDE C++ project in KDevelop

                          Identified version of 'autoconf':
                          Identified 'autoconf':

                          Comment


                            #14
                            Re: Error: Make for KDE C++ project in KDevelop

                            Originally posted by lightnb
                            Identified version of 'autoconf':
                            Identified 'autoconf':
                            Locating these lines below the code declaring the according variables would have been more cute ... :P

                            Code:
                            AUTOCONF_VERSION=`$AUTOCONF --version | head -n 1`
                            echo "Identified 'autoconf': $AUTOCONF" >> ~/debug.log
                            echo "Identified version: $AUTOCONF_VERSION" >> ~/debug.log
                            --

                            Further reading: "Scripting for Beginners"

                            Comment


                              #15
                              Re: Error: Make for KDE C++ project in KDevelop

                              Originally posted by UnicornRider
                              Locating these lines below the code declaring the according variables would have been more cute ... :P
                              uhm, looks like AUTOCONF be an empty string, though...

                              so the script tries to execute:
                              Code:
                              AUTOCONF_VERSION=`$AUTOCONF --version | head -n 1`
                              which is expanded into:
                              Code:
                              AUTOCONF_VERSION=`--version | head -n 1`
                              hence the original error message:
                              ./admin/cvs.sh: 651: --version: not found
                              it should then be sufficient to set an AUTOCONF environment variable, on the command line, like so:
                              Code:
                              export AUTOCONF='/usr/bin/autoconf'
                              and then try and execute the whole thing again...

                              gnu/linux is not windoze

                              Comment

                              Working...
                              X