View Issue Details

IDProjectCategoryView StatusLast Update
0002279Slicer4Core: Extensionspublic2012-07-30 06:41
Reporterpieper Assigned Tojcfr  
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionfixed 
PlatformwindowsOSOS Version
Product Version 
Target VersionSlicer 4.2.0Fixed in VersionSlicer 4.2.0 
Summary0002279: can't deveop extension on windows
Description

Trying to follow the instructions here, but cannot finish on windows:

http://www.na-mic.org/Wiki/index.php/2012_Summer_Project_Week_Breakout_Session:SlicerExtensions

Steps To Reproduce

It's possible to create an extension from the template in a window cmd shell as follows:

c:\pieper\rt\Slicer>..\s\python-build\PCbuild\amd64\python.exe .\Utilities\Scripts\ModuleWizard.py

(we should add this to the documentation when this is all debugged).

But trying to configure the extension in cmake (2.8.8) leads to this message:

Check for working C compiler using: Visual Studio 9 2008 Win64
Check for working C compiler using: Visual Studio 9 2008 Win64 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler using: Visual Studio 9 2008 Win64
Check for working CXX compiler using: Visual Studio 9 2008 Win64 -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
CMake Error at C:/pieper/rt/s/Slicer-build/SlicerConfig.cmake:316 (message):
Variable CMAKE_C_COMPILER defined prior calling 'find_package(Slicer)' does
NOT match value used to configure Slicer. It probably means that a
different CMAKE_C_COMPILER has been used to configure this project and
Slicer.

CMAKE_C_COMPILER=cl

Slicer_CMAKE_C_COMPILER=d:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/bin/x86_amd64/cl.exe
Call Stack (most recent call first):
C:/pieper/rt/s/Slicer-build/SlicerConfig.cmake:326 (slicer_config_set_compiler_ep)
CMakeLists.txt:20 (find_package)

Configuring incomplete, errors occurred!

Changing the value of CMAKE_C_COMPILER in cmake-gui does not make the message go away.

TagsNo tags attached.

Relationships

related to 0002304 acknowledgedjcfr Get the path to CL compiler when using MSVC 

Activities

jcfr

jcfr

2012-07-05 19:50

administrator   ~0005081

Fixed in r20581
See http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=20581

jcfr

jcfr

2012-07-27 15:42

administrator   ~0005419

Dear issue reporter,

Good news :) Slicer developers SOLVED the problem you reported - YOU now need to VERIFY and CLOSE this issue.

pieper

pieper

2012-07-30 06:41

administrator   ~0005452

Works nicely :)

I updated the extension wiki with some notes about windows:

http://www.na-mic.org/Wiki/index.php/2012_Summer_Project_Week_Breakout_Session:SlicerExtensions#Remarks

Issue History

Date Modified Username Field Change
2012-06-29 11:11 pieper New Issue
2012-06-29 11:11 pieper Status new => assigned
2012-06-29 11:11 pieper Assigned To => jcfr
2012-06-29 16:55 jcfr Target Version => Slicer 4.2.0 - Sept 1st 2012
2012-07-05 19:50 jcfr Note Added: 0005081
2012-07-05 19:50 jcfr Status assigned => resolved
2012-07-05 19:50 jcfr Fixed in Version => Slicer 4.2.0 - Sept 1st 2012
2012-07-05 19:50 jcfr Resolution open => fixed
2012-07-05 19:51 jcfr Relationship added related to 0002304
2012-07-27 15:42 jcfr Note Added: 0005419
2012-07-30 06:41 pieper Note Added: 0005452
2012-07-30 06:41 pieper Status resolved => closed