bobbi228 / quadra

Automatically exported from code.google.com/p/quadra
0 stars 0 forks source link

Quadra won't compile on Slackware 10 #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Submitted by Appleman1234:

Dear all,

I like the previous person would inquired about Quadra
on Slackware, had the configure libpng error, which has
been already mentioned. I solved this error by
installing the libpng of Slackware 8.1 which has
libpng.so.2 which quadra requires. (I don't why it
didn't recognise libpng.so.3).

But I then type make and get the following error.

root@slackware:/usr/local/src/quadra-1.1.8# make
Building dependencies file (config/depends.mk)
sed packages/Quadra.desktop.in -e
's%@bindir@%/usr/local/bin%g' -e
's%@datadir@%/usr/local/share%g' > Quadra.desktop
g++ -g -O2 -DHAVE_LIBZ=1 -DHAVE_LIBPNG=1
-DHAVE_LIBVGA=1 -DHAVE_LIBVGAGL=1 -DHAVE_VGA_H=1
-DHAVE_VGAGL_H=1 -DHAVE_VGAMOUSE_H=1
-DHAVE_VGAKEYBOARD_H=1 -DNDEBUG -DUGS_LINUX_SVGA
-DUGS_LINUX_X11 -Wall -pedantic -pipe -Iinclude
-Iskelton/include -Iimages
-DLIBGAMESDIR=\"/usr/local/lib/games\"
-DDATAGAMESDIR=\"/usr/local/share/games\"
-DVERSION="1.1.8" -DVERSION_MAJOR=1 -DVERSION_MINOR=1
-DVERSION_PATCHLEVEL=8 -DUGS_LINUX -c -o
source/bloc.o source/bloc.cpp
In file included from skelton/include/overmind.h:27,
from include/quadra.h:25,
from source/bloc.cpp:24:
skelton/include/array.h: In member function `void
Array<T>::add_before(const
T&, int) [with T = Zone*]':
skelton/include/inter.h:72: instantiated from here
skelton/include/array.h:40: error: no matching function
for call to `
std::vector<Zone*, std::allocator<Zone*>
>::insert(Zone**, Zone* const&)'
/usr/include/c++/3.3.4/bits/vector.tcc:89: error:
candidates are:
__gnu_cxx::__normal_iterator<_Tp*, std::vector<_Tp,
_Alloc> >
std::vector<_Tp,
_Alloc>::insert(__gnu_cxx::__normal_iterator<_Tp*,
std::vector<_Tp, _Alloc> >, const _Tp&) [with _Tp =
Zone*, _Alloc =
std::allocator<Zone*>]
/usr/include/c++/3.3.4/bits/stl_vector.h:671: error:
void
std::vector<_Tp,
_Alloc>::insert(__gnu_cxx::__normal_iterator<_Tp*,
std::vector<_Tp, _Alloc> >, unsigned int, const
_Tp&) [with _Tp = Zone*,
_Alloc = std::allocator<Zone*>]
make: *** [source/bloc.o] Error 1

Please advise what is causing this error and propose a
solution.
I am addicted to Quadra and love your great work and
would love to be able to play in Slackware.

Thanking you extraordinarily in advance,

Appleman1234 :D

Original issue reported on code.google.com by pphaneuf on 30 Mar 2008 at 6:11

GoogleCodeExporter commented 8 years ago
He added the following comment later:

Dear all,
I found the solution to Quadra on slackware. You need to
download a quadra rpm that was compiled with support for the
right libpng.so .2 or .3 (the Suse one is always good) and
convert the rpm to tgz for Slackware using rpm2tgz. Then
install it (installpkg) and you are done.

Hope this helps

Appleman1234 :D

Note: To enable sound type quadra -sound (if you converted
the suse rpm). 
Sound is buggy in single player mode and mentioned in
another post of mine.

Original comment by pphaneuf on 30 Mar 2008 at 6:12

GoogleCodeExporter commented 8 years ago
He was basically bitten by the general cruftiness of Quadra at the time, with 
regard
to the C++ compiler and libraries. I think this should be all okay now, thanks 
to a
number of patches from a number of people. :-)

Original comment by pphaneuf on 30 Mar 2008 at 6:13