Open kodiweera opened 3 months ago
Hello, this appears to be a duplicate of issue #314 .
Can you try installing from the develop branch and let us know if that works?
Hi yohanyee, That worked! I installed it on both Ubuntu 18 and 20 runing R-4.4.1.
Here's what I did: git clone -b develop https://github.com/Mouse-Imaging-Centre/RMINC.git cd RMIN R CMD INSTALL .
Thanks you all for all your good work!
Great, glad to know it works.
Another way to install is via devtools in R:
devtools::install_github("Mouse-Imaging-Centre/RMINC@develop")
Hi, I'm trying to install RMINC on R-4.4.1 on Ubuntu 18. I get the following error msg. Do you see what's wrong? hdf5 version: 1.8.18 and gcc version is 7. As a matter of fact, I tried installing with different versions of hdf5 and gcc versions, but no luck! I also tried the previous release and get the same error msg. Thanks for any suggestion.
.......................................................................................................................................................... In file included from /usr/share/R/include/R.h:78, from minc_reader.h:12, from modelling_functions.c:1: modelling_functions.c: In function ‘voxel_lm’: modellingfunctions.c:541:12: error: too few arguments to function ‘dpotri’ F77_CALL(dpotri)("Upper", &p, x, &n, &info);
after many lines..at the end of the day
/usr/lib/R/etc/Makeconf:195: recipe for target 'modelling_functions.o' failed make: *** [modelling_functions.o] Error 1 .........................................................................................................................................................
full output:
Installing package into ‘/home/brain/R/x86_64-pc-linux-gnu-library/4.4’ (as ‘lib’ is unspecified)
minc2_read.c:107:65: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘misize_t’ {aka ‘long long unsigned int’} [-Wformat=] if ( R_DEBUG_mincIO ) Rprintf("hSlab_count [0..3] = %d, %d, %d, %d\n", ~^ %lld hSlab_count[0], hSlab_count[1], hSlab_count[2], hSlab_count[3]);
gcc -I"/usr/share/R/include" -DNDEBUG -I/opt/minc/1.9.18/include -I/usr/local/hdf5/include -I'/home/brain/R/x86_64-pc-linux-gnu-library/4.4/Rcpp/include' -fpic -g -O2 -fdebug-prefix-map=/build/r-base-y8QyKA/r-base-4.4.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c minc2_support.c -o minc2_support.o gcc -I"/usr/share/R/include" -DNDEBUG -I/opt/minc/1.9.18/include -I/usr/local/hdf5/include -I'/home/brain/R/x86_64-pc-linux-gnu-library/4.4/Rcpp/include' -fpic -g -O2 -fdebug-prefix-map=/build/r-base-y8QyKA/r-base-4.4.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c minc2_write.c -o minc2_write.o minc2_write.c: In function ‘write_volume’: minc2_write.c:156:55: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘misize_t’ {aka ‘long long unsigned int’} [-Wformat=] if ( R_DEBUG_mincIO ) Rprintf("hSlab_count [0..2] = %d, %d, %d\n", ~^ %lld hSlab_count[0], hSlab_count[1], hSlab_count[2]);
minc2_write.c:156:63: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘misize_t’ {aka ‘long long unsigned int’} [-Wformat=] if ( R_DEBUG_mincIO ) Rprintf("hSlab_count [0..2] = %d, %d, %d\n", ~^ %lld hSlab_count[0], hSlab_count[1], hSlab_count[2]);
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I/opt/minc/1.9.18/include -I/usr/local/hdf5/include -I'/home/brain/R/x86_64-pc-linux-gnu-library/4.4/Rcpp/include' -fpic -g -O2 -fdebug-prefix-map=/build/r-base-y8QyKA/r-base-4.4.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c minc_cpp.cpp -o minc_cpp.o gcc -I"/usr/share/R/include" -DNDEBUG -I/opt/minc/1.9.18/include -I/usr/local/hdf5/include -I'/home/brain/R/x86_64-pc-linux-gnu-library/4.4/Rcpp/include' -fpic -g -O2 -fdebug-prefix-map=/build/r-base-y8QyKA/r-base-4.4.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c minc_reader.c -o minc_reader.o minc_reader.c: In function ‘minc2_apply’: minc_reader.c:436:27: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘misize_t’ {aka ‘long long unsigned int’} [-Wformat=] Rprintf("Volume sizes: %i %i %i\n", sizes[0], sizes[1], sizes[2]); ~^
~~~~ %lli minc_reader.c:436:30: warning: format ‘%i’ expects argument of type ‘int’, but argument 3 has type ‘misize_t’ {aka ‘long long unsigned int’} [-Wformat=] Rprintf("Volume sizes: %i %i %i\n", sizes[0], sizes[1], sizes[2]); ~^~~~~ %lli minc_reader.c:436:33: warning: format ‘%i’ expects argument of type ‘int’, but argument 4 has type ‘misize_t’ {aka ‘long long unsigned int’} [-Wformat=] Rprintf("Volume sizes: %i %i %i\n", sizes[0], sizes[1], sizes[2]); ~^~~~~ %lli gcc -I"/usr/share/R/include" -DNDEBUG -I/opt/minc/1.9.18/include -I/usr/local/hdf5/include -I'/home/brain/R/x86_64-pc-linux-gnu-library/4.4/Rcpp/include' -fpic -g -O2 -fdebug-prefix-map=/build/r-base-y8QyKA/r-base-4.4.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c modelling_functions.c -o modelling_functions.o In file included from /usr/share/R/include/R.h:78, from minc_reader.h:12, from modelling_functions.c:1: modelling_functions.c: In function ‘voxel_lm’: modellingfunctions.c:541:12: error: too few arguments to function ‘dpotri’ F77_CALL(dpotri)("Upper", &p, x, &n, &info); ^~/usr/share/R/include/R_ext/RS.h:77:22: note: in definition of macro ‘F77_CALL’define F77CALL(x) x ##
/usr/share/R/include/R_ext/Lapack.h:854:10: note: declared here F77_NAME(dpotri)(const char uplo, const La_INT n, ^
~/usr/share/R/include/R_ext/RS.h:77:22: note: in definition of macro ‘F77_CALL’define F77CALL(x) x ##
/usr/share/R/include/R_ext/Lapack.h:854:1: note: in expansion of macro ‘F77_NAME’ F77_NAME(dpotri)(const char uplo, const La_INT n, ^
~~~ modelling_functions.c: In function ‘minc2_model’: modelling_functions.c:822:27: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘misize_t’ {aka ‘long long unsigned int’} [-Wformat=] Rprintf("Volume sizes: %i %i %i\n", sizes[0], sizes[1], sizes[2]); ~^~~~~ %lli modelling_functions.c:822:30: warning: format ‘%i’ expects argument of type ‘int’, but argument 3 has type ‘misize_t’ {aka ‘long long unsigned int’} [-Wformat=] Rprintf("Volume sizes: %i %i %i\n", sizes[0], sizes[1], sizes[2]); ~^~~~~ %lli modelling_functions.c:822:33: warning: format ‘%i’ expects argument of type ‘int’, but argument 4 has type ‘misize_t’ {aka ‘long long unsigned int’} [-Wformat=] Rprintf("Volume sizes: %i %i %i\n", sizes[0], sizes[1], sizes[2]); ~^~~~~ %lli /usr/lib/R/etc/Makeconf:195: recipe for target 'modelling_functions.o' failed make: *** [modelling_functions.o] Error 1 ERROR: compilation failed for package ‘RMINC’