<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body dir="auto">
<div>I figured you are working towards an anaconda build. I'm trying something simpler. What did you change in platform.make?<br>
<br>
<div>Michael Barton</div>
<div>School of Human Evolution &Social Change</div>
<div>Center for Social Dynamics & Complexity</div>
<div>Arizona State University</div>
<div><br>
</div>
...Sent from my iPad</div>
<div><br>
On Aug 5, 2017, at 11:05 AM, Eric Hutton <<a href="mailto:hutton.eric@gmail.com">hutton.eric@gmail.com</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>Michael,<br>
<br>
Those were the sorts of files I was making changes in.<br>
<br>
Also, I just realized that I am building things slightly differently than you and so the stuff I wrote about the temporary folder doesn't apply to you. I'm building GRASS with conda-build so that it can be a conda installable package.<br>
<br>
Eric<br>
<div class="gmail_quote">
<div dir="ltr">On Sat, Aug 5, 2017 at 10:39 AM Michael Barton <<a href="mailto:Michael.Barton@asu.edu">Michael.Barton@asu.edu</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Is the place to fix this in ../include/make/Platform.make?
<div><br>
</div>
<div></div>
</div>
<div style="word-wrap:break-word">
<div>Michael<br>
<div>
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="text-align:-webkit-auto;text-indent:0px;word-wrap:break-word"><span class="m_-5196477839320304500Apple-style-span" style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="word-wrap:break-word"><span class="m_-5196477839320304500Apple-style-span" style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="word-wrap:break-word"><span class="m_-5196477839320304500Apple-style-span" style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="word-wrap:break-word"><span class="m_-5196477839320304500Apple-style-span" style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="word-wrap:break-word"><span class="m_-5196477839320304500Apple-style-span" style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="word-wrap:break-word"><span class="m_-5196477839320304500Apple-style-span" style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="word-wrap:break-word"><span class="m_-5196477839320304500Apple-style-span" style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="word-wrap:break-word"><span class="m_-5196477839320304500Apple-style-span" style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="word-wrap:break-word">
<div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-transform:none;white-space:normal;word-spacing:0px">
____________________</div>
<div style="font-variant:normal;letter-spacing:normal;line-height:normal;text-transform:none;white-space:normal;word-spacing:0px">
<font face="Helvetica" size="3">C. Michael Barton</font></div>
<div style="font-variant:normal;letter-spacing:normal;line-height:normal;text-transform:none;white-space:normal;word-spacing:0px">
<font face="Helvetica" size="3">Director, Center for Social Dynamics & Complexity </font></div>
<div style="font-variant:normal;letter-spacing:normal;line-height:normal;text-transform:none;white-space:normal;word-spacing:0px">
<font face="Helvetica" size="3">Professor of Anthropology, School of Human Evolution & Social Change</font></div>
<div><font face="Helvetica" size="3">Head, Graduate Faculty in Complex Adaptive Systems Science</font></div>
<div style="font-variant:normal;letter-spacing:normal;line-height:normal;text-transform:none;white-space:normal;word-spacing:0px">
<font face="Helvetica" size="3">Arizona State University</font></div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-transform:none;white-space:normal;word-spacing:0px">
<br>
</div>
<font face="Helvetica" size="3"><font>voice: </font><font>480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)</font><br>
<font>fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)</font><br>
</font>
<div style="font-variant:normal;letter-spacing:normal;line-height:normal;text-transform:none;white-space:normal;word-spacing:0px">
<font face="Helvetica" size="3">www: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.public.asu.edu_-7Ecmbarton&d=DwMFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=kz9Bf_LTP0czZnIt3-pHiAJIYWW4NegjOVKWpC48EGM&s=kVm-Ph7PI7je3NbzySuE7Mc_F6JXpGzNHqsjRDRBcWQ&e=" target="_blank">
http://www.public.asu.edu/~cmbarton</a>, <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__csdc.asu.edu&d=DwMFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=kz9Bf_LTP0czZnIt3-pHiAJIYWW4NegjOVKWpC48EGM&s=siUhDOqaUWp-dbRqlchHg9BaehLzaTlIDI4xvExGxzc&e=" target="_blank">
http://csdc.asu.edu</a></font></div>
<br>
</div>
<br>
</div>
</span><br class="m_-5196477839320304500Apple-interchange-newline">
</div>
</span><br class="m_-5196477839320304500Apple-interchange-newline">
</div>
</span><br class="m_-5196477839320304500Apple-interchange-newline">
</div>
</span><br class="m_-5196477839320304500Apple-interchange-newline">
</div>
</span><br class="m_-5196477839320304500Apple-interchange-newline">
</div>
</span><br class="m_-5196477839320304500Apple-interchange-newline">
</div>
</span><br class="m_-5196477839320304500Apple-interchange-newline">
</div>
</span><br class="m_-5196477839320304500Apple-interchange-newline">
</div>
<br class="m_-5196477839320304500Apple-interchange-newline">
</div>
<br class="m_-5196477839320304500Apple-interchange-newline">
</div>
<br class="m_-5196477839320304500Apple-interchange-newline">
<br class="m_-5196477839320304500Apple-interchange-newline">
</div>
<br>
</div>
</div>
<div style="word-wrap:break-word">
<div>
<div>
<blockquote type="cite">
<div>On Aug 4, 2017, at 3:50 PM, Eric Hutton <<a href="mailto:hutton.eric@gmail.com" target="_blank">hutton.eric@gmail.com</a>> wrote:</div>
<br class="m_-5196477839320304500Apple-interchange-newline">
</blockquote>
</div>
</div>
</div>
<div style="word-wrap:break-word">
<div>
<div>
<blockquote type="cite">
<div>
<div dir="ltr">Hi Michael
<div><br>
</div>
<div>I found that if I manually add linker flags (like "-L$PREFIX/lib -liconv") I was able to get rid of these errors. I also notice that I had to append them to the end of the compile command (or at least after things like "-lgrass_gis.7.2.0" - I guess it
has to do with the order that the compiler looks at libraries to resolve sysbols). Then, at runtime $PREFIX/lib needed to appear in the LD_LIBRARY_PATH_VAR when running the tests.</div>
<div><br>
</div>
<div>I'm not sure of the best way to fix this within the grass build system (simply adding the link flags to LDFLAGS didn't do the trick). Perhaps tweaking Rules.make and the like would do the trick? I think the basic problem is that conda does the entire build
within a temporary folder that contains installations of all the dependencies and that this temporary folder is not added to all the necessary places. </div>
<div><br>
</div>
<div>Eric</div>
<div><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">On Fri, Aug 4, 2017 at 3:05 PM Michael Barton <<a href="mailto:Michael.Barton@asu.edu" target="_blank">Michael.Barton@asu.edu</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">After a tedious set of tests, I can say that GRASS will not build with ANY dependency from Anaconda except SQLite. That is, I went through the dependencies one-by-one and replaced the path to a Framework version with an Anaconda
version in my configure string. I did a make clean between each build attempt.
<div><br>
</div>
<div>All the versions are close (secondary or tertiary version number) or identical between William's framework builds and those in Anaconda.
<div><br>
</div>
<div>For FreeType and Cairo, the errors of the type I posted yesterday</div>
</div>
</div>
<div style="word-wrap:break-word">
<div>
<div><br>
</div>
<div>ld: symbol(s) not found for architecture x86_64<br>
clang: error: linker command failed with exit code 1 (use -v to see invocation)</div>
<div><br>
</div>
</div>
</div>
<div style="word-wrap:break-word">
<div>
<div>For the other dependencies, the errors are that the appropriate library cannot be found, like the following for fftw:</div>
<div><br>
</div>
<div>dyld: Library not loaded: @rpath/libfftw3.3.dylib<br>
Referenced from: /Users/cmbarton/grass_source/trunk/dist.x86_64-apple-darwin16.7.0/lib/libgrass_gmath.7.3.svn.dylib<br>
Reason: image not found<br>
<br>
It seems to me like there has to be some kind of systematic reason for this not to work. Something hardwired in a key makefile or something. The Anaconda packages are all current builds of normal dependencies.</div>
<div><br>
</div>
<div>I am even doing it in an environment in which /Applications/anaconda/bin is first in my PATH (which works fine if the dependencies are Frameworks).</div>
<div><br>
</div>
<div>Any thoughts on this? </div>
<div><br>
</div>
<div></div>
</div>
</div>
<div style="word-wrap:break-word">
<div>
<div>Michael<br>
<div>
<div style="text-align:start;text-indent:0px;word-wrap:break-word">
<div style="text-align:start;text-indent:0px;word-wrap:break-word">
<div style="text-align:-webkit-auto;text-indent:0px;word-wrap:break-word"><span class="m_-5196477839320304500m_-135401739931404629Apple-style-span" style="border-collapse:separate;border-spacing:0px">
<div style="word-wrap:break-word"><span class="m_-5196477839320304500m_-135401739931404629Apple-style-span" style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="word-wrap:break-word"><span class="m_-5196477839320304500m_-135401739931404629Apple-style-span" style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="word-wrap:break-word"><span class="m_-5196477839320304500m_-135401739931404629Apple-style-span" style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="word-wrap:break-word"><span class="m_-5196477839320304500m_-135401739931404629Apple-style-span" style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="word-wrap:break-word"><span class="m_-5196477839320304500m_-135401739931404629Apple-style-span" style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="word-wrap:break-word"><span class="m_-5196477839320304500m_-135401739931404629Apple-style-span" style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="word-wrap:break-word"><span class="m_-5196477839320304500m_-135401739931404629Apple-style-span" style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="word-wrap:break-word">
<div>
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-transform:none;white-space:normal;word-spacing:0px">
____________________</div>
<div style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;line-height:normal">
<font face="Helvetica" size="3">C. Michael Barton</font></div>
<div style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;line-height:normal">
<font face="Helvetica" size="3">Director, Center for Social Dynamics & Complexity </font></div>
<div style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;line-height:normal">
<font face="Helvetica" size="3">Professor of Anthropology, School of Human Evolution & Social Change</font></div>
<div style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px">
<font face="Helvetica" size="3">Head, Graduate Faculty in Complex Adaptive Systems Science</font></div>
<div style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;line-height:normal">
<font face="Helvetica" size="3">Arizona State University</font></div>
<div style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;font-family:Helvetica;font-size:12px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;line-height:normal">
<br>
</div>
<font face="Helvetica" size="3" style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px"><font>voice: </font><font><a href="tel:(480)%20965-6262" value="+14809656262" target="_blank">480-965-6262</a> (SHESC), <a href="tel:(480)%20965-8130" value="+14809658130" target="_blank">480-965-8130</a>/727-9746 (CSDC)</font><br>
<font>fax: <a href="tel:(480)%20965-7671" value="+14809657671" target="_blank">480-965-7671</a> (SHESC), <a href="tel:(480)%20727-0709" value="+14807270709" target="_blank">480-727-0709</a> (CSDC)</font><br>
</font>
<div style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;line-height:normal">
<font face="Helvetica" size="3">www: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.public.asu.edu_-7Ecmbarton&d=DwMFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=KtrgOgv-4RMiEJEdKKQg5Z_ZL4pv8gJw3U0lH7fV_jg&s=LIHaJSGN6aEh018lfLuD_oohvcwC4GRCW2pleRj90HE&e=" target="_blank">
http://www.public.asu.edu/~cmbarton</a>, <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__csdc.asu.edu&d=DwMFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=KtrgOgv-4RMiEJEdKKQg5Z_ZL4pv8gJw3U0lH7fV_jg&s=ZZ_j-P8_GLz4WT29WIipvPXFuAZoZlYUntcjvNtYEOs&e=" target="_blank">
http://csdc.asu.edu</a></font></div>
<br>
</div>
<br>
</div>
</span><br class="m_-5196477839320304500m_-135401739931404629Apple-interchange-newline">
</div>
</span><br class="m_-5196477839320304500m_-135401739931404629Apple-interchange-newline">
</div>
</span><br class="m_-5196477839320304500m_-135401739931404629Apple-interchange-newline">
</div>
</span><br class="m_-5196477839320304500m_-135401739931404629Apple-interchange-newline">
</div>
</span><br class="m_-5196477839320304500m_-135401739931404629Apple-interchange-newline">
</div>
</span><br class="m_-5196477839320304500m_-135401739931404629Apple-interchange-newline">
</div>
</span><br class="m_-5196477839320304500m_-135401739931404629Apple-interchange-newline">
</div>
</span><br class="m_-5196477839320304500m_-135401739931404629Apple-interchange-newline">
</div>
<br class="m_-5196477839320304500m_-135401739931404629Apple-interchange-newline">
</div>
<br class="m_-5196477839320304500m_-135401739931404629Apple-interchange-newline">
</div>
<br class="m_-5196477839320304500m_-135401739931404629Apple-interchange-newline">
<br class="m_-5196477839320304500m_-135401739931404629Apple-interchange-newline">
</div>
<br>
</div>
</div>
</div>
<div style="word-wrap:break-word">
<div>
<div>
<div>
<blockquote type="cite">
<div>On Aug 4, 2017, at 12:56 AM, Moritz Lennert <<a href="mailto:mlennert@club.worldonline.be" target="_blank">mlennert@club.worldonline.be</a>> wrote:</div>
<br class="m_-5196477839320304500m_-135401739931404629Apple-interchange-newline">
<div>
<div>On 04/08/17 00:33, Vaclav Petras wrote:<br>
<blockquote type="cite">Well, the error (below) suggests that wrong library is either linked or included. You need to go through the -L and -I paths and see if you need to set one of these differently or add additional one for iconv. I don't see how to set
this through ./configure (I don't see any --with-iconv-includes= or --with-iconv-libs=), but you can start by editing the Makefiles or the command itself and changing -L and -I directly.<br>
Undefined symbols for architecture x86_64:<br>
"_iconv", referenced from:<br>
_draw_main in text3.o<br>
"_iconv_close", referenced from:<br>
_draw_main in text3.o<br>
"_iconv_open", referenced from:<br>
_draw_main in text3.o<br>
ld: symbol(s) not found for architecture x86_64<br>
clang: error: linker command failed with exit code 1 (use -v to see invocation)<br>
</blockquote>
<br>
Just guessing: Could the error be linked to the use of clang ? Have you tried with gcc ?<br>
<br>
Moritz<br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</body>
</html>