[Dcmlib] compilation

Emmanuel Olart eolart at theralys.com
Fri Jul 22 17:53:13 CEST 2005


Just edit your Makefile and add "-L/usr/local/lib/gdcm" to your link line

You can also do :

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/gdcm

This should work

Emmanuel


olivier.stern at swing.be wrote:

> Hi,
>
> Thanks for your answer ! But in fact, I didn't undertand what I have 
> to do. I found my .h files in usr/local/include/gdcm and libgdcm.so in 
> usr/local/iib/gdcm. I've seen it in gdcmBin/bin too in fact.
>
> Thanks,
> Olivier
>
>
>
> ----------------------------------------
> Hi,
>
> Your problem is the same you got with you gdcm.h not found : the gdcm
> library (libgdcm.so) is not in your library include path (eithier
> $LD_LIBRARY_PATH or included inline in the link line :
> -Lwherever_your_library_is -lgdcm instead of -lgdcm)
>
> /usr/bin/ld: cannot find -lgdcm ---> the linker can't find the gdcm
> library
>
> Yours,
> Emmanuel
>
> olivier.stern at swing.be wrote:
>
> > Hi,
> >
> > I think I ve solved my trouble with gdcmFile.h: No such file or
> > directory. Instead of include \"gdcmFile.h\" I must include
> > \"gdcm/gdcmFile.h\". I don't know why (juste because the .h files are
> > installed in this directory)these! files are there but... it seems ok
> > with it. The trouble now (why is this computer not working correctly
> > ?) is a warning I got during building of gdcm and that I find now (***
> > is deprecated). As it was a warning during compilation I didn't care
> > about, but now, an error appear... er.. no in fact I also have an
> > error after (-lgdcm not found). Is the warning important ? what about
> > lgdcm ?
> >
> > thx for your help,
> >
> > Olivier
> >
> > Scanning CXX dependencies of exGrey2RGB.dir/exGrey2RGB.o
> > Building CXX object exGrey2RGB.dir/exGrey2RGB.o
> > /home/olivier/GDCM/Tfe/Recalage/exGrey2RGB.cxx: In function `int
> > main(int, char**)':
> > /home/olivier/GDCM/Tfe/Recalage/exGrey2RGB.cxx:358: warning:
> > `__comp_ctor' is deprecated (declared at
> > /usr/local/include/gdcm/gdcmFileHelper.h:53)
> > Linking CXX executable exGrey2RGB
> > /usr/bin/ld: cannot find -lgdcm
> > collect2: ld returned 1 exit status
> > make[2]: *** [exGrey2R! GB] Erreur 1
> > make[1]: *** [exGrey2RGB.dir/all] Erreur 2
> > make: *** [all] Erreur 2
> >
> >------------------------------------------------------------------------
> >
> >_______________________________________________
> >Dcmlib mailing list
> >Dcmlib at creatis.insa-lyon.fr
> >http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib
> >
>
>
> -- 
> Emmanuel OLART, IT Manager
> *THERALYS*
> Diagnostic & Therapeutic Image Analysis in Clinical Trials
>
> Address : Bioparc, 60 av. Rockefeller, 69008 Lyon, France
> +33 (0)4 26 23 05 05 (Phone)
> +33 (0)4 26 23 05 06 (Fax)
> Email : eolart at theralys.com
> THERALYS
>
>


-- 
Emmanuel OLART, IT Manager
*THERALYS*
Diagnostic & Therapeutic Image Analysis in Clinical Trials

Address : Bioparc, 60 av. Rockefeller, 69008 Lyon, France
+33 (0)4 26 23 05 05 (Phone)
+33 (0)4 26 23 05 06 (Fax)
Email : eolart at theralys.com <mailto:eolart at theralys.com>
THERALYS <http://www.theralys.com/>



More information about the Dcmlib mailing list