Hi,
It happens because you are trying to access unaligned memory which on arm is not allowed.
Cheers,
BogDan.
--
You received this message because you are subscribed to the Google Groups "android-qt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-qt+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 24/10/13 12:36, BogDan Vatra wrote:
[...]
> On intel is ok to access unaligned memory, but not on ARM, I
> always use memcpy to be 100% sure it works. I have no idea if
> -malign-double will fix your problem, you can try it but ... IMHO
> using memcpy is the safest way.
memcpy will avoid this particular problem (although it might be
painfully slow, depending on compiler options), but it's just patching
round the underlying issue that the double variables should be at
unaligned addresses in the first place.
You posted this code:
GEOSCoordSeq_getX( cs, j, ( double * )&mGeometry[position] );
What is mGeometry? Where did it come from?
-mno-unaligned-access build option when building for kernels that do not support
this feature.