-
Notifications
You must be signed in to change notification settings - Fork 18
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
remaining windows install problems #467
Comments
There should be something on the wiki, but surely incomplete, as the SuperBuild started the work only a week ago or so, and things are still moving. Summary is
You probably want to stick to STIR |
Thanks, I have indeed followed those steps, building now. |
Plus, MVS doesnt come with a lot of things by default, e.g. a C++ compiler (yes, really). So we should clarify too what of MVS is needed :) |
it'll work with all of them of course 😉 . |
@KrisThielemans I am having trouble with Boost. I have it installed, but cmake refuses to let me point it out towards its location in my system, it keeps saying not found when I click configure. For a test, can you let me know what folders you use for |
SyneRBI/SIRF#847 is now merged, so now it's easy :-) |
@KrisThielemans not sure if its easy, I was already using it and still Boost was not being detected... I'll restart from scratch I guess... |
boost: I used the default settings for the installer, which installed it in
|
Ah, yes, I was playing with that but I was getting illegal character messages (likely an error in copy-pasting stuff somewhere that dissapearedinto a cached variable). Should not that variable be part of the CMAKE (instead of user-specified)? In any case, definitely worth documenting. In which section of the readme do you want it? |
Sadly they've marked Illegal characters: you can always try Of course, we need to document it, but it first needs to work! where to document it? It's quite like that our OS specific install instructions are still on the wiki. That's what I see on https://github.com/SyneRBI/SIRF-SuperBuild/tree/master/#os-specific-information. There's the (terse!) https://github.com/SyneRBI/SIRF/wiki/SIRF-SuperBuild-on-Windows-with-Visual-Studio for instance. And the soon to be outdated https://github.com/SyneRBI/SIRF/wiki/Installation-instructions#steps-on-windows-. We did agree to move info on the wiki to markdown in the repo (and point the wiki to those pages) to reduce the amount of duplication/confusion. That's easy enough (the Github wiki uses markdown and files can be downloaded/copied). But that seems another issue that needs to be created.... |
There was a boost 1.65.1 in |
My problem was that I was either using pre-built 1.75.0 Boost which is not supported by CMAKE (released 5 days before my CMAKE version, but too new nevertheless), or non-built 1.74.0. Installing a pre-built 1.74.0 seems to have solve the problem, but I am getting:
I can see in here, that a solution to this is to include This removes the (several)
Internet suggests that changing the location of the include is the solution, but I don't know where to put it, if its the first line of Investigating... |
I strongly suspect your SIRF is out-of-date. I've fixed those 2 recently. See for instance |
My current steps:
I have:
|
I think
|
@KrisThielemans indeed. For step 6, I instead save it in a |
Tried to build SIRF-SuperBuild afresh, got these errors:
Conversion from 'hsize_t *' to 'int' is not a problem, but the other errors are very puzzling given the declaration of
|
are you using STIR |
I do ( Quick fixed
and built STIR. Now going through the usual fixes in SIRF build, will comment separately. |
SIRF Windows build annoyance 1. CMake puts this rubbish in
which creates spurious projects |
SIRF Windows build annoyance 2. SIRF projects |
@evgueni-ovtchinnikov can you please confirm your CMake version? It needs to be 3.19.2... (some fixes coming in 3.19.3 and hopefully final ones in 3.20.0...) @AnderBiguri and I are using VS 2019, but that shouldn't matter. the point is obviously that none of these edits should be necessary! If you have to make them, then I would stop right trying to fix them manually. |
I was using 3.13.3 - will upgrade now. |
UCL/STIR#797 to update master is created but will probably only be merged tomorrow. |
same story with CMake 3.19.3 |
I am completely baffled. Why would CMake generate wrong project files on your computer and not ours? It makes no sense to me. Sigh. Possibly you could post your CMakeCache.txt? (Ideally the one from the SuperBuild directory and the one it generates in builds/SIRF/build). |
CMakeCache.txt in folder |
@evgueni-ovtchinnikov not sure if this changes anything, but I needed to create a new variable |
I hope you meant "I can now import For the STIR import, I strongly suspect that your path doesn't have the DLLs that are needed. Continuing along the HDF5 line of suspects (even though your previous problem wasn't), you should have |
@KrisThielemans of course yes, I meant that. I do have
and
|
right. not HDF5 then... we have to find what it's missing then. Looks like we need |
here's what I got
You can find the location of |
oops, the above was for
|
I dont have |
I think your path is not correct. that directory should have been added, see #467 (comment). Check if it is. I believe that you either copy-paste the content, or do |
@KrisThielemans I simply have not show the entire path in the comment because its my personal laptop and I have tons of things in Path, but its there.
|
|
@KrisThielemans tried that already, nothing changes. Also I removed the extra |
all of them should be |
@KrisThielemans can you clarify why its wrong? the (note that I see no diference in |
yes, I do mean |
Just to add info: my current dumpbin looks like this:
Adding all the DLLs and libs into the /libs folder does not change any of the behaviors described until now. Also, I can see in the SIRF (not superbuild) CMAKE parameters, the following correct values: |
Sorry, can you remind me what the current problem is. Is it still the one from above
You could give http://dependencywalker.com/ a go. |
Yes it is. I will give that a go. Still usnure why I dont see FFTW in the dumpbin .... Will report back. |
SIRF Windows build annoyance 2 (extra dependency on My deep gratitude to whoever fixed this! |
what about annoyance 1? And does your Python now finally run? |
Annoyance 1 is still there, but it is much less annoying as it takes less than half a minute to edit VS solution file. Python still crashes on reading MR acquisition data. |
interesting, I see the same "annoyance 1" mess in my |
As it isn't in other solutions, I guess this is a SIRF Bug |
My VS does not complain either - I only noticed something was wrong when I could not find one of my projects (VS Solution Explorer apparently has a limit for the number of projects it can show). There must be a mistake in SIRF CMake files, and I spent quite a lot of time last couple of weeks trying to find it, but did not succeed. One thing that is obvious is that those spurious projects names are part of the path to |
Possible lines for conda (with
could use it to install Then in powershell
Then fine-tune the configuration (either with the CMake GUI or ccmake if present in conda). Possibly it doesn't find boost files, in which case you'd have to set Note, I think with Conda we have to not use ITK at the moment due to the problem I saw Then build, which you could do from the Visual Studio project or
Then set your environment as in #460 |
Just trying again with
|
I've created SyneRBI/SIRF#1127 for "annoyance 1". So I'll close this. |
All instructions are for unix type systems.
We should add instrutions for windows
(may make a PR when I figure out how to build it)
The text was updated successfully, but these errors were encountered: