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

BUILDING FOR 32 bit Windows instead of 64 bit #94

Open
yaskhanloo opened this issue Sep 30, 2021 · 2 comments
Open

BUILDING FOR 32 bit Windows instead of 64 bit #94

yaskhanloo opened this issue Sep 30, 2021 · 2 comments

Comments

@yaskhanloo
Copy link

Hi,
I have tried to build this project on Windows but always get this error: LNK1104 cannot open file '...\bin\gpuNUFFT_ATM_f.lib'
I suppose the problem is with the generation. I am using CMake 3.21.2 and I cannot change the build to win64 instead of win32.
This is the message I get in CMake when I am generating the files:

------start creating libraries-------
Atomic GPU GpuNUFFT Library
MEX file
checking MATLAB INC DIR = C:/Program Files/MATLAB/R2017b\extern\include
BUILDING FOR 32 bit Windows
Using MATLAB MX LIB: C:/Program Files/MATLAB/R2017b/extern/lib/win64/microsoft/libmx.lib
Using MATLAB MEX LIB: C:/Program Files/MATLAB/R2017b/extern/lib/win64/microsoft/libmex.lib
Using MATLAB INC DIR: C:/Program Files/MATLAB/R2017b\extern\include
set Win 32 suffix

@andyschwarzl
Copy link
Owner

Hi,

can you please try to configure the project once more?

You have to clear the CMakeCache (File -> Clear Cache) to reconfigure. Afterwards you should be able to select the x64 option again:

image

HTH

Andy

@yaskhanloo
Copy link
Author

Hi,

thanks for ur answer. I have tried that too but still it builds for 32 bit. I have attached some screenshots from my cmake.
04-10-_2021_10-30-11
04-10-_2021_10-29-48
04-10-_2021_10-28-10

Yasi

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