Re: [ROOT] Unable to link libraries to gui = problem with Event

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Thu Aug 23 2001 - 12:00:19 MEST


Hi Christian,

  I've made the fix in the Makefile for linuxppcegcs (and for some other
platforms too). Now in CVS.

Cheers, Fons.



"cstrato@EUnet.at" wrote:
> 
> Dear Jiri, dear Fons
> 
> Thank you, Jiri, for all your help. As it is often the case, the
> solution turned out to be simple. It was an error in the Makefile.
> 
> Dear Fons
> 
> I have taken the Makfile from the test directory of root. This file
> has the nice feature that it is written for many systems.
> Since I am using LinuxPPC on my PowerBook, I took the following code:
> 
> ifeq ($(ARCH),linuxppcegcs)
> # MkLinux with egcs/glibc
> CXX           = g++
> CXXFLAGS      = -O -Wall -fPIC
> LD            = g++
> LDFLAGS       = -O
> SOFLAGS       = -shared -Wl,-soname,
> endif
> 
> This worked fine all the time for compiling my libraries, as long
> as I used them in root/cint.
> However, when linking them into a standalone program, I got the
> reported problems. By changing SOFLAGS to:
> SOFLAGS       = -shared
> which is identical to Linux for Intel, everything works now fine.
> 
> As it turned out this is also the reason why Event never worked in
> my case. I have just recompiled Event, and now it runs as expected.
> Maybe, you could make the change in the Makefile?
> 
> Thank you and Jiri and all who are always so kind to help me.
> 
> Best regards
> Christian
> 
> Jiri Masik wrote:
> 
> > Hi Christian,
> >
> > I tried to compile your code - it links and runs without a problem.
> > I have a recent CVS tree of Root and g++-3.0.1 on Debian/Linux/ppc.
> > I put the sources back to
> > http://darbujan.fzu.cz/~masik/root/gui.tgz
> >
> > but I don't think I've changed anything apart from the local
> > customization.
> > cheers
> >
> >         Jiri

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7679480



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:58 MET