LDFLAGS="-L//home/mj10777/000_links/libspatialite/archive/old_versions/bin_3_0_1/lib"
CFLAGS="-I//home/mj10777/000_links/libspatialite/archive/old_versions/bin_3_0_1/include"
# for geos,proj4,sqlite3 and spatialite
./configure --prefix=/home/mj10777/000_links/libspatialite/archive/old_versions/bin_3_0_1
-- includedir=/home/mj10777/000_links/libspatialite/archive/old_versions/bin_3_0_1/include
--libdir=/home/mj10777/000_links/libspatialite/archive/old_versions/bin_3_0_1/lib
make
make install
binincludelibshare
ldd bin_3_0_1/bin/spatialite
linux-vdso.so.1 => (0x00007ffd6638b000) libspatialite.so.2 => /home/some_directory/libspatialite/archive/old_versions/bin_3_0_1/lib/libspatialite.so.2 (0x00007f25396ad000) libsqlite3.so.0 => /home/some_directory/libspatialite/archive/old_versions/bin_3_0_1/lib/libsqlite3.so.0 (0x00007f25393fd000) libiconv.so.2 => /usr/local/lib/libiconv.so.2 (0x00007f25390d0000) libreadline.so.6 => /lib/x86_64-linux-gnu/libreadline.so.6 (0x00007f2538e8a000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f2538b83000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f25387bf000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f25385a1000) libfreexl.so.1 => /usr/local/lib/libfreexl.so.1 (0x00007f2538392000) libgeos_c.so.1 => /home/some_directory/libspatialite/archive/old_versions/bin_3_0_1/lib/libgeos_c.so.1 (0x00007f2538169000) libproj.so.0 => /home/some_directory/libspatialite/archive/old_versions/bin_3_0_1/lib/libproj.so.0 (0x00007f2537f25000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f2537d20000) libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f2537af7000) /lib64/ld-linux-x86-64.so.2 (0x00007f2539be0000) libgeos-3.3.0.so => /home/some_directory/libspatialite/archive/old_versions/bin_3_0_1/lib/libgeos-3.3.0.so (0x00007f2537765000) libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f2537456000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f253723f000)
export PATH=/home/some_directory/libspatialite/archive/old_versions/bin_3_0_1/bin:$PATH
Dear Mark,
yes, i've already built geos and proj sucessfully and it's running fine with gdal and grass giss and so on, my question is how do Iget spatialite to use my existing running versions of proj and geos, which are not compiled in usr/ or usr/local , they are built in home/dic/dicproj/build and home/dicgeos/build. and I've tried with LD flags and CDFlags pointing to my installations of proj ad geos but it seems that the configure script only look in usr/local or /usr/ for proj and geos.
--includedir=your_dir/geos/include
--libdir=your_dir/geos/lib
/configure --prefix=/home/christoph/myworld/libspatialite-4.3.0a/build --includedir=/home/christoph/myworld/proj-4.9.2/build/include/ --libdir=/home/christoph/myworld/proj-4.9.2/build/lib/
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/christoph/myworld/libspatialite-4.3.0a/missing: Unknown `--is-lightweight' option
Try `/home/christoph/myworld/libspatialite-4.3.0a/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for inttypes.h... (cached) yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking sqlite3.h usability... yes
checking sqlite3.h presence... yes
checking for sqlite3.h... yes
checking sqlite3ext.h usability... yes
checking sqlite3ext.h presence... yes
checking for sqlite3ext.h... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for an ANSI C-conforming const... yes
checking for off_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for working volatile... yes
checking whether lstat correctly handles trailing slash... yes
checking whether lstat accepts an empty string... no
checking whether lstat correctly handles trailing slash... (cached) yes
checking for working memcmp... yes
checking whether stat accepts an empty string... no
checking for strftime... yes
checking for memset... yes
checking for sqrt... no
checking for strcasecmp... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strstr... yes
checking for fdatasync... yes
checking for ftruncate... yes
checking for getcwd... yes
checking for gettimeofday... yes
checking for localtime_r... yes
checking for memmove... yes
checking for strerror... (cached) yes
checking for sqlite3_prepare_v2 in -lsqlite3... yes
checking for inflateInit_ in -lz... yes
checking proj_api.h usability... no
checking proj_api.h presence... no
checking for proj_api.h... no
configure: error: cannot find proj_api.h, bailing out
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-unknown-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='/home/christoph/myworld/proj-4.9.2/build/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/christoph/myworld/libspatialite-4.3.0a/install-sh'
libdir='/home/christoph/myworld/proj-4.9.2/build/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/home/christoph/myworld/libspatialite-4.3.0a/build'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "libspatialite"
#define PACKAGE_TARNAME "libspatialite"
#define PACKAGE_VERSION "4.3.0a"
#define PACKAGE_STRING "libspatialite 4.3.0a"
#define PACKAGE_BUGREPORT "a.fu...@lqt.it"
#define PACKAGE_URL ""
#define PACKAGE "libspatialite"
#define VERSION "4.3.0a"
#define _LARGE_FILE 1
#define _FILE_OFFSET_BITS 64
#define _LARGEFILE_SOURCE 1
#define NDEBUG 1
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STDIO_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_MATH_H 1
#define HAVE_FLOAT_H 1
#define HAVE_FCNTL_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDDEF_H 1
#define HAVE_STDINT_H 1
#define HAVE_SYS_TIME_H 1
#define HAVE_UNISTD_H 1
#define HAVE_SQLITE3_H 1
#define HAVE_SQLITE3EXT_H 1
#define HAVE_ZLIB_H 1
#define HAVE_DLFCN_H 1
#define LT_OBJDIR ".libs/"
#define TIME_WITH_SYS_TIME 1
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
#define HAVE_STRFTIME 1
#define HAVE_MEMSET 1
#define HAVE_STRCASECMP 1
#define HAVE_STRERROR 1
#define HAVE_STRNCASECMP 1
#define HAVE_STRSTR 1
#define HAVE_FDATASYNC 1
#define HAVE_FTRUNCATE 1
#define HAVE_GETCWD 1
#define HAVE_GETTIMEOFDAY 1
#define HAVE_LOCALTIME_R 1
#define HAVE_MEMMOVE 1
#define HAVE_STRERROR 1
#define HAVE_LIBSQLITE3 1
#define HAVE_LIBZ 1
#define TARGET_CPU "x86_64-linux-gnu"
#define OMIT_GEOCALLBACKS 1
configure: exit 1
libtool: link: cannot find the library `/usr/lib/libproj.la' or unhandled argument `/usr/lib/libproj.la'
Makefile:533: recipe for target 'libspatialite.la' failed
make[3]: *** [libspatialite.la] Error 1
make[3]: Leaving directory '/home/christoph/myworld/libspatialite-4.3.0a/src'
Makefile:596: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/christoph/myworld/libspatialite-4.3.0a/src'
Makefile:473: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/christoph/myworld/libspatialite-4.3.0a'
Makefile:380: recipe for target 'all' failed
make: *** [all] Error 2
I think this represents a misunderstanding of how dynamic linking works. The linking at compile time does not tie in a particular path for the libraries that are used at runtime.
That is, dynamic linking resolves dynamically, based on a set of configured paths. You can modify the paths using LD_LIBRARY_PATH.
So an
export LD_LIBRARY_PATH=/anydirectory/geosdir/build/lib:/anydirectory/proj/build/lib:/usr/local/lib:$LD_LIBRARY_PATH
followed by
ldconfig –a
might be enough. The values in the envvar obviously need to reflect the real location where your DLLs are located, and you need to add the export to the .bashconfig or similar if you want it to be persistent.
Brad
--
You received this message because you are subscribed to the Google Groups "SpatiaLite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spatialite-use...@googlegroups.com.
To post to this group, send email to spatiali...@googlegroups.com.
Visit this group at https://groups.google.com/group/spatialite-users.
For more options, visit https://groups.google.com/d/optout.
/home/christoph/myworld/geos-3.5.0/build/lib:
libgeos_c.so.1 -> libgeos_c.so.1.9.0
libgeos-3.5.0.so -> libgeos.so
/home/christoph/myworld/proj-4.9.2/build/lib:
libproj.so.9 -> libproj.so.9.1.0
Hello,
I really think that there is a bug in ./configure cause I cannot get spatialite to recognize my librarys
ldconfig -v shows my libsSo everything seems to be alright but libspatialite doesn't find it ?????
/home/christoph/myworld/geos-3.5.0/build/lib:
libgeos_c.so.1 -> libgeos_c.so.1.9.0
libgeos-3.5.0.so -> libgeos.so
/home/christoph/myworld/proj-4.9.2/build/lib:
libproj.so.9 -> libproj.so.9.1.0
Does anybody has a idea why this occur?
greets chris
Am Freitag, 3. Juni 2016 17:24:47 UTC+2 schrieb excelsi...@gmail.com:Hello,
I tried to build spatialite 4.3.0.a from source but i failed ./configure recognizing my compiled versions in folder /anydirectory/geosdir/build/ and /anydirectory/proj/build/
compile on debian 8. i don't want to use debian version, because I want to use my built versions! no double installations!
configure: WARNING: unrecognized options: --with-proj-include, --with-proj-lib, --with-geos-include, --with-geos-lib
any ideas to solve the problems!
--You received this message because you are subscribed to a topic in the Google Groups "SpatiaLite Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/spatialite-users/-Hkf4bCewwE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to spatialite-use...@googlegroups.com.
root@excelsior:/home/christoph/myworld# proj
Rel. 4.9.2, 08 September 2015
usage: proj [ -beEfiIlormsStTvVwW [args] ] [ +opts[=arg] ] [ files ]
root@excelsior:/home/christoph/myworld# geos-config --prefix
/home/christoph/myworld/geos-3.5.0/build
root@excelsior:/home/christoph/myworld# geos-config --libs
-L/home/christoph/myworld/geos-3.5.0/build/lib -lgeos
root@excelsior:/home/christoph/myworld# geos-config --version
3.5.0
root@excelsior:/home/christoph/myworld# geos-config --cflags
-I/home/christoph/myworld/geos-3.5.0/build/include
root@excelsior:/home/christoph/myworld# pkg-config --libs proj
-L/usr/local/lib -lproj
root@excelsior:/home/christoph/myworld# pkg-config --cflags proj
-I/usr/local/include
root@excelsior:/home/christoph/myworld# pkg-config --modversion proj
4.9.2
./configure \
> --prefix=/home/christoph/myworld/libspatialite-4.3.0a/build/ \
> --with-geosconfig=/home/christoph/myworld/geos-3.5.0/build/bin/geos-config \
> --enable-freexl=no
' script is too old or missing
checking proj_api.h usability... yes
checking proj_api.h presence... no
configure: WARNING: proj_api.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: proj_api.h: proceeding with the compiler's result
checking for proj_api.h... yes
checking for library containing pj_init_plus... -lproj
checking for library containing pj_init_ctx... none required
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for library containing iconv... none required
checking for library containing locale_charset... no
checking for library containing nl_langinfo... none required
Using user-specified geos-config file: /home/christoph/myworld/geos-3.5.0/build/bin/geos-config
checking geos_c.h usability... yes
checking geos_c.h presence... yes
checking for geos_c.h... yes
checking for library containing GEOSCoveredBy... -lgeos_c
checking for library containing GEOSDelaunayTriangulation... none required
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBXML2... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/headers/Makefile
config.status: creating src/gaiaaux/Makefile
config.status: creating src/gaiaexif/Makefile
config.status: creating src/gaiageo/Makefile
config.status: creating src/gaiageo/flex/Makefile
config.status: creating src/gaiageo/lemon/Makefile
config.status: creating src/gaiageo/lemon/lemon_src/Makefile
config.status: creating src/geopackage/Makefile
config.status: creating src/spatialite/Makefile
config.status: creating src/shapefiles/Makefile
config.status: creating src/dxf/Makefile
config.status: creating src/md5/Makefile
config.status: creating src/control_points/Makefile
config.status: creating src/srsinit/Makefile
config.status: creating src/srsinit/epsg_update/Makefile
config.status: creating src/connection_cache/Makefile
config.status: creating src/connection_cache/generator/Makefile
config.status: creating src/virtualtext/Makefile
config.status: creating src/wfs/Makefile
config.status: creating test/Makefile
config.status: creating test/sql_stmt_tests/Makefile
config.status: creating test/sql_stmt_geos_tests/Makefile
config.status: creating test/sql_stmt_geosadvanced_tests/Makefile
config.status: creating test/sql_stmt_geopackage_tests/Makefile
config.status: creating test/sql_stmt_proj_tests/Makefile
config.status: creating test/sql_stmt_mathsql_tests/Makefile
config.status: creating test/sql_stmt_lwgeom_tests/Makefile
config.status: creating test/sql_stmt_libxml2_tests/Makefile
config.status: creating test/sql_stmt_security_tests/Makefile
config.status: creating test/sql_stmt_xmlsec_tests/Makefile
config.status: creating test/sql_stmt_freexl_tests/Makefile
config.status: creating test/sql_stmt_cache_tests/Makefile
config.status: creating test/sql_stmt_nocache_tests/Makefile
config.status: creating examples/Makefile
config.status: creating Doxyfile
config.status: creating spatialite.pc
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
So it seems that proj pkg doesn't show to installed directories mybe that's the reason?!
export "CFLAGS=-I/home/christoph/myworld/proj-4.9.2/build/include"
export "LDFLAGS=-L/home/christoph/myworld/proj-4.9.2/build/lib"
root@excelsior:/home/christoph/myworld/libspatialite-4.3.0a# export "CFLAGS=-I/home/christoph/myworld/proj-4.9.2/build/include"
root@excelsior:/home/christoph/myworld/libspatialite-4.3.0a# export "LDFLAGS=-L/home/christoph/myworld/proj-4.9.2/build/lib"
root@excelsior:/home/christoph/myworld/libspatialite-4.3.0a# ./configure --prefix=/home/christoph/myworld/libspatialite-4.3.0a/build/ --with-geosconfig=/home/christoph/myworld/geos-3.5.0/build/bin/geos-config --enable-freexl=no
yes I didin this order!
root@excelsior:/home/christoph/myworld/libspatialite-4.3.0a# export "CFLAGS=-I/home/christoph/myworld/proj-4.9.2/build/include"
root@excelsior:/home/christoph/myworld/libspatialite-4.3.0a# export "LDFLAGS=-L/home/christoph/myworld/proj-4.9.2/build/lib"
root@excelsior:/home/christoph/myworld/libspatialite-4.3.0a# ./configure --prefix=/home/christoph/myworld/libspatialite-4.3.0a/build/ --with-geosconfig=/home/christoph/myworld/geos-3.5.0/build/bin/geos-config --enable-freexl=no
accepted by the compiler, rejected by the preprocessor!
cheers
On Tuesday, 14 June 2016 12:54:28 UTC+2, excelsi...@gmail.com wrote:yes I didin this order!
root@excelsior:/home/christoph/myworld/libspatialite-4.3.0a# export "CFLAGS=-I/home/christoph/myworld/proj-4.9.2/build/include"
root@excelsior:/home/christoph/myworld/libspatialite-4.3.0a# export "LDFLAGS=-L/home/christoph/myworld/proj-4.9.2/build/lib"
root@excelsior:/home/christoph/myworld/libspatialite-4.3.0a# ./configure --prefix=/home/christoph/myworld/libspatialite-4.3.0a/build/ --with-geosconfig=/home/christoph/myworld/geos-3.5.0/build/bin/geos-config --enable-freexl=noThis is the cause: it has found the .h file- Brads suggestion may resolve this(export PKG_CONFIG_PATH=/home/christoph/myworld/proj-4.9.2/build/lib/pkgconfig)
accepted by the compiler, rejected by the preprocessor!
cheers
Am Freitag, 3. Juni 2016 17:24:47 UTC+2 schrieb excelsi...@gmail.com:Hello,
I tried to build spatialite 4.3.0.a from source but i failed ./configure recognizing my compiled versions in folder /anydirectory/geosdir/build/ and /anydirectory/proj/build/
compile on debian 8. i don't want to use debian version, because I want to use my built versions! no double installations!
Then make distclean for lisaptialite.
./configure againroot@excelsior:/home/christoph/myworld/libspatialite-4.3.0a# pkg-config --libs proj-L/home/christoph/myworld/proj-4.9.2/build/lib -lproj
root@excelsior:/home/christoph/myworld/libspatialite-4.3.0a# pkg-config --cflags proj-I/home/christoph/myworld/proj-4.9.2/build/include
root@excelsior:/home/christoph/myworld/libspatialite-4.3.0a#
./configure
--prefix=/home/christoph/myworld/libspatialite-4.3.0a/build/
--with-geosconfig=/home/christoph/myworld/geos-3.5.0/build/bin/geos-config
--enable-freexl=no
config.status: executing depfiles commands
config.status: executing libtool commands
export PKG_CONFIG_PATH=/home/christoph/myworld/proj-4.9.2/build/lib/pkgconfig
prefix=/usr/local
exec_prefix=${prefix}libdir=${exec_prefix}/libincludedir=${prefix}/include
Name: projDescription: Cartographic Projections Library.Requires:Version: 4.8.0Libs: -L${libdir} -lprojCflags: -I${includedir}
prefix=/home/christoph/myworld/proj-4.9.2/build
christoph@excelsior:~/myworld/libspatialite-4.3.0a$ cat /home/christoph/myworld/proj-4.9.2/build/lib/pkgconfig/proj.pc
prefix=/home/christoph/myworld/proj-4.9.2/build
exec_prefix=${prefix}
libdir=/home/christoph/myworld/proj-4.9.2/build/lib
includedir=/home/christoph/myworld/proj-4.9.2/build/include
Name: proj
Description: Cartographic Projections Library.
Requires:
Version: 4.9.2
Libs: -L${libdir} -lproj
Cflags: -I${includedir}
Yes my looks like this
christoph@excelsior:~/myworld/libspatialite-4.3.0a$ cat /home/christoph/myworld/proj-4.9.2/build/lib/pkgconfig/proj.pc
prefix=/home/christoph/myworld/proj-4.9.2/build
exec_prefix=${prefix}
libdir=/home/christoph/myworld/proj-4.9.2/build/lib
includedir=/home/christoph/myworld/proj-4.9.2/build/include
Name: proj
Description: Cartographic Projections Library.
Requires:
Version: 4.9.2
Libs: -L${libdir} -lproj
Cflags: -I${includedir}
looks fine!
echo $PKG_CONFIG_PATH came back emty,
so I did export CONFIG_PATH
pkg-config retrieves information about packages from special metadata files. These files are named after the package, and
has a .pc extension. On most systems, pkg-config looks in /usr/lib/pkgconfig, /usr/share/pkgconfig, /usr/local/lib/pkgcon‐
fig and /usr/local/share/pkgconfig for these files. It will additionally look in the colon-separated (on Windows, semi‐
colon-separated) list of directories specified by the PKG_CONFIG_PATH environment variable.
christoph@excelsior:~/myworld/libspatialite-4.3.0a$ echo $PKG_CONFIG_PATH
/home/christoph/myworld/proj-4.9.2/build/lib/pkgconfig
Was a typo everything looks fine
christoph@excelsior:~/myworld/libspatialite-4.3.0a$ echo $PKG_CONFIG_PATH
/home/christoph/myworld/proj-4.9.2/build/lib/pkgconfig
Yes, this is what I did, as well as geos because make failed with geos, although configure went well!
you are right, I should compile to usr/local, but my intention was if something goes wrong with the system I have programs backed on /home and a lot of debian package are old versions which are interfering, and why not use the latest compiled packages?