BLOG
|
Great, it did build! I am also looking at runtime samples, I have GIS Runtime Server installed but I can't find any instructions on how to run/use it. The GeodatabaseSyncTask syncTask = new GeodatabaseSyncTask(featureServiceURL); call in GenerateGeodatabaseSample class (com.esri.samples.featurelayers.generate_geodatabase package) requires String featureServiceURL parameter. I can assume this is the URL of something running/residing on that runtime server but I can't find any details on how to use it. Again, thank you for your help!
... View more
01-09-2019
08:03 PM
|
0
|
0
|
539
|
BLOG
|
Apparently, there is message size limit so Terminal settings/output: part got truncated. Here it comes: FileGDB_API-64gcc/lib$ export LD_LIBRARY_PATH=${PWD}:${LD_LIBRARY_PATH} FileGDB_API-64gcc/lib$ cd ../samples FileGDB_API-64gcc/samples$ make clean all make -C Display clean make[1]: Entering directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/Display' rm -f -v ./Display.o ../bin/Display make[1]: Leaving directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/Display' make -C Domains clean make[1]: Entering directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/Domains' rm -f -v ./Domains.o ../bin/Domains removed './Domains.o' make[1]: Leaving directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/Domains' make -C Editing clean make[1]: Entering directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/Editing' rm -f -v ./Editing.o ../bin/Editing make[1]: Leaving directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/Editing' make -C ExecutingSQL clean make[1]: Entering directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/ExecutingSQL' rm -f -v ./ExecutingSQL.o ../bin/ExecutingSQL make[1]: Leaving directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/ExecutingSQL' make -C FeatureDatasets clean make[1]: Entering directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/FeatureDatasets' rm -f -v ./FeatureDatasets.o ../bin/FeatureDatasets make[1]: Leaving directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/FeatureDatasets' make -C GeodatabaseManagement clean make[1]: Entering directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/GeodatabaseManagement' rm -f -v ./GeodatabaseManagement.o ../bin/GeodatabaseManagement make[1]: Leaving directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/GeodatabaseManagement' make -C Querying clean make[1]: Entering directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/Querying' rm -f -v ./Querying.o ../bin/Querying make[1]: Leaving directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/Querying' make -C ShapeBuffer clean make[1]: Entering directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/ShapeBuffer' rm -f -v ./ShapeBuffer.o ../bin/ShapeBuffer make[1]: Leaving directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/ShapeBuffer' make -C TableSchema clean make[1]: Entering directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/TableSchema' rm -f -v ./TableSchema.o ../bin/TableSchema make[1]: Leaving directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/TableSchema' make -C TableSchemaXML clean make[1]: Entering directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/TableSchemaXML' rm -f -v ./TableSchemaXML.o ../bin/TableSchemaXML make[1]: Leaving directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/TableSchemaXML' make -C Domains make[1]: Entering directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/Domains' g++ -fPIC -O3 -m64 -W -fexceptions -D_CONSOLE -DUNICODE -D_UNICODE -DUNIX -D_REENTRANT -DFILEGDB_API -D__USE_FILE_OFFSET64 -DUNIX_FILEGDB_API -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I../../include -I. -c Domains.cpp g++ -fPIC -O3 -m64 -W -fexceptions -D_CONSOLE -DUNICODE -D_UNICODE -DUNIX -D_REENTRANT -DFILEGDB_API -D__USE_FILE_OFFSET64 -DUNIX_FILEGDB_API -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I../../include -I. -m64 -L"../../lib" -o ../bin/Domains ./Domains.o -lFileGDBAPI /usr/bin/ld: cannot find -lFileGDBAPI collect2: error: ld returned 1 exit status Makefile:31: recipe for target '../bin/Domains' failed make[1]: *** [../bin/Domains] Error 1 make[1]: Leaving directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/Domains' Makefile:27: recipe for target 'Domains' failed make: *** [Domains] Error 2
... View more
01-09-2019
11:50 AM
|
0
|
0
|
539
|
BLOG
|
FileGDB_API-64gcc/samples/GeodatabaseManagement$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.1 LTS Release: 18.04 Codename: bionic gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.3.0-27ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c+,go,brig,d,fortran,objc,obj-c+ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 7.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04) g++ -v Using built-in specs. COLLECT_GCC=/usr/bin/g++-7 COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.3.0-27ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c+,go,brig,d,fortran,objc,obj-c+ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 7.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04) ========================== Terminal settings/output:
... View more
01-09-2019
11:23 AM
|
0
|
0
|
539
|
BLOG
|
Hello Lance, Thank you for your help again. But my issue is different (see complete output below), the error is /usr/bin/ld: cannot find -lFileGDBAPI #Building from top level (samples) dir) FileGDB_API-64gcc/lib$ export LD_LIBRARY_PATH=$ :$ lruss@lruss:/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/lib$ ls libfgdbunixrtl.a libfgdbunixrtl.dylib libFileGDBAPI.dylib lruss@lruss:/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/lib$ cd ../samples lruss@lruss:/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples$ make clean all make -C Display clean make[1]: Entering directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/Display' rm -f -v ./Display.o ../bin/Display make[1]: Leaving directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/Display' make -C Domains clean make[1]: Entering directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/Domains' rm -f -v ./Domains.o ../bin/Domains removed './Domains.o' make[1]: Leaving directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/Domains' make -C Editing clean make[1]: Entering directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/Editing' rm -f -v ./Editing.o ../bin/Editing make[1]: Leaving directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/Editing' make -C ExecutingSQL clean make[1]: Entering directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/ExecutingSQL' rm -f -v ./ExecutingSQL.o ../bin/ExecutingSQL make[1]: Leaving directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/ExecutingSQL' make -C FeatureDatasets clean make[1]: Entering directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/FeatureDatasets' rm -f -v ./FeatureDatasets.o ../bin/FeatureDatasets make[1]: Leaving directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/FeatureDatasets' make -C GeodatabaseManagement clean make[1]: Entering directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/GeodatabaseManagement' rm -f -v ./GeodatabaseManagement.o ../bin/GeodatabaseManagement make[1]: Leaving directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/GeodatabaseManagement' make -C Querying clean make[1]: Entering directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/Querying' rm -f -v ./Querying.o ../bin/Querying make[1]: Leaving directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/Querying' make -C ShapeBuffer clean make[1]: Entering directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/ShapeBuffer' rm -f -v ./ShapeBuffer.o ../bin/ShapeBuffer make[1]: Leaving directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/ShapeBuffer' make -C TableSchema clean make[1]: Entering directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/TableSchema' rm -f -v ./TableSchema.o ../bin/TableSchema make[1]: Leaving directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/TableSchema' make -C TableSchemaXML clean make[1]: Entering directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/TableSchemaXML' rm -f -v ./TableSchemaXML.o ../bin/TableSchemaXML make[1]: Leaving directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/TableSchemaXML' make -C Domains make[1]: Entering directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/Domains' g++ -fPIC -O3 -m64 -W -fexceptions -D_CONSOLE -DUNICODE -D_UNICODE -DUNIX -D_REENTRANT -DFILEGDB_API -D__USE_FILE_OFFSET64 -DUNIX_FILEGDB_API -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I../../include -I. -c Domains.cpp g++ -fPIC -O3 -m64 -W -fexceptions -D_CONSOLE -DUNICODE -D_UNICODE -DUNIX -D_REENTRANT -DFILEGDB_API -D__USE_FILE_OFFSET64 -DUNIX_FILEGDB_API -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I../../include -I. -m64 -L"../../lib" -o ../bin/Domains ./Domains.o -lFileGDBAPI /usr/bin/ld: cannot find -lFileGDBAPI collect2: error: ld returned 1 exit status Makefile:31: recipe for target '../bin/Domains' failed make[1]: *** Error 1 make[1]: Leaving directory '/mnt/2GB_HD/ALAMON/Software/FileGDB_API_1_5_VS2015/FileGDB_API-64gcc/samples/Domains' Makefile:27: recipe for target 'Domains' failed make: *** Error 2 ====================================== Building from samples/GeodatabaseManagement directory GeodatabaseManagement$ make clean all rm -f -v ./GeodatabaseManagement.o ../bin/GeodatabaseManagement g++ -fPIC -O3 -m64 -W -fexceptions -D_CONSOLE -DUNICODE -D_UNICODE -DUNIX -D_REENTRANT -DFILEGDB_API -D__USE_FILE_OFFSET64 -DUNIX_FILEGDB_API -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I../../include -I. -c GeodatabaseManagement.cpp g++ -fPIC -O3 -m64 -W -fexceptions -D_CONSOLE -DUNICODE -D_UNICODE -DUNIX -D_REENTRANT -DFILEGDB_API -D__USE_FILE_OFFSET64 -DUNIX_FILEGDB_API -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I../../include -I. -m64 -L../../lib -o ../bin/GeodatabaseManagement ./GeodatabaseManagement.o -lFileGDBAPI /usr/bin/ld: cannot find -lFileGDBAPI collect2: error: ld returned 1 exit status Makefile:29: recipe for target '../bin/GeodatabaseManagement' failed make: *** Error 1
... View more
01-09-2019
10:20 AM
|
0
|
0
|
539
|
BLOG
|
Bless your heart!!! Will get to it first thing in the morning.
... View more
01-08-2019
04:20 PM
|
0
|
0
|
539
|
BLOG
|
Great! Except that build fails with the same error: make g++ -fPIC -O3 -m64 -W -fexceptions -D_CONSOLE -DUNICODE -D_UNICODE -DUNIX -D_REENTRANT -DFILEGDB_API -D__USE_FILE_OFFSET64 -DUNIX_FILEGDB_API -D_FI LE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I../../include -I. -c ShapeBuffer.cpp g++ -fPIC -O3 -m64 -W -fexceptions -D_CONSOLE -DUNICODE -D_UNICODE -DUNIX -D_REENTRANT -DFILEGDB_API -D__USE_FILE_OFFSET64 -DUNIX_FILEGDB_API -D_FI LE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I../../include -I. -m64 -L ../../lib -o ../bin/ShapeBuffer ./ShapeBuffer.o -lFileGDBAPI /usr/bin/ld: cannot find -lFileGDBAPI collect2: error: ld returned 1 exit status Makefile:27: recipe for target '../bin/ShapeBuffer' failed make: *** Error 1
... View more
01-08-2019
09:57 AM
|
0
|
0
|
539
|
BLOG
|
Hi Lance, Thank you very much for your help! I did look at that code, using JNI is an option. Two questions: 1. It creates Geodatabase file but does not show how to populate it with data 2. It does not build (under Linux): make g++ -fPIC -O3 -m64 -W -fexceptions -D_CONSOLE -DUNICODE -D_UNICODE -DUNIX -D_REENTRANT -DFILEGDB_API -D__USE_FILE_OFFSET64 -DUNIX_FILEGDB_API -D_FI LE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I../../include -I. -m64 -L../../lib -o ../bin/GeodatabaseManagement ./GeodatabaseManagement.o -lFileGDBAPI /usr/bin/ld: cannot find -lFileGDBAPI collect2: error: ld returned 1 exit status Makefile:27: recipe for target '../bin/GeodatabaseManagement' failed make: *** Error 1 Again, I appreciate your help.
... View more
01-08-2019
09:18 AM
|
0
|
0
|
539
|
BLOG
|
Yes, we have. And could not find functionality that would create Geodatabase file.
... View more
01-07-2019
11:14 AM
|
0
|
0
|
539
|
BLOG
|
Hello, I am new to this forum and to Esri framework. We need to generate a Geodatabase file within a Java application. I downloaded the FileGDB_API-64 archive (we are on Linux) and have been trying to build samples for quite some time. Initially, it would not build because of a compiler error - had gcc 7. Tried different versions. 4.0 was too old, 7 - too new. Finally tried with 5.5, and the variable declaration errors went away. Now, I am getting the following: /usr/bin/ld: warning: libfgdbunixrtl.so, needed by ../../lib/libFileGDBAPI.so, not found (try using -rpath or -rpath-li nk) /usr/bin/ld: ./GeodatabaseManagement.o: undefined reference to symbol '_ZNSt8ios_base4InitD1Ev@@GLIBCXX_3.4' The warning is not legitimate - the library is where the compiler is looking for it. But the error appears to be an internal deficiency. Can anybody provide some guidance/advice on how I can create a Geodatabase file (file on the file system, not database) within a Java application? Thank you in advance.
... View more
01-03-2019
07:02 PM
|
0
|
0
|
539
|
POST
|
Hello, I need to generate Geodabase file (not database but file on filesystem). Can anyone advise how it can be done within a java application? Thanks in advance.
... View more
01-03-2019
06:54 PM
|
0
|
1
|
225
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|