{"id":30,"date":"2007-11-30T10:01:50","date_gmt":"2007-11-30T09:01:50","guid":{"rendered":"http:\/\/www.miscdebris.net\/blog\/2007\/11\/30\/universal-binary-of-netcdf-library-for-mac-os-x-105\/"},"modified":"2008-09-30T12:10:57","modified_gmt":"2008-09-30T11:10:57","slug":"universal-binary-of-netcdf-library-for-mac-os-x-105","status":"publish","type":"post","link":"http:\/\/www.miscdebris.net\/blog\/2007\/11\/30\/universal-binary-of-netcdf-library-for-mac-os-x-105\/","title":{"rendered":"Universal binary of netcdf library for Mac OS X (10.5)"},"content":{"rendered":"<p>In order to create a universal binary of\u00c2\u00a0<a href=\"http:\/\/www.unidata.ucar.edu\/software\/netcdf\/\" target=\"_blank\">netcdf<\/a>\u00c2\u00a0first read\u00c2\u00a0<a href=\"http:\/\/www.miscdebris.net\/blog\/2007\/11\/30\/compiling-universal-binaries-in-mac-osx-105-leopard-against-104u-sdk-problem\/\">this post<\/a>.\u00c2\u00a0Than issue this configure command:<\/p>\n<pre>.\/configure CFLAGS=\"-isysroot \/Developer\/SDKs\/MacOSX10.4u.sdk -arch ppc -arch i386\" CXXFLAGS=\"-isysroot \/Developer\/SDKs\/MacOSX10.4u.sdk -arch ppc -arch i386\" LDFLAGS=\"-Wl,-syslibroot,\/Developer\/SDKs\/MacOSX10.4u.sdk -arch ppc -arch i386\" --disable-dependency-tracking --disable-f77c\u00c2\u00a0<\/pre>\n<p>This will correctly build a universal binary of the netcdf library (C and C++). I had to use &#8220;&#8211;disable-f77&#8221; since I only had\u00c2\u00a0<a href=\"http:\/\/hpc.sourceforge.net\/\" target=\"_blank\">f2c<\/a>\u00c2\u00a0installed which is not able to compile the netcdf fortran API. &#8220;make test&#8221; was successfully run.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In order to create a universal binary of\u00c2\u00a0netcdf\u00c2\u00a0first read\u00c2\u00a0this post.\u00c2\u00a0Than issue this configure command: .\/configure CFLAGS=&#8221;-isysroot \/Developer\/SDKs\/MacOSX10.4u.sdk -arch ppc -arch i386&#8243; CXXFLAGS=&#8221;-isysroot \/Developer\/SDKs\/MacOSX10.4u.sdk -arch ppc -arch i386&#8243; LDFLAGS=&#8221;-Wl,-syslibroot,\/Developer\/SDKs\/MacOSX10.4u.sdk -arch ppc -arch i386&#8243; &#8211;disable-dependency-tracking &#8211;disable-f77c\u00c2\u00a0 This will correctly build a universal binary of the netcdf library (C and C++). I had to use &#8220;&#8211;disable-f77&#8221; since I &hellip; <a href=\"http:\/\/www.miscdebris.net\/blog\/2007\/11\/30\/universal-binary-of-netcdf-library-for-mac-os-x-105\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Universal binary of netcdf library for Mac OS X (10.5)<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[10],"tags":[],"class_list":["post-30","post","type-post","status-publish","format-standard","hentry","category-macosx"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6pnj-u","_links":{"self":[{"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/posts\/30"}],"collection":[{"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/comments?post=30"}],"version-history":[{"count":1,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/posts\/30\/revisions"}],"predecessor-version":[{"id":60,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/posts\/30\/revisions\/60"}],"wp:attachment":[{"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/media?parent=30"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/categories?post=30"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/tags?post=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}