List Info

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




cannot find -lCore when compiling the /test files
country flaguser name
France
2008-05-22 03:56:17
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 $:$/bin
set path=($path $ROOTSYS/bin $HOME/bin .)
setenv  LD_LIBRARY_PATH  $/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

-- 
Emilie FERRIE
Maître de Conférences
Grenoble-INP
SIMA Groupe GPM2

101 rue de la physique
38402 Saint Martin d'Hères

tél : 00 33 (0)4 76 82 63 41 
fax : 00 33 (0)4 76 82 63 82 



Re: cannot find -lCore when compiling the /test files
country flaguser name
Germany
2008-05-22 04:47:40
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 $:$/bin
> set path=($path $ROOTSYS/bin $HOME/bin .)
> setenv  LD_LIBRARY_PATH  $/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.SchailePhysik.Uni-Muenchen.DE


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )