Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installing in windows 10 #20

Open
neurostm opened this issue Oct 8, 2019 · 2 comments
Open

installing in windows 10 #20

neurostm opened this issue Oct 8, 2019 · 2 comments

Comments

@neurostm
Copy link

neurostm commented Oct 8, 2019

Hello,

Sorry for the multiple messages, but running into this error again using the install command on Wholebrainsoftware.org
How do I resolve this error?
Thanks!

C:/WHOLEB~1/Rtools/mingw_32/bin/g++`` -shared -s -static-libgcc -o wholebrain.dll tmp.def CThinPlateSpline.o CoherentPointShift.o DoubleSlider.o ThinPlateSpline.o Widget.o affine.o connectedcomponents3D.o display.o filter.o flatfieldcorrection.o gauss_transform.o gauss_transform_make_default.o getContour.o imageconverter.o laplacianpyramidblending.o lwtimagetest.o makeAtlasNissl.o manualsegmentation.o matrix.o multiresolutiondecomposition.o nonrigid.o normalization.o rigid.o transform.o utils.o wavelet2d.o webfiles.o -LC:\WHOLEB~1\R\R-36~1.1\library\opencv\x86\mingw\lib -lopencv_calib3d410 -lopencv_core410 -lopencv_features2d410 -lopencv_flann410 -lopencv_gapi410 -lopencv_highgui410 -lopencv_imgcodecs410 -lopencv_imgproc410 -lopencv_ml410 -lopencv_objdetect410 -lopencv_photo410 -lopencv_stitching410 -lopencv_video410 -lopencv_videoio410 -LC:\fftw/ -lfftw3-3 -L..inst/include/x64 -LC:/WHOLEB~1/R/R-36~1.1/bin/i386 -lR

C:\fftw//libfftw3-3.dll: file not recognized: File format not recognized
collect2.exe: error: ld returned 1 exit status
no DLL was created
ERROR: compilation failed for package 'wholebrain'
* removing 'C:/WholeBrain/R/R-3.6.1/library/wholebrain'
Error: Failed to install 'wholebrain' from GitHub:
  (converted from warning) installation of package ‘C:/Users/Mustafa/AppData/Local/Temp/RtmpWusMPR/file52901d106a7b/wholebrain_0.1.1.tar.gz’ had non-zero exit status
Error: 1 components of `...` were not used.

We detected these problematic arguments:
* `args`

Did you misspecify an argument?
Call `rlang::last_error()` to see a backtrace
@tractatus
Copy link
Owner

@neurostm looks like youa re trying to compile for 32 bit Windows while the FFTW.dll is for 64 bit.

Force R to only install the 64 bit version:

devtools::install_github("tractatus/wholebrain", INSTALL_opts=c("--no-multiarch"))

Important here is INSTALL_opts=c("--no-multiarch") which has changed in recent versions of devtools from that you could just pass it as an additional args.

@neurostm
Copy link
Author

neurostm commented Oct 8, 2019

@tractatus thank you for the reply. When I use INSTALL_opts=c("--no-multiarch") I get an error that I detailed in issue #19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants