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