Closed GoogleCodeExporter closed 9 years ago
It would be interesting to know if this is a regression since 0.8.0/1. Could
you try
if 0.8.0/1 compiles fine for you?
Original comment by b.lindeijer
on 23 Oct 2009 at 8:30
Judging by the errors it seems that the OpenGL library isn't aware of the
Guichan
core library at compile time.
Original comment by olof.nae...@gmail.com
on 23 Oct 2009 at 9:08
I just tried out 0.8.1 and things are even worse there. configure doesn't honor
CXXFLAGS / LDFLAGS for SDL
detection there (this seemed to have been improved for 0.8.2) and 0.8.1 fails
when trying to link allegro
already:
g++ -dynamiclib -single_module -o .libs/libguichan_allegro-0.8.1.1.0.0.dylib
.libs/allegro.o
.libs/allegrofont.o .libs/allegrographics.o .libs/allegroimage.o
.libs/allegroimageloader.o .libs/allegroinput.o
-install_name /opt/local/lib/libguichan_allegro-0.8.1.1.dylib
-Wl,-compatibility_version -Wl,2 -Wl,-
current_version -Wl,2.0
Undefined symbols:
"gcn::KeyInput::setNumericPad(bool)", referenced from:
gcn::AllegroInput::pollKeyInput() in allegroinput.o
gcn::AllegroInput::pollKeyInput() in allegroinput.o
"typeinfo for gcn::Image", referenced from:
__ZTIN3gcn5ImageE$non_lazy_ptr in allegrographics.o
typeinfo for gcn::AllegroImagein allegroimage.o
"gcn::Key::Key(int)", referenced from:
gcn::AllegroInput::convertToKey(int, int)in allegroinput.o
gcn::KeyInput::KeyInput()in allegroinput.o
"_create_bitmap", referenced from:
gcn::AllegroImage::convertToDisplayFormat() in allegroimage.o
"_geta", referenced from:
gcn::AllegroImage::getPixel(int, int)in allegroimage.o
"gcn::Graphics::getCurrentClipArea()", referenced from:
vtable for gcn::AllegroGraphicsin allegrographics.o
"gcn::KeyInput::isAltPressed() const", referenced from:
gcn::AllegroInput::pollKeyInput() in allegroinput.o
"_set_color_conversion", referenced from:
gcn::AllegroImageLoader::load(std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, bool)in allegroimageloader.o
gcn::AllegroImageLoader::load(std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, bool)in allegroimageloader.o
"_ureadkey", referenced from:
gcn::AllegroInput::pollKeyInput() in allegroinput.o
"_makeacol_depth", referenced from:
gcn::AllegroImage::putPixel(int, int, gcn::Color const&)in allegroimage.o
"_drawing_mode", referenced from:
gcn::AllegroGraphics::setColor(gcn::Color const&)in allegrographics.o
"gcn::KeyInput::setControlPressed(bool)", referenced from:
gcn::AllegroInput::pollKeyInput() in allegroinput.o
gcn::AllegroInput::pollKeyInput() in allegroinput.o
"_mouse_needs_poll", referenced from:
gcn::AllegroInput::pollMouseInput() in allegroinput.o
"gcn::KeyInput::isShiftPressed() const", referenced from:
gcn::AllegroInput::pollKeyInput() in allegroinput.o
"_text_height", referenced from:
gcn::AllegroFont::getHeight() constin allegrofont.o
"_keypressed", referenced from:
gcn::AllegroInput::pollKeyInput() in allegroinput.o
"_destroy_font", referenced from:
gcn::AllegroFont::~AllegroFont()in allegrofont.o
gcn::AllegroFont::~AllegroFont()in allegrofont.o
gcn::AllegroFont::~AllegroFont()in allegrofont.o
"gcn::KeyInput::setAltPressed(bool)", referenced from:
gcn::AllegroInput::pollKeyInput() in allegroinput.o
gcn::AllegroInput::pollKeyInput() in allegroinput.o
"_set_clip_rect", referenced from:
gcn::AllegroGraphics::popClipArea() in allegrographics.o
gcn::AllegroGraphics::pushClipArea(gcn::Rectangle) in allegrographics.o
"_set_palette", referenced from:
gcn::AllegroImageLoader::load(std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, bool)in allegroimageloader.o
"gcn::Font::getStringIndexAt(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&,
int) const", referenced from:
vtable for gcn::AllegroFontin allegrofont.o
"gcn::Color::Color()", referenced from:
gcn::AllegroGraphics::AllegroGraphics(BITMAP*)in allegrographics.o
gcn::AllegroGraphics::AllegroGraphics(BITMAP*)in allegrographics.o
gcn::AllegroGraphics::AllegroGraphics()in allegrographics.o
gcn::AllegroGraphics::AllegroGraphics()in allegrographics.o
"gcn::KeyInput::setShiftPressed(bool)", referenced from:
gcn::AllegroInput::pollKeyInput() in allegroinput.o
gcn::AllegroInput::pollKeyInput() in allegroinput.o
"_text_length", referenced from:
gcn::AllegroFont::getWidth(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
constin allegrofont.o
"_key_shifts", referenced from:
_key_shifts$non_lazy_ptr in allegroinput.o
"gcn::Color::Color(int, int, int, int)", referenced from:
gcn::AllegroImage::getPixel(int, int)in allegroimage.o
"gcn::Graphics::pushClipArea(gcn::Rectangle)", referenced from:
gcn::AllegroGraphics::pushClipArea(gcn::Rectangle) in allegrographics.o
"gcn::Image::Image()", referenced from:
gcn::AllegroImage::AllegroImage(BITMAP*, bool)in allegroimage.o
gcn::AllegroImage::AllegroImage(BITMAP*, bool)in allegroimage.o
"gcn::Graphics::drawText(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int,
int, gcn::Graphics::Alignment)", referenced from:
vtable for gcn::AllegroGraphicsin allegrographics.o
"gcn::Graphics::setFont(gcn::Font*)", referenced from:
vtable for gcn::AllegroGraphicsin allegrographics.o
"_blit", referenced from:
gcn::AllegroImage::convertToDisplayFormat() in allegroimage.o
gcn::AllegroImageLoader::load(std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, bool)in allegroimageloader.o
"_destroy_bitmap", referenced from:
gcn::AllegroImage::free() in allegroimage.o
gcn::AllegroImage::convertToDisplayFormat() in allegroimage.o
gcn::AllegroImageLoader::load(std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, bool)in allegroimageloader.o
"_set_trans_blender", referenced from:
gcn::AllegroGraphics::setColor(gcn::Color const&)in allegrographics.o
"vtable for gcn::Graphics", referenced from:
__ZTVN3gcn8GraphicsE$non_lazy_ptr in allegrographics.o
"gcn::Image::~Image()", referenced from:
gcn::AllegroImage::~AllegroImage()in allegroimage.o
gcn::AllegroImage::~AllegroImage()in allegroimage.o
gcn::AllegroImage::~AllegroImage()in allegroimage.o
gcn::AllegroImage::~AllegroImage()in allegroimage.o
gcn::AllegroImage::~AllegroImage()in allegroimage.o
gcn::AllegroImage::~AllegroImage()in allegroimage.o
"_create_bitmap_ex", referenced from:
gcn::AllegroImageLoader::load(std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, bool)in allegroimageloader.o
"_load_bitmap", referenced from:
gcn::AllegroImageLoader::loadBitmap(std::basic_string<char, std::char_traits<char>, std::allocator<char>
> const&, RGB*)in allegroimageloader.o
"gcn::KeyInput::KeyInput(gcn::Key const&, unsigned int)", referenced from:
gcn::AllegroInput::pollKeyInput() in allegroinput.o
gcn::AllegroInput::pollKeyInput() in allegroinput.o
gcn::AllegroInput::pollKeyInput() in allegroinput.o
gcn::AllegroInput::pollKeyInput() in allegroinput.o
gcn::AllegroInput::pollKeyInput() in allegroinput.o
gcn::AllegroInput::pollKeyInput() in allegroinput.o
gcn::AllegroInput::pollKeyInput() in allegroinput.o
gcn::AllegroInput::pollKeyInput() in allegroinput.o
"__rgb_b_shift_32", referenced from:
__rgb_b_shift_32$non_lazy_ptr in allegroimage.o
"_makecol", referenced from:
gcn::AllegroGraphics::setColor(gcn::Color const&)in allegrographics.o
"_solid_mode", referenced from:
gcn::AllegroGraphics::setColor(gcn::Color const&)in allegrographics.o
"_key", referenced from:
_key$non_lazy_ptr in allegroinput.o
"_textout_ex", referenced from:
gcn::AllegroFont::drawString(gcn::Graphics*, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, int, int)in allegrofont.o
"gcn::Exception::Exception(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&,
std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&,
std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, unsigned int)",
referenced from:
gcn::AllegroFont::AllegroFont(FONT*)in allegrofont.o
gcn::AllegroFont::AllegroFont(FONT*)in allegrofont.o
gcn::AllegroFont::AllegroFont(std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&)in allegrofont.o
gcn::AllegroFont::AllegroFont(std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&)in allegrofont.o
gcn::AllegroFont::drawString(gcn::Graphics*, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, int, int)in allegrofont.o
gcn::AllegroGraphics::_beginDraw() in allegrographics.o
gcn::AllegroGraphics::fillRectangle(gcn::Rectangle const&)in allegrographics.o
gcn::AllegroGraphics::drawRectangle(gcn::Rectangle const&)in allegrographics.o
gcn::AllegroGraphics::drawLine(int, int, int, int)in allegrographics.o
gcn::AllegroGraphics::drawPoint(int, int)in allegrographics.o
gcn::AllegroGraphics::drawImage(gcn::Image const*, int, int, int, int, int, int)in allegrographics.o
gcn::AllegroGraphics::drawImage(gcn::Image const*, int, int, int, int, int, int)in allegrographics.o
gcn::AllegroImage::getWidth() constin allegroimage.o
gcn::AllegroImage::getHeight() constin allegroimage.o
gcn::AllegroImage::getPixel(int, int)in allegroimage.o
gcn::AllegroImage::putPixel(int, int, gcn::Color const&)in allegroimage.o
gcn::AllegroImage::convertToDisplayFormat() in allegroimage.o
gcn::AllegroImageLoader::load(std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, bool)in allegroimageloader.o
gcn::AllegroImageLoader::load(std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, bool)in allegroimageloader.o
gcn::AllegroInput::dequeueKeyInput() in allegroinput.o
gcn::AllegroInput::dequeueMouseInput() in allegroinput.o
"gcn::Graphics::drawImage(gcn::Image const*, int, int)", referenced from:
vtable for gcn::AllegroGraphicsin allegrographics.o
"_masked_blit", referenced from:
gcn::AllegroGraphics::drawBitmap(BITMAP*, int, int)in allegrographics.o
gcn::AllegroGraphics::drawImage(gcn::Image const*, int, int, int, int, int, int)in allegrographics.o
"_poll_keyboard", referenced from:
gcn::AllegroInput::pollKeyInput() in allegroinput.o
"gcn::Graphics::popClipArea()", referenced from:
gcn::AllegroGraphics::popClipArea() in allegrographics.o
"gcn::KeyInput::getKey() const", referenced from:
gcn::AllegroInput::pollKeyInput() in allegroinput.o
"__rgb_g_shift_32", referenced from:
__rgb_g_shift_32$non_lazy_ptr in allegroimage.o
"vtable for gcn::Font", referenced from:
__ZTVN3gcn4FontE$non_lazy_ptr in allegrofont.o
"gcn::KeyInput::isNumericPad() const", referenced from:
gcn::AllegroInput::pollKeyInput() in allegroinput.o
"_get_color_conversion", referenced from:
gcn::AllegroImageLoader::load(std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, bool)in allegroimageloader.o
"_keyboard_needs_poll", referenced from:
gcn::AllegroInput::pollKeyInput() in allegroinput.o
"_poll_mouse", referenced from:
gcn::AllegroInput::pollMouseInput() in allegroinput.o
"gcn::Graphics::Graphics()", referenced from:
gcn::AllegroGraphics::AllegroGraphics(BITMAP*)in allegrographics.o
gcn::AllegroGraphics::AllegroGraphics(BITMAP*)in allegrographics.o
gcn::AllegroGraphics::AllegroGraphics()in allegrographics.o
gcn::AllegroGraphics::AllegroGraphics()in allegrographics.o
"__rgb_r_shift_32", referenced from:
__rgb_r_shift_32$non_lazy_ptr in allegroimage.o
"_load_font", referenced from:
gcn::AllegroFont::AllegroFont(std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&)in allegrofont.o
gcn::AllegroFont::AllegroFont(std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&)in allegrofont.o
"typeinfo for gcn::Font", referenced from:
typeinfo for gcn::AllegroFontin allegrofont.o
"gcn::KeyInput::isControlPressed() const", referenced from:
gcn::AllegroInput::pollKeyInput() in allegroinput.o
"gcn::MouseInput::MouseInput(unsigned int, unsigned int, int, int, int)", referenced from:
gcn::AllegroInput::pollMouseInput() in allegroinput.o
gcn::AllegroInput::pollMouseInput() in allegroinput.o
gcn::AllegroInput::pollMouseInput() in allegroinput.o
gcn::AllegroInput::pollMouseInput() in allegroinput.o
gcn::AllegroInput::pollMouseInput() in allegroinput.o
gcn::AllegroInput::pollMouseInput() in allegroinput.o
gcn::AllegroInput::pollMouseInput() in allegroinput.o
gcn::AllegroInput::pollMouseInput() in allegroinput.o
gcn::AllegroInput::pollMouseInput() in allegroinput.o
"_mouse_b", referenced from:
_mouse_b$non_lazy_ptr in allegroinput.o
"gcn::Rectangle::Rectangle(int, int, int, int)", referenced from:
gcn::AllegroGraphics::_beginDraw() in allegrographics.o
"gcn::KeyInput::setMetaPressed(bool)", referenced from:
gcn::AllegroInput::pollKeyInput() in allegroinput.o
"_mouse_x", referenced from:
_mouse_x$non_lazy_ptr in allegroinput.o
"_mouse_y", referenced from:
_mouse_y$non_lazy_ptr in allegroinput.o
"_mouse_z", referenced from:
_mouse_z$non_lazy_ptr in allegroinput.o
"typeinfo for gcn::Graphics", referenced from:
__ZTIN3gcn8GraphicsE$non_lazy_ptr in allegrofont.o
typeinfo for gcn::AllegroGraphicsin allegrographics.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Original comment by m...@thomaskeller.biz
on 23 Oct 2009 at 4:49
@Olof: Do you have an idea what I could do to make it compile? I can easily add
local
patches to the current port to make 0.8.2 work somehow in MP.
Original comment by m...@thomaskeller.biz
on 26 Oct 2009 at 9:47
Ping?
Original comment by m...@thomaskeller.biz
on 7 Nov 2009 at 10:15
It seems the Allegro backend doesn't know where to find the Guichan core
library.
Generally it's very difficult to help out with build processes on other systems
as
there are so many things that can be wrong and so many setups possible.
Original comment by olof.nae...@gmail.com
on 8 Nov 2009 at 12:59
I'm willing to spend some time on this issue with you or someone else in an IRC
/ chat session. Drop me a note if
you're up for that.
Original comment by m...@thomaskeller.biz
on 9 Nov 2009 at 10:05
First of all, look at the call to g++, there is no linkage to the libguichan nor
liballegro. Usually this isn't needed with libraries unless one compiles static
libraries as libraries are linked at linktime with executables. You should
investigate why g++ needs to link with libguichan and liballegro at compile
time on
Mac. I bet if you link with libguichan and liballegro the problems will vanish.
Original comment by olof.nae...@gmail.com
on 9 Nov 2009 at 3:06
I've made the following observations:
* guichan can only be build without extras if I remove "opengl sdl allegro"
from the SUBDIRS line
* src/opengl, src/sdl and src/allegro can only be built, if -L.. -lguichan is
added (as you said earlier).
Additionally, for src/sdl "-lSDL -lSDL_image" is missing from the linker line
So this is pretty much a chicken-egg problem - I cannot build guichan alone
without any of the SUBDIRS
dependencies above, and they cannot be linked without an already built
libguichan.la. My autofoo is not good
enough, have you an idea how to resolve that issue?
Original comment by m...@thomaskeller.biz
on 10 Nov 2009 at 6:42
Ok, with no further help from your side I'm abandoning my task to update the
libguichan MacPort.
Original comment by m...@thomaskeller.biz
on 19 Nov 2009 at 10:29
I don't have a Mac so I can't fiddle with autotools on that system, which
basically
means I cannot help you. Autotools can be a bich sometimes so I do understand
if you
cannot fix it. Many people believe autotools is cross platform, but it isn't. Of
course, we have CMake projects you can use so there really isn't a need for
autotools.
Guichan is and always will be a project managed on my spare time, and as the
years go
by I tend to get more important stuff to take care about than Guichan. If there
is an
external problem with something like autotools you have to think for yourself,
use
Google, talk to autotools devs (just like I would do if I was faced with a
similar
problem). I cannot help out with every single build on every single system. I
can
merely give pointers at best. In the end it's up to you if you want something
to work
on an untested system.
Original comment by olof.nae...@gmail.com
on 20 Nov 2009 at 2:48
Problem was solved by removing the "-no-undefined" option from the LDFLAGS line
in
src/{sdl,allegro,opengl}/Makefile.am and a reconfiguration.
Original comment by m...@thomaskeller.biz
on 28 Dec 2009 at 11:39
Original comment by olof.nae...@gmail.com
on 29 Dec 2009 at 5:26
I haven't seen a fix in the gitorious repository yet - have you pushed it
already?
Original comment by m...@thomaskeller.biz
on 30 Dec 2009 at 9:12
Original issue reported on code.google.com by
m...@thomaskeller.biz
on 22 Oct 2009 at 11:18