I would like to install SFCGAL support in Postgis so I tried to install it from source.
Ubuntu 13.04, PostgreSQL was installed from package.
PostGIS is now configured for i686-pc-linux-gnu
-------------- Compiler Info -------------
C compiler: gcc -g -O2
C++ compiler: g++ -g -O2
SQL preprocessor: /usr/bin/cpp -w -traditional-cpp -P
-------------- Dependencies --------------
GEOS config: /etc/geos-3.4.2/tools/geos-config
GEOS version: 3.4.2
GDAL config: /usr/local/bin/gdal-config
GDAL version: 1.10.1
SFCGAL config: /usr/include/SFCGAL
SFCGAL version:
PostgreSQL config: /usr/bin/pg_config
PostgreSQL version: PostgreSQL 9.3.2
PROJ4 version: 48
Libxml2 config: /usr/bin/xml2-config
Libxml2 version: 2.9.0
JSON-C support: yes
PostGIS debug level: 0
Perl: /usr/bin/perl
--------------- Extensions ---------------
PostGIS Raster: enabled
PostGIS Topology: enabled
SFCGAL support: enabled
-------- Documentation Generation --------
xsltproc:
xsl style sheets:
dblatex:
convert:
mathml2.dtd: http://www.w3.org/Math/DTD/mathml2/mathml2.dtd
I always got this error If I install it --without-raster or --with-raster:
./configure --with-raster --with-topology --with-geosconfig=/etc/geos-3.4.2/tools/geos-config --with-sfcgal=/usr/include/SFCGAL --with-projdir=/etc/proj-4.8.0
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_point_x'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_geometry_collection_num_geometries'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_polygon_add_interior_ring'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_geometry_collection_create'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_version'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_polygon_exterior_ring'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_geometry_is_3d'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_solid_create_from_exterior_shell'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_point_create_from_xy'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_triangle_create'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_point_create_from_xyz'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_geometry_type_id'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_linestring_create'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_triangle_vertex'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_linestring_point_n'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_geometry_collection_add_geometry'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_geometry_collection_geometry_n'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_geometry_delete'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_multi_linestring_create'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_triangle_set_vertex_from_xy'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_multi_polygon_create'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_polygon_interior_ring_n'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_triangulated_surface_create'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_polygon_num_interior_rings'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_multi_point_create'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_solid_shell_n'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_polyhedral_surface_num_polygons'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_triangulated_surface_triangle_n'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_point_create'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_point_z'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_polygon_create_from_exterior_ring'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_geometry_is_empty'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_triangulated_surface_add_triangle'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_polyhedral_surface_create'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_triangle_set_vertex_from_xyz'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_linestring_num_points'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_polyhedral_surface_polygon_n'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_solid_num_shells'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_triangulated_surface_num_triangles'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_polyhedral_surface_add_polygon'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_point_y'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_linestring_add_point'
../../liblwgeom/.libs/liblwgeom.so: undefined reference to `sfcgal_polygon_create'
collect2: error: ld returned 1 exit status
make[2]: *** [raster2pgsql] Error 1
make[2]: Leaving directory `/etc/postgis-2.1.2/raster/loader'
make[1]: *** [rtloader] Error 2
make[1]: Leaving directory `/etc/postgis-2.1.2/raster'
make: *** [all] Error 1
Related
I've adjusted the arm64 settings properly, but I'm still getting an error.
Error 1 : Undefined symbol: _sampleTextMethod
Error 2 : Undefined symbol: _sampleMethod
ld: warning: arm64 function not 4-byte aligned: _unwind_tester from /Users/xxxxxx/Desktop/xxxxxx/Libraries/libiPhone-lib.a(unwind_test_arm64.o)
Undefined symbols for architecture arm64:
"_sampleTextMethod", referenced from:
_share_sampleTextMethod_m44B1FCFDBA728CA7A0D9FE1EAA24957D8575A8F3 in Assembly-CSharp4.o
_share_OniOSTextSharingClick_m685A2DF9E3A15CA3E071041B699A84CF9AA20BEC in Assembly-CSharp4.o
(maybe you meant: _share_sampleTextMethod_m44B1FCFDBA728CA7A0D9FE1EAA24957D8575A8F3)
"_sampleMethod", referenced from:
_share_sampleMethod_m8BEC2F040645B44AA6F065C2B02BC2CD329B4CE0 in Assembly-CSharp4.o
(maybe you meant: _share_sampleMethod_m8BEC2F040645B44AA6F065C2B02BC2CD329B4CE0)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Also, why are the pod files red, is it just me?
enter image description here
I got this error while building AOSP 12.1
it is aosp 12.1_r1, how can I fix it?
It is based on AOSP, and I am running Ubuntu 20.04 with 32 GB Ram
error: external/rust/crates/ppv-lite86/Android.bp:39:1: "libppv_lite86" depends on undefined module "libtest_x86_64-unknown-linux-gnu"
error: external/rust/crates/futures-task/Android.bp:67:1: "libfutures_task" depends on undefined module "libtest_x86_64-unknown-linux-gnu"
error: external/rust/crates/pin-project-lite/Android.bp:42:1: "libpin_project_lite" depends on undefined module "libtest_x86_64-unknown-linux-gnu"
error: external/rust/crates/unicode-segmentation/Android.bp:42:1: "libunicode_segmentation" depends on undefined module "libtest_x86_64-unknown-linux-gnu"
error: prebuilts/rust/Android.bp:343:1: "libunicode_width.rust_toolchain" depends on undefined module "libtest_x86_64-unknown-linux-gnu"
error: external/rust/crates/managed/Android.bp:54:1: "managed_host_test_src_lib" depends on undefined module "libtest_x86_64-unknown-linux-gnu"
error: external/rust/crates/shlex/Android.bp:40:1: "libshlex" depends on undefined module "libtest_x86_64-unknown-linux-gnu"
error: external/rust/crates/rustc-hash/Android.bp:39:1: "librustc_hash" depends on undefined module "libtest_x86_64-unknown-linux-gnu"
error: external/rust/crates/shlex/Android.bp:47:1: "shlex_host_test_src_lib" depends on undefined module "libtest_x86_64-unknown-linux-gnu"
error: external/rust/crates/rustversion/Android.bp:40:1: "librustversion" depends on undefined module "libtest_x86_64-unknown-linux-gnu"
error: external/rust/crates/scopeguard/Android.bp:39:1: "libscopeguard" depends on undefined module "libtest_x86_64-unknown-linux-gnu"
error: external/rust/crates/bencher/Android.bp:59:1: "libbencher" depends on undefined module "libtest_x86_64-unknown-linux-gnu"
error: external/rust/crates/futures-io/Android.bp:66:1: "libfutures_io" depends on undefined module "libtest_x86_64-unknown-linux-gnu"
error: external/rust/crates/itoa/Android.bp:41:1: "libitoa" depends on undefined module "libtest_x86_64-unknown-linux-gnu"
error: external/rust/crates/lazycell/Android.bp:39:1: "liblazycell" depends on undefined module "libtest_x86_64-unknown-linux-gnu"
error: external/rust/crates/proc-macro-hack/Android.bp:41:1: "libproc_macro_hack" depends on undefined module "libtest_x86_64-unknown-linux-gnu"
error: external/rust/crates/fallible-streaming-iterator/Android.bp:64:1: "libfallible_streaming_iterator" depends on undefined module "libtest_x86_64-unknown-linux-gnu"
error: external/rust/crates/proc-macro-nested/Android.bp:49:1: "libproc_macro_nested" depends on undefined module "libtest_x86_64-unknown-linux-gnu"
error: external/rust/crates/cfg-if/Android.bp:87:1: "libcfg_if" depends on undefined module "libtest_x86_64-unknown-linux-gnu"
error: external/rust/crates/rustc-hash/Android.bp:64:1: "rustc-hash_host_test_src_lib" depends on undefined module "libtest_x86_64-unknown-linux-gnu"
error: external/rust/crates/untrusted/Android.bp:45:1: "untrusted_host_test_src_untrusted" depends on undefined module "libtest_x86_64-unknown-linux-gnu"
error: external/rust/crates/ryu/Android.bp:42:1: "libryu" depends on undefined module "libtest_x86_64-unknown-linux-gnu"
error: external/rust/crates/regex-syntax/Android.bp:41:1: "libregex_syntax" depends on undefined module "libtest_x86_64-unknown-linux-gnu"
error: external/rust/crates/libm/Android.bp:41:1: "liblibm" depends on undefined module "libtest_x86_64-unknown-linux-gnu"
error: external/rust/crates/unicode-width/Android.bp:40:1: "libunicode_width" depends on undefined module "libtest_x86_64-unknown-linux-gnu"
error: external/rust/crates/untrusted/Android.bp:21:1: "libuntrusted" depends on undefined module "libtest_x86_64-unknown-linux-gnu"
error: external/rust/crates/matches/Android.bp:45:1: "matches_host_test_lib" depends on undefined module "libtest_x86_64-unknown-linux-gnu"
13:02:48 soong bootstrap failed with: exit status 1
github.com/PixelExperiencePad/manifest/tree/twelve-pad > This is my manifest for 12L(12.1), which is based on PE and modded to use SP2A(12.1) Source, is it where the problem originate? If so, can you tell me what parts to fix?
I also encountered this error.
I fixed it by replacing the build/soong directory. build/soong directory picked from another rom (xdroidoss)
How do I resolved this issue. Any help would be appreciated.
directory not found for option '- L/Users/blank/Desktop/project/ipad_client/move/Modules/Unity/Libraries'
Undefined symbols for architecture i386:
"_AFNetworkingReachabilityDidChangeNotification", referenced from:
-[moveChat startTrackingNetworkEvents] in moveChat.o
http://www.gnu.org/s/libmicrohttpd/tutorial.html#Hello-browser-example
gcc helloworld.c -lmicrohttpd -I/opt/local/include/
helloworld.c: In function ‘answer_to_connection’:
helloworld.c:18: warning: incompatible implicit declaration of built-in function ‘strlen’
ld: library not found for -lmicrohttpd
collect2: ld returned 1 exit status
I am using snow leopard with latest xcode
and installed libmicrohttpd using macports
never used OSX but you need something like: -L/opt/local/lib
Check where the lib resides.. the linked docs says -L$PATH_TO_LIBMHD_INCLUDES
I built an iPhone toolchain on Ubuntu based on the directions at http://www.saurik.com/id/4 . When I try to compile something as simple as:
int main () {
return 4;
}
It gives me this:
Undefined symbols:
"_main", referenced from:
_main$non_lazy_ptr in crt1.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
This happens for both the crt1.o from the iPhone SDK and from the http://code.google.com/p/iphone-dev/wiki/Building . Using -save-temps, I found out that the cc1 command produced no output. Why is that? Is there something wrong with my specs file?
Using built-in specs.
Target: arm-apple-darwin10
Configured with: ../llvm-gcc-4.2-2.8.source/configure --target=arm-apple-darwin10 --prefix=/home/kevin/it --with-sysroot=/home/kevin/is --enable-languages=c,c++,objc,obj-c++ --with-as=/home/kevin/it/bin/arm-apple-darwin10-as --with-ld=/home/kevin/it/bin/arm-apple-darwin10-ld --enable-wchar_t=no --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658)
/home/kevin/it/libexec/gcc/arm-apple-darwin10/4.2.1/cc1 -quiet -v -D__DYNAMIC__ test.c -miphoneos-version-min=3.0 -fPIC -fno-builtin-strcat -fno-builtin-strcpy -quiet -dumpbase test.c -auxbase test -version -o /tmp/ccyVHwhV.s
ignoring nonexistent directory "/home/kevin/is/usr/local/include"
ignoring nonexistent directory "/home/kevin/is/home/kevin/it/lib/gcc/arm-apple-darwin10/4.2.1/../../../../arm-apple-darwin10/include"
ignoring nonexistent directory "/home/kevin/is/Library/Frameworks"
#include "..." search starts here:
#include <...> search starts here:
/home/kevin/it/lib/gcc/arm-apple-darwin10/4.2.1/include
/home/kevin/is/usr/include
/home/kevin/is/System/Library/Frameworks (framework directory)
End of search list.
GNU C version 4.2.1 (Based on Apple Inc. build 5658) (arm-apple-darwin10)
compiled by GNU C version 4.4.5.
GGC heuristics: --param ggc-min-expand=150 --param ggc-min-heapsize=131072
Compiler executable checksum: 47b826ed9d7049d0b0acd26e928e4c9e
/home/kevin/it/bin/arm-apple-darwin10-as -arch arm -force_cpusubtype_ALL -o /tmp/cck3gviA.o /tmp/ccyVHwhV.s
ERROR: ld.so: object '/etc/override.so' from /etc/ld.so.preload cannot be preloaded: ignored.
ERROR: ld.so: object '/etc/override.so' from /etc/ld.so.preload cannot be preloaded: ignored.
/home/kevin/it/libexec/gcc/arm-apple-darwin10/4.2.1/collect2 -dynamic -arch arm -force_cpusubtype_ALL -iphoneos_version_min 3.0 -syslibroot /home/kevin/is -weak_reference_mismatches non-weak -o test -lcrt1.o -L/home/kevin/is/usr/lib -L/home/kevin/it/lib/gcc/arm-apple-darwin10/4.2.1 -L/home/kevin/it/lib/gcc/arm-apple-darwin10/4.2.1/../../../../arm-apple-darwin10/lib /tmp/cck3gviA.o -lgcc -lSystem
ERROR: ld.so: object '/etc/override.so' from /etc/ld.so.preload cannot be preloaded: ignored.
ld warning: unknown option to -iphoneos_version_min, not 1.x or 2.x
Undefined symbols:
"_main", referenced from:
_main$non_lazy_ptr in crt1.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Never mind, it turns out that I forgot to compile llvm along with it, and I didn't realize that obviously llvm-gcc would need llvm to function correctly.