From: | Frank McGeough <fmcgeough(at)gmail(dot)com> |
---|---|
To: | pgadmin-hackers(at)postgresql(dot)org |
Subject: | compiling pgadmin on OS X |
Date: | 2013-09-25 13:07:43 |
Message-ID: | 797F16D0-D300-4993-8ACC-01B727D68D98@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
Looking for suggestions on how to proceed.
I've begun the process of compiling pgadmin on OS X (in this case its 10.7.5). It does seem to be problematic to compile this code on this platform. Currently I'm stuck on wxWidgets.
wxWidgets 2.8.x requires the 10.6 SDK. Apple doesn't provide separate installs of their SDK. The SDK's are bundled with their XCode installs. The 10.6 SDK is in 3.2.6 installer. I downloaded this from Apple's dev web site and manually extracted the SDK and copied into the new XCode location (under /Applications). I could then compile wxWidgets and their demos and samples using configure like this :
arch_flags="-arch i386"
./configure CFLAGS="$arch_flags" CXXFLAGS="$arch_flags" CPPFLAGS="$arch_flags" LDFLAGS="$arch_flags" OBJCFLAGS="$arch_flags" OBJCXXFLAGS="$arch_flags" --enable-unicode --enable-debug --disable-shared --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk --with-macosx-version-min=10.6
The pgadmin/INSTALL doc suggests to configure wxWidgets like this :
./configure --with-mac --enable-gtk2 --enable-unicode
This definitely doesn't work on this platform. It yields :
./src/common/intl.cpp:2060: error: ‘smScriptLang’ was not declared in this scope
./src/common/intl.cpp:2060: error: ‘GetScriptVariable’ was not declared in this scope
the arch_flags needs to be used or it does a 64-bit compile and gets that error. This is referenced in the wxWidgets web site : http://wiki.wxwidgets.org/Development:_wxMac (under Building under 10.6 Snow Leopard).
I passed in the following to configure :
./configure CFLAGS="$arch_flags" CXXFLAGS="$arch_flags" CPPFLAGS="$arch_flags" LDFLAGS="$arch_flags" OBJCFLAGS="$arch_flags" OBJCXXFLAGS="$arch_flags" --with-mac --enable-gtk2 --enable-unicode --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk --with-macosx-version-min=10.6
This gets wxWidgets to compile OK but yields the following when trying to make pgadmin3.
configure: error: Your wxWidgets installation cannot support pgAdmin in the selected configuration. This may be because it was configured without the --enable-unicode option, or the combination of dynamic/static linking and debug/non-debug libraries selected did not match any installed wxWidgets libraries.
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Page | 2013-09-25 13:17:25 | Re: compiling pgadmin on OS X |
Previous Message | Dave Page | 2013-09-25 09:12:22 | pgAdmin III commit: Make sure we return a value from a non-void functio |