Installation fails with some undefined references

Hi everybody,

I’m trying to install ROOT (svn revision 48197) to my Xubuntu 12.10 machine and I fails to build it. The error is given below. I installed all the prerequisites given on I attached my config log. Maybe this helps.

g++ -shared -Wl,-soname, -m64 -O2 -Wl,--no-undefined -Wl,--as-needed -o lib/ graf2d/x11ttf/src/TGX11TTF.o graf2d/x11ttf/src/G__X11TTF.o -L/usr/lib/x86_64-linux-gnu -lfreetype -lz -Llib -lGX11 -lGraf -lXpm -lXext -lX11 -lXft -Llib -lCore -ldl graf2d/x11ttf/src/TGX11TTF.o: In function `TGX11TTF::DrawText(int, int, float, float, wchar_t const*, TVirtualX::ETextMode)': TGX11TTF.cxx:(.text+0x18b9): undefined reference to `TTF::PrepareString(wchar_t const*)' graf2d/x11ttf/src/TGX11TTF.o:([_ZTV8TGX11TTF]+0x240): undefined reference to `TVirtualX::GetOpenGLScalingFactor()' graf2d/x11ttf/src/TGX11TTF.o:([_ZTV8TGX11TTF]+0x248): undefined reference to `TVirtualX::CreateOpenGLWindow(unsigned long, unsigned int, unsigned int, std::vector<std::pair<unsigned int, int>, std::allocator<std::pair<unsigned int, int> > > const&)' graf2d/x11ttf/src/TGX11TTF.o:([_ZTV8TGX11TTF]+0x250): undefined reference to `TVirtualX::CreateOpenGLContext(unsigned long, unsigned long)' graf2d/x11ttf/src/TGX11TTF.o:([_ZTV8TGX11TTF]+0x258): undefined reference to `TVirtualX::MakeOpenGLContextCurrent(unsigned long, unsigned long)' graf2d/x11ttf/src/TGX11TTF.o:([_ZTV8TGX11TTF]+0x260): undefined reference to `TVirtualX::GetCurrentOpenGLContext()' graf2d/x11ttf/src/TGX11TTF.o:([_ZTV8TGX11TTF]+0x268): undefined reference to `TVirtualX::FlushOpenGLBuffer(unsigned long)' graf2d/x11ttf/src/G__X11TTF.o: In function `TriggerDictionaryInitalization_G__X11TTF()': G__X11TTF.cxx:(.text+0x465): undefined reference to `TCling__RegisterModule' collect2: error: ld returned 1 exit status make: *** [lib/] Error 1

Best regards and thanks in advance,
config.log.txt (274 KB)

Ok, bad mistake by me…

I installed ROOT using the Ubuntu Software Center before and just forgot to deinstall it. After this it builds.

Can I close the thread somehow?