Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Problem installing rcssbase-12.1.3

Help
2011-12-06
2012-10-16
  • Alberto Blanco
    Alberto Blanco
    2011-12-06

    Hi, I've been developing a client for the 2D competition, running into a quite
    old machine with ubuntu natty and gcc 4.0, working flawlessly. However, I've
    recently purchased a new equipment and I'm not able to install rcssbase
    12.1.3. I've installed build-essential, flex, bison, libboost, etc, and this
    is the exit of the ./configure execution

    alberto@alberto-AOA110 ~/Desktop/rcsssources/rcssbase-12.1.3 $ ./configure
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether make sets $(MAKE)... (cached) yes
    checking for gawk... (cached) gawk
    checking for sed... sed
    checking for g++... g++
    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 g++ accepts -g... yes
    checking for style of include used by make... GNU
    checking dependency style of g++... gcc3
    checking for gcc... gcc
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking dependency style of gcc... gcc3
    checking how to run the C preprocessor... gcc -E
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether ln -s works... yes
    checking whether make sets $(MAKE)... (cached) yes
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking for the pthreads library -lpthreads... no
    checking whether pthreads work without any flags... no
    checking whether pthreads work with -Kthread... no
    checking whether pthreads work with -kthread... no
    checking for the pthreads library -llthread... no
    checking whether pthreads work with -pthread... yes
    checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
    checking if more special flags are required for pthreads... no
    checking for cc_r... gcc
    checking how to run the C++ preprocessor... g++ -E
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    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 arpa/inet.h usability... yes
    checking arpa/inet.h presence... yes
    checking for arpa/inet.h... yes
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking netdb.h usability... yes
    checking netdb.h presence... yes
    checking for netdb.h... yes
    checking netinet/in.h usability... yes
    checking netinet/in.h presence... yes
    checking for netinet/in.h... yes
    checking sys/socket.h usability... yes
    checking sys/socket.h presence... yes
    checking for sys/socket.h... yes
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking for unistd.h... (cached) yes
    checking for sys/types.h... (cached) yes
    checking poll.h usability... yes
    checking poll.h presence... yes
    checking for poll.h... yes
    checking arpa/nameser.h usability... yes
    checking arpa/nameser.h presence... yes
    checking for arpa/nameser.h... yes
    checking winsock2.h usability... no
    checking winsock2.h presence... no
    checking for winsock2.h... no

    checking for boostlib >= 1.32.0... yes
    checking whether the Boost::System library is available... yes
    checking whether the Boost::Filesystem library is available... yes
    configure: error: Could not link against !

    I've tried to install with latest Ubuntu and with latest Mint, with the same
    output. I'm not sure if the absence of winsock2.h is relevant, I've searched
    Internet trying to find any linux program with this library without success

    Any help will be highly appreciated

     
  • Probably, you need to specify the exact location or name of boost::filesystem
    library in the configure's command line option.
    At first, check the location and name of boost::filesystem library. Usualy, it
    locats under /usr/lib.
    Then, add the command line option as following if the library name is
    libboost_filesyste-gcc-mt.so for example:

    $ ./configure --with-boost-filesystem=boost_filesystem-gcc-mt

     
  • Alberto Blanco
    Alberto Blanco
    2011-12-07

    Many thanks akym, as you pointed there was an error with the boost::filesystem
    library. Installing the latest version from the repositories made it work! The
    sentence checking whether the Boost::Filesystem library is available... yes
    made me avoid that library, but with your advice everything is working now :-)