moteus / lua-llthreads2

`llthreads` library rewritten without `LuaNativeObjects` code generator
MIT License
76 stars 22 forks source link

Does it works on android?Any help would mean a lot! #6

Closed imuzi closed 8 years ago

imuzi commented 9 years ago

Ndk build is passed,now i met a new problem , subthread is not running ! It works perfect on ios ! I tried to turn off the luajit on android ,still seems no effective. Below is the test code ! Ps: I also tested the luaproc and llthread,both met the same problem ,no log info printed.

 local llthread= require "llthread2" 
  local thread_code = [[ 
    print("CHILD: received params:", ...) 
    return ...
]] 
local thread = llthreads.new(thread_code, "number:", 1234, "nil:", nil, "bool:", true) 
assert(thread:start(true))
moteus commented 9 years ago

I never use Android. According docs linker should not link with pthread. Try remove external deps from rockspec file.

moteus commented 8 years ago

Can you please tell did you can make it work