beechung / Latent-Factor-Models

R functions for fitting latent factor models with internal computation in C/C++
BSD 3-Clause "New" or "Revised" License
123 stars 61 forks source link

Error while compiling... Absent file 'src/arslogistic/arms.c', needed by `arslogistic' #10

Open yashoteja opened 8 years ago

yashoteja commented 8 years ago

Hi,

Following is the output of my make: R CMD SHLIB src/C/util.c src/C/factor_model_util.c src/C/pagerank.c src/C/hierarchical.c src/C/factor_model_multicontext.c src/C/factor_model_util2.cpp -o lib/c_funcs.so make[1]: Entering directory /home/Desktop/Latent-Factor-Models-master' make[1]: Nothing to be done forall'. make[1]: Leaving directory /home/Desktop/Latent-Factor-Models-master' make: *** No rule to make targetsrc/arslogistic/arms.c', needed by `arslogistic'. Stop.

Should there be an arms.c somewhere?

Thanks!

beechung commented 8 years ago

Please follow these steps:

(1) Download arms_method.zip from http://www1.maths.leeds.ac.uk/~wally.gilks/adaptive.rejection/web_page/Welcome.html (look for C code) (2) Unzip arms_method.zip and put arms.c and arms.h into src/arslogistic

yashoteja commented 8 years ago

That worked! Thank you!

yrbshoprunner commented 7 years ago

Followed these steps, but got the "src/arslogistic/arsspline.c:95:6: error: conflicting types for 'ARSLOGISTICSPLINE'" error

I had to add the header #include "arsspline.h" in arsspline.c to fix it