Announcement

Collapse
No announcement yet.

using cmake

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

    using cmake

    I am trying to install a program from source. I "untarred" the program and used cd to enter the directory. I then typed "sudo ./configure" which worked (i.e. the program configured), but when typing "make" I got the message "***no targets specified and no makefile found. stop."
    After browsing and asking it was suggested that I use cmake which I installed. How should I proceed from here. When typing "cmake" in the directory of the untarred program I get a list of options to use with cmake. Is there a HOWTO somewhere for cmake?
    TIA
    Errol

    #2
    Re: using cmake

    What program is it? Normally you don't want to use sudo with ./configure and make. It makes the root the owner of the files and a pain to delete.

    ./configure
    make
    sudo make install

    Kubuntu should use sudo checkinstall instead of sudo make install.

    FKA: tanderson

    Comment


      #3
      Re: using cmake

      The program is a photographic database program called iota.

      Comment


        #4
        Re: using cmake

        errol, did you retry the process in a new clean folder with:

        ./configure

        instead of sudo ./configure

        ??
        Check out my Ⓥegan youtube channel PlantSugar
        CV and gallery at grn.dk
        Please add [SOLVED] to topic subject when topic is solved.

        Comment


          #5
          Re: using cmake

          yes. It gives me all kids of permission denied notices. The exact text is:
          :~/iota-0.8$ ./configure
          ./configure: 94: cannot create conftest.sh: Permission denied
          ./configure: 94: cannot create conftest.sh: Permission denied
          chmod: cannot access `conftest.sh': No such file or directory
          ./configure: line 85: conftest.sh: Permission denied
          ./configure: line 86: conftest.sh: Permission denied
          chmod: cannot access `conftest.sh': No such file or directory
          ./configure: line 196: conf11518.file: Permission denied
          ./configure: line 970: config.log: Permission denied
          Only when I use sudo or kdesudo does the configure work but then there is no make command that works. After configure working I get:
          errol@errol-linux:~/iota-0.8$ make
          make: *** No targets specified and no makefile found. Stop.
          I can paste the whole configure process if it will help.

          Comment


            #6
            Re: using cmake

            what does:

            sudo ./configure

            say?

            What does the README.txt and/or INSTALL.txt say?
            Check out my Ⓥegan youtube channel PlantSugar
            CV and gallery at grn.dk
            Please add [SOLVED] to topic subject when topic is solved.

            Comment


              #7
              Re: using cmake

              gnowak, thanks for the inter3est. This is what I get with sudo ./configure. I don't understand most of it. That is why I thought (incorrectly?) that cmake could do the job. Here is the sudo ./configure results:
              checking build system type... i686-pc-linux-gnu
              checking host system type... i686-pc-linux-gnu
              checking target system type... i686-pc-linux-gnu
              checking for a BSD-compatible install... /usr/bin/install -c
              checking for -p flag to install... yes
              checking whether build environment is sane... yes
              checking for gawk... no
              checking for mawk... mawk
              checking whether make sets ${MAKE}... yes
              checking for style of include used by make... GNU
              checking for gcc... gcc
              checking for C compiler default output... a.out
              checking whether the C compiler works... yes
              checking whether we are cross compiling... no
              checking for suffix of executables...
              checking for suffix of object files... o
              checking whether we are using the GNU C compiler... yes
              checking whether gcc accepts -g... yes
              checking dependency style of gcc... gcc3
              checking how to run the C preprocessor... gcc -E
              checking for g++... g++
              checking whether we are using the GNU C++ compiler... yes
              checking whether g++ accepts -g... yes
              checking dependency style of g++... gcc3
              checking whether g++ supports -fno-exceptions... yes
              checking whether g++ supports -fno-check-new... yes
              checking whether g++ supports -fexceptions... yes
              checking how to run the C++ preprocessor... g++ -E
              checking whether g++ supports -frepo... yes
              checking for ld used by GCC... /usr/bin/ld
              checking if the linker (/usr/bin/ld) is GNU ld... yes
              checking for /usr/bin/ld option to reload object files... -r
              checking for BSD-compatible nm... /usr/bin/nm -B
              checking whether ln -s works... yes
              checking how to recognise dependant libraries... pass_all
              checking for ranlib... ranlib
              checking for strip... strip
              checking whether -lc should be explicitly linked in... yes
              checking for objdir... .libs
              checking for gcc option to produce PIC... -fPIC -DPIC
              checking if gcc PIC flag -fPIC -DPIC works... yes
              checking if gcc static flag -static works... yes
              finding the maximum length of command line arguments... 73729
              checking if gcc supports -c -o file.o... yes
              checking if gcc supports -fno-rtti -fno-exceptions ... no
              checking whether the linker (/usr/bin/ld) supports shared libraries... yes
              checking how to hardcode library paths into programs... immediate
              checking whether stripping libraries is possible... yes
              checking dynamic linker characteristics... GNU/Linux ld.so
              checking command to parse /usr/bin/nm -B output... ok
              checking if libtool supports shared libraries... yes
              checking whether to build shared libraries... yes
              checking whether to build static libraries... no
              creating libtool
              updating cache /dev/null
              checking host system type... i686-pc-linux-gnu
              checking build system type... i686-pc-linux-gnu
              ltcf-cxx: with_gcc=yes ; with_gnu_ld=yes
              checking for objdir... .libs
              checking for g++ option to produce PIC... -fPIC -DPIC
              checking if g++ PIC flag -fPIC -DPIC works... yes
              checking if g++ static flag -static works... yes
              finding the maximum length of command line arguments... 73729
              checking if g++ supports -c -o file.o... yes
              checking if g++ supports -fno-rtti -fno-exceptions ... yes
              checking whether the linker (/usr/bin/ld) supports shared libraries... yes
              checking how to hardcode library paths into programs... immediate
              checking whether stripping libraries is possible... yes
              checking dynamic linker characteristics... GNU/Linux ld.so
              checking command to parse /usr/bin/nm -B output... ok
              checking if libtool supports shared libraries... yes
              checking whether to build shared libraries... yes
              checking whether to build static libraries... no
              appending configuration tag "CXX" to libtool
              checking for msgfmt... msgfmt
              checking for gmsgfmt... msgfmt
              found msgfmt program is not GNU msgfmt; ignore it
              checking for xgettext... :
              checking for ANSI C header files... yes
              checking for sys/types.h... yes
              checking for sys/stat.h... yes
              checking for stdlib.h... yes
              checking for string.h... yes
              checking for memory.h... yes
              checking for strings.h... yes
              checking for inttypes.h... yes
              checking for stdint.h... yes
              checking for unistd.h... yes
              checking for main in -lutil... yes
              checking for main in -lcompat... no
              checking for crypt in -lcrypt... yes
              checking for socklen_t... socklen_t
              checking for dnet_ntoa in -ldnet... no
              checking for dnet_ntoa in -ldnet_stub... no
              checking for inet_ntoa... yes
              checking for connect... yes
              checking for remove... yes
              checking for shmat... yes
              checking for res_init... no
              checking for killpg in -lucb... no
              checking for int... yes
              checking size of int... 4
              checking for long... yes
              checking size of long... 4
              checking for char *... yes
              checking size of char *... 4
              checking for char... yes
              checking size of char... 1
              checking for dlopen in -ldl... yes
              checking for shl_unload in -ldld... no
              checking for X... libraries /usr/lib, headers .
              checking for IceConnectionNumber in -lICE... yes
              checking for libXext... yes
              checking for Xinerama... no
              checking for pthread_create in -lpthread... yes
              checking for extra includes... no
              checking for extra libs... no
              checking for libz... -lz
              checking for libpng... -lpng -lz -lm
              checking for libjpeg6b... no
              checking for libjpeg... -ljpeg
              checking for Qt... configure: error: Qt (>= Qt 3.0.3) (headers and libraries) not found. Please check your installation!
              For more details about this problem, look at the end of config.log.

              By the way config.log is a huge file wtih nearly 1000 lines which is even more confusing to me.

              Comment


                #8
                Re: using cmake

                Okay, do you have a README.txt or INSTALL.txt? Please attach them.

                You can check dependencies there.. probably...

                I think the problem here is

                checking for Qt... configure: error: Qt (>= Qt 3.0.3) (headers and libraries) not found. Please check your installation!
                If you don't know what Qt 3.0.3 is, you can try:

                Code:
                apt-cache search qt
                Then you will get many results, take your time and find something that matches headers and/or libraries.

                I would give it a go with

                Code:
                sudo aptitude install libqtcore4 qt4-dev-tools qt4-qtconfig
                Then try to ./configure the app again.

                By the way, please attach logfiles and system output. Don't post them in the posts.

                How to attach when you reply or create a post: Additional Options... -> Attach -> Choose...

                Please post your results to help others ;-)
                Check out my Ⓥegan youtube channel PlantSugar
                CV and gallery at grn.dk
                Please add [SOLVED] to topic subject when topic is solved.

                Comment


                  #9
                  Re: using cmake

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

                  By the way config.log is a huge file wtih nearly 1000 lines which is even more confusing to me.

                  From FAQ: Installing from source

                  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
                  ...
                  More at: Qt headers not found!
                  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


                    #10
                    Re: using cmake

                    gnowak I'll attach the files and then read and try your solutions and Rog131
                    I added the .txt ending to enable the files to be attached. They weren't in the original file
                    Attached Files

                    Comment


                      #11
                      Re: using cmake

                      Thanks to you two I'm really making headway. Now after doing sudo ./configure I get this at the end. Where to next?
                      checking for Qt... libraries /usr/lib/qt3/lib, headers /usr/lib/qt3/include using -mt
                      checking if Qt compiles without flags... yes
                      checking for moc... /usr/lib/qt3/bin/moc
                      checking for uic... /usr/lib/qt3/bin/uic
                      checking whether uic supports -L ... yes
                      checking whether uic supports -nounload ... yes
                      checking if Qt needs -ljpeg... no
                      checking for rpath... yes
                      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!

                      Comment


                        #12
                        Re: using cmake

                        Mkay. When you come across such an crazy error try to search on google:

                        google: "checking for KDE... configure: error: in the prefix, you've chosen, are no KDE headers installed"

                        And you will find that you can try to install kdelibs4-dev

                        Code:
                        sudo aptitude install kdelibs4-dev
                        source: (http://ubuntuforums.org/showthread.php?t=376026)

                        Try it out.. or find another solution on google..
                        Check out my Ⓥegan youtube channel PlantSugar
                        CV and gallery at grn.dk
                        Please add [SOLVED] to topic subject when topic is solved.

                        Comment


                          #13
                          Re: using cmake

                          gnowak with your help I'm almost there. Most of the compiling is working out ok. One more message which seems to be connected to a Berkely db which has to be installed (and I did). The message is:
                          utilDb.c:104: warning: passing argument 2 of '(*dbp)->open' from incompatible
                          pointer type
                          utilDb.c:104: warning: passing argument 4 of '(*dbp)->open' makes pointer from
                          integer without a cast
                          I am using your wise suggestion and googling for a solution. I came across people with a similar question but no solutions yet. Will keep you posted as to developments (unless you have the solution)
                          Once again THANKS for all your help and if you know the solution to the present problem please post it
                          Errol

                          Comment


                            #14
                            Re: using cmake

                            Those are warnings not errors might have made the executable.
                            FKA: tanderson

                            Comment


                              #15
                              Re: using cmake

                              Thanks for the clarification tanderson. As the program doesn't work I print here the full script after the "make" command.

                              errol@errol-linux:~/iota-0.8$ sudo make
                              cd . && \
                              CONFIG_HEADERS= CONFIG_LINKS= \
                              CONFIG_FILES=Makefile /bin/bash ./config.status
                              fast creating Makefile
                              config.status: executing default-1 commands
                              make all-recursive
                              make[1]: Entering directory `/home/errol/iota-0.8'
                              Making all in iota
                              make[2]: Entering directory `/home/errol/iota-0.8/iota'
                              Making all in libbackend
                              make[3]: Entering directory `/home/errol/iota-0.8/iota/libbackend'
                              source='utilDb.c' object='utilDb.o' libtool=no \
                              depfile='.deps/utilDb.Po' tmpdepfile='.deps/utilDb.TPo' \
                              depmode=gcc3 /bin/bash ../../admin/depcomp \
                              gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/kde -I/usr/lib/qt3/include -I. -I/usr/local/include/db41 -DQT_THREAD_SUPPORT -D_REENTRANT -O2 -c `test -f utilDb.c || echo './'`utilDb.c
                              utilDb.c: In function ‘dopen’:
                              utilDb.c:104: warning: passing argument 2 of ‘(*dbp)->open’ from incompatible pointer type
                              utilDb.c:104: warning: passing argument 4 of ‘(*dbp)->open’ makes pointer from integer without a cast
                              utilDb.c:104: error: too few arguments to function ‘(*dbp)->open’
                              utilDb.c: In function ‘dstats’:
                              utilDb.c:380: error: too few arguments to function ‘dbp->stat’
                              make[3]: *** [utilDb.o] Error 1
                              make[3]: Leaving directory `/home/errol/iota-0.8/iota/libbackend'
                              make[2]: *** [all-recursive] Error 1
                              make[2]: Leaving directory `/home/errol/iota-0.8/iota'
                              make[1]: *** [all-recursive] Error 1
                              make[1]: Leaving directory `/home/errol/iota-0.8'
                              make: *** [all] Error 2
                              errol@errol-linux:~/iota-0.8$

                              AnYbody with suggestions?
                              ERROL

                              Comment

                              Working...
                              X