Message: Linking problems Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Linking problems 

Forum: Installation and Configuration
Date: 06 Aug, 2011
From: Carlos Ayerbe Gayoso <Carlos Ayerbe Gayoso>

Hi all

I hope somebody can help me to find where is the problem since I had spent many hours googling for solutions and nothing.

I installed geant4.9.9.p02 in Fedora release 15 (Lovelock) Linux 2.6.40-4.fc15.x86_64, gcc (GCC) 4.6.0 20110603.

Installation fo Geant looks ok, without any errors. The reason I installed this geant version is due to compabilities with the simulation made by a phd student.

The issue comes when I want to compile my simulation, I got several errors that looks comes from visualization. In order to try to see if is my program or the system I compiled one example, N03. The compilation looks ok, but from linking I got this messages:

Using global libraries ...
Linking exampleN03
/usr/bin/ld: skipping incompatible /usr/lib/libXext.so when searching for -lXext
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `G4UIQt::ExitSession()'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `G4UIQt::AddMenu(char const*, char const*)'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `non-virtual thunk to G4UIQt::~G4UIQt()'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `non-virtual thunk to G4UIQt::AddMenu(char const*, char const*)'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `non-virtual thunk to G4UIQt::~G4UIQt()'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `non-virtual thunk to G4UIQt::PauseSessionStart(G4String)'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `non-virtual thunk to G4UIQt::SessionStart()'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `QObject::childEvent(QChildEvent*)'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `G4UIQt::lookForHelpStringCallback()'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `non-virtual thunk to G4UIQt::GetHelpChoice(int&)'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `QObject::timerEvent(QTimerEvent*)'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `qt_assert(char const*, char const*, int)'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `G4UIQt::HelpTreeClicCallback()'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `QObject::customEvent(QEvent*)'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `G4UIQt::PauseSessionStart(G4String)'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `G4UIQt::ExitHelp()'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `G4UIQt::~G4UIQt()'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `QObject::connectNotify(char const*)'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `QObject::staticMetaObject'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `typeinfo for QObject'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `G4UIQt::ReceiveG4cout(G4String)'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `G4UIQt::CommandEnteredCallback()'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `non-virtual thunk to G4UIQt::AddButton(char const*, char const*, char const*)'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `G4UIQt::ButtonCallback(QString const&)'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `non-virtual thunk to G4UIQt::ExitHelp()'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `G4UIQt::ClearButtonCallback()'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `non-virtual thunk to G4UIQt::ReceiveG4cout(G4String)'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `QObject::qt_metacast(char const*)'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `G4UIQt::SessionStart()'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `G4UIQt::~G4UIQt()'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `non-virtual thunk to G4UIQt::ReceiveG4cerr(G4String)'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `G4UIQt::ReceiveG4cerr(G4String)'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `QMetaObject::activate(QObject*, QMetaObject const*, int, void**)'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `G4UIQt::AddButton(char const*, char const*, char const*)'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `non-virtual thunk to G4UIQt::~G4UIQt()'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `G4UIQt::GetHelpChoice(int&)'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `G4UIQt::eventFilter(QObject*, QEvent*)'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `QObject::event(QEvent*)'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `QObject::disconnectNotify(char const*)'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `G4UIQt::HelpTreeDoubleClicCallback()'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `G4UIQt::ShowHelpCallback()'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `non-virtual thunk to G4UIQt::~G4UIQt()'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `QObject::qt_metacall(QMetaObject::Call, int, void**)'
/usr/local/geant4/geant4.9.3.p02/lib/Linux-g++/libG4interfaces.so: undefined reference to `G4UIQt::CommandHistoryCallback()'
collect2: ld devolvió el estado de salida 1
make: *** [/home/ayerbe/g4work/bin/Linux-g++/exampleN03] Error 1

(sorry for the spanish messages)

I thought that it come from Qt, OpenGL or something, but running ./Configure -build, without any Qt or OpenGL option didn't solve the problem. I think I have Qt and OpenGL (Mesa3D) well instaled (no errors in mesa3d compiling)

Since I'm not a big expert on Linux/Unix administration I really appreciate any comment about it. If yoi need more info about the system I'll be happy to try to answer the most accurate possible.

Thank you

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Linking problems   (John Allison - 07 Aug, 2011)
(_ None: Re: Linking problems   (Carlos Ayerbe Gayoso - 20 Aug, 2011)
 Add Message Add Message
to: "Linking problems"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]