configure errors using LinSpire, winavr

dksmall
2008-01-10
2013-05-28
  • dksmall
    dksmall
    2008-01-10

    I'm new to Lispire and/or Linux and am struggling.  I've installed gcc-avr via CNR, then downloaded kontrollerlab.  When I run configure I get an error that it can't find an acceptable C compiler. 

    What now??

     
    • Mario Boikov
      Mario Boikov
      2008-01-12

      Hi!

      I think that Linspire can use debian/ubuntu packages. Try download and install one of the packages found on the download page.

      Regards
      Mario

       
    • Hello!

      You should install gcc. gcc is needed to compile kontrollerlab for your computer. avr-gcc is needed to compile the software for your microcontroller.

       
    • dksmall
      dksmall
      2008-01-14

      Ok, first I tried installing gcc-3.4 from CNR and got the same errors during ./configure.

      Then I tried downloading a .deb package and installing.  I used the command "sudo dpkg -i /home/user/kontrollerlab*.deb" and the results were as follows:

      dpkg: dependency problems prevent configuration of kontrollerlab:
      kontrollerlab depends on kdelibs4c2a (>= 4:3.5.3-1); however:
        Package kdelibs4c2a is not installed.
      kontrollerlab depends on libc6 (>= 2.4-1); however:
        Version of libc6 on system is 2.3.2.ds1-19.0.0.50.0.0.0.0.m1.
      kontrollerlab depends on libfreetype6 (>= 2.2); however:
        Version of libfreetype6 on system is 2.1.7-2.3.
      kontrollerlab depends on libgcc1 (>= 1:4.1.1-12); however:
        Version of libgcc1 on system is 1:3.4.3-4.
      kontrollerlab depends on libidn11 (>= 0.5.18); however:
        Version of libidn11 on system is 0.5.2-3.
      kontrollerlab depends on libqt3-mt (>= 3:3.3.6); however:
        Package libqt3-mt is not installed.
      kontrollerlab depends on libstdc++6 (>= 4.1.1-12); however:
        Package libstdc++6 is not installed.
      kontrollerlab depends on libxinerama1; however:
        Package libxinerama1 is not installed.
      dpkg: error processing kontrollerlab (--install):
      dependency problems - leaving unconfigured
      Errors were encountered while processing:
      kontrollerlab

       
      • hello.

        try to use gcc 4.x. and then please post the full output of ./configure.

        and to fix the problem, that will happen now when kontrollerlab is only "half-installed" you can use "sudo apt-get install -f".
        this is because the package is fpr debian sid. and it's compiled with all new versions of the librarys. But i see that there is already a problem with depends. you normally don't need xinerama for kontrollerlab. i will fix it in the next package release in some weeks.

        thomas

         
    • dksmall
      dksmall
      2008-01-23

      Ok, took some time to finally get avr-gcc 4.2.2 installed.  Now I ran ./configure wit hthe following output:

      /opt/kontrollerlab-0.7.1# ./configure
      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... gawk
      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 file name... 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 for gcc option to accept ANSI C... none needed
      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 -Wmissing-format-attribute... yes
      checking whether g++ supports -Wundef... yes
      checking whether g++ supports -Wno-long-long... yes
      checking whether g++ supports -Wnon-virtual-dtor... yes
      checking whether g++ supports -fno-exceptions... yes
      checking whether g++ supports -fno-check-new... yes
      checking whether g++ supports -fno-common... yes
      checking whether g++ supports -fexceptions... yes
      checking how to run the C++ preprocessor... g++ -E
      checking whether g++ supports -O0... yes
      checking whether g++ supports -Wl,--no-undefined... yes
      checking whether g++ supports -Wl,--allow-shlib-undefined... yes
      not using lib directory suffix
      checking for a sed that does not truncate output... /bin/sed
      checking for egrep... grep -E
      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 dependent libraries... pass_all
      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 dlfcn.h usability... yes
      checking dlfcn.h presence... yes
      checking for dlfcn.h... yes
      checking for g77... no
      checking for f77... no
      checking for xlf... no
      checking for frt... no
      checking for pgf77... no
      checking for fort77... no
      checking for fl32... no
      checking for af77... no
      checking for f90... no
      checking for xlf90... no
      checking for pgf90... no
      checking for epcf90... no
      checking for f95... no
      checking for fort... no
      checking for xlf95... no
      checking for ifc... no
      checking for efc... no
      checking for pgf95... no
      checking for lf95... no
      checking for gfortran... no
      checking whether we are using the GNU Fortran 77 compiler... no
      checking whether  accepts -g... no
      checking the maximum length of command line arguments... 32768
      checking command to parse /usr/bin/nm -B output from gcc object... ok
      checking for objdir... .libs
      checking for ar... ar
      checking for ranlib... ranlib
      checking for strip... strip
      checking if gcc static flag  works... yes
      checking if gcc supports -fno-rtti -fno-exceptions... no
      checking for gcc option to produce PIC... -fPIC
      checking if gcc PIC flag -fPIC works... yes
      checking if gcc supports -c -o file.o... yes
      checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
      checking whether -lc should be explicitly linked in... no
      checking dynamic linker characteristics... GNU/Linux ld.so
      checking how to hardcode library paths into programs... immediate
      checking whether stripping libraries is possible... yes
      checking for shl_load... no
      checking for shl_load in -ldld... no
      checking for dlopen... no
      checking for dlopen in -ldl... yes
      checking whether a program can dlopen itself... yes
      checking whether a statically linked program can dlopen itself... yes
      checking if libtool supports shared libraries... yes
      checking whether to build shared libraries... yes
      checking whether to build static libraries... no
      configure: creating libtool
      appending configuration tag "CXX" to libtool
      checking for ld used by g++... /usr/bin/ld
      checking if the linker (/usr/bin/ld) is GNU ld... yes
      checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
      checking for g++ option to produce PIC... -fPIC
      checking if g++ PIC flag -fPIC works... yes
      checking if g++ supports -c -o file.o... yes
      checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
      checking dynamic linker characteristics... GNU/Linux ld.so
      checking how to hardcode library paths into programs... immediate
      checking whether stripping libraries is possible... yes
      checking for shl_load... (cached) no
      checking for shl_load in -ldld... (cached) no
      checking for dlopen... (cached) no
      checking for dlopen in -ldl... (cached) yes
      checking whether a program can dlopen itself... (cached) yes
      checking whether a statically linked program can dlopen itself... (cached) yes
      appending configuration tag "F77" to libtool
      checking for msgfmt... /usr/bin/msgfmt
      checking for gmsgfmt... /usr/bin/msgfmt
      checking for xgettext... /usr/bin/xgettext
      checking if C++ programs can be compiled... yes
      checking for strlcat... no
      checking if strlcat needs custom prototype... yes - in libkdefakes
      checking for strlcpy... no
      checking if strlcpy needs custom prototype... yes - in libkdefakes
      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 sys/types.h... (cached) yes
      checking for stdint.h... (cached) yes
      checking for poll in -lpoll... no
      checking CoreAudio/CoreAudio.h usability... no
      checking CoreAudio/CoreAudio.h presence... no
      checking for CoreAudio/CoreAudio.h... no
      checking if res_init needs -lresolv... yes
      checking if res_init is available... yes
      checking for killpg in -lucb... no
      checking for int... yes
      checking size of int... 4
      checking for short... yes
      checking size of short... 2
      checking for long... yes
      checking size of long... 4
      checking for char *... yes
      checking size of char *... 4
      checking for dlopen in -ldl... (cached) yes
      checking for shl_unload in -ldld... no
      checking for size_t... yes
      checking size of size_t... 4
      checking for unsigned long... yes
      checking size of unsigned long... 4
      checking sizeof size_t == sizeof unsigned long... yes
      checking crt_externs.h usability... no
      checking crt_externs.h presence... no
      checking for crt_externs.h... no
      checking for _NSGetEnviron... no
      checking for vsnprintf... yes
      checking for snprintf... yes
      checking for X... configure: error: Can't find X includes. Please check your installation and add the correct paths!
      honeywell-inc:/opt/kontrollerlab-0.7.1#

      I guess I need to know what X includes are.

      thanks!!

       
    • dksmall
      dksmall
      2008-01-25

      Any ideas what to do here??

       
    • dksmall
      dksmall
      2008-02-04

      I would really like to get this software installed, but nobody is responding.  What do I need to do to get around this X includes error??????

       
    • Hi, sorry I've been away for a while.

      X includes are header files of Your X11 window system (the graphics environment of Unix/Linux). As I don't know Your specific distribution in detail, I can only give You the hint to install the according X development package of Your distribution and then try to build KontrollerLab again. The name of the package may be x11-xorg-devel or x11-devel or something like this.

      I hope that helps. If not, feel free to post here and I hope response will be quicker :)
      b.r.
      cadManiac

       
    • I googled a bit, try this site:
      http://www.linspire.com/lindows_products_details.php?package_name=xlibs-dev
      Maybe that solves Your problems.

       
    • dksmall
      dksmall
      2008-02-05

      Ok, I was able to install the X11 development.  Now I'm getting a little farther:

      checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
      checking for IceConnectionNumber in -lICE... yes
      checking for libXext... yes
      checking for pthread_create in -lpthread... yes
      checking for extra includes... no
      checking for extra libs... no
      checking for libz... -lz
      checking for libpng... no
      checking for libjpeg6b... no
      checking for libjpeg... no
      configure: WARNING: libjpeg not found. disable JPEG support.
      checking for perl... /usr/bin/perl
      checking for Qt... configure: error: Qt (>= Qt 3.2) (headers and libraries) notfound. Please check your installation!

      Thanks for any help here!!

       
    • The problem is that KontrollerLab depends on some packages, such as the Xlib, Qt, libjpeg...; Maybe You should try to install KDevelop first. You don't need KDevelop, but it may have the same dependencies and I hope that Your system will automatically install these depending packages.
      To install it, try that:  http://www.linspire.com/lindows_products_details.php?package_name=kdevelop3

       
    • dksmall
      dksmall
      2008-02-05

      Actually I already have kdevelop3 installed.  Interesting, when I do the following:

      inc:/opt# kdevelop3 -v
      Qt: 3.3.3
      KDE: 3.3.2
      KDevelop: 3.2.2

      It would appear that Qt _is_ on my system, but something like "whereis Qt" returns Qt:

      I'm assuming I need to tell the configure script where to find Qt, but not sure how to do that.

       
    • Hi, I don't know the exact positions of Your Qt directories, so I can only give You this hint:

      ./configure --help
      says:

        --with-qt-dir=DIR       where the root of Qt is installed
        --with-qt-includes=DIR  where the Qt includes are.
        --with-qt-libraries=DIR where the Qt library is installed.

      So You can pass the directories as command options to configure.

      Hope that helps,
      cadManiac

       
    • dksmall
      dksmall
      2008-02-06

      Well I was able to install libqt3-mt-dev, then it complained about not finding KDE headers.  Installed kdelibs4-dev and it finally completed the configure step.  Now it errors out in make with the following:

      In file included from /usr/include/kde/kaction.h:628,
                       from /usr/include/kde/kparts/dockmainwindow.h:25,
                       from /usr/include/kde/kmdimainfrm.h:34,
                       from kontrollerlab.h:31,
                       from main.cpp:24:
      /usr/include/kde/kactioncollection.h:242: error: ISO C++ forbids declaration of'KXMLGUIClient' with no type
      /usr/include/kde/kactioncollection.h:242: error: expected ';' before '*' token
      /usr/include/kde/kactioncollection.h:345: error: expected ',' or '...' before '*' token
      /usr/include/kde/kactioncollection.h:345: error: ISO C++ forbids declaration of'KXMLGUIClient' with no type
      In file included from /usr/include/kde/kate/document.h:26,
                       from kontrollerlab.h:36,
                       from main.cpp:24:
      /usr/include/kde/ktexteditor/cursorinterface.h:32: warning: 'class KTextEditor::Cursor' has virtual functions but non-virtual destructor
      make[3]: *** [main.o] Error 1
      make[3]: Leaving directory `/opt/kontrollerlab-0.7.1/src'
      make[2]: *** [all-recursive] Error 1
      make[2]: Leaving directory `/opt/kontrollerlab-0.7.1/src'
      make[1]: *** [all-recursive] Error 1
      make[1]: Leaving directory `/opt/kontrollerlab-0.7.1'
      make: *** [all] Error 2

       
      • Mario Boikov
        Mario Boikov
        2008-02-07

        Hi dksmall

        I've sent you a compiled version to your sourceforge.net mail address.

        Try it out and see if it works. If it do, then you should be able to use the ubuntu debs since I've compiled it on kubuntu.

        Please tell us what happened

        cheers,
        Mario

         
    • dksmall
      dksmall
      2008-02-07

      Ok, I extracted the files to /opt.  navigating to /opt/kontrollerlab/bin shows an executable kontrollerlab.  If I double-click on it, nothing happens.  Using a terminal window, I change to that directory and an LS shows kontrollerlab as the only file.  If I type in "kontrollerlab" it says "-su: kontrollerlab: command not found".

       
      • Mario Boikov
        Mario Boikov
        2008-02-07

        Ok, execute following:

        cd /opt/kontrollerlab/bin
        ./kontrollerlab

        If that doesn't work, please send the output from:
        ls -l
        while standing in the /opt/kontrollerlab/bin folder.

        You need not be logged in as root.

        /Mario

         
    • dksmall
      dksmall
      2008-02-07

      Here's what happend:

      inc:/opt/kontrollerlab/bin# ./kontrollerlab
      ./kontrollerlab: error while loading shared libraries: libXinerama.so.1: cannotopen shared object file: No such file or directory
      inc:/opt/kontrollerlab/bin#

       
      • Mario Boikov
        Mario Boikov
        2008-02-08

        Can you please execute following command:

        cd /opt/kontrollerlab/bin
        ldd kontrollerlab

        And copy/paste it here so we can see what libs you are missing.

        /Mario

         
    • dksmall
      dksmall
      2008-02-08

      inc:/opt/kontrollerlab/bin# ldd kontrollerlab
      ./kontrollerlab: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by./kontrollerlab)
                      libktexteditor.so.0 => /usr/lib/libktexteditor.so.0 (0xb7fb6000)
              libkabc.so.1 => /usr/lib/libkabc.so.1 (0xb7f03000)
              libvcard.so.0 => /usr/lib/libvcard.so.0 (0xb7ede000)
              libkresources.so.1 => /usr/lib/libkresources.so.1 (0xb7ebb000)
              libkmdi.so.1 => /usr/lib/libkmdi.so.1 (0xb7e5c000)
              libkparts.so.2 => /usr/lib/libkparts.so.2 (0xb7e18000)
              libkutils.so.1 => /usr/lib/libkutils.so.1 (0xb7dc6000)
              libkio.so.4 => /usr/lib/libkio.so.4 (0xb7a9d000)
              libkdesu.so.4 => /usr/lib/libkdesu.so.4 (0xb7a83000)
              libkwalletclient.so.1 => /usr/lib/libkwalletclient.so.1 (0xb7a71000)
              libacl.so.1 => /lib/libacl.so.1 (0xb7a5a000)
              libattr.so.1 => /lib/libattr.so.1 (0xb7a56000)
              libkdeui.so.4 => /usr/lib/libkdeui.so.4 (0xb7796000)
              libkdecore.so.4 => /usr/lib/libkdecore.so.4 (0xb756a000)
              libDCOP.so.4 => /usr/lib/libDCOP.so.4 (0xb7536000)
              libresolv.so.2 => /lib/tls/libresolv.so.2 (0xb7524000)
              libutil.so.1 => /lib/tls/libutil.so.1 (0xb7521000)
              libart_lgpl_2.so.2 => /usr/lib/libart_lgpl_2.so.2 (0xb750b000)
              libidn.so.11 => /usr/lib/libidn.so.11 (0xb74db000)
              libkdefx.so.4 => /usr/lib/libkdefx.so.4 (0xb74ad000)
              libqt-mt.so.3 => /usr/lib/libqt-mt.so.3 (0xb6dc0000)
              libaudio.so.2 => /usr/lib/libaudio.so.2 (0xb6dab000)
              libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0xb6d5a000)
              libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb6d3c000)
              libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0xb6d34000)
              libXrandr.so.2 => /usr/X11R6/lib/libXrandr.so.2 (0xb6d2f000)
              libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb6d26000)
              libXinerama.so.1 => not found
              libXft.so.2 => /usr/lib/libXft.so.2 (0xb6d14000)
              libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb6ca7000)
              libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb6c78000)
              libdl.so.2 => /lib/tls/libdl.so.2 (0xb6c74000)
              libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb6c4f000)
              libz.so.1 => /usr/lib/libz.so.1 (0xb6c3d000)
              libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0xb6c2f000)
              libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0xb6b64000)
              libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0xb6b5b000)
              libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0xb6b42000)
              libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb6b33000)
              libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb6b2b000)
              libstdc++.so.6 => not found
              libm.so.6 => /lib/tls/libm.so.6 (0xb6b09000)
              libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb6b00000)
              libc.so.6 => /lib/tls/libc.so.6 (0xb69cb000)
              libfam.so.0 => /usr/lib/libfam.so.0 (0xb69c3000)
              libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0xb6909000)
              libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb68e8000)
              /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb7fea000)

       
      • Mario Boikov
        Mario Boikov
        2008-02-08

        Doesn't seem good. Not the same glibc.

        I think you have to try to compile it yourself.

        Have you tried to import the project into kdevelop?

        /Mario

         
    • Mario Boikov
      Mario Boikov
      2008-02-08

      Actually, you could just open the project in kdevelop, you don't have to import it :)

       
    • dksmall
      dksmall
      2008-02-08

      I'll give it a shot, thanks for all your help.

       
      • Mario Boikov
        Mario Boikov
        2008-02-09

        No problems!

        If you are new to linux you might consider using Ubuntu instead. I think Ubuntu is the most popular distribution around. You'll find help much easier and prepackaged application.

        /Mario