[postgis-tickets] [PostGIS] #2886: Linking the shared library liblwgeom.la against the loadable module *** libSFCGAL.dll is not portable!
PostGIS
trac at osgeo.org
Wed Aug 20 11:24:17 PDT 2014
#2886: Linking the shared library liblwgeom.la against the loadable module ***
libSFCGAL.dll is not portable!
--------------------+-------------------------------------------------------
Reporter: robe | Owner: colivier
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.2.0
Component: sfcgal | Version: trunk
Keywords: |
--------------------+-------------------------------------------------------
Comment(by robe):
la is shown below. I think I had to hand edit the lib path since its not
referencable from within mingw configure and also was pointing in the
wrong folder before.
{{{
# E:/ming32gcc481/sources/build/libSFCGAL.la - a libtool library file
# Generated by CMake 2.8.12.2 (like GNU libtool)
# Please DO NOT delete this file!
# It is necessary for linking the library with libtool.
# The name that we can dlopen(3).
dlname='libSFCGAL.dll'
# Names of this library.
library_names='libSFCGAL.dll.0.0.0 libSFCGAL.dll.0 libSFCGAL.dll'
# The name of the static archive.
old_library=''
# Libraries that this one depends upon.
dependency_libs=''
# Names of additional weak libraries provided by this library
weak_library_names=
# Version information for E:/ming32gcc481/sources/build/libSFCGAL.la.
current=0
age=0
revision=0
# Is this an already installed library?
installed=yes
# Should we warn about portability when linking against -modules?
shouldnotlink=yes
# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''
# Directory that this library needs to be installed in:
libdir='/projects/CGAL/rel-sfcgal-1.0.4w32gcc481/lib'
}}}
I did a dynamic build of SFCGAL, however, I think CGAL I did have to do
some static compilation with Boost.
Hard to follow (with my variable slots) but maybe this helps - my sfcgal
build script:
{{{
export SFCGAL_VER=1.0.4
export PATH="/mingw/bin:/mingw/include:/c/Windows/system32"
PATH="${PATH}:${PROJECTS}/CGAL/rel-
gmp-${GMP_VER}w${OS_BUILD}${GCC_TYPE}/include:${PROJECTS}/CGAL/rel-
gmp-${GMP_VER}w${OS_BUILD}${GCC_TYPE}/lib:${PROJECTS}/CGAL/rel-
gmp-${GMP_VER}w${OS_BUILD}${GCC_TYPE}/bin"
PATH="${PATH}:${PROJECTS}/CGAL/rel-
mpfr-${MPFR_VER}w${OS_BUILD}${GCC_TYPE}/include:${PROJECTS}/CGAL/rel-
mpfr-${MPFR_VER}w${OS_BUILD}${GCC_TYPE}/lib:${PROJECTS}/CGAL/rel-
mpfr-${MPFR_VER}w${OS_BUILD}${GCC_TYPE}/bin"
PATH="${PATH}:${PROJECTS}/CGAL/rel-
cgal-${CGAL_VER}w${OS_BUILD}${GCC_TYPE}/include:${PROJECTS}/CGAL/rel-
cgal-${CGAL_VER}w${OS_BUILD}${GCC_TYPE}/lib"
#PATH="${PATH}:${PROJECTS}/CGAL/gmp-${GMP_VER}"
#PATH="${PATH}:.:/bin:/include"
export PATH="${PATH}:/cmake/bin"
cd ${PROJECTS}/CGAL
cd ${SOURCES}
rm -rf SFCGAL-${SFCGAL_VER}
export MPFR_DIR=${PROJECTS}/CGAL/rel-
mpfr-${MPFR_VER}w${OS_BUILD}${GCC_TYPE}
export GMP_DIR=${PROJECTS}/CGAL/rel-
gmp-${GMP_VER}w${OS_BUILD}${GCC_TYPE}
export CPPFLAGS="-I${PROJECTS}/CGAL/rel-
gmp-${GMP_VER}w${OS_BUILD}${GCC_TYPE}/include"
export LDFLAGS="-L${PROJECTS}/CGAL/rel-
gmp-${GMP_VER}w${OS_BUILD}${GCC_TYPE}/lib"
tar xvfz SFCGAL-${SFCGAL_VER}.tar.gz
export PATH="${PATH}:/cmake/bin"
#make sure to change file src/CMakeList.txt move MPFR check before
GMP
rm -rf build
mkdir -p build
cd build
cmake -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE:STRING=Release
-DCMAKE_INSTALL_PREFIX:PATH=${PROJECTS}/CGAL/rel-
sfcgal-${SFCGAL_VER}w${OS_BUILD}${GCC_TYPE} -DBoost_USE_STATIC_LIBS=ON
-DCMAKE_CXX_FLAGS:STRING="-DBOOST_THREAD_USE_LIB -DBoost_USE_STATIC_LIBS
-DBOOST_USE_WINDOWS_H"
-DBOOST_ROOT:PATH=${PROJECTS}/boost/rel-${BOOST_VER_WU}w${OS_BUILD}${GCC_TYPE}
../SFCGAL-${SFCGAL_VER}
make
}}}
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2886#comment:2>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list