torch / tds

Torch C data structures
Other
80 stars 25 forks source link

error installing in OS X #22

Closed lifengjin closed 8 years ago

lifengjin commented 8 years ago

OSX El Capitan with the latest Xcode. Any idea how to install TDS, please?

-- Found Torch7 in /Users/jin/torch/install
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/luarocks_tds-scm-1-1310/tds
Scanning dependencies of target tds
[ 20%] Building C object CMakeFiles/tds.dir/tds_utils.c.o
[ 40%] Building C object CMakeFiles/tds.dir/tds_elem.c.o
[ 60%] Building C object CMakeFiles/tds.dir/tds_hash.c.o
[ 80%] Building C object CMakeFiles/tds.dir/tds_vec.c.o
[100%] Building C object CMakeFiles/tds.dir/tds_atomic_counter.c.o
/tmp/luarocks_tds-scm-1-1310/tds/tds_atomic_counter.c:39:3: warning: implicit
      declaration of function 'THAtomicSetLong' is invalid in C99
      [-Wimplicit-function-declaration]
  THAtomicSetLong(&atomic->count, value);
  ^
1 warning generated.
Linking C shared module libtds.so
Undefined symbols for architecture x86_64:
  "_THAtomicSetLong", referenced from:
      _tds_atomic_set in tds_atomic_counter.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libtds.so] Error 1
make[1]: *** [CMakeFiles/tds.dir/all] Error 2
make: *** [all] Error 2
deltheil commented 8 years ago

Update Torch with luarocks install torch (see #21).

lifengjin commented 8 years ago

Sorry that previous post somehow escaped my search. But thanks.