<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Building GSL as a Universal Binary</title>
	<atom:link href="http://www.dayel.com/2009/09/building-gsl-universal-binary/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dayel.com/2009/09/building-gsl-universal-binary/</link>
	<description></description>
	<lastBuildDate>Sat, 24 Sep 2011 04:56:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: jvc</title>
		<link>http://www.dayel.com/2009/09/building-gsl-universal-binary/comment-page-1/#comment-33477</link>
		<dc:creator>jvc</dc:creator>
		<pubDate>Sat, 24 Sep 2011 04:56:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.dayel.com/?p=390#comment-33477</guid>
		<description>still useful - thanks!</description>
		<content:encoded><![CDATA[<p>still useful — thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: roberto</title>
		<link>http://www.dayel.com/2009/09/building-gsl-universal-binary/comment-page-1/#comment-6540</link>
		<dc:creator>roberto</dc:creator>
		<pubDate>Wed, 01 Dec 2010 11:05:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.dayel.com/?p=390#comment-6540</guid>
		<description>I find one solution:
I have the following directories:
gsl_universal_1.14/include/gsl/ with .h files
gsl_universal_1.14/libs/gsl/ with .a files

First I compile using
gcc -Wall -I/Users/roberto/Desktop/gsl_universal_1.14/include -L/Users/roberto/Desktop/gsl_universal_1.14/libs/ -c sample.c

then I link using
gcc sample.o gsl_universal_1.14/libs/gsl/libgsl.a -o sample

cheers,
roberto</description>
		<content:encoded><![CDATA[<p>I find one solution:<br />
I have the following directories:<br />
gsl_universal_1.14/include/gsl/ with .h files<br />
gsl_universal_1.14/libs/gsl/ with .a files</p>
<p>First I compile using<br />
gcc –Wall –I/Users/roberto/Desktop/gsl_universal_1.14/include –L/Users/roberto/Desktop/gsl_universal_1.14/libs/ –c sample.c</p>
<p>then I link using<br />
gcc sample.o gsl_universal_1.14/libs/gsl/libgsl.a –o sample</p>
<p>cheers,<br />
roberto</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: roberto</title>
		<link>http://www.dayel.com/2009/09/building-gsl-universal-binary/comment-page-1/#comment-6538</link>
		<dc:creator>roberto</dc:creator>
		<pubDate>Wed, 01 Dec 2010 09:47:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.dayel.com/?p=390#comment-6538</guid>
		<description>Hello! Thanks for the precompiled libraries :)
I have always used the code in numerical recipes for scientific computing, and this is my first time trying to link a library outside /usr/local/... I was trying to compile this simple sample.c program with gcc:

#include 
#include 
int main (void)
{
       double x = 5.0;
       double y = gsl_sf_bessel_J0 (x);
       printf (&quot;J0(%g) = %.18e\n&quot;, x, y);
       return 0;
}

I tried
gcc -Wall -I/Users/roberto/Desktop/gsl_universal_1.14/include -L/Users/roberto/Desktop/gsl_universal_1.14/libs/ -lgsl sample.c -o sample

but it can&#039;t find gsl_sf_bessel.h. If I #include  instead, gcc can&#039;t find some other headers. If I create gsl directories inside include/ and libs/, then gcc complains that their&#039;s no lgsl library... what I am doing wrong? (thank you in advace!)</description>
		<content:encoded><![CDATA[<p>Hello! Thanks for the precompiled libraries :)<br />
I have always used the code in numerical recipes for scientific computing, and this is my first time trying to link a library outside /usr/local/… I was trying to compile this simple sample.c program with gcc:</p>
<p>#include<br />
#include<br />
int main (void)<br />
{<br />
       double x = 5.0;<br />
       double y = gsl_sf_bessel_J0 (x);<br />
       printf ("J0(%g) = %.18e\n", x, y);<br />
       return 0;<br />
}</p>
<p>I tried<br />
gcc –Wall –I/Users/roberto/Desktop/gsl_universal_1.14/include –L/Users/roberto/Desktop/gsl_universal_1.14/libs/ –lgsl sample.c –o sample</p>
<p>but it can't find gsl_sf_bessel.h. If I #include  instead, gcc can't find some other headers. If I create gsl directories inside include/ and libs/, then gcc complains that their's no lgsl library… what I am doing wrong? (thank you in advace!)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://www.dayel.com/2009/09/building-gsl-universal-binary/comment-page-1/#comment-5855</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Fri, 19 Nov 2010 00:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dayel.com/?p=390#comment-5855</guid>
		<description>Great scripts! Just wondering if there is a way to make all the &#039;.dylib&#039; files into uni­ver­sal bina­ries? 

Thank in advance.</description>
		<content:encoded><![CDATA[<p>Great scripts! Just wondering if there is a way to make all the '.dylib' files into uni­ver­sal bina­ries? </p>
<p>Thank in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Al Chou</title>
		<link>http://www.dayel.com/2009/09/building-gsl-universal-binary/comment-page-1/#comment-4451</link>
		<dc:creator>Al Chou</dc:creator>
		<pubDate>Mon, 25 Oct 2010 17:37:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.dayel.com/?p=390#comment-4451</guid>
		<description>From http://ascendwiki.cheme.cmu.edu/Binary_installer_for_GSL-1.13_on_Mac_OS_X , how to prevent &quot;make install&quot; from putting files into the system directories, but rather into a local subdirectory of the current directory (DESTDIR needs to be an absolute path):


&lt;code&gt;mkdir temp_install
DESTDIR=`pwd`/temp_install make install
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>From <a href="http://ascendwiki.cheme.cmu.edu/Binary_installer_for_GSL-1.13_on_Mac_OS_X">http://ascendwiki.cheme.cmu.edu/Binary_installer_for_GSL-1.13_on_Mac_OS_X</a> , how to prevent "make install" from putting files into the system directories, but rather into a local subdirectory of the current directory (DESTDIR needs to be an absolute path):</p>
<p><code>mkdir temp_install<br />
DESTDIR=`pwd`/temp_install make install<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gabriel</title>
		<link>http://www.dayel.com/2009/09/building-gsl-universal-binary/comment-page-1/#comment-4133</link>
		<dc:creator>gabriel</dc:creator>
		<pubDate>Tue, 19 Oct 2010 15:04:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.dayel.com/?p=390#comment-4133</guid>
		<description>Thanks a lot, the scripts works perfectly.</description>
		<content:encoded><![CDATA[<p>Thanks a lot, the scripts works perfectly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bongcheol Park</title>
		<link>http://www.dayel.com/2009/09/building-gsl-universal-binary/comment-page-1/#comment-4111</link>
		<dc:creator>Bongcheol Park</dc:creator>
		<pubDate>Tue, 19 Oct 2010 01:20:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.dayel.com/?p=390#comment-4111</guid>
		<description>Thank you for providing this valuable information.
I really appreciate it.</description>
		<content:encoded><![CDATA[<p>Thank you for providing this valuable information.<br />
I really appreciate it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: produibrut</title>
		<link>http://www.dayel.com/2009/09/building-gsl-universal-binary/comment-page-1/#comment-170</link>
		<dc:creator>produibrut</dc:creator>
		<pubDate>Thu, 24 Jun 2010 17:45:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.dayel.com/?p=390#comment-170</guid>
		<description>Hey Mark!

Thanks for providing the precompiled binaries! I originally compiled gsl 1.14 sources for my mac OSX 10.6 to link with my XCode 3.2 project but only the libgsl.a and libgslblas.a where made; and linking to them was not enough to run gsl_randist functions (even with the proper header files set in build options). ( I would get a xxx$non_lazy_ptr symbol not defined error)... 
but with your precompiled libgsl.a and librandist.a added to the project things work perfectly!

Thanks again! I&#039;ll have to learn how to compile all the libraries from source.
Cheers!

prdtbrt</description>
		<content:encoded><![CDATA[<p>Hey Mark!</p>
<p>Thanks for providing the precompiled binaries! I originally compiled gsl 1.14 sources for my mac OSX 10.6 to link with my XCode 3.2 project but only the libgsl.a and libgslblas.a where made; and linking to them was not enough to run gsl_randist functions (even with the proper header files set in build options). ( I would get a xxx$non_lazy_ptr symbol not defined error)…<br />
but with your precompiled libgsl.a and librandist.a added to the project things work perfectly!</p>
<p>Thanks again! I'll have to learn how to compile all the libraries from source.<br />
Cheers!</p>
<p>prdtbrt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian Andolina</title>
		<link>http://www.dayel.com/2009/09/building-gsl-universal-binary/comment-page-1/#comment-19</link>
		<dc:creator>Ian Andolina</dc:creator>
		<pubDate>Fri, 16 Oct 2009 12:11:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.dayel.com/?p=390#comment-19</guid>
		<description>Mark, this worked absolutely perfectly. Thank you so much for this great post!

Ian</description>
		<content:encoded><![CDATA[<p>Mark, this worked absolutely perfectly. Thank you so much for this great post!</p>
<p>Ian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.dayel.com/2009/09/building-gsl-universal-binary/comment-page-1/#comment-18</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Wed, 14 Oct 2009 04:52:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.dayel.com/?p=390#comment-18</guid>
		<description>I&#039;ve updated the script to make all the &#039;.a&#039; files (including &#039;libgslcblas.a&#039;) into universal binaries, and fixed the misplaced &#039;.h&#039; files (moved in v1.13?)  Thanks.</description>
		<content:encoded><![CDATA[<p>I've updated the script to make all the '.a' files (including 'libgslcblas.a') into universal binaries, and fixed the misplaced '.h' files (moved in v1.13?)  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian Andolina</title>
		<link>http://www.dayel.com/2009/09/building-gsl-universal-binary/comment-page-1/#comment-17</link>
		<dc:creator>Ian Andolina</dc:creator>
		<pubDate>Tue, 13 Oct 2009 18:44:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.dayel.com/?p=390#comment-17</guid>
		<description>Hi, I need to build both libgsl.a and libgslcblas.a as universal binaries, but I cannot modify your script to make that happen - how do I do this? Also, I need the *.h include files but in /include I only get a Makefile.in and Makefile.am. I&#039;m on 10.6.1, XCode 3.2/GCC 4.2 and GSL 1.13.

Thanks for any advice!</description>
		<content:encoded><![CDATA[<p>Hi, I need to build both libgsl.a and libgslcblas.a as universal binaries, but I cannot modify your script to make that happen — how do I do this? Also, I need the *.h include files but in /include I only get a Makefile.in and Makefile.am. I'm on 10.6.1, XCode 3.2/GCC 4.2 and GSL 1.13.</p>
<p>Thanks for any advice!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.dayel.com/2009/09/building-gsl-universal-binary/comment-page-1/#comment-11</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Sun, 13 Sep 2009 19:54:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.dayel.com/?p=390#comment-11</guid>
		<description>You&#039;re welcome!

I briefly played with building a shared library, and it looks like it isn&#039;t straightforward.   If you set &#039;&lt;code&gt;--enable-shared&lt;/code&gt;&#039; in the configure flags, it will still only compile the static library unless it&#039;s for the native architecture.  From the output of configure, it looks like libtool is balking at the cross-compile.

I&#039;m not doing a &#039;make install&#039;, because I don&#039;t want it putting stuff into the system directories.  I think it safer to just to manually copy the library and includes where you want them, then statically link the &#039;.a&#039; file by dragging it into the libraries section of the project in XCode, and put the GSL include directory in the path.

As for the ppc64---it looks like they might have pulled support for cross-compiling ppc64 code from Snow Leopard. </description>
		<content:encoded><![CDATA[<p>You're welcome!</p>
<p>I briefly played with building a shared library, and it looks like it isn't straightforward.   If you set '<code>--enable-shared</code>' in the configure flags, it will still only compile the static library unless it's for the native architecture.  From the output of configure, it looks like libtool is balking at the cross-compile.</p>
<p>I'm not doing a 'make install', because I don't want it putting stuff into the system directories.  I think it safer to just to manually copy the library and includes where you want them, then statically link the '.a' file by dragging it into the libraries section of the project in XCode, and put the GSL include directory in the path.</p>
<p>As for the ppc64—it looks like they might have pulled support for cross-compiling ppc64 code from Snow Leopard.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tomas Knapen</title>
		<link>http://www.dayel.com/2009/09/building-gsl-universal-binary/comment-page-1/#comment-10</link>
		<dc:creator>Tomas Knapen</dc:creator>
		<pubDate>Sun, 13 Sep 2009 13:47:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.dayel.com/?p=390#comment-10</guid>
		<description>Thanks for this script! It builds all but ppc64 on snow leopard on my mbp. How do you install the resulting .a file, while also generating a .dylib file as a normal configure, make, make install? Thanks again!</description>
		<content:encoded><![CDATA[<p>Thanks for this script! It builds all but ppc64 on snow leopard on my mbp. How do you install the resulting .a file, while also generating a .dylib file as a normal configure, make, make install? Thanks again!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

