View Issue Details

IDProjectCategoryView StatusLast Update
0003212Slicer4Core: CLI infrastructurepublic2014-03-06 09:39
Reportersbengali Assigned Tomillerjv  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionno change required 
Product Version 
Target VersionFixed in Version 
Summary0003212: Model Maker CLI Crashes
Description

I have Slicer nightly built on my machine, which is Mac OS X 10.6.8. If I try to run the Model Maker executable from the command line, it crashes with this error message:

dyld: Library not loaded: libarchive.12.dylib
Referenced from: /Slicer-nightlySuperbuild2/Slicer-build/./lib/Slicer-4.2/cli-modules/ModelMaker
Reason: image not found

However, the module runs fine from the Slicer GUI.

TagsNo tags attached.

Relationships

duplicate of 0003189 closedjcfr libarchive installed as symlink breaks Slicer.app in build tree 

Activities

millerjv

millerjv

2013-08-27 11:51

developer   ~0009637

Are you using the Slicer launcher to run the ModelMaker CLI? In other words, is this a path issue?

sbengali

sbengali

2013-08-29 08:27

reporter   ~0009699

The CLI runs if I use the Slicer launcher with the command: ./Slicer-build/Slicer --launch ./Slicer-build/lib/Slicer-4.2/cli-modules/ModelMaker
It will not run if I try to run the executable as ./ModelMaker

millerjv

millerjv

2013-08-29 09:12

developer   ~0009700

This is "expected". The Slicer launcher configures the paths so that programs like ModelMaker (and Slicer-real itself) can locate the run-time libraries they depend on.

If you don't want to use the launcher to run the CLIs, then you will need to manually configure the search paths.

You can run

./Slicer-build/Slicer --xterm

on Linux to see how the path is configured, or

./Slicer-build/Slicer --cmd

on Windows.

You'd have to run

./Slicer-build/Slicer --help

on the Mac to see what the equivalent "launch a shell" would be. Though I expect something like

./Slicer-build/Slicer --launch bash -c 'echo $PATH'

will print out the path needed for Slicer.

sbengali

sbengali

2013-09-03 12:16

reporter   ~0009860

I see. I'll run the module by using the launcher from now onwards. Thanks for your help!

Issue History

Date Modified Username Field Change
2013-07-09 14:15 sbengali New Issue
2013-07-09 14:15 sbengali Status new => assigned
2013-07-09 14:15 sbengali Assigned To => millerjv
2013-08-27 11:48 pieper Relationship added duplicate of 0003189
2013-08-27 11:51 millerjv Note Added: 0009637
2013-08-29 08:27 sbengali Note Added: 0009699
2013-08-29 09:12 millerjv Note Added: 0009700
2013-09-03 12:16 sbengali Note Added: 0009860
2014-03-06 09:39 pieper Status assigned => closed
2014-03-06 09:39 pieper Resolution open => no change required