<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 09/26/2012 03:20 PM, Iulian Grindeanu wrote:<br>
<blockquote
cite="mid:202836895.34274.1348690833135.JavaMail.root@zimbra-mb2.anl.gov"
type="cite">
<style type="text/css">p { margin: 0; }</style>
<div style="font-family: times new roman,new york,times,serif;
font-size: 12pt; color: #000000">On 09/26/2012 01:57 PM, Paul
Wilson wrote:<br>
<blockquote style="border-left:2px solid rgb(16, 16,
255);margin-left:5px;padding-left:5px;">
<blockquote cite="mid:50635023.7080902@engr.wisc.edu"> Hi
everyone,<br>
<br>
Sorry if I've missed this discussed elsewhere (or forgotten
the answer that once knew)....<br>
<br>
I get the following errors when I try to "make check" on CGM
built against cubit 12.2:<br>
<br>
<blockquote>wilsonp@todlaw
~/UW/research/fathom/cgm/dagmc_bld/test >
LD_LIBRARY_PATH=/opt/cubit/12.2/bin make check<br>
make init sheet webcut brick_acis merge_acis <br>
make[1]: Entering directory
`/home/wilsonp/UW/research/fathom/cgm/dagmc_bld/test'<br>
make[1]: `init' is up to date.<br>
/bin/bash ../libtool --tag=CXX --mode=link g++ -Wall
-pipe -pedantic -O2 -DNDEBUG -L/opt/cubit/12.2/bin
-R/opt/cubit/12.2/bin -o sheet sheet.o ../libcgm.la -lm<br>
libtool: link: g++ -Wall -pipe -pedantic -O2 -DNDEBUG -o
.libs/sheet sheet.o -L/opt/cubit/12.2/bin
../.libs/libcgm.so -lm -Wl,-rpath
-Wl,/home/wilsonp/opt/lib -Wl,-rpath
-Wl,/opt/cubit/12.2/bin<br>
/usr/bin/ld: sheet.o: undefined reference to symbol
'Body::is_sheet_body()'<br>
/usr/bin/ld: note: 'Body::is_sheet_body()' is defined in
DSO /opt/cubit/12.2/bin/libcubiti19.so so try adding it to
the linker command line<br>
/opt/cubit/12.2/bin/libcubiti19.so: could not read
symbols: Invalid operation<br>
collect2: ld returned 1 exit status<br>
make[1]: *** [sheet] Error 1<br>
make[1]: Leaving directory
`/home/wilsonp/UW/research/fathom/cgm/dagmc_bld/test'<br>
make: *** [check-am] Error 2<br>
</blockquote>
I've configured with: --enable-optimize --disable-debug
--enable-shared --with-cubit=/opt/cubit/12.2
--prefix=/home/wilsonp/opt<br>
<br>
Should there be a -lcubit19 in the linker flags here?<br>
<br>
</blockquote>
Hi Paul<br>
<br>
Try adding cubit to your LPATH as well as your
LD_LIBRARY_PATH.<br>
<br>
Stuart<br>
<br>
</blockquote>
<br>
hello,<br>
This is my patch needed for cgm to pass make check on ubuntu 12
(shared build)<br>
I didn't try setting LPATH.<br>
</div>
</blockquote>
<br>
Hello all,<br>
<br>
LPATH didn't seem to work. Stuart - have you had success with
that? A related question is: what do we expect developers to do
when writing their own apps? Is it sufficient to just include
cgm,make? Shouldn't we just be able to do the same thing in our
tests? <br>
<br>
Paul<br>
<br>
<pre class="moz-signature" cols="72">--
-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ --
Paul Wilson ~ UW-Madison ~ 608-263-0807 ~ cal: <a class="moz-txt-link-freetext" href="http://bit.ly/pphw-cal">http://bit.ly/pphw-cal</a>
Associate Professor, Engineering Physics. ~ <a class="moz-txt-link-freetext" href="http://cnerg.engr.wisc.edu">http://cnerg.engr.wisc.edu</a>
Chair, Energy Analysis & Policy Program ~ <a class="moz-txt-link-freetext" href="http://nelson.wisc.edu/eap">http://nelson.wisc.edu/eap</a></pre>
</body>
</html>