View Issue Details

IDProjectCategoryView StatusLast Update
0004014Slicer4Module SubjectHierarchypublic2018-03-02 11:07
Reporterpieper Assigned Topinter  
PrioritynormalSeverityblockReproducibilityhave not tried
Status closedResolutionfixed 
Product Version 
Target VersionFixed in VersionSlicer 4.5.0-1 
Summary0004014: cannot build subject hierarchy with CLI disabled
Description

subject says it all!

See build log below. The #includes should be conditioned on the build setting.

Steps To Reproduce

set Slicer_BUILD_CLI_SUPPORT to OFF and make

Additional Information

%] Building CXX object Modules/Loadable/SubjectHierarchy/Widgets/CMakeFiles/qSlicerSubjectHierarchyModuleWidgets.dir/qSlicerSubjectHierarchyPluginHandler.cxx.o
[ 56%] Building CXX object Modules/Loadable/SubjectHierarchy/Widgets/CMakeFiles/qSlicerSubjectHierarchyModuleWidgets.dir/qSlicerSubjectHierarchyDefaultPlugin.cxx.o
[ 56%] Building CXX object Modules/Loadable/SubjectHierarchy/Widgets/CMakeFiles/qSlicerSubjectHierarchyModuleWidgets.dir/qSlicerSubjectHierarchyCloneNodePlugin.cxx.o
[ 56%] Building CXX object Modules/Loadable/SubjectHierarchy/Widgets/CMakeFiles/qSlicerSubjectHierarchyModuleWidgets.dir/qSlicerSubjectHierarchyChartsPlugin.cxx.o
[ 56%] Building CXX object Modules/Loadable/SubjectHierarchy/Widgets/CMakeFiles/qSlicerSubjectHierarchyModuleWidgets.dir/qSlicerSubjectHierarchyParseLocalDataPlugin.cxx.o
[ 56%] Building CXX object Modules/Loadable/SubjectHierarchy/Widgets/CMakeFiles/qSlicerSubjectHierarchyModuleWidgets.dir/qSlicerSubjectHierarchyRegisterPlugin.cxx.o
/Users/pieper/slicer4/latest/Slicer/Modules/Loadable/SubjectHierarchy/Widgets/qSlicerSubjectHierarchyRegisterPlugin.cxx:35:10: fatal error: 'vtkMRMLCommandLineModuleNode.h' file
not found
#include <vtkMRMLCommandLineModuleNode.h>
^
1 error generated.
make[2]: [Modules/Loadable/SubjectHierarchy/Widgets/CMakeFiles/qSlicerSubjectHierarchyModuleWidgets.dir/qSlicerSubjectHierarchyRegisterPlugin.cxx.o] Error 1
make[1]:
[Modules/Loadable/SubjectHierarchy/Widgets/CMakeFiles/qSlicerSubjectHierarchyModuleWidgets.dir/all] Error 2

TagsNo tags attached.

Activities

pinter

pinter

2015-07-02 13:14

developer   ~0013169

I disabled Slicer_BUILD_CLI and build succeeded on Windows. Should I disable Slicer_BUILD_CLI_SUPPORT too? Or something else?

pieper

pieper

2015-07-07 04:03

administrator   ~0013172

I was trying to build a minimal slicer to test some build/packaging issues and turned off all CLI options, so yes, CLI_SUPPORT too probably (I re-enabled things in order to get past the issue so I don't have that configuration right now). Sorry, I didn't save the cache but it should be easy to replicate on my side if you can't.

pinter

pinter

2015-07-10 10:44

developer   ~0013175

I think I fixed the error in
https://github.com/cpinter/Slicer/tree/4014-cannot-build-sh-with-cli-disabled

The only doubt is that I had other build errors like the one below, so I cannot verify for 100%. I just did a rebase to the current trunk, and doing a clean build. If it goes well I will do the commit. Or you can do it as well if you consider the changes OK.

31>vtkSlicerDataStoreLogic.obj : error LNK2019: unresolved external symbol "declspec(dllimport) public: cdecl ctkVTKConnectionFactoryInitialize::c
tkVTKConnectionFactoryInitialize(void)" (_imp??0ctkVTKConnectionFactoryInitialize@@QEAA@XZ) referenced in function "void cdecl `dynamic initialize
r for 'ctkVTKConnectionFactoryInitializer''(void)" (??
EctkVTKConnectionFactoryInitializer@@YAXXZ) [C:\de\S4cpD\Slicer-build\Modules\Remote\DataStore
\DataStore\Logic\vtkSlicerDataStoreModuleLogic.vcxproj]

pieper

pieper

2015-07-10 14:06

administrator   ~0013177

That error does seem unrelated, but since you are doing a clean build let's wait and see how that turns out. Your fix looks good to me - sorry it turned out to be so many lines. Thanks for the fix!

pinter

pinter

2015-07-11 07:00

developer   ~0013179

I got the same errors after the clean build. I'll look into it more.

pinter

pinter

2015-07-14 11:22

developer   ~0013181

I still get those errors on my branch, strange.
I tried to build with CLI enabled, and it builds fine. Also those data store link errors really seem unrelated so I committed my fixes:
http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&amp;revision=24408
Can you please try to build it on your computer with CLI disabled?

Related Changesets

Import 2017-06-07 23:51:09: master 6d100948

2015-07-14 14:51:35

pinter

Details Diff
COMP: Fixed subject hierarchy build issue with CLI disabled

Fixes 0004014

git-svn-id: http://svn.slicer.org/Slicer4/trunk@24408 3bd1e089-480b-0410-8dfb-8563597acbee
mod - Modules/Loadable/Markups/SubjectHierarchyPlugins/CMakeLists.txt Diff File
mod - Modules/Loadable/Models/SubjectHierarchyPlugins/CMakeLists.txt Diff File
mod - Modules/Loadable/SubjectHierarchy/Widgets/CMakeLists.txt Diff File
mod - Modules/Loadable/SubjectHierarchy/Widgets/qSlicerSubjectHierarchyRegisterPlugin.cxx Diff File
mod - Modules/Loadable/Transforms/SubjectHierarchyPlugins/CMakeLists.txt Diff File
mod - Modules/Loadable/Volumes/SubjectHierarchyPlugins/CMakeLists.txt Diff File
mod - Modules/Scripted/DICOMLib/SubjectHierarchyPlugins/CMakeLists.txt Diff File

Issue History

Date Modified Username Field Change
2015-07-01 08:34 pieper New Issue
2015-07-01 08:34 pieper Status new => assigned
2015-07-01 08:34 pieper Assigned To => pinter
2015-07-01 15:38 pinter Status assigned => acknowledged
2015-07-02 13:14 pinter Note Added: 0013169
2015-07-07 04:03 pieper Note Added: 0013172
2015-07-10 10:44 pinter Note Added: 0013175
2015-07-10 14:06 pieper Note Added: 0013177
2015-07-11 07:00 pinter Note Added: 0013179
2015-07-14 11:22 pinter Note Added: 0013181
2015-07-14 11:22 pinter Status acknowledged => resolved
2015-07-14 11:22 pinter Fixed in Version => Slicer 4.4.1
2015-07-14 11:22 pinter Resolution open => fixed
2015-09-09 08:29 jcfr Fixed in Version Slicer 4.4.1 => Slicer 4.5.0-1
2017-06-10 08:51 pinter Changeset attached => Slicer master 6d100948
2018-03-02 11:07 jcfr Status resolved => closed