Skip to content

error message when configuring build system to build all the tools and install them into /opt/minc/1.9.17 #175

@alicelema

Description

@alicelema

Hello,

I am trying to install MINC on a on a fresh WSL Ubuntu 24.04.2 LTS.

Here are the steps I have followed :

sudo apt-get install \
 build-essential g++ bc \
 cmake \
 bison flex \
 libx11-dev x11proto-core-dev \
 libxi6 libxi-dev \
 libxmu6 libxmu-dev libxmu-headers \
 libgl1-mesa-dev libglu1-mesa-dev \
 libjpeg-dev

git clone --recursive --branch release-1.9.18 https://github.com/BIC-MNI/minc-toolkit-v2.git minc-toolkit-v2

cd minc-toolkit-v2

mkdir build && cd build

sudo apt install gfortran # Had a message error during the cmake first time, adding the 
fortran compiler worked

#cmake ..

#make

# I am not sure the next steps are required if I proceed to the cmake .. && make but I have done it since I had later another error message as described in https://github.com/BIC-MNI/minc-toolkit-v2/issues/173

 cmake .. \
-DCMAKE_BUILD_TYPE:STRING=Release   \
-DCMAKE_INSTALL_PREFIX:PATH=/opt/minc/1.9.18 \
-DMT_BUILD_ABC:BOOL=ON   \
-DMT_BUILD_ANTS:BOOL=ON   \
-DMT_BUILD_C3D:BOOL=ON   \
-DMT_BUILD_ELASTIX:BOOL=ON   \
-DMT_BUILD_IM:BOOL=OFF   \
-DMT_BUILD_ITK_TOOLS:BOOL=ON   \
-DMT_BUILD_LITE:BOOL=OFF   \
-DMT_BUILD_SHARED_LIBS:BOOL=ON   \
-DMT_BUILD_VISUAL_TOOLS:BOOL=ON   \
-DMT_USE_OPENMP:BOOL=ON   \
-DUSE_SYSTEM_FFTW3D:BOOL=OFF   \
-DUSE_SYSTEM_FFTW3F:BOOL=OFF   \
-DUSE_SYSTEM_GLUT:BOOL=OFF   \
-DUSE_SYSTEM_GSL:BOOL=OFF   \
-DUSE_SYSTEM_HDF5:BOOL=OFF   \
-DUSE_SYSTEM_ITK:BOOL=OFF   \
-DUSE_SYSTEM_NETCDF:BOOL=OFF   \
-DUSE_SYSTEM_NIFTI:BOOL=OFF   \
-DUSE_SYSTEM_PCRE:BOOL=OFF   \
-DUSE_SYSTEM_ZLIB:BOOL=OFF 

I get following error message :

-- Looking for alloca - not found
-- [download 0% complete]
-- [download 21% complete]
-- [download 43% complete]
-- [download 64% complete]
-- [download 85% complete]
-- [download 100% complete]
-- Configuring done (75.5s)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
X11_Xrandr_LIB (ADVANCED)
    linked by target "bicgl" in directory /home/alicexxx/minc-toolkit-v2/bicgl
    linked by target "ppm_to_pixels" in directory /home/alicexxx/minc-toolkit-v2/Display
    linked by target "Display" in directory /home/alicexxx/minc-toolkit-v2/Display
    linked by target "register" in directory /home/alicexxx/minc-toolkit-v2/Register
X11_Xxf86vm_LIB (ADVANCED)
    linked by target "bicgl" in directory /home/alicexxx/minc-toolkit-v2/bicgl
    linked by target "ppm_to_pixels" in directory /home/alicexxx/minc-toolkit-v2/Display
    linked by target "Display" in directory /home/alicexxx/minc-toolkit-v2/Display
    linked by target "register" in directory /home/alicexxx/minc-toolkit-v2/Register

-- Generating done (0.5s)
CMake Generate step failed.  Build files cannot be regenerated correctly.

Do you have an idea of what I could do?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions