No subject


Fri May 8 15:29:31 EDT 2009


re installation is "installed" into a software repository in /opt=
/local/var/macports/software/, then (b) the files in that repository are &q=
uot;activated" by hard links to ${prefix} locations. =C2=A0After that,=
 the temporary build tree is removed, including the DESTDIR.<br>

<br>
<br>
####################BEGIN MACPORTS INSTALL and ACTIVATE<br>
<br>
[ dweber at X ~/ports/devel/cableswig ]$ sudo port -d install cableswig<br>
<br>
---&gt; =C2=A0Installing cableswig @20090514_0<br>
DEBUG: Executing org.macports.install (cableswig)<br>
DEBUG: installing directory: /opt/local/var/macports/software/cableswig/200=
90514_0/opt<br>
DEBUG: installing directory: /opt/local/var/macports/software/cableswig/200=
90514_0/opt/local<br>
DEBUG: installing directory: /opt/local/var/macports/software/cableswig/200=
90514_0/opt/local/bin<br>
DEBUG: installing file: /opt/local/var/macports/software/cableswig/20090514=
_0/opt/local/bin/cableidx<br>
DEBUG: installing file: /opt/local/var/macports/software/cableswig/20090514=
_0/opt/local/bin/cswig<br>
DEBUG: installing directory: /opt/local/var/macports/software/cableswig/200=
90514_0/opt/local/lib<br>
DEBUG: installing directory: /opt/local/var/macports/software/cableswig/200=
90514_0/opt/local/lib/CableSwig<br>
DEBUG: installing file: /opt/local/var/macports/software/cableswig/20090514=
_0/opt/local/lib/CableSwig/CableSwigConfig.cmake<br>
DEBUG: installing directory: /opt/local/var/macports/software/cableswig/200=
90514_0/opt/local/lib/CableSwig/SWIGLib<br>
DEBUG: installing file: /opt/local/var/macports/software/cableswig/20090514=
_0/opt/local/lib/CableSwig/SWIGLib/_std_deque.i<br>
DEBUG: installing file: /opt/local/var/macports/software/cableswig/20090514=
_0/opt/local/lib/CableSwig/SWIGLib/allkw.swg<br>
DEBUG: installing file: /opt/local/var/macports/software/cableswig/20090514=
_0/opt/local/lib/CableSwig/SWIGLib/carrays.i<br>
.<br>
.<br>
[snipped]<br>
.<br>
.<br>
DEBUG: installing file: /opt/local/var/macports/software/cableswig/20090514=
_0/opt/local/lib/CableSwig/SWIGLib/tcl/tcl8kw.swg<br>
DEBUG: installing file: /opt/local/var/macports/software/cableswig/20090514=
_0/opt/local/lib/CableSwig/SWIGLib/tcl/tclsh.i<br>
DEBUG: installing file: /opt/local/var/macports/software/cableswig/20090514=
_0/opt/local/lib/CableSwig/SWIGLib/tcl/typemaps.i<br>
DEBUG: installing file: /opt/local/var/macports/software/cableswig/20090514=
_0/opt/local/lib/CableSwig/SWIGLib/tcl/wish.i<br>
DEBUG: Executing org.macports.activate (cableswig)<br>
<br>
---&gt; =C2=A0Activating cableswig @20090514_0<br>
DEBUG: activating directory: /<br>
DEBUG: activating directory: /opt<br>
DEBUG: activating directory: /opt/local<br>
DEBUG: activating directory: /opt/local/bin<br>
DEBUG: activating file: /opt/local/bin/cableidx<br>
DEBUG: activating file: /opt/local/bin/cswig<br>
DEBUG: activating directory: /opt/local/lib<br>
DEBUG: activating directory: /opt/local/lib/CableSwig<br>
DEBUG: activating file: /opt/local/lib/CableSwig/CableSwigConfig.cmake<br>
DEBUG: activating directory: /opt/local/lib/CableSwig/SWIGLib<br>
DEBUG: activating file: /opt/local/lib/CableSwig/SWIGLib/_std_deque.i<br>
DEBUG: activating file: /opt/local/lib/CableSwig/SWIGLib/allkw.swg<br>
DEBUG: activating file: /opt/local/lib/CableSwig/SWIGLib/carrays.i<br>
DEBUG: activating file: /opt/local/lib/CableSwig/SWIGLib/cdata.i<br>
.<br>
.<br>
[snipped]<br>
.<br>
.<br>
DEBUG: activating file: /opt/local/lib/CableSwig/SWIGLib/tcl/std_vector.i<b=
r>
DEBUG: activating file: /opt/local/lib/CableSwig/SWIGLib/tcl/swigtcl8.swg<b=
r>
DEBUG: activating file: /opt/local/lib/CableSwig/SWIGLib/tcl/tcl8.swg<br>
DEBUG: activating file: /opt/local/lib/CableSwig/SWIGLib/tcl/tcl8kw.swg<br>
DEBUG: activating file: /opt/local/lib/CableSwig/SWIGLib/tcl/tclsh.i<br>
DEBUG: activating file: /opt/local/lib/CableSwig/SWIGLib/tcl/typemaps.i<br>
DEBUG: activating file: /opt/local/lib/CableSwig/SWIGLib/tcl/wish.i<br>
<br>
---&gt; =C2=A0Cleaning cableswig<br>
DEBUG: Executing org.macports.clean (cableswig)<br>
<br>
---&gt; =C2=A0Removing build directory for cableswig<br>
DEBUG: Removing directory: /opt/local/var/macports/build/_Users_dweber_port=
s_devel_cableswig<br>
DEBUG: delete: /opt/local/var/macports/build/_Users_dweber_ports_devel_cabl=
eswig<br>
DEBUG: Removing symlink: /Users/dweber/ports/devel/cableswig/work<br>
DEBUG: delete: /Users/dweber/ports/devel/cableswig/work<br>
<br>
####################END MACPORTS INSTALL and ACTIVATE<br>
<br>
<br>
So far so good, everything appears to work. =C2=A0Now, for the run-time fai=
lure, cswig is looking for SWIGLib in the *source* path, not the installati=
on library path in /opt/local/lib/CableSwig/SWIGLib:<br>
<br>
[ dweber at X ~/ports/devel/cableswig ]$ ls -l /opt/local/bin/cswig<br>
-rwxr-xr-x 2 root admin 1.4M 2009-05-15 18:43 /opt/local/bin/cswig*<br>
[ dweber at X ~/ports/devel/cableswig ]$ which cswig<br>
/opt/local/bin/cswig<br>
[ dweber at X ~/ports/devel/cableswig ]$ cswig<br>
Cannot find SWIG Lib directory. =C2=A0Checked:<br>
 =C2=A0/opt/local/var/macports/build/_Users_dweber_ports_devel_cableswig/wo=
rk/cableswig-20090514/SWIG/Lib<br>
[ dweber at X ~/ports/devel/cableswig ]$ ls /opt/local/lib/CableSwig/SWIGLib/<=
br>
_std_deque.i =C2=A0carrays.i =C2=A0cmalloc.i =C2=A0 constraints.i =C2=A0cst=
ring.i =C2=A0 =C2=A0java/ =C2=A0 pointer.i =C2=A0std_deque.i =C2=A0swig.swg=
 =C2=A0 tcl/<br>
allkw.swg =C2=A0 =C2=A0 cdata.i =C2=A0 =C2=A0common.swg =C2=A0cpointer.i =
=C2=A0 =C2=A0 exception.i =C2=A0math.i =C2=A0python/ =C2=A0 =C2=A0stl.i =C2=
=A0 =C2=A0 =C2=A0 =C2=A0swigrun.i<br>
<br>
<br>
In looking at the CMakeLists.txt files, I wonder what controls the SWIGLib =
path setting, e.g.:<br>
<br>
LINK_DIRECTORIES( &quot;${LIBRARY_OUTPUT_PATH}&quot; )<br>
LINK_DIRECTORIES( &quot;${EXECUTABLE_OUTPUT_PATH}&quot; )<br>
<br>
Near the end of CMakeLists.txt file in the section &quot;# Settings for the=
 install tree.&quot; we have:<br>
<br>
SET(CableSwig_DEFAULT_LIB_CONFIG ${CMAKE_INSTALL_PREFIX}/${CableSwig_INSTAL=
L_ROOT}lib/CableSwig/SWIGLib)<br>
<br>
This seems to control the location of the installation for SWIGLib, but not=
 how cswig links to it (after installation).<br>
<br>
Again, sorry about the long explanation; there it is. =C2=A0Will it be poss=
ible to get this working as a stand-alone installation? =C2=A0It seems that=
 cableswig is primarily designed to build and run within the Insight build,=
 rather than as a stand-alone binary. =C2=A0To provide the latter, I wonder=
 if it&#39;s possible to identify a configuration variable to change how cs=
wig links to or finds the SWIGLib path?<br>

<br>
Kind regards,<br>
Darren<br>
<br>
<br>
<br>
<br>
<br>
On Fri, May 15, 2009 at 4:13 AM, Luis Ibanez &lt;<a href=3D"mailto:luis.iba=
nez at kitware.com" target=3D"_blank">luis.ibanez at kitware.com</a>&gt; wrote:<b=
r>
Hi Darren,<br>
<br>
You may find useful to look at the Tutorial:<br>
<a href=3D"http://farsight-toolkit.org/wiki/FARSIGHT_Tutorials/Building_Sof=
tware/Building_CableSwig" target=3D"_blank">http://farsight-toolkit.org/wik=
i/FARSIGHT_Tutorials/Building_Software/Building_CableSwig</a><br>
<br>
Please let us know if you still find any problems.<br>
<br>
<br>
 =C2=A0 Thanks<br>
<br>
<br>
 =C2=A0 =C2=A0 =C2=A0Luis<br>
<br>
<br>
--------------------<br>
Darren Weber wrote:<br>
<br>
A source build and binary install for cswig fails with:<br>
<br>
[ dweber at X ~/ports ]$ cswig<br>
Cannot find SWIG Lib directory. =C2=A0Checked:<br>
=C2=A0/opt/local/var/macports/build/_Users_dweber_ports_devel_cableswig/wor=
k/cableswig-20090514/SWIG/Lib<br>
[ dweber at X ~/ports ]$<br>
[ dweber at X ~/ports ]$ otool -L /opt/local/bin/cswig<br>
/opt/local/bin/cswig:<br>
 =C2=A0 /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current ve=
rsion 7.4.0)<br>
 =C2=A0 /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current ver=
sion 1.0.0)<br>
 =C2=A0 /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current ve=
rsion 111.1.3)<br>
<br>
<br>
This build of cableswig must use a DESTDIR on the install and the final ins=
tallation is actually moved from that DESTDIR into a ${prefix} location (ac=
tually /opt/local in this case). =C2=A0The final location for the SWIG Lib =
is actually /opt/local/lib/CableSwig/SWIGLib/.<br>

<br>
How can we specify this SWIG Lib directory during the build configuration? =
=C2=A0Is it a cmake variable or is it a CMakeList.txt setting?<br>
<br>
Thanks in advance,<br>
Darren<br>
<br>
<br>
------------------------------------------------------------------------<br=
>
<br>
_____________________________________<br>
Powered by <a href=3D"http://www.kitware.com" target=3D"_blank">www.kitware=
.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href=3D"http://www.kitware.com/opensource/opensource.html" target=3D"_bl=
ank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at: <a href=3D"http://w=
ww.itk.org/Wiki/ITK_FAQ" target=3D"_blank">http://www.itk.org/Wiki/ITK_FAQ<=
/a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href=3D"http://www.itk.org/mailman/listinfo/insight-users" target=3D"_bl=
ank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br>
_____________________________________<br>
Powered by <a href=3D"http://www.kitware.com" target=3D"_blank">www.kitware=
.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href=3D"http://www.kitware.com/opensource/opensource.html" target=3D"_bl=
ank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at: <a href=3D"http://w=
ww.itk.org/Wiki/ITK_FAQ" target=3D"_blank">http://www.itk.org/Wiki/ITK_FAQ<=
/a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href=3D"http://www.itk.org/mailman/listinfo/insight-users" target=3D"_bl=
ank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote>
<br></div></div><font color=3D"#888888">
-- <br>
Ga=C3=ABtan Lehmann<br>
Biologie du D=C3=A9veloppement et de la Reproduction<br>
INRA de Jouy-en-Josas (France)<br>
tel: +33 1 34 65 29 66 =C2=A0 =C2=A0fax: 01 34 65 29 09<br>
<a href=3D"http://voxel.jouy.inra.fr" target=3D"_blank">http://voxel.jouy.i=
nra.fr</a> =C2=A0<a href=3D"http://www.mandriva.org" target=3D"_blank">http=
://www.mandriva.org</a><br>
<a href=3D"http://www.itk.org" target=3D"_blank">http://www.itk.org</a> =C2=
=A0<a href=3D"http://www.clavier-dvorak.org" target=3D"_blank">http://www.c=
lavier-dvorak.org</a><br>
<br>
</font></blockquote></div><br>

--00163662e65c55470e046a341b26--


More information about the Insight-users mailing list