compiling pgadmin on OS X

Поиск
Список
Период
Сортировка
От Frank McGeough
Тема compiling pgadmin on OS X
Дата
Msg-id 797F16D0-D300-4993-8ACC-01B727D68D98@gmail.com
обсуждение исходный текст
Ответы Re: compiling pgadmin on OS X  (Dave Page <dpage@pgadmin.org>)
Список 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
compilethis 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
theirXCode installs. The 10.6 SDK is in 3.2.6 installer. I downloaded this from Apple's dev web site and manually
extractedthe SDK and copied into the new XCode location (under /Applications). I could then compile wxWidgets and their
demosand 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
website : 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
itwas configured without the --enable-unicode option, or the combination of dynamic/static linking and debug/non-debug
librariesselected did not match any installed wxWidgets libraries. 




В списке pgadmin-hackers по дате отправления:

Предыдущее
От: Dave Page
Дата:
Сообщение: pgAdmin III commit: Make sure we return a value from a non-void functio
Следующее
От: Dave Page
Дата:
Сообщение: Re: compiling pgadmin on OS X