]> Creatis software - gdcm.git/commitdiff
* gdcmPython/Makefile.am fixed linking against libstdc++
authorfrog <frog>
Tue, 25 Mar 2003 11:41:16 +0000 (11:41 +0000)
committerfrog <frog>
Tue, 25 Mar 2003 11:41:16 +0000 (11:41 +0000)
      * gdcmPython/_gdcm.so symbolic link to gdcmPython/.libs/pygdcm.so added.
      * Swig subdir (historical tests of swig version 1.3.17++) removed
      * Test/testChangeEntete.cxx some lines commented out in order to make
        compilation work.
      * src/gdcmHeader.cxx cleaned up wild JPR's dirty kludge.
      * src/gdcmElValSet.cxx cleaned up frog's forgotten debug message

12 files changed:
.cvsignore
ChangeLog
Doc/.cvsignore
Testing/.cvsignore
Testing/TestChangeHeader.cxx
gdcmPython/.cvsignore
gdcmPython/Makefile [deleted file]
gdcmPython/Makefile.am
gdcmPython/_gdcm.so [new file with mode: 0755]
src/config.h
src/gdcmElValSet.cxx
src/gdcmHeader.cxx

index 0326ae3373d2ad9ccbbc55249230647b8aafcdde..04643c47aabaec3143a99ae054680acf5d01263a 100644 (file)
@@ -14,3 +14,4 @@ build
 dist
 MANIFEST
 DCMlib*.tar.gz
+gdcm.spec
index 0cb38ea2310f30aea1b74179057a98e77d5554d3..e22a8f873ceb91f574efc8b9c2df6d849c2530aa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2003-03-25 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
+      * gdcmPython/Makefile.am fixed linking against libstdc++
+      * gdcmPython/_gdcm.so symbolic link to gdcmPython/.libs/pygdcm.so added.
+      * Swig subdir (historical tests of swig version 1.3.17++) removed
+      * Test/testChangeEntete.cxx some lines commented out in order to make
+        compilation work.
+      * src/gdcmHeader.cxx cleaned up wild JPR's dirty kludge.
+      * src/gdcmElValSet.cxx cleaned up frog's forgotten debug message
+
 2003-03-24 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
       * src/gdcmHeader.cxx gdcmHeader::gdcmHeader now calls LoadElements(),
         hence the user doesn't need this explicit call.
index 1936cc1d441e479bc8fb17da77ec6f06e477f286..bf8256201762f12950293e50af934b664b36c362 100644 (file)
@@ -1 +1,3 @@
 html
+Makefile
+Makefile.in
index 48ab3de9d90d3dc35dd2ad77146cc4eab8a36eae..d5d57cdfeb80e7081bf80f13c463d5c186bfe33d 100644 (file)
@@ -8,6 +8,7 @@ testWrite
 hashtest
 dcm2acr
 pourFindTaggs
+testChangeEntete
 bug1
 image.dcm
 image.raw
index 7aa55da3462c51ccdced8a74d4e59449526cd6c7..d5fcdd90072384a9435fc1420265f57efbbf1559 100644 (file)
@@ -36,9 +36,10 @@ int main(int argc, char* argv[])
        
        // On suppose que les champs DICOM du 2ieme fichier existent *effectivement*
        
-       f1->ReplaceOrCreateByNumber(0x0028, 0x0008, f2->GetPubElValSet().GetElValueByNumber(0x0028, 0x0008));// nb Frames
-       f1->ReplaceOrCreateByNumber(0x0028, 0x0010, f2->GetPubElValSet().GetElValueByNumber(0x0028, 0x0010));// nbLig
-       f1->ReplaceOrCreateByNumber(0x0028, 0x0011, f2->GetPubElValSet().GetElValueByNumber(0x0028, 0x0011));// nbCol
+   // FIXME : floowing lines commented out in order to make compilation work.
+   //FIXME f1->ReplaceOrCreateByNumber(0x0028, 0x0008, f2->GetPubElValSet().GetElValueByNumber(0x0028, 0x0008));// nb Frames
+       //FIXME f1->ReplaceOrCreateByNumber(0x0028, 0x0010, f2->GetPubElValSet().GetElValueByNumber(0x0028, 0x0010));// nbLig
+       //FIXME f1->ReplaceOrCreateByNumber(0x0028, 0x0011, f2->GetPubElValSet().GetElValueByNumber(0x0028, 0x0011));// nbCol
        
        // sans doute d'autres à mettre à jour...
        
index 2b7979548200523f8a2f1ae90e5142771444927b..11666e7ad0aeef8f027994162256caa5410f7c8f 100644 (file)
@@ -3,3 +3,9 @@ gdcm.py
 gdcm_wrap.cpp
 gdcm_wrap.cxx
 gdcm_wrap.doc
+Makefile
+Makefile.in
+*.lo
+*.la
+.libs
+.deps
diff --git a/gdcmPython/Makefile b/gdcmPython/Makefile
deleted file mode 100644 (file)
index cde6e85..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-.SECONDARY:
-
-SWIG = swig
-SWIGFLAGS= -python -c++
-
-TARGET=_gdcm.so
-
-GDCMDIR=../src
-GDCMLIB=$(GDCMDIR)/.libs/libgdcm.a
-GDCMINCLUDES=-I$(GDCMDIR)
-
-PYTHON=python
-PYTHON_PREFIX  =`$(PYTHON) -c "import sys; print sys.exec_prefix"`
-PYTHON_VERSION =`$(PYTHON) -c "import sys; print sys.version[:3]"`
-PYTHON_INCLUDES="-I$(PYTHON_PREFIX)/include/python$(PYTHON_VERSION)"
-
-CXXFLAGS=$(GDCMINCLUDES)
-CPPFLAGS=-g -Wall -Wunused-variable
-LDFLAGS=-g
-
-%_wrap.o : %_wrap.cxx
-       $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $(PYTHON_INCLUDES) $< -o $@
-%_wrap.cxx : %.i
-       $(SWIG) $(SWIGFLAGS) $(PYTHON_INCLUDES) $(GDCMINCLUDES) -o $@ $<
-%.o : %.cxx
-       $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $< -o $@
-
-
-all: gdcm_wrap.o $(GDCMLIB)
-       g++ -shared $^ -o $(TARGET) $(LDFLAGS)
-
-test:
-       $(PYTHON) -c"import _gdcm"
-
-clean:
-       rm -f *_wrap* *.so *.o *.pyc gdcm.py
-
-$(GDCMLIB): FORCE
-       cd $(GDCMDIR); make
-
-FORCE:
-
-#.SECONDARY: dcm_wrap.cxx
index b60ac60f3e91a9ba9a8aac059b009b16826e928f..1440e66d2c47fcdb4a4c1b40e6bdd7f86293eb0f 100644 (file)
@@ -5,7 +5,7 @@ GDCM_INC   = -I$(top_srcdir)/src  -I$(top_builddir)
 SWIG_INC   = $(GLIB_CFLAGS) $(PYTHON_INCLUDES) $(GDCM_INC) 
 INCLUDES   = $(GDCM_INC) $(PYTHON_INCLUDES)
 
-LIBADDS     = $(top_builddir)/src/libgdcm.la
+LIBADDS     = $(top_builddir)/src/libgdcm.la -lstdc++
 
 ### Non default rules
 
diff --git a/gdcmPython/_gdcm.so b/gdcmPython/_gdcm.so
new file mode 100755 (executable)
index 0000000..8d2325b
Binary files /dev/null and b/gdcmPython/_gdcm.so differ
index 67e1b84e60d9a44aa2ee40fcf93e1759abab306a..49922152ccb555a8ffea4edcf80d6d1bdde2ccf2 100644 (file)
@@ -36,7 +36,7 @@
 #define HAVE_DLFCN_H 1
 
 /* Name of package */
-#define PACKAGE "DCMlib"
+#define PACKAGE "gdcm"
 
 /* Version number of package */
 #define VERSION "0.1.0"
index 094974503232cc230538aa109c08c5b4ddc2fa26..184513937ae20f2cb8680e81c5c217d3c05ae638 100644 (file)
@@ -10,7 +10,6 @@ TagElValueHT & gdcmElValSet::GetTagHt(void) {
 }
 
 void gdcmElValSet::Add(gdcmElValue * newElValue) {
-   cout << "#### gdcmElValSet::Add" << newElValue->GetKey() << newElValue->GetName() << endl;
        tagHt [newElValue->GetKey()]  = newElValue;
        NameHt[newElValue->GetName()] = newElValue;
 }
index 0d21112109206bc53eaaf150f1639e067d87be2f..a16d0693841a40f35696f18e52fc917dd1c5aebd 100644 (file)
@@ -730,16 +730,7 @@ void gdcmHeader::LoadElementValue(gdcmElValue * ElVal) {
    if( group == 0xfffe )
       SkipLoad = true;
 
-   // The group length doesn't represent data to be loaded in memory, since
-   // each element of the group shall be loaded individualy.
-   if( elem == 0 )
-      //SkipLoad = true;       // modif sauvage JPR
-                               // On charge la longueur du groupe
-                               // quand l'element 0x0000 est présent !
-
    if ( SkipLoad ) {
-           // FIXME the following skip is not necessary
-      SkipElementValue(ElVal);
       ElVal->SetLength(0);
       ElVal->SetValue("gdcm::Skipped");
       return;