Spatialie Run Error resolution

Source: Internet
Author: User

If the program is linked to Spatialite, the following error occurs:

Lt-demo2:geos_ts_c.cpp:3657intint intdouble): Assertion '0 ! = cs'  failed. [1]    15401 Abort (core dumped)  ./demo2

In all likelihood, because Spatialite relies on the library geos multithreading problems, I encountered the situation is GEOS 3.5.0 + spatialite 4.3.0a. The solution is to download the source code for Spatialite 4.4.0-RC1 to recompile with the following command:

./configure--prefix=/usr--enable-libxml2  cppflags="$CPPFLAGS-dgeos_use_only_r_api" 

Because GEOS library almost all functions have two versions: non-thread-safe (without ' _r ', older) and thread-safe (with ' _r ') versions. The new Spatialite (4.4.0-RC1) compilation must also be added cppflags= "$CPPFLAGS-dgeos_use_only_r_api" option to invoke a thread-safe version.

The problem I encountered in MacOS homebrew and the official source installation version of ArchLinux, is a deep buried thunder. It is written here hoping to help the latter.

ref:https://groups.google.com/forum/?hl=en&fromgroups=#!topic/spatialite-users/9-32tvq-720

Spatialie Run Error resolution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.