error when compiling gstreamer-1.18.5 on Jetson NX
The GStreamer version of Jetson NX is 1.14.5.
When I use webrtcbin, the browser does not display video after SDP and ice negotiate.
After checking the issues, I want to upgrade the GStreamer version to 1.18.5.
I use gst-build to compile on the aarch64,tried many times, but failed.
How to compile GStreamer in Jetson? Thanks!
The errors are as follows:
[2256/3371] Generating Nice-0.1.gir with a custom command
/usr/include/stdlib.h:140: syntax error, unexpected identifier, expecting ',' or ';' in '# 140 "/usr/include/stdlib.h" 3 4' at 'strtof32'
/usr/include/stdlib.h:141: syntax error, unexpected CHAR, expecting identifier or '(' or '*' in ' char **__restrict __endptr)' at 'char'
/usr/include/stdlib.h:141: syntax error, unexpected ')', expecting ',' or ';' in ' char **__restrict __endptr)' at ')'
/usr/include/stdlib.h:147: syntax error, unexpected CHAR, expecting identifier or '(' or '*' in ' char **__restrict __endptr)' at 'char'
/usr/include/stdlib.h:147: syntax error, unexpected ')', expecting ',' or ';' in ' char **__restrict __endptr)' at ')'
/usr/include/stdlib.h:158: syntax error, unexpected identifier, expecting ',' or ';' in 'extern _Float32x strtof32x (const char *__restrict __nptr,' at 'strtof32x'
/usr/include/stdlib.h:159: syntax error, unexpected CHAR, expecting identifier or '(' or '*' in ' char **__restrict __endptr)' at 'char'
/usr/include/stdlib.h:159: syntax error, unexpected ')', expecting ',' or ';' in ' char **__restrict __endptr)' at ')'
/usr/include/stdlib.h:165: syntax error, unexpected CHAR, expecting identifier or '(' or '*' in ' char **__restrict __endptr)' at 'char'
/usr/include/stdlib.h:165: syntax error, unexpected ')', expecting ',' or ';' in ' char **__restrict __endptr)' at ')'
/usr/include/stdlib.h:233: syntax error, unexpected identifier in ' _Float32 __f)' at '_Float32'
/usr/include/stdlib.h:239: syntax error, unexpected identifier in ' _Float64 __f)' at '_Float64'
/usr/include/stdlib.h:251: syntax error, unexpected identifier in ' _Float32x __f)' at '_Float32x'
/usr/include/stdlib.h:257: syntax error, unexpected identifier in ' _Float64x __f)' at '_Float64x'
/usr/include/stdlib.h:316: syntax error, unexpected identifier, expecting ',' or ';' in '# 316 "/usr/include/stdlib.h" 3 4' at 'strtof32_l'
/usr/include/stdlib.h:317: syntax error, unexpected CHAR, expecting identifier or '(' or '*' in ' char **__restrict __endptr,' at 'char'
/usr/include/stdlib.h:318: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' locale_t __loc)' at 'locale_t'
/usr/include/stdlib.h:324: syntax error, unexpected CHAR, expecting identifier or '(' or '*' in ' char **__restrict __endptr,' at 'char'
/usr/include/stdlib.h:325: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' locale_t __loc)' at 'locale_t'
/usr/include/stdlib.h:337: syntax error, unexpected identifier, expecting ',' or ';' in 'extern _Float32x strtof32x_l (const char *__restrict __nptr,' at 'strtof32x_l'
/usr/include/stdlib.h:338: syntax error, unexpected CHAR, expecting identifier or '(' or '*' in ' char **__restrict __endptr,' at 'char'
/usr/include/stdlib.h:339: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' locale_t __loc)' at 'locale_t'
/usr/include/stdlib.h:345: syntax error, unexpected CHAR, expecting identifier or '(' or '*' in ' char **__restrict __endptr,' at 'char'
/usr/include/stdlib.h:346: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' locale_t __loc)' at 'locale_t'
g-ir-scanner: link: cc -o /data1/software/gstreamer/gst-build-1.18/build/tmp-introspect_z7n79t5/Nice-0.1 /data1/software/gstreamer/gst-build-1.18/build/tmp-introspect_z7n79t5/Nice-0.1.o -L. -Wl,-rpath,. -Wl,--no-as-needed -lnice -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lgthread-2.0 -lgnutls -lgupnp-igd-1.0 -lgupnp-1.0 -lgirepository-1.0 -L./subprojects/libnice/nice -lgio-2.0 -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0
subprojects/libnice/agent/address.h:131: Warning: Nice: nice_address_dup: return value: Invalid non-constant return of bare structure or union; register as boxed type or (skip)
subprojects/libnice/agent/address.h:111: Warning: Nice: nice_address_new: return value: Invalid non-constant return of bare structure or union; register as boxed type or (skip)
subprojects/libnice/agent/address.h:111: Warning: Nice: nice_address_new: return value: Invalid non-constant return of bare structure or union; register as boxed type or (skip)