Re: cannot find -lCore when compiling the /test files

From: Otto Schaile <Otto.Schaile_at_physik.uni-muenchen.de>
Date: Thu, 22 May 2008 11:47:40 +0200


Hi Emilie,
firstly I would encourage you not to start with the 2 years old version 5.12.00
but with the latest 5.19.04.
Obviously there is a mismatch in the run-time environment you have and the one the root binary was built with (32-64 bit or compiler).

(/usr/bin/ld: skipping incompatible /usr/local/ObjGraf/root/lib/libCore.so )
                                  ^^^^^^^^^^
Please read carefully section "Binaries" at this URL: http://root.cern.ch/root/Version519.html

Cheers
Otto

Emilie Ferrié wrote:
> Hello,
>
> I am a new user of ROOT.
> *my problem : CANNOT COMPILE the examples of the /root/test directory*
>
> What i did so far :
>
> I installed the *root_v5.12.00.linux-gcc-4.1.tar* in the
> /usr/local/ObjGraph on my computer.
> I define the environnement variables in my .cshrc file as :
>
> setenv ROOTSYS /usr/local/ObjGraf/root
> setenv PATH ${PATH}:${ROOTSYS}/bin
> set path=($path $ROOTSYS/bin $HOME/bin .)
> setenv LD_LIBRARY_PATH ${ROOTSYS}/lib
>
> When I type "root", the interactive root works fine.
>
> BUT : when i try compile all the .cxx files using the Makefile of the
> /test directory, i have the folling error :
> ------------------------------------------------------------------------------------------------------
>
> [raptor.gpm2.inpg.fr]:/home/eferrie/CPP/ROOT_test/test> make
> g++ -O MainEvent.o libEvent.so -L/usr/local/ObjGraf/root/lib -lCore
> -lCint -lHist -lGraf -l
> Graf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -pthread
> -lm -ldl -rdynamic \
> -o Event
> /usr/bin/ld: skipping incompatible
> /usr/local/ObjGraf/root/lib/libCore.so when searching for
> -lCore
> /usr/bin/ld: cannot find -lCore
> ----------------------------------------------------------------------------------------------------------------------------------------
>
> WHAT CAN I DO ?
>
> Thanks in advance for your help
>
> émilie
>

-- 
Dr. Otto Schaile            Department f"ur Physik, LMU M"unchen
Phone: +49 89 289 14070     Am Coulombwall 1, D-85748 Garching, Germany
Mobil: +49 160 1553598
FAX:   +49 89 289 14072     EMail: Otto.Schaile_at_Physik.Uni-Muenchen.DE
Received on Thu May 22 2008 - 11:47:56 CEST

This archive was generated by hypermail 2.2.0 : Thu May 22 2008 - 17:50:02 CEST