Bash script error - sqlite3.c

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bash script error - sqlite3.c

Gashi Lulzim
I'm trying to get ARToolkit5 Android Examples and run on my device from
this official repo ARToolkit5 GithubRepo
<https://github.com/artoolkit/artoolkit5>.

Then I need to run ./build.sh to build libraries but I'm getting this error
while trying to execute ./build.sh on mac. Please anyone can help what to
do ?


jni/../../lib/SRC/VideoAndroid/sqlite3.c:24124:40: error: use of undeclared
      identifier 'mmap'
  { "mmap",       (sqlite3_syscall_ptr)mmap,     0 },
                                       ^
jni/../../lib/SRC/VideoAndroid/sqlite3.c:24160:22: error: invalid application of
      'sizeof' to an incomplete type 'struct unix_syscall []'
    for(i=0; i<sizeof(aSyscall)/sizeof(aSyscall[0]); i++){
                     ^~~~~~~~~~
jni/../../lib/SRC/VideoAndroid/sqlite3.c:24169:22: error: invalid application of
      'sizeof' to an incomplete type 'struct unix_syscall []'
    for(i=0; i<sizeof(aSyscall)/sizeof(aSyscall[0]); i++){
                     ^~~~~~~~~~
jni/../../lib/SRC/VideoAndroid/sqlite3.c:24196:20: error: invalid application of
      'sizeof' to an incomplete type 'struct unix_syscall []'
  for(i=0; i<sizeof(aSyscall)/sizeof(aSyscall[0]); i++){
                   ^~~~~~~~~~
jni/../../lib/SRC/VideoAndroid/sqlite3.c:24213:16: error: invalid application of
      'sizeof' to an incomplete type 'struct unix_syscall []'
    for(i=0; i<ArraySize(aSyscall)-1; i++){
               ^~~~~~~~~~~~~~~~~~~
jni/../../lib/SRC/VideoAndroid/sqlite3.c:8590:38: note: expanded from macro
      'ArraySize'#define ArraySize(X)    ((int)(sizeof(X)/sizeof(X[0])))
                                     ^~~
jni/../../lib/SRC/VideoAndroid/sqlite3.c:24217:14: error: invalid application of
      'sizeof' to an incomplete type 'struct unix_syscall []'
  for(i++; i<ArraySize(aSyscall); i++){
             ^~~~~~~~~~~~~~~~~~~
jni/../../lib/SRC/VideoAndroid/sqlite3.c:8590:38: note: expanded from macro
      'ArraySize'#define ArraySize(X)    ((int)(sizeof(X)/sizeof(X[0])))
                                     ^~~[armeabi-v7a] Compile arm    :
argsub_es <= gsub_mtx.c[armeabi-v7a] Compile arm    : argsub_es2 <=
gsub_es2.c[armeabi-v7a] Compile arm    : argsub_es2 <=
glStateCache2.c[armeabi-v7a] Compile arm    : argsub_es2 <=
gsub_mtx.c[armeabi-v7a] Compile arm    : armulti <=
arMultiFreeConfig.c[armeabi-v7a] Compile arm    : armulti <=
arMultiGetTransMat.c[armeabi-v7a] Compile arm    : armulti <=
arMultiGetTransMatStereo.c[armeabi-v7a] Compile arm    : armulti <=
arMultiReadConfigFile.c[armeabi-v7a] Compile arm    : eden <=
EdenError.c[armeabi-v7a] Compile arm    : eden <=
EdenGLFont.c[armeabi-v7a] Compile arm    : eden <=
EdenMath.c[armeabi-v7a] Compile arm    : eden <= EdenMessage.c6 errors
generated.
make: *** [obj/local/armeabi/objs/arvideo/__/__/lib/SRC/VideoAndroid/sqlite3.o]
Error 1
make: *** Waiting for unfinished jobs....Exiting ndk-build script
abnormally terminated.
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|

Re: Bash script error - sqlite3.c

Jens Alfke-2


> On Sep 23, 2017, at 8:32 PM, Gashi Lulzim <[hidden email]> wrote:
>
> Then I need to run ./build.sh to build libraries but I'm getting this error
> while trying to execute ./build.sh on mac. Please anyone can help what to
> do ?

This isn’t a SQLite-related issue; it’s related to building that ARToolkit project. Sounds like you’ve got build options or tools set up incorrectly; but that’s nothing we can help you with over here. You should ask for help from the ARToolkit community.

—Jens
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users