Message: Re: Open Inventor library can't see SoXt lib in G4.9.2.p01 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Note Re: Open Inventor library can't see SoXt lib in G4.9.2.p01 

Forum: Visualization
Re: Warning Open Inventor library can't see SoXt lib in G4.9.2.p01 (Dragos Constantin)
Re: None Re: Open Inventor library can't see SoXt lib in G4.9.2.p01 (John Allison)
Date: 09 Apr, 2009
From: Dragos Constantin <Dragos Constantin>

On Wed, 08 Apr 2009 10:51:42 GMT, John Allison wrote:
> On Mon, 06 Apr 2009 19:10:13 GMT, Dragos Constantin wrote:
>
> > I am getting undefined reference to SoXt errors whenever I try to link against Open Inventor library. A quick fix is to add
> >
> > LDLIBS += -lSoXt
>
> That's odd. We are not aware of anything that has changed. If you look
> in config/architecture.gmk you will see that it looks for libInventorXt:
>
> OIVLIBS := -L$(OIVHOME)/lib -lInventorXt -lInventor
>
> so you could set
>
> export OIVHOME=/usr/local/Inventor (or whatever)
> export OIVLIBS="-L$OIVHOME -lSoXt -lInventor"
>
> or you could make a symbolic link:
>
> ln -s libSoXt.so libInventorXt.so
>

Hi John,

This is odd indeed because I had no issues with Geant4.9.2 and I did not change a thing in my environment. I did not have time to track what is going on but I hope I will pinpoint the problem soon.

Coming back to concrete things, I would like to mention that my OIVLIBS does not include -lSoXt in its definition

echo $OIVLIBS
-L/opt/lib -L/usr/lib64 -lCoin -lGL -lXext -lSM -lICE -lX11 -ldl -lpthread

and I am thinking it should not. This is because SoXt, as SoQt, are the GUI binding libs. I mean what if I decide to write a Qt interface for OpenInventor? In my opinion there should be a script looking for the binding libs, because Coin3D does not come with SoXt and because as I have said it might be that the user would like to use SoQt instead of SoXt. I know that right now there is no Qt GUI for the OpenInventor inspector but I bet at some point we will have one. So, what I am saying is that at installation the script should look for these libs, i.e. SoXt and SoQt, and setup the environment correctly. I believe that right now the installation script is looking only for the OpenInventor itself because it does not need the GUI bindings to compile libG4OpenInventor.*.

What do you think about this? Am I right?

In any case, -lSoXt have to appear for sure, otherwise one will receive link errors and from this point of view your suggestion is better than adding -lSoXt in each Makefile.

Thank you again for your support.

Best regards,
Dragos

 Add Message Add Message
to: "Re: Open Inventor library can't see SoXt lib in G4.9.2.p01"

 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 ]