Hi Pete,

Thank you for your reply.
And apologies for the length of my emails.

I deleted our copy of spdlib and downloaded again.

I noticed that you declare GDAL - so I have declared that too
in today's run.

I have included below in Appendix A my instructions,
and, in Appendix B, the last portion of the make.

I am using -

gcc-c++-4.4.6-4.el6.x86_64
gcc-gfortran-4.4.6-4.el6.x86_64
gcc-4.4.6-4.el6.x86_64
libgcc-4.4.6-4.el6.x86_64

I must confess that I have installed

gdal-1.7.3-15.el6.x86_64
gdal-devel-1.7.3-15.el6.x86_64
gdal-java-1.7.3-15.el6.x86_64
gdal-python-1.7.3-15.el6.x86_64
xerces-c-3.0.1-0.20.1.el6.x86_64
xerces-c-devel-3.0.1-0.20.1.el6.x86_64

via yum - even though at -

http://www.spdlib.org/doku.php?id=spdlib:general:installation:installation

it states -

Pitfalls
When compiling libLAS with geotiff support be sure that GDAL and libLAS use
the same geotiff library installation. By default GDAL using an internal
build and if this is different to the version libLAS uses then a runtime
linking error can be caused. The easiest and best solution is to install
libgeotiff independently and then link both libLAS and GDAL (using
–with-geotiff=$GEOTIFF_ROOT) to this installed version.

I have another xerces-c version (3.1.1) in /opt - could there be confusion
between the two xerces-c?
With the older xerces-c the make for spdlib stopped earlier.

Tomorrow, I will remove all the gdal and xerces-c packages and re-install
from source gdal, liBLAS and spdlib.

Unless you can think of something else?

Regards,
Peter.

---
Appendix A

hg clone https://bitbucket.org/petebunting/spdlib .

cmake -D CMAKE_INSTALL_PREFIX=/opt/spdlib/local/hg \
      -D HDF5_INCLUDE_DIR=/usr/include \
      -D HDF5_LIB_PATH=/usr/lib64 \
      -D GSL_INCLUDE_DIR=/usr/include \
      -D GSL_LIB_PATH=/usr/lib64 \
      -D MPFR_INCLUDE_DIR=/usr/include \
      -D MPFR_LIB_PATH=/usr/lib64 \
      -D GMP_INCLUDE_DIR=/usr/include \
      -D GMP_LIB_PATH=/usr/lib64 \
      -D GDAL_INCLUDE_DIR=/usr/include/gdal \
      -D GDAL_LIB_DIR=/usr/lib64 \
      -D LIBLAS_INCLUDE_DIR=/opt/libLAS/local/include \
      -D LIBLAS_LIB_PATH=/opt/libLAS/local/lib \
      -D CGAL_INCLUDE_DIR=/opt/cgal/local/include \
      -D CGAL_LIB_PATH=/opt/cgal/local/lib \
      -D XERCESC_INCLUDE_DIR=/opt/xerces311/local/include \
      -D XERCESC_LIB_PATH=/opt/xerces311/local/lib \
      -D CMAKE_VERBOSE_MAKEFILE=ON \
CMakeLists.txt

echo $? # was 0

make

---
Appendix B

<snip>
[ 71%] Building CXX object
CMakeFiles/spdclearclass.dir/src/exe/spdclearclass/main.cpp.o
/usr/bin/c++    -fPIC -Wall -Wpointer-arith -Wcast-align -Wcast-qual
-Wredundant-decls -Wno-long-long -DNDEBUG -std=c++98 -O3 -DNDEBUG
-I/usr/include/gdal -I/opt/libLAS/local/include -I/opt/cgal/local/include
-I/opt/xerces311/local/include -I/opt/spdlib/src/spdlib_hg/include   -o
CMakeFiles/spdclearclass.dir/src/exe/spdclearclass/main.cpp.o -c
/opt/spdlib/src/spdlib_hg/src/exe/spdclearclass/main.cpp
In file included from /usr/include/gdal/ogr_feature.h:34,
                 from /usr/include/gdal/ogrsf_frmts.h:33,
                 from
/opt/spdlib/src/spdlib_hg/include/spd/SPDProcessDataBlocks.h:33,
                 from
/opt/spdlib/src/spdlib_hg/include/spd/SPDProcessPulses.h:37,
                 from
/opt/spdlib/src/spdlib_hg/include/spd/SPDCopyRemovingClassificationProcessor.h:38,
                 from
/opt/spdlib/src/spdlib_hg/src/exe/spdclearclass/main.cpp:31:
/usr/include/gdal/ogr_featurestyle.h: In member function ‘const char*
OGRStylePen::Pattern(GBool&)’:
/usr/include/gdal/ogr_featurestyle.h:263: warning: cast from type ‘const
char*’ to type ‘char*’ casts away constness
In file included from
/opt/spdlib/src/spdlib_hg/include/spd/SPDProcessDataBlocks.h:34,
                 from
/opt/spdlib/src/spdlib_hg/include/spd/SPDProcessPulses.h:37,
                 from
/opt/spdlib/src/spdlib_hg/include/spd/SPDCopyRemovingClassificationProcessor.h:38,
                 from
/opt/spdlib/src/spdlib_hg/src/exe/spdclearclass/main.cpp:31:
/usr/include/gdal/ogr_api.h: At global scope:
/usr/include/gdal/ogr_api.h:393: warning: redundant redeclaration of ‘void
OGRRegisterAll()’ in same scope
/usr/include/gdal/ogrsf_frmts.h:305: warning: previous declaration of ‘void
OGRRegisterAll()’
Linking CXX executable spdclearclass
/usr/bin/cmake -E cmake_link_script CMakeFiles/spdclearclass.dir/link.txt
--verbose=1
/usr/bin/c++    -fPIC -Wall -Wpointer-arith -Wcast-align -Wcast-qual
-Wredundant-decls -Wno-long-long -DNDEBUG -std=c++98 -O3 -DNDEBUG  -fPIC
CMakeFiles/spdclearclass.dir/src/exe/spdclearclass/main.cpp.o  -o
spdclearclass -rdynamic src/libspdio.so.3.0.0 src/libspd.so.3.0.0
src/libspdio.so.3.0.0 -lgdal -L/usr/lib64 -lhdf5 -lhdf5_hl -lhdf5_cpp
-L/opt/libLAS/local/lib -llas -llas_c -lgsl -lgslcblas
-L/opt/cgal/local/lib -lCGAL -L/opt/xerces311/local/lib -lxerces-c -lgmp
-lmpfr -Wl,-rpath,/opt/spdlib/src/spdlib_hg/src
src/libspd.so.3.0.0: undefined reference to
`xercesc_3_1::XMLAttDefList::serialize(xercesc_3_1::XSerializeEngine&)'
src/libspd.so.3.0.0: undefined reference to
`xercesc_3_1::DTDEntityDecl::isSerializable() const'
src/libspd.so.3.0.0: undefined reference to
`xercesc_3_1::SAXParseException::~SAXParseException()'
src/libspd.so.3.0.0: undefined reference to
`xercesc_3_1::DOMImplementationRegistry::getDOMImplementation(unsigned
short const*)'
src/libspd.so.3.0.0: undefined reference to `typeinfo for
xercesc_3_1::SAXParseException'
src/libspd.so.3.0.0: undefined reference to `xercesc_3_1::XMemory::operator
delete(void*)'
src/libspd.so.3.0.0: undefined reference to
`xercesc_3_1::DTDEntityDecl::getProtoType() const'
src/libspd.so.3.0.0: undefined reference to
`xercesc_3_1::XMLUni::fgDOMErrorHandler'
src/libspd.so.3.0.0: undefined reference to
`xercesc_3_1::XMLString::release(char**, xercesc_3_1::MemoryManager*)'
src/libspd.so.3.0.0: undefined reference to
`xercesc_3_1::XMLAttDefList::isSerializable() const'
src/libspd.so.3.0.0: undefined reference to `typeinfo for
xercesc_3_1::XMLException'
src/libspd.so.3.0.0: undefined reference to
`xercesc_3_1::XMLPlatformUtils::Initialize(char const*, char const*,
xercesc_3_1::PanicHandler*, xercesc_3_1::MemoryManager*)'
src/libspd.so.3.0.0: undefined reference to
`xercesc_3_1::XMLPlatformUtils::fgMemoryManager'
src/libspd.so.3.0.0: undefined reference to `typeinfo for
xercesc_3_1::XMLEntityDecl'
src/libspd.so.3.0.0: undefined reference to
`xercesc_3_1::DTDEntityDecl::serialize(xercesc_3_1::XSerializeEngine&)'
src/libspd.so.3.0.0: undefined reference to
`xercesc_3_1::XMLString::release(unsigned short**,
xercesc_3_1::MemoryManager*)'
src/libspd.so.3.0.0: undefined reference to
`xercesc_3_1::XMLString::transcode(char const*,
xercesc_3_1::MemoryManager*)'
src/libspd.so.3.0.0: undefined reference to `typeinfo for
xercesc_3_1::DOMException'
src/libspd.so.3.0.0: undefined reference to
`xercesc_3_1::XMLPlatformUtils::Terminate()'
src/libspd.so.3.0.0: undefined reference to
`xercesc_3_1::XMLEntityDecl::~XMLEntityDecl()'
src/libspd.so.3.0.0: undefined reference to
`xercesc_3_1::SAXParseException::SAXParseException(xercesc_3_1::SAXParseException
const&)'
src/libspd.so.3.0.0: undefined reference to
`xercesc_3_1::XMLAttDefList::getProtoType() const'
src/libspd.so.3.0.0: undefined reference to
`xercesc_3_1::XMLString::transcode(unsigned short const*,
xercesc_3_1::MemoryManager*)'
src/libspd.so.3.0.0: undefined reference to
`xercesc_3_1::XMLUni::fgXercescDefaultLocale'
src/libspd.so.3.0.0: undefined reference to
`xercesc_3_1::XMLString::transcode(char const*, unsigned short*, unsigned
long, xercesc_3_1::MemoryManager*)'
collect2: ld returned 1 exit status
make[2]: *** [spdclearclass] Error 1
make[2]: Leaving directory `/opt/spdlib/src/spdlib_hg'
make[1]: *** [CMakeFiles/spdclearclass.dir/all] Error 2
make[1]: Leaving directory `/opt/spdlib/src/spdlib_hg'
make: *** [all] Error 2
---



On 10 April 2013 20:58, Peter Bunting <[email protected]> wrote:

> Hi Peter,
>
> Thanks for your email.
>
> First of all, at the end of last week I moved the spdlib repository to
> bitbucket and haven't had chance to update the website yet. The new URL is,
> there have already been a couple of commits so would recommend you download
> from there:
>
> hg clone https://bitbucket.org/petebunting/spdlib  spdlib-20130407
>
> With regards to your question I also have my libraries in non-standard
> locations and have variables setup to their locations so I use the
> following cmake command to specify the locations. At the moment the cmake
> script will only find libraries automatically if they are installed in
> /usr/local and anywhere else they need to be specified as below:
>
> cmake -D CMAKE_INSTALL_PREFIX=/share/osgeo/fw/spdlib/20130407 \
> -D HDF5_INCLUDE_DIR=$HDF5_INCLUDE_PATH \
> -D HDF5_LIB_PATH=$HDF5_LIB_PATH \
> -D LIBLAS_INCLUDE_DIR=$LIBLAS_INCLUDE_PATH \
> -D LIBLAS_LIB_PATH=$LIBLAS_LIB_PATH \
> -D GSL_INCLUDE_DIR=$GSL_INCLUDE_PATH \
> -D GSL_LIB_PATH=$GSL_LIB_PATH \
> -D CGAL_INCLUDE_DIR=$CGAL_INCLUDE_PATH \
> -D CGAL_LIB_PATH=$CGAL_LIB_PATH \
> -D GDAL_INCLUDE_DIR=$GDAL_INCLUDE_PATH \
> -D GDAL_LIB_DIR=$GDAL_LIB_PATH \
> -D XERCESC_INCLUDE_DIR=$XERCES_C_INCLUDE_PATH \
> -D XERCESC_LIB_PATH=$XERCES_C_LIB_PATH \
> -D GMP_INCLUDE_DIR=$GMP_INCLUDE_PATH \
> -D GMP_LIB_PATH=$GMP_LIB_PATH \
> -D MPFR_INCLUDE_DIR=$MPFR_INCLUDE_PATH \
> -D MPFR_LIB_PATH=$MPFR_LIB_PATH \
> -D CMAKE_VERBOSE_MAKEFILE=ON \
> .
>
> Also, before rerunning cmake I would recommend deleting the CMakeCache.txt
> file so if looks at everything again.
>
> I hope that helps, please let me know if I have help you any further.
>
> Best wishes,
>
> Pete
>
>
> ****************************************************
> * Dr Pete Bunting
> * Senior Lecturer in Remote Sensing
> * Institute of Geography and Earth Sciences
> * Aberystwyth University
> * Aberystwyth
> * Ceredigion
> * SY23 3DB
> * UK
> *
> * Ph: +44 (0) 1970 622615
> * Mob: +44 (0) 7917 842743
> * NZ Ph: +64 (0) 4 280 7430
> * Email: [email protected]
> ****************************************************
>
> On 10 Apr 2013, at 15:58, Peter Wolynec <[email protected]> wrote:
>
>
> Hi spdlib-develops,
>
> We are trying to install spdlib on a VM running Red Hat Enterprise Linux
> Server release 6.3.
>
> We have the following two packages installed -
>
> xerces-c-devel-3.0.1-0.20.1.el6.x86_64
> xerces-c-3.0.1-0.20.1.el6.x86_64
>
> but have installed, from source, xerces-c-3.1.1 elsewhere on the
> filesystem.
>
> The following command -
>
> cmake CMakeLists.txt -DCMAKE_INSTALL_PREFIX=/opt/spdlib/...
>
> returns with $? = 0
>
> but make returns the error below in the appendix.
>
> Can you please make any suggestions?
>
> What more information do you need from us?
>
> The include and library paths for HDF5, GSL, LibLAS, CGAL, Xerces-c, GMP
> and MPFR
> have been reset in CMakeLists.txt and .bash_profile
>
> A copy of spdlib has been obtained using -
>
> hg clone http://hg.code.sf.net/p/spdlib/code spdlib
>
> Thank you, in advance, for any information that you may be able to provide.
>
> Regards,
> Peter.
>
> ---
> [ 71%] Building CXX object
> CMakeFiles/spdclearclass.dir/src/exe/spdclearclass/main.cpp.o
> In file included from /usr/include/gdal/ogr_feature.h:34,
>                  from /usr/include/gdal/ogrsf_frmts.h:33,
>                  from
> /opt/spdlib/src/spdlib_hg/include/spd/SPDProcessDataBlocks.h:33,
>                  from
> /opt/spdlib/src/spdlib_hg/include/spd/SPDProcessPulses.h:37,
>                  from
> /opt/spdlib/src/spdlib_hg/include/spd/SPDCopyRemovingClassificationProcessor.h:38,
>                  from
> /opt/spdlib/src/spdlib_hg/src/exe/spdclearclass/main.cpp:31:
> /usr/include/gdal/ogr_featurestyle.h: In member function ‘const char*
> OGRStylePen::Pattern(GBool&)’:
> /usr/include/gdal/ogr_featurestyle.h:263: warning: cast from type ‘const
> char*’ to type ‘char*’ casts away constness
> In file included from
> /opt/spdlib/src/spdlib_hg/include/spd/SPDProcessDataBlocks.h:34,
>                  from
> /opt/spdlib/src/spdlib_hg/include/spd/SPDProcessPulses.h:37,
>                  from
> /opt/spdlib/src/spdlib_hg/include/spd/SPDCopyRemovingClassificationProcessor.h:38,
>                  from
> /opt/spdlib/src/spdlib_hg/src/exe/spdclearclass/main.cpp:31:
> /usr/include/gdal/ogr_api.h: At global scope:
> /usr/include/gdal/ogr_api.h:393: warning: redundant redeclaration of ‘void
> OGRRegisterAll()’ in same scope
> /usr/include/gdal/ogrsf_frmts.h:305: warning: previous declaration of
> ‘void OGRRegisterAll()’
> Linking CXX executable spdclearclass
> src/libspd.so.3.0.0: undefined reference to
> `xercesc_3_1::XMLAttDefList::serialize(xercesc_3_1::XSerializeEngine&)'
> src/libspd.so.3.0.0: undefined reference to
> `xercesc_3_1::DTDEntityDecl::isSerializable() const'
> src/libspd.so.3.0.0: undefined reference to
> `xercesc_3_1::SAXParseException::~SAXParseException()'
> src/libspd.so.3.0.0: undefined reference to
> `xercesc_3_1::DOMImplementationRegistry::getDOMImplementation(unsigned
> short const*)'
> src/libspd.so.3.0.0: undefined reference to `typeinfo for
> xercesc_3_1::SAXParseException'
> src/libspd.so.3.0.0: undefined reference to
> `xercesc_3_1::XMemory::operator delete(void*)'
> src/libspd.so.3.0.0: undefined reference to
> `xercesc_3_1::DTDEntityDecl::getProtoType() const'
> src/libspd.so.3.0.0: undefined reference to
> `xercesc_3_1::XMLUni::fgDOMErrorHandler'
> src/libspd.so.3.0.0: undefined reference to
> `xercesc_3_1::XMLString::release(char**, xercesc_3_1::MemoryManager*)'
> src/libspd.so.3.0.0: undefined reference to
> `xercesc_3_1::XMLAttDefList::isSerializable() const'
> src/libspd.so.3.0.0: undefined reference to `typeinfo for
> xercesc_3_1::XMLException'
> src/libspd.so.3.0.0: undefined reference to
> `xercesc_3_1::XMLPlatformUtils::Initialize(char const*, char const*,
> xercesc_3_1::PanicHandler*, xercesc_3_1::MemoryManager*)'
> src/libspd.so.3.0.0: undefined reference to
> `xercesc_3_1::XMLPlatformUtils::fgMemoryManager'
> src/libspd.so.3.0.0: undefined reference to `typeinfo for
> xercesc_3_1::XMLEntityDecl'
> src/libspd.so.3.0.0: undefined reference to
> `xercesc_3_1::DTDEntityDecl::serialize(xercesc_3_1::XSerializeEngine&)'
> src/libspd.so.3.0.0: undefined reference to
> `xercesc_3_1::XMLString::release(unsigned short**,
> xercesc_3_1::MemoryManager*)'
> src/libspd.so.3.0.0: undefined reference to
> `xercesc_3_1::XMLString::transcode(char const*,
> xercesc_3_1::MemoryManager*)'
> src/libspd.so.3.0.0: undefined reference to `typeinfo for
> xercesc_3_1::DOMException'
> src/libspd.so.3.0.0: undefined reference to
> `xercesc_3_1::XMLPlatformUtils::Terminate()'
> src/libspd.so.3.0.0: undefined reference to
> `xercesc_3_1::XMLEntityDecl::~XMLEntityDecl()'
> src/libspd.so.3.0.0: undefined reference to
> `xercesc_3_1::SAXParseException::SAXParseException(xercesc_3_1::SAXParseException
> const&)'
> src/libspd.so.3.0.0: undefined reference to
> `xercesc_3_1::XMLAttDefList::getProtoType() const'
> src/libspd.so.3.0.0: undefined reference to
> `xercesc_3_1::XMLString::transcode(unsigned short const*,
> xercesc_3_1::MemoryManager*)'
> src/libspd.so.3.0.0: undefined reference to
> `xercesc_3_1::XMLUni::fgXercescDefaultLocale'
> src/libspd.so.3.0.0: undefined reference to
> `xercesc_3_1::XMLString::transcode(char const*, unsigned short*, unsigned
> long, xercesc_3_1::MemoryManager*)'
> collect2: ld returned 1 exit status
> make[2]: *** [spdclearclass] Error 1
> make[1]: *** [CMakeFiles/spdclearclass.dir/all] Error 2
> make: *** [all] Error 2
> ---
>
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
>
> http://www2.precog.com/precogplatform/slashdotnewsletter_______________________________________________
> spdlib-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/spdlib-develop
>
>
>
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
spdlib-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spdlib-develop

Reply via email to