RepliShow - BTranslationUtils compile error

Forum thread started by pistooli on Thu, 2010-02-11 08:55

I am trying to compile RepliShow from http://www.haiku-os.org/documents/dev/replishow_a_replicable_image_viewer

it gives an error:
/boot/home/projects/RepliShow/(Objects.RepliShow)/RepliView.o: In function `RepliView::MessageReceived(BMessage *)':
RepliView.cpp:(.text+0x479): undefined reference to `BTranslationUtils::GetBitmap(char const *, BTranslatorRoster *)'
collect2: ld returned 1 exit status

RepliView.h contains:
#include

the code in RepliView.cpp is:
fBitmap = BTranslationUtils::GetBitmap(path.Path());

looks perfect (for humble myself at least), fBitmap, path, all fine.

Where is the problem?

Thanks,

P

Comments

Re: RepliShow - BTranslationUtils compile error

If you are compiling using make on the command line,

I think you need to add:

-lroot -lbe -ltranslation

Or if you are using BeIDE, then put that in the "More Linker Options" in the Project Settings menu.

Regards,
hey68you

Re: RepliShow - BTranslationUtils compile error

Thanks for the reply! I am using Paladin and seems that even if I add your suggestion, it does not work.

BUT

I added it to my Makefile and now it compiles fine!

Image still does not show, which I do not understand, but it compiles at least.

Many thanks!

Re: RepliShow - BTranslationUtils compile error

To do that in Paladin, go into the Project menu and click on Change System Libraries, scroll down, and check the box beside libtranslation.

Re: RepliShow - BTranslationUtils compile error

darkwyrm wrote:

To do that in Paladin, go into the Project menu and click on Change System Libraries, scroll down, and check the box beside libtranslation.

Thank you! This worked!

What I tried earlier is that added extra linker options in Project Settings/Build

Thanks!