-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Hi
I successfully built the code, but am having trouble running it.
First I am deviating a bit from the build instructions as I am not using Conda. Instead I just grabbed the dependencies (many of which I had on my machine anyway) and bullt with VS2019 compiler and am trying to run through visual studio code. (if it is a really bad idea to bypass the conda install let me know).
Anyway everything builds fine but when I run I have a problem when it hits the below code from mrc.h
int ixyz[3];
int mxyz[3];
int pixeltype;
float min;
float max;
float mean;
IMRdHdr(istream_no, ixyz, mxyz, &pixeltype, &min, &max, &mean);
IMGetHdr(istream_no, &header);
I don't totally understand the logic. Is it writing something to the file then reading it back? An exception occurs in stdio.h. I can't see what is happening in IMRdHdr as that is provided as a prebuilt library however the line that is failing in stdio.h is below.
#else
{
return __stdio_common_vfprintf(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, _Stream, _Format, _Locale, _ArgList);
}
I figure maybe there is a conflict between versions of the c runtime that libimlib and libive were linked to and VS 2019, but so far haven't able to figure out a workaround.
Any ideas? I also saw there are some Visual Studio project files in the repo. Should I try those instead of fooling around with VSCode?