Compilation and link errors in the Slicer version 4.8.0

Operating system: Windows 8.1 64 bits
Slicer version: 4.8.0 (revision 944c364) with Qt 5.9.2
Compiler: visual studio 2015

Hello,

I tried to build Slicer (4.8.0) in debug mode and I faced several issues:

  • Compilation errors:
    ** Error C1083 Cannot open include file: ‘vtkSlicerVersionConfigure.h’: No such file or directory [D:\SLicer480D\Slicer-build\Modules\Loadable\Markups\MRML\vtkSlicerMarkupsModuleMRML.vcxproj] Slicer D:\MacBioIDi\Slicer\Slicer\Modules\Loadable\Markups\MRML\vtkMRMLMarkupsFiducialStorageNode.cxx 23
    Error C1083 Cannot open include file: ‘vtkSlicerVersionConfigure.h’: No such file or directory [D:\SLicer480D\Slicer-build\Modules\Loadable\Markups\MRML\vtkSlicerMarkupsModuleMRML.vcxproj] Slicer D:\MacBioIDi\Slicer\Slicer\Modules\Loadable\Markups\MRML\vtkMRMLMarkupsFiducialStorageNode.cxx 23

  • Link errors:
    ** There are 138 errors if the ITKWrap is enabled.
    Error LNK1104 cannot open file ‘python27_d.lib’
    [D:\SLicer480D\ITKv4-build\Wrapping\Modules\BridgeNumPy\BridgeNumPyPython.vcxproj] ITKv4 D:\SLicer480D\LINK 1
    [D:\SLicer480D\ITKv4-build\Wrapping\Modules\ITKAnisotropicSmoothingITKAnisotropicSmoothingPython.vcxproj]
    [D:\SLicer480D\ITKv4-build\Wrapping\Modules\ITKAntiAlias\ITKAntiAliasPython.vcxproj]

  • I can run Slicer correctly, but I can install new extensions. The manager warns the following message: “No extensions found for win:64-bit, revision: ‘944c364’. Please try a different combination”

Has anybody faced those issues before?

Thanks in advance

Most likely this is not the first error. To find the root cause of the problem, we would need to see the complete build log. Please upload it to somewhere and post here the link. The file should be at a location like this: c:\D\S4D\Testing\Temporary\LastBuild_20171031-1243.log

This is normal. If you build Slicer then you also have to build all the extensions that you need.

Thank Andras for your reply.

I will look for that file.

Ok, I found the link about extension index to search all available extensions

Hello,

I couldn’t find any file with name LastBuild*.log in my system. I found the file Slicer.log where the error is written.

D:\SLicer480D\Slicer-build\ALL_BUILD.vcxproj" (default target) (1) ->
         "D:\SLicer480D\Slicer-build\Modules\CLI\ExecutionModelTour\ExecutionModelTour.vcxproj" (default target) (65) ->
         "D:\SLicer480D\Slicer-build\Modules\CLI\ExecutionModelTour\ExecutionModelTourLib.vcxproj" (default target) (66) ->
         "D:\SLicer480D\Slicer-build\Modules\Loadable\Markups\MRML\vtkSlicerMarkupsModuleMRML.vcxproj" (default target) (71) ->
         (ClCompile target) -> 
     1>D:\Slicer\Slicer\Modules\Loadable\Markups\MRML\vtkMRMLMarkupsFiducialStorageNode.cxx(23): fatal error C1083: Cannot open include file: 'vtkSlicerVersionConfigure.h': No such file or directory [D:\SLicer480D\Slicer-build\Modules\Loadable\Markups\MRML\vtkSlicerMarkupsModuleMRML.vcxproj]

The filename vtkSlicerVersionConfigure.h is located in the folder D:\SLicer480D\Slicer-build\vtkSlicerVersionConfigure.h

I built the slicer solution in release mode in new location and the error is shown as well.

Thanks in advance

It must be some very simple, trivial error, but it is difficult to decode from this very little amount of information. Please skype me from the computer where you have this problem (so that you can share your screen) anytime when you have 10 minutes.

1 Like

Thanks a lot Andras for your time.

Hi,
I have exactly same error in similar environment. I can run Slicer, but I can’t use vtkMRMLMarkupFiducialNodes etc., because compilation ended with error at this point. What should I do?
Thanks in advance.

Edit 1.
Work!!!
I don’t know if enabled Slicer_USE_SimpleITK(I checked only this) was it but everything was compiled correctly.