You are not logged in.

#1 2008-05-04 23:49:37

ninjaprawn
Member
From: Manchester, UK
Registered: 2008-01-26
Posts: 485

help with compiling boson

hi, im trying to compile and install "boson"

i download, extract and also cmake with no problems, but when i "make" i get the following error;

make[2]: *** [code/ufo/src/CMakeFiles/ufo.dir/uabstractcontext.o] Error 1
make[1]: *** [code/ufo/src/CMakeFiles/ufo.dir/all] Error 2
make: *** [all] Error 2

i have had a look thru the boson wiki which explains workarounds for a number of problems, but not this one. any ideas??


2007 - Started using Arch Linux as my only/main OS
- Samsung Series 3, Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz - 8Gb DDR3 ram - 700Gb HDD
On board intel Graphics & Sound

Offline

#2 2008-05-05 00:07:37

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: help with compiling boson

we probably need some more output than that.  Can you give a few more lines?

Offline

#3 2008-05-05 00:19:26

ninjaprawn
Member
From: Manchester, UK
Registered: 2008-01-26
Posts: 485

Re: help with compiling boson

[ 17%] Building CXX object kgame/CMakeFiles/kgame.dir/kgameerror.o
[ 17%] Building CXX object kgame/CMakeFiles/kgame.dir/kgamesequence.o
[ 17%] Building CXX object kgame/CMakeFiles/kgame.dir/kmessageio.o
[ 17%] Building CXX object kgame/CMakeFiles/kgame.dir/kmessageserver.o
[ 17%] Building CXX object kgame/CMakeFiles/kgame.dir/kmessageclient.o
[ 17%] Building CXX object kgame/CMakeFiles/kgame.dir/kgamedebugdialog.o
Linking CXX static library libkgame.a
[ 17%] Built target kgame
Scanning dependencies of target ufo
[ 17%] Building CXX object ufo/src/CMakeFiles/ufo.dir/uabstractcontext.o
In file included from /home/danny/src/boson-code-0.13/ufo/include/ufo/ucontext.hpp:35,
                 from /home/danny/src/boson-code-0.13/ufo/include/ufo/uabstractcontext.hpp:31,
                 from /home/danny/src/boson-code-0.13/ufo/src/uabstractcontext.cpp:28:
/home/danny/src/boson-code-0.13/ufo/include/ufo/util/urectangle.hpp: In constructor 'ufo::URectangle::URectangle(const ufo::UPoint&, const ufo::UPoint&)':
/home/danny/src/boson-code-0.13/ufo/include/ufo/util/urectangle.hpp:223: error: 'abs' is not a member of 'std'
/home/danny/src/boson-code-0.13/ufo/include/ufo/util/urectangle.hpp:224: error: 'abs' is not a member of 'std'
/home/danny/src/boson-code-0.13/ufo/src/uabstractcontext.cpp: At global scope:
/home/danny/src/boson-code-0.13/ufo/src/uabstractcontext.cpp:125: warning: unused parameter 'info'
/home/danny/src/boson-code-0.13/ufo/src/uabstractcontext.cpp:902: warning: 'void updateVisibleWidgets(std::list<ufo::UWidget*, std::allocator<ufo::UWidget*> >*)' defined but not used
make[2]: *** [ufo/src/CMakeFiles/ufo.dir/uabstractcontext.o] Error 1
make[1]: *** [ufo/src/CMakeFiles/ufo.dir/all] Error 2
make: *** [all] Error 2

i dont no if this means anythin cos im not that familiar with cmake, but "ufo/src/CMakeFiles/ufo.dir/uabstractcontext.o" and "ufo/src/CMakeFiles/ufo.dir/all" dont exist!!

Last edited by ninjaprawn (2008-05-05 00:37:17)


2007 - Started using Arch Linux as my only/main OS
- Samsung Series 3, Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz - 8Gb DDR3 ram - 700Gb HDD
On board intel Graphics & Sound

Offline

#4 2008-05-05 02:17:40

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: help with compiling boson

/home/danny/src/boson-code-0.13/ufo/include/ufo/util/urectangle.hpp:223: error: 'abs' is not a member of 'std'

In that file you need to add "#include <cmath>" near the top.  The package hasn't been updated for the new stricter gcc-4.3

Offline

#5 2008-05-05 08:41:27

ninjaprawn
Member
From: Manchester, UK
Registered: 2008-01-26
Posts: 485

Re: help with compiling boson

thanks, i found that file, added the line, but when i cmake .  and then make, i get exactly the same!! this is wot the first half of the file looks like;

/***************************************************************************
    LibUFO - UI For OpenGL
    copyright         : (C) 2001-2005 by Johannes Schmidt
    email             : schmidtjf at users.sourceforge.net
                             -------------------

    file              : include/ufo/util/urectangle.hpp
    begin             : Wed May 16 2001
    $Id: urectangle.hpp 7041 2005-11-30 23:13:04Z abmann $
 ***************************************************************************/

/***************************************************************************
 *  This library is free software; you can redistribute it and/or          *
 * modify it under the terms of the GNU Lesser General Public              *
 * License as published by the Free Software Foundation; either            *
 * version 2.1 of the License, or (at your option) any later version.      *
 *                                                                         *
 * This library is distributed in the hope that it will be useful,         *
 * but WITHOUT ANY WARRANTY; without even the implied warranty of          *
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU       *
 * Lesser General Public License for more details.                         *
 *                                                                         *
 * You should have received a copy of the GNU Lesser General Public        *
 * License along with this library; if not, write to the Free Software     *
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
 ***************************************************************************/

#ifndef URECTANGLE_HPP
#define URECTANGLE_HPP

#include "../uobject.hpp"

#include "upoint.hpp"
#include "udimension.hpp"
#include "uinsets.hpp"
#include <cmath>
namespace ufo {

/** @short An abstraction of a rectangle (x, y, width and height).
  * @ingroup appearance
  *
  * This class is not part of the @ref UObject inheritance structure.
  * Use instead @ref URectangleObject if you need a rectangle derived
  * from UObject.
  *
  * @author Johannes Schmidt
  */

2007 - Started using Arch Linux as my only/main OS
- Samsung Series 3, Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz - 8Gb DDR3 ram - 700Gb HDD
On board intel Graphics & Sound

Offline

#6 2008-05-05 08:47:29

ninjaprawn
Member
From: Manchester, UK
Registered: 2008-01-26
Posts: 485

Re: help with compiling boson

actualy, there is a big difference to the output!

[ 17%] Building CXX object ufo/src/CMakeFiles/ufo.dir/uabstractcontext.o
In file included from /home/danny/src/boson-code-0.13/ufo/include/ufo/ucontext.hpp:35,
                 from /home/danny/src/boson-code-0.13/ufo/include/ufo/uabstractcontext.hpp:31,
                 from /home/danny/src/boson-code-0.13/ufo/src/uabstractcontext.cpp:28:
/home/danny/src/boson-code-0.13/ufo/include/ufo/util/urectangle.hpp: In constructor 'ufo::URectangle::URectangle(const ufo::UPoint&, const ufo::UPoint&)':
/home/danny/src/boson-code-0.13/ufo/include/ufo/util/urectangle.hpp:223: error: call of overloaded 'abs(int)' is ambiguous
/usr/lib/gcc/i686-pc-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cmath:99: note: candidates are: double std::abs(double)
/usr/lib/gcc/i686-pc-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cmath:103: note:                 float std::abs(float)
/usr/lib/gcc/i686-pc-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cmath:107: note:                 long double std::abs(long double)
/home/danny/src/boson-code-0.13/ufo/include/ufo/util/urectangle.hpp:224: error: call of overloaded 'abs(int)' is ambiguous
/usr/lib/gcc/i686-pc-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cmath:99: note: candidates are: double std::abs(double)
/usr/lib/gcc/i686-pc-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cmath:103: note:                 float std::abs(float)
/usr/lib/gcc/i686-pc-linux-gnu/4.3.0/../../../../include/c++/4.3.0/cmath:107: note:                 long double std::abs(long double)
/home/danny/src/boson-code-0.13/ufo/src/uabstractcontext.cpp: At global scope:
/home/danny/src/boson-code-0.13/ufo/src/uabstractcontext.cpp:125: warning: unused parameter 'info'
/home/danny/src/boson-code-0.13/ufo/src/uabstractcontext.cpp:902: warning: 'void updateVisibleWidgets(std::list<ufo::UWidget*, std::allocator<ufo::UWidget*> >*)' defined but not used
make[2]: *** [ufo/src/CMakeFiles/ufo.dir/uabstractcontext.o] Error 1
make[1]: *** [ufo/src/CMakeFiles/ufo.dir/all] Error 2
make: *** [all] Error 2

im guessing the problem now is the complaints about "std" and "abs"??


2007 - Started using Arch Linux as my only/main OS
- Samsung Series 3, Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz - 8Gb DDR3 ram - 700Gb HDD
On board intel Graphics & Sound

Offline

#7 2008-05-05 08:55:14

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: help with compiling boson

The game hasn't been updated in a long time so you may want to compile it using gcc-3.4.  I can't find a patch to get it working with the current gcc but I didn't search very hard...

Offline

#8 2008-05-05 08:59:07

ninjaprawn
Member
From: Manchester, UK
Registered: 2008-01-26
Posts: 485

Re: help with compiling boson

thanks for your help! how do i compile using gcc-3.4??


2007 - Started using Arch Linux as my only/main OS
- Samsung Series 3, Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz - 8Gb DDR3 ram - 700Gb HDD
On board intel Graphics & Sound

Offline

#9 2008-05-05 09:03:36

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: help with compiling boson

Probably, install gcc-34 and run "CC=gcc-34 CXX=g++-34 cmake".  That is just an educated guess though...

Offline

#10 2008-05-05 09:53:50

ninjaprawn
Member
From: Manchester, UK
Registered: 2008-01-26
Posts: 485

Re: help with compiling boson

thanks for all your help, i downloaded and compiled gcc34, then tried again, but obviously, cmake had been build on the newer version of gcc, so had to recompile that, n that was it!


2007 - Started using Arch Linux as my only/main OS
- Samsung Series 3, Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz - 8Gb DDR3 ram - 700Gb HDD
On board intel Graphics & Sound

Offline

Board footer

Powered by FluxBB