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)
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
This question already has an answer here:
mex compilation error C2440: 'initializing': cannot convert from 'const mwSize *' to 'const int32_t *'
(1 answer)
Closed 6 months ago.
recently I moved my Matlab project from windows OS to Mac OS. so my jpeg_read.mexw64 file didn't work anymore and I needed to create a new mexmaci64 file that is compatible with Mac OS.
I Downloaded JpegToolbox from here and then installed Libjpeg using:
brew install libjpeg
in Matlab I tried to use mex:
>> mex -setup
MEX configured to use 'Xcode with Clang' for C language compilation.
To choose a different language, select one from the following:
mex -setup C++
mex -setup FORTRAN
MEX configured to use 'Xcode Clang++' for C++ language compilation.
>>
but when I try:
mex -I/usr/local/Cellar/jpeg/9d/include jpeg_read.c -L/usr/local/Cellar/jpeg/9d/lib
Matlab returns the following error:
Building with 'Xcode with Clang'.
/Users/folder/jpeg_toolbox/jpeg_read.c:294:39: warning: incompatible pointer types passing 'int [2]' to parameter of type 'const mwSize *' (aka 'const unsigned long *') [-Wincompatible-pointer-types]
mxtemp = mxCreateCharArray(2,dims);
^~~~
/Applications/Polyspace/R2020a/extern/include/matrix.h:958:91: note: passing argument to parameter 'dims' here
LIBMMWMATRIX_PUBLISHED_API_EXTERN_C mxArray *mxCreateCharArray(mwSize ndim, const mwSize *dims);
^
1 warning generated.
Error using mex
Undefined symbols for architecture x86_64:
"_jpeg_CreateDecompress", referenced from:
_mexFunction in jpeg_read.o
"_jpeg_destroy_decompress", referenced from:
_mexFunction in jpeg_read.o
"_jpeg_finish_decompress", referenced from:
_mexFunction in jpeg_read.o
"_jpeg_read_coefficients", referenced from:
_mexFunction in jpeg_read.o
"_jpeg_read_header", referenced from:
_mexFunction in jpeg_read.o
"_jpeg_save_markers", referenced from:
_mexFunction in jpeg_read.o
"_jpeg_std_error", referenced from:
_mexFunction in jpeg_read.o
"_jpeg_stdio_src", referenced from:
_mexFunction in jpeg_read.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
now how can I compile the program? Otherwise, does any of you have already got the mexmaci64 I would need?
This error typically happens when a MEX-file uses int instead of mwSize for the sizes of an array. Only very old MEX-file code still does this.
For these MEX-files, you need to add -compatibleArrayDims to the mex command when compiling. It causes the compiler to select the old 32-bit API instead of one of the newer 64-bit ones. This does limit the maximum size of arrays, but only in a way that is consistent with limits at the time the MEX-file was written.
The alternative solution is to rewrite the MEX-file to use a newer API.
dyld: Library not loaded: #rpath/libswiftAVFoundation.dylib
Referenced from: /var/containers/Bundle/Application/E38072A3-CFE2-4E44-86F8-D7C817114210/ZeusTheme.app/ZeusTheme
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/E38072A3-CFE2-4E44-86F8-D7C817114210/ZeusTheme.app/Frameworks/libswiftAVFoundation.dylib: code signature invalid for '/private/var/containers/Bundle/Application/E38072A3-CFE2-4E44-86F8-D7C817114210/ZeusTheme.app/Frameworks/libswiftAVFoundation.dylib'
/private/var/containers/Bundle/Application/E38072A3-CFE2-4E44-86F8-D7C817114210/ZeusTheme.app/Frameworks/libswiftAVFoundation.dylib: code signature invalid for '/private/var/containers/Bundle/Application/E38072A3-CFE2-4E44-86F8-D7C817114210/ZeusTheme.app/Frameworks/libswiftAVFoundation.dylib'
/private/var/containers/Bundle/Application/E38072A3-CFE2-4E44-86F8-D7C817114210/ZeusTheme.app/Frameworks/libswiftAVFoundation.dylib: stat() failed with errno=1
/private/var/containers/Bundle/Application/E38072A3-CFE2-4E44-86F8-D7C817114210/ZeusTheme.app/Frameworks/libswiftAVFoundation.dylib: code signature invalid for '/private/var/containers/Bundle/Application/E38072A3-CFE2-4E44-86F8-D7C817114210/ZeusTheme.app/Frameworks/libswiftAVFoundation.dylib'
/private/var/containers/Bundle/Application/E38072A3-CFE2-4E44-86F8-D7C817114210/ZeusTheme.app/Frameworks/libswiftAVFoundation.dylib: stat() failed with errno=1
Try a clean your project and delete derived data after then build project.
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
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