New user registration is currently disabled due to spam abuse / Регистрация новых пользователей в настоящее время приостановлена из-за злоупотреблений спаммерами

Added Mac OS X support

General discussion

Added Mac OS X support

Postby strannik » Sat Aug 06, 2011 6:58 pm

Hi,
I added MAC OS X support and updated program icon from the old project wiki for better looks in Dock etc. Scan popup and hotkeys are not supported. The program is tested on Snow Leopard and Lion. Works with the default system libraries.
Please consider merging the changes into the master brunch.
Thanks!
Source: git://github.com/dinvlad/goldendict.git
strannik
 
Posts: 74
Joined: Mon Oct 19, 2009 12:05 pm

Re: Added Mac OS X support

Postby ikm » Sat Aug 06, 2011 8:10 pm

Great job. I added a comment to your last commit. Btw feel free to create pull requests, that's the preferred procedure for requesting code to be merged.
ikm
Автор GoldenDict
 
Posts: 1595
Joined: Wed Feb 04, 2009 10:40 am

Re: Added Mac OS X support

Postby ikm » Sat Aug 06, 2011 8:15 pm

Btw, does the Mac OS X build require all those 3rdparty libraries to be compiled? For windows, we provide the winlibs/ directory which holds headers and compiled libs. This way there's no need for the casual user to compile all the libs to build the app. You could do the same thing for Mac OS X.
ikm
Автор GoldenDict
 
Posts: 1595
Joined: Wed Feb 04, 2009 10:40 am

Re: Added Mac OS X support

Postby chulai » Sat Aug 06, 2011 11:07 pm

Great! Just in time, I had configured an OS X Snow Leopard with Qt in order to study the effort to port GD to Mac. Now I can start testing in that platform too. Thanks

strannik wrote:Hi,
I added MAC OS X support and updated program icon from the old project wiki for better looks in Dock etc. Scan popup and hotkeys are not supported. The program is tested on Snow Leopard and Lion. Works with the default system libraries.
Please consider merging the changes into the master brunch.
Thanks!
Source: git://github.com/dinvlad/goldendict.git
chulai
 
Posts: 464
Joined: Sat Jan 08, 2011 10:11 pm

Re: Added Mac OS X support

Postby strannik » Sat Aug 06, 2011 11:19 pm

Thanks for the feedback guys,
I'm almost done with corrections, will push changes soon.
strannik
 
Posts: 74
Joined: Mon Oct 19, 2009 12:05 pm

Re: Added Mac OS X support

Postby strannik » Sun Aug 07, 2011 3:58 am

Hi,
I added necessary third-party libraries for 64-bit Intel Macs and included program icon into application package.
Hope it's useful.
If needed, here's the pre-built version: http://www.2shared.com/file/vkdZ3WNn/goldendictapp.html
strannik
 
Posts: 74
Joined: Mon Oct 19, 2009 12:05 pm

Re: Added Mac OS X support

Postby strannik » Sun Aug 07, 2011 5:33 pm

Excluded garbage files from git.
Precompiled third-party libraries are for 64bit arch only, please let me know if anyone still uses a 32bit Intel Mac (i.e. Core Duo CPU, not Core 2 Duo or later).
strannik
 
Posts: 74
Joined: Mon Oct 19, 2009 12:05 pm

Re: Added Mac OS X support

Postby chulai » Sun Aug 07, 2011 9:46 pm

Yes, I have a 32-bit processor! I also have little knowledge of OS X. Last time I used a Mac on a daily basis was with Mac Os 9!
After a while, I managed to install Qt SDK 4.7.3 from http://qt.nokia.com/downloads/qt-for-op ... -mac-os-x/
I installed Cocoa: Mac binary package for Mac OS X 10.5 - 10.6 (32-bit and 64-bit)
http://get.qt.nokia.com/qt/source/qt-ma ... -4.7.3.dmg (206 MB, includes build and interface tools)
http://get.qt.nokia.com/qt/source/qt-ma ... g-libs.dmg

and then Qt Creator and Git. Now I'm trying to compile and run GoldenDict using the last code on github but with no success.

First, I got, in the compile output, something like "pkg-config: command not found" so I downloaded MacPorts and then grabbed the pkgconfig files. Now I'm getting this output and I don't know how to proceed:

Running build steps for project goldendict...
Starting: "/usr/bin/make" clean -w
make: Entering directory `/Users/mac/Documents/goldendict'
rm -f locale/ru_RU.qm locale/zh_CN.qm locale/cs_CZ.qm locale/de_DE.qm
locale/el_GR.qm locale/bg_BG.qm locale/ar_SA.qm locale/lt_LT.qm
locale/uk_UA.qm locale/vi_VN.qm locale/it_IT.qm locale/pl_PL.qm
locale/ja_JP.qm locale/zh_TW.qm locale/sq_AL.qm locale/pt_BR.qm
locale/es_AR.qm
rm -f build/moc_mainwindow.cpp build/moc_dictionary.cpp
build/moc_config.cpp build/moc_sources.cpp build/moc_initializing.cpp
build/moc_article_netmgr.cpp build/moc_groups.cpp
build/moc_groups_widgets.cpp build/moc_article_maker.cpp
build/moc_scanpopup.cpp build/moc_articleview.cpp
build/moc_externalviewer.cpp build/moc_wordfinder.cpp
build/moc_groupcombobox.cpp build/moc_mouseover.cpp
build/moc_preferences.cpp build/moc_mediawiki.cpp
build/moc_hotkeywrapper.cpp build/moc_hotkeyedit.cpp
build/moc_editdictionaries.cpp build/moc_loaddictionaries.cpp
build/moc_orderandprops.cpp build/moc_dictionarybar.cpp
build/moc_history.cpp build/moc_articlewebview.cpp
build/moc_webmultimediadownload.cpp build/moc_forvo.cpp
build/moc_about.cpp build/moc_programs.cpp build/moc_maintabwidget.cpp
build/moc_mainstatusbar.cpp build/moc_gdappstyle.cpp
build/moc_qtsingleapplication.cpp build/moc_qtlocalpeer.cpp
rm -f build/qrc_resources.cpp build/qrc_flags.cpp
rm -f build/ui_groups.h build/ui_dictgroupwidget.h
build/ui_mainwindow.h build/ui_sources.h build/ui_initializing.h
build/ui_groupselectorwidget.h build/ui_scanpopup.h
build/ui_articleview.h build/ui_preferences.h build/ui_about.h
build/ui_editdictionaries.h build/ui_orderandprops.h
rm -f build/folding.o build/main.o build/dictionary.o build/config.o
build/sources.o build/mainwindow.o build/utf8.o build/file.o
build/bgl_babylon.o build/bgl.o build/initializing.o
build/article_netmgr.o build/dictzip.o build/btreeidx.o
build/stardict.o build/chunkedstorage.o build/xdxf2html.o
build/iconv.o build/lsa.o build/htmlescape.o build/dsl.o
build/dsl_details.o build/filetype.o build/fsencoding.o build/groups.o
build/groups_widgets.o build/instances.o build/article_maker.o
build/scanpopup.o build/articleview.o build/externalviewer.o
build/wordfinder.o build/groupcombobox.o build/keyboardstate.o
build/mouseover.o build/preferences.o build/mutex.o build/mediawiki.o
build/sounddir.o build/hunspell.o build/dictdfiles.o build/audiolink.o
build/wstring.o build/wstring_qt.o build/processwrapper.o
build/hotkeywrapper.o build/hotkeyedit.o build/langcoder.o
build/editdictionaries.o build/loaddictionaries.o
build/transliteration.o build/romaji.o build/russiantranslit.o
build/german.o build/website.o build/orderandprops.o build/language.o
build/dictionarybar.o build/broken_xrecord.o build/history.o
build/atomic_rename.o build/articlewebview.o build/zipfile.o
build/indexedzip.o build/termination.o build/greektranslit.o
build/webmultimediadownload.o build/forvo.o build/country.o
build/about.o build/programs.o build/parsecmdline.o
build/maintabwidget.o build/mainstatusbar.o build/gdappstyle.o
build/qtsingleapplication.o build/qtlocalpeer.o build/moc_mainwindow.o
build/moc_dictionary.o build/moc_config.o build/moc_sources.o
build/moc_initializing.o build/moc_article_netmgr.o build/moc_groups.o
build/moc_groups_widgets.o build/moc_article_maker.o
build/moc_scanpopup.o build/moc_articleview.o
build/moc_externalviewer.o build/moc_wordfinder.o
build/moc_groupcombobox.o build/moc_mouseover.o
build/moc_preferences.o build/moc_mediawiki.o
build/moc_hotkeywrapper.o build/moc_hotkeyedit.o
build/moc_editdictionaries.o build/moc_loaddictionaries.o
build/moc_orderandprops.o build/moc_dictionarybar.o
build/moc_history.o build/moc_articlewebview.o
build/moc_webmultimediadownload.o build/moc_forvo.o build/moc_about.o
build/moc_programs.o build/moc_maintabwidget.o
build/moc_mainstatusbar.o build/moc_gdappstyle.o
build/moc_qtsingleapplication.o build/moc_qtlocalpeer.o
build/qrc_resources.o build/qrc_flags.o
rm -f *~ core *.core
make: Leaving directory `/Users/mac/Documents/goldendict'
The process "/usr/bin/make" exited normally.
Configuration unchanged, skipping qmake step.
Starting: "/usr/bin/make" -w
make: Entering directory `/Users/mac/Documents/goldendict'
/Developer/Tools/Qt/lrelease locale/ru_RU.ts -qm locale/ru_RU.qm
Updating 'locale/ru_RU.qm'...
Generated 585 translation(s) (585 finished and 0 unfinished)
/Developer/Tools/Qt/lrelease locale/zh_CN.ts -qm locale/zh_CN.qm
Updating 'locale/zh_CN.qm'...
Generated 544 translation(s) (544 finished and 0 unfinished)
/Developer/Tools/Qt/lrelease locale/cs_CZ.ts -qm locale/cs_CZ.qm
Updating 'locale/cs_CZ.qm'...
Generated 540 translation(s) (540 finished and 0 unfinished)
/Developer/Tools/Qt/lrelease locale/de_DE.ts -qm locale/de_DE.qm
Updating 'locale/de_DE.qm'...
Generated 540 translation(s) (540 finished and 0 unfinished)
/Developer/Tools/Qt/lrelease locale/el_GR.ts -qm locale/el_GR.qm
Updating 'locale/el_GR.qm'...
Generated 540 translation(s) (540 finished and 0 unfinished)
/Developer/Tools/Qt/lrelease locale/bg_BG.ts -qm locale/bg_BG.qm
Updating 'locale/bg_BG.qm'...
Generated 526 translation(s) (525 finished and 1 unfinished)
Ignored 14 untranslated source text(s)
/Developer/Tools/Qt/lrelease locale/ar_SA.ts -qm locale/ar_SA.qm
Updating 'locale/ar_SA.qm'...
Generated 360 translation(s) (295 finished and 65 unfinished)
Ignored 180 untranslated source text(s)
/Developer/Tools/Qt/lrelease locale/lt_LT.ts -qm locale/lt_LT.qm
Updating 'locale/lt_LT.qm'...
Generated 540 translation(s) (540 finished and 0 unfinished)
/Developer/Tools/Qt/lrelease locale/uk_UA.ts -qm locale/uk_UA.qm
Updating 'locale/uk_UA.qm'...
Generated 540 translation(s) (540 finished and 0 unfinished)
/Developer/Tools/Qt/lrelease locale/vi_VN.ts -qm locale/vi_VN.qm
Updating 'locale/vi_VN.qm'...
Generated 540 translation(s) (540 finished and 0 unfinished)
/Developer/Tools/Qt/lrelease locale/it_IT.ts -qm locale/it_IT.qm
Updating 'locale/it_IT.qm'...
Generated 573 translation(s) (573 finished and 0 unfinished)
/Developer/Tools/Qt/lrelease locale/pl_PL.ts -qm locale/pl_PL.qm
Updating 'locale/pl_PL.qm'...
Generated 540 translation(s) (540 finished and 0 unfinished)
/Developer/Tools/Qt/lrelease locale/ja_JP.ts -qm locale/ja_JP.qm
Updating 'locale/ja_JP.qm'...
Generated 540 translation(s) (540 finished and 0 unfinished)
/Developer/Tools/Qt/lrelease locale/zh_TW.ts -qm locale/zh_TW.qm
Updating 'locale/zh_TW.qm'...
Generated 540 translation(s) (540 finished and 0 unfinished)
/Developer/Tools/Qt/lrelease locale/sq_AL.ts -qm locale/sq_AL.qm
Updating 'locale/sq_AL.qm'...
Generated 540 translation(s) (540 finished and 0 unfinished)
/Developer/Tools/Qt/lrelease locale/pt_BR.ts -qm locale/pt_BR.qm
Updating 'locale/pt_BR.qm'...
Generated 540 translation(s) (540 finished and 0 unfinished)
/Developer/Tools/Qt/lrelease locale/es_AR.ts -qm locale/es_AR.qm
Updating 'locale/es_AR.qm'...
Generated 585 translation(s) (585 finished and 0 unfinished)
/Developer/Tools/Qt/uic dictgroupwidget.ui -o build/ui_dictgroupwidget.h
/Developer/Tools/Qt/uic groups.ui -o build/ui_groups.h
/Developer/Tools/Qt/uic mainwindow.ui -o build/ui_mainwindow.h
/Developer/Tools/Qt/uic sources.ui -o build/ui_sources.h
/Developer/Tools/Qt/uic initializing.ui -o build/ui_initializing.h
/Developer/Tools/Qt/uic groupselectorwidget.ui -o build/ui_groupselectorwidget.h
/Developer/Tools/Qt/uic scanpopup.ui -o build/ui_scanpopup.h
/Developer/Tools/Qt/uic articleview.ui -o build/ui_articleview.h
/Developer/Tools/Qt/uic preferences.ui -o build/ui_preferences.h
/Developer/Tools/Qt/uic about.ui -o build/ui_about.h
/Developer/Tools/Qt/uic editdictionaries.ui -o build/ui_editdictionaries.h
/Developer/Tools/Qt/uic orderandprops.ui -o build/ui_orderandprops.h
g++ -c -pipe -rdynamic -g -gdwarf-2 -Wall -W
-DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\"
-DPROGRAM_VERSION=\"1.0.1+git\" -DQT_WEBKIT_LIB -DQT_PHONON_LIB
-DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/local/Qt4.7/mkspecs/macx-g++ -I.
-I/Library/Frameworks/QtCore.framework/Versions/4/Headers
-I/usr/include/QtCore
-I/Library/Frameworks/QtNetwork.framework/Versions/4/Headers
-I/usr/include/QtNetwork
-I/Library/Frameworks/QtGui.framework/Versions/4/Headers
-I/usr/include/QtGui
-I/Library/Frameworks/QtXml.framework/Versions/4/Headers
-I/usr/include/QtXml
-I/Library/Frameworks/phonon.framework/Versions/4/Headers
-I/usr/include/phonon
-I/Library/Frameworks/QtWebKit.framework/Versions/4/Headers
-I/usr/include/QtWebKit -I/usr/include -I. -Imaclibs/include
-Iqtsingleapplication/src -I/usr/include/phonon_compat -Ibuild -Ibuild
-F/Library/Frameworks -o build/folding.o folding.cc
folding.cc: In function 'void Folding::normalizeWhitespace(std::wstring&)':
folding.cc:646: warning: suggest a space before ';' or explicit braces
around empty body in 'for' statement
g++ -c -pipe -rdynamic -g -gdwarf-2 -Wall -W
-DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\"
-DPROGRAM_VERSION=\"1.0.1+git\" -DQT_WEBKIT_LIB -DQT_PHONON_LIB
-DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/local/Qt4.7/mkspecs/macx-g++ -I.
-I/Library/Frameworks/QtCore.framework/Versions/4/Headers
-I/usr/include/QtCore
-I/Library/Frameworks/QtNetwork.framework/Versions/4/Headers
-I/usr/include/QtNetwork
-I/Library/Frameworks/QtGui.framework/Versions/4/Headers
-I/usr/include/QtGui
-I/Library/Frameworks/QtXml.framework/Versions/4/Headers
-I/usr/include/QtXml
-I/Library/Frameworks/phonon.framework/Versions/4/Headers
-I/usr/include/phonon
-I/Library/Frameworks/QtWebKit.framework/Versions/4/Headers
-I/usr/include/QtWebKit -I/usr/include -I. -Imaclibs/include
-Iqtsingleapplication/src -I/usr/include/phonon_compat -Ibuild -Ibuild
-F/Library/Frameworks -o build/main.o main.cc
In file included from mainwindow.hh:24,
from main.cc:7:
hotkeywrapper.hh:145: warning: unused parameter 'key'
hotkeywrapper.hh:145: warning: unused parameter 'key2'
hotkeywrapper.hh:145: warning: unused parameter 'modifier'
hotkeywrapper.hh:145: warning: unused parameter 'handle'
g++ -c -pipe -rdynamic -g -gdwarf-2 -Wall -W
-DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\"
-DPROGRAM_VERSION=\"1.0.1+git\" -DQT_WEBKIT_LIB -DQT_PHONON_LIB
-DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/local/Qt4.7/mkspecs/macx-g++ -I.
-I/Library/Frameworks/QtCore.framework/Versions/4/Headers
-I/usr/include/QtCore
-I/Library/Frameworks/QtNetwork.framework/Versions/4/Headers
-I/usr/include/QtNetwork
-I/Library/Frameworks/QtGui.framework/Versions/4/Headers
-I/usr/include/QtGui
-I/Library/Frameworks/QtXml.framework/Versions/4/Headers
-I/usr/include/QtXml
-I/Library/Frameworks/phonon.framework/Versions/4/Headers
-I/usr/include/phonon
-I/Library/Frameworks/QtWebKit.framework/Versions/4/Headers
-I/usr/include/QtWebKit -I/usr/include -I. -Imaclibs/include
-Iqtsingleapplication/src -I/usr/include/phonon_compat -Ibuild -Ibuild
-F/Library/Frameworks -o build/dictionary.o dictionary.cc
g++ -c -pipe -rdynamic -g -gdwarf-2 -Wall -W
-DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\"
-DPROGRAM_VERSION=\"1.0.1+git\" -DQT_WEBKIT_LIB -DQT_PHONON_LIB
-DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/local/Qt4.7/mkspecs/macx-g++ -I.
-I/Library/Frameworks/QtCore.framework/Versions/4/Headers
-I/usr/include/QtCore
-I/Library/Frameworks/QtNetwork.framework/Versions/4/Headers
-I/usr/include/QtNetwork
-I/Library/Frameworks/QtGui.framework/Versions/4/Headers
-I/usr/include/QtGui
-I/Library/Frameworks/QtXml.framework/Versions/4/Headers
-I/usr/include/QtXml
-I/Library/Frameworks/phonon.framework/Versions/4/Headers
-I/usr/include/phonon
-I/Library/Frameworks/QtWebKit.framework/Versions/4/Headers
-I/usr/include/QtWebKit -I/usr/include -I. -Imaclibs/include
-Iqtsingleapplication/src -I/usr/include/phonon_compat -Ibuild -Ibuild
-F/Library/Frameworks -o build/config.o config.cc
g++ -c -pipe -rdynamic -g -gdwarf-2 -Wall -W
-DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\"
-DPROGRAM_VERSION=\"1.0.1+git\" -DQT_WEBKIT_LIB -DQT_PHONON_LIB
-DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/local/Qt4.7/mkspecs/macx-g++ -I.
-I/Library/Frameworks/QtCore.framework/Versions/4/Headers
-I/usr/include/QtCore
-I/Library/Frameworks/QtNetwork.framework/Versions/4/Headers
-I/usr/include/QtNetwork
-I/Library/Frameworks/QtGui.framework/Versions/4/Headers
-I/usr/include/QtGui
-I/Library/Frameworks/QtXml.framework/Versions/4/Headers
-I/usr/include/QtXml
-I/Library/Frameworks/phonon.framework/Versions/4/Headers
-I/usr/include/phonon
-I/Library/Frameworks/QtWebKit.framework/Versions/4/Headers
-I/usr/include/QtWebKit -I/usr/include -I. -Imaclibs/include
-Iqtsingleapplication/src -I/usr/include/phonon_compat -Ibuild -Ibuild
-F/Library/Frameworks -o build/sources.o sources.cc
g++ -c -pipe -rdynamic -g -gdwarf-2 -Wall -W
-DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\"
-DPROGRAM_VERSION=\"1.0.1+git\" -DQT_WEBKIT_LIB -DQT_PHONON_LIB
-DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/local/Qt4.7/mkspecs/macx-g++ -I.
-I/Library/Frameworks/QtCore.framework/Versions/4/Headers
-I/usr/include/QtCore
-I/Library/Frameworks/QtNetwork.framework/Versions/4/Headers
-I/usr/include/QtNetwork
-I/Library/Frameworks/QtGui.framework/Versions/4/Headers
-I/usr/include/QtGui
-I/Library/Frameworks/QtXml.framework/Versions/4/Headers
-I/usr/include/QtXml
-I/Library/Frameworks/phonon.framework/Versions/4/Headers
-I/usr/include/phonon
-I/Library/Frameworks/QtWebKit.framework/Versions/4/Headers
-I/usr/include/QtWebKit -I/usr/include -I. -Imaclibs/include
-Iqtsingleapplication/src -I/usr/include/phonon_compat -Ibuild -Ibuild
-F/Library/Frameworks -o build/mainwindow.o mainwindow.cc
In file included from mainwindow.hh:24,
from mainwindow.cc:4:
hotkeywrapper.hh:145: warning: unused parameter 'key'
hotkeywrapper.hh:145: warning: unused parameter 'key2'
hotkeywrapper.hh:145: warning: unused parameter 'modifier'
hotkeywrapper.hh:145: warning: unused parameter 'handle'
g++ -c -pipe -rdynamic -g -gdwarf-2 -Wall -W
-DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\"
-DPROGRAM_VERSION=\"1.0.1+git\" -DQT_WEBKIT_LIB -DQT_PHONON_LIB
-DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/local/Qt4.7/mkspecs/macx-g++ -I.
-I/Library/Frameworks/QtCore.framework/Versions/4/Headers
-I/usr/include/QtCore
-I/Library/Frameworks/QtNetwork.framework/Versions/4/Headers
-I/usr/include/QtNetwork
-I/Library/Frameworks/QtGui.framework/Versions/4/Headers
-I/usr/include/QtGui
-I/Library/Frameworks/QtXml.framework/Versions/4/Headers
-I/usr/include/QtXml
-I/Library/Frameworks/phonon.framework/Versions/4/Headers
-I/usr/include/phonon
-I/Library/Frameworks/QtWebKit.framework/Versions/4/Headers
-I/usr/include/QtWebKit -I/usr/include -I. -Imaclibs/include
-Iqtsingleapplication/src -I/usr/include/phonon_compat -Ibuild -Ibuild
-F/Library/Frameworks -o build/utf8.o utf8.cc
g++ -c -pipe -rdynamic -g -gdwarf-2 -Wall -W
-DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\"
-DPROGRAM_VERSION=\"1.0.1+git\" -DQT_WEBKIT_LIB -DQT_PHONON_LIB
-DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/local/Qt4.7/mkspecs/macx-g++ -I.
-I/Library/Frameworks/QtCore.framework/Versions/4/Headers
-I/usr/include/QtCore
-I/Library/Frameworks/QtNetwork.framework/Versions/4/Headers
-I/usr/include/QtNetwork
-I/Library/Frameworks/QtGui.framework/Versions/4/Headers
-I/usr/include/QtGui
-I/Library/Frameworks/QtXml.framework/Versions/4/Headers
-I/usr/include/QtXml
-I/Library/Frameworks/phonon.framework/Versions/4/Headers
-I/usr/include/phonon
-I/Library/Frameworks/QtWebKit.framework/Versions/4/Headers
-I/usr/include/QtWebKit -I/usr/include -I. -Imaclibs/include
-Iqtsingleapplication/src -I/usr/include/phonon_compat -Ibuild -Ibuild
-F/Library/Frameworks -o build/file.o file.cc
g++ -c -pipe -rdynamic -g -gdwarf-2 -Wall -W
-DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\"
-DPROGRAM_VERSION=\"1.0.1+git\" -DQT_WEBKIT_LIB -DQT_PHONON_LIB
-DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/local/Qt4.7/mkspecs/macx-g++ -I.
-I/Library/Frameworks/QtCore.framework/Versions/4/Headers
-I/usr/include/QtCore
-I/Library/Frameworks/QtNetwork.framework/Versions/4/Headers
-I/usr/include/QtNetwork
-I/Library/Frameworks/QtGui.framework/Versions/4/Headers
-I/usr/include/QtGui
-I/Library/Frameworks/QtXml.framework/Versions/4/Headers
-I/usr/include/QtXml
-I/Library/Frameworks/phonon.framework/Versions/4/Headers
-I/usr/include/phonon
-I/Library/Frameworks/QtWebKit.framework/Versions/4/Headers
-I/usr/include/QtWebKit -I/usr/include -I. -Imaclibs/include
-Iqtsingleapplication/src -I/usr/include/phonon_compat -Ibuild -Ibuild
-F/Library/Frameworks -o build/bgl_babylon.o bgl_babylon.cc
g++ -c -pipe -rdynamic -g -gdwarf-2 -Wall -W
-DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\"
-DPROGRAM_VERSION=\"1.0.1+git\" -DQT_WEBKIT_LIB -DQT_PHONON_LIB
-DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/local/Qt4.7/mkspecs/macx-g++ -I.
-I/Library/Frameworks/QtCore.framework/Versions/4/Headers
-I/usr/include/QtCore
-I/Library/Frameworks/QtNetwork.framework/Versions/4/Headers
-I/usr/include/QtNetwork
-I/Library/Frameworks/QtGui.framework/Versions/4/Headers
-I/usr/include/QtGui
-I/Library/Frameworks/QtXml.framework/Versions/4/Headers
-I/usr/include/QtXml
-I/Library/Frameworks/phonon.framework/Versions/4/Headers
-I/usr/include/phonon
-I/Library/Frameworks/QtWebKit.framework/Versions/4/Headers
-I/usr/include/QtWebKit -I/usr/include -I. -Imaclibs/include
-Iqtsingleapplication/src -I/usr/include/phonon_compat -Ibuild -Ibuild
-F/Library/Frameworks -o build/bgl.o bgl.cc
g++ -c -pipe -rdynamic -g -gdwarf-2 -Wall -W
-DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\"
-DPROGRAM_VERSION=\"1.0.1+git\" -DQT_WEBKIT_LIB -DQT_PHONON_LIB
-DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/local/Qt4.7/mkspecs/macx-g++ -I.
-I/Library/Frameworks/QtCore.framework/Versions/4/Headers
-I/usr/include/QtCore
-I/Library/Frameworks/QtNetwork.framework/Versions/4/Headers
-I/usr/include/QtNetwork
-I/Library/Frameworks/QtGui.framework/Versions/4/Headers
-I/usr/include/QtGui
-I/Library/Frameworks/QtXml.framework/Versions/4/Headers
-I/usr/include/QtXml
-I/Library/Frameworks/phonon.framework/Versions/4/Headers
-I/usr/include/phonon
-I/Library/Frameworks/QtWebKit.framework/Versions/4/Headers
-I/usr/include/QtWebKit -I/usr/include -I. -Imaclibs/include
-Iqtsingleapplication/src -I/usr/include/phonon_compat -Ibuild -Ibuild
-F/Library/Frameworks -o build/initializing.o initializing.cc
g++ -c -pipe -rdynamic -g -gdwarf-2 -Wall -W
-DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\"
-DPROGRAM_VERSION=\"1.0.1+git\" -DQT_WEBKIT_LIB -DQT_PHONON_LIB
-DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/local/Qt4.7/mkspecs/macx-g++ -I.
-I/Library/Frameworks/QtCore.framework/Versions/4/Headers
-I/usr/include/QtCore
-I/Library/Frameworks/QtNetwork.framework/Versions/4/Headers
-I/usr/include/QtNetwork
-I/Library/Frameworks/QtGui.framework/Versions/4/Headers
-I/usr/include/QtGui
-I/Library/Frameworks/QtXml.framework/Versions/4/Headers
-I/usr/include/QtXml
-I/Library/Frameworks/phonon.framework/Versions/4/Headers
-I/usr/include/phonon
-I/Library/Frameworks/QtWebKit.framework/Versions/4/Headers
-I/usr/include/QtWebKit -I/usr/include -I. -Imaclibs/include
-Iqtsingleapplication/src -I/usr/include/phonon_compat -Ibuild -Ibuild
-F/Library/Frameworks -o build/article_netmgr.o article_netmgr.cc
gcc -c -pipe -g -gdwarf-2 -Wall -W
-DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\"
-DPROGRAM_VERSION=\"1.0.1+git\" -DQT_WEBKIT_LIB -DQT_PHONON_LIB
-DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/local/Qt4.7/mkspecs/macx-g++ -I.
-I/Library/Frameworks/QtCore.framework/Versions/4/Headers
-I/usr/include/QtCore
-I/Library/Frameworks/QtNetwork.framework/Versions/4/Headers
-I/usr/include/QtNetwork
-I/Library/Frameworks/QtGui.framework/Versions/4/Headers
-I/usr/include/QtGui
-I/Library/Frameworks/QtXml.framework/Versions/4/Headers
-I/usr/include/QtXml
-I/Library/Frameworks/phonon.framework/Versions/4/Headers
-I/usr/include/phonon
-I/Library/Frameworks/QtWebKit.framework/Versions/4/Headers
-I/usr/include/QtWebKit -I/usr/include -I. -Imaclibs/include
-Iqtsingleapplication/src -I/usr/include/phonon_compat -Ibuild -Ibuild
-F/Library/Frameworks -o build/dictzip.o dictzip.c
In file included from dictzip.c:26:
dictzip.h:65: error: expected specifier-qualifier-list before 'time_t'
dictzip.c: In function 'dict_read_header':
dictzip.c:286: error: 'dictData' has no member named 'compressedLength'
dictzip.c:286: error: 'dictData' has no member named 'length'
dictzip.c:287: error: 'dictData' has no member named 'origFilename'
dictzip.c:288: error: 'dictData' has no member named 'mtime'
dictzip.c:293: warning: pointer targets in passing argument 2 of
'crc32' differ in signedness
dictzip.c:297: error: 'dictData' has no member named 'crc'
dictzip.c:305: error: 'dictData' has no member named 'mtime'
dictzip.c:306: error: 'dictData' has no member named 'mtime'
dictzip.c:307: error: 'dictData' has no member named 'mtime'
dictzip.c:308: error: 'dictData' has no member named 'mtime'
dictzip.c:309: error: 'dictData' has no member named 'extraFlags'
dictzip.c:310: error: 'dictData' has no member named 'os'
dictzip.c:322: error: 'dictData' has no member named 'version'
dictzip.c:323: error: 'dictData' has no member named 'version'
dictzip.c:325: error: 'dictData' has no member named 'version'
dictzip.c:328: error: 'dictData' has no member named 'version'
dictzip.c:330: error: 'dictData' has no member named 'chunkLength'
dictzip.c:331: error: 'dictData' has no member named 'chunkLength'
dictzip.c:332: error: 'dictData' has no member named 'chunkCount'
dictzip.c:333: error: 'dictData' has no member named 'chunkCount'
dictzip.c:335: error: 'dictData' has no member named 'chunkCount'
dictzip.c:339: error: 'dictData' has no member named 'chunks'
dictzip.c:339: error: 'dictData' has no member named 'chunks'
dictzip.c:340: error: 'dictData' has no member named 'chunkCount'
dictzip.c:341: error: 'dictData' has no member named 'chunkCount'
dictzip.c:342: error: 'dictData' has no member named 'chunks'
dictzip.c:343: error: 'dictData' has no member named 'chunks'
dictzip.c:364: error: 'dictData' has no member named 'origFilename'
dictzip.c:367: error: 'dictData' has no member named 'origFilename'
dictzip.c:383: error: 'dictData' has no member named 'comment'
dictzip.c:384: error: 'dictData' has no member named 'comment'
dictzip.c:386: error: 'dictData' has no member named 'comment'
dictzip.c:401: error: 'dictData' has no member named 'crc'
dictzip.c:402: error: 'dictData' has no member named 'crc'
dictzip.c:403: error: 'dictData' has no member named 'crc'
dictzip.c:404: error: 'dictData' has no member named 'crc'
dictzip.c:405: error: 'dictData' has no member named 'length'
dictzip.c:406: error: 'dictData' has no member named 'length'
dictzip.c:407: error: 'dictData' has no member named 'length'
dictzip.c:408: error: 'dictData' has no member named 'length'
dictzip.c:409: error: 'dictData' has no member named 'compressedLength'
dictzip.c:412: error: 'dictData' has no member named 'offsets'
dictzip.c:412: error: 'dictData' has no member named 'offsets'
dictzip.c:413: error: 'dictData' has no member named 'chunkCount'
dictzip.c:415: error: 'dictData' has no member named 'chunkCount'
dictzip.c:418: error: 'dictData' has no member named 'offsets'
dictzip.c:419: error: 'dictData' has no member named 'chunks'
dictzip.c: In function 'dict_data_open':
dictzip.c:460: error: 'dictData' has no member named 'cache'
dictzip.c:461: error: 'dictData' has no member named 'cache'
dictzip.c:462: error: 'dictData' has no member named 'cache'
dictzip.c:463: error: 'dictData' has no member named 'cache'
dictzip.c:429: warning: unused variable 'sb'
dictzip.c: In function 'dict_data_close':
dictzip.c:479: error: 'dictData' has no member named 'chunks'
dictzip.c:479: error: 'dictData' has no member named 'chunks'
dictzip.c:480: error: 'dictData' has no member named 'offsets'
dictzip.c:480: error: 'dictData' has no member named 'offsets'
dictzip.c:490: error: 'dictData' has no member named 'cache'
dictzip.c:491: error: 'dictData' has no member named 'cache'
dictzip.c: In function 'dict_data_read_':
dictzip.c:562: error: 'dictData' has no member named 'chunkLength'
dictzip.c:563: error: 'dictData' has no member named 'chunkLength'
dictzip.c:564: error: 'dictData' has no member named 'chunkLength'
dictzip.c:565: error: 'dictData' has no member named 'chunkLength'
dictzip.c:579: error: 'dictData' has no member named 'cache'
dictzip.c:585: error: 'dictData' has no member named 'cache'
dictzip.c:586: error: 'dictData' has no member named 'cache'
dictzip.c:591: error: 'dictData' has no member named 'cache'
dictzip.c:593: error: 'dictData' has no member named 'cache'
dictzip.c:594: error: 'dictData' has no member named 'cache'
dictzip.c:596: error: 'dictData' has no member named 'cache'
dictzip.c:597: error: 'dictData' has no member named 'cache'
dictzip.c:598: error: 'dictData' has no member named 'cache'
dictzip.c:599: error: 'dictData' has no member named 'cache'
dictzip.c:601: error: 'dictData' has no member named 'chunks'
dictzip.c:604: error: 'dictData' has no member named 'chunks'
dictzip.c:607: error: 'dictData' has no member named 'offsets'
dictzip.c:608: error: 'dictData' has no member named 'chunks'
dictzip.c:616: warning: pointer targets in assignment differ in signedness
dictzip.c:617: error: 'dictData' has no member named 'chunks'
dictzip.c:618: warning: pointer targets in assignment differ in signedness
dictzip.c:630: error: 'dictData' has no member named 'cache'
dictzip.c:638: error: 'dictData' has no member named 'chunkLength'
dictzip.c:641: error: 'dictData' has no member named 'chunkLength'
dictzip.c:643: error: 'dictData' has no member named 'chunkLength'
dictzip.c:644: error: 'dictData' has no member named 'chunkLength'
dictzip.c:650: error: 'dictData' has no member named 'chunkLength'
dictzip.c:651: error: 'dictData' has no member named 'chunkLength'
dictzip.c:652: error: 'dictData' has no member named 'chunkLength'
dictzip.c: At top level:
dictzip.c:500: warning: unused parameter 'preFilter'
dictzip.c:500: warning: unused parameter 'postFilter'
make: Leaving directory `/Users/chulai/Documents/goldendict'
make: *** [build/dictzip.o] Error 1
The process "/usr/bin/make" exited with code 2.
Error while building project goldendict (target: Desktop)
When executing build step 'Make'


Ideas? Do I also have to get the 32-bit version of libiconv, libvorbisfile, libvorbis, libogg and libhunspell libraries? Any other one? I remember that when I compiled GoldenDict under Ubuntu the first time I had to get those libraries using apt-get but I don't know if I have to do the same under OS X and If I can use MacPorts for that.

Sorry for having too many questions. Any help is greatly appreciated!

Chulai

strannik wrote:Excluded garbage files from git.
Precompiled third-party libraries are for 64bit arch only, please let me know if anyone still uses a 32bit Intel Mac (i.e. Core Duo CPU, not Core 2 Duo or later).
chulai
 
Posts: 464
Joined: Sat Jan 08, 2011 10:11 pm

Re: Added Mac OS X support

Postby strannik » Sun Aug 07, 2011 10:43 pm

pkg-config is not essential, I also get those warnings.
The error messages look like you have some problems with C/C++ compiler. Maybe consider upgrading Xcode.
Also, I had a lot of problems with MacPorts (including all those troubles with libraries), so I highly recommend switching to Homebrew instead.
This way you wouldn't need to compile ANY libs yourself, just install them through Homebrew.
If you're using PowerPC though, you might have some headache. I can give instructions on how to built those libs yourself then.
UPDATE: seems you're using 32-bit Intel Mac, so just install the libs through Homebrew and you should be fine.
Last edited by strannik on Sun Aug 07, 2011 10:58 pm, edited 2 times in total.
strannik
 
Posts: 74
Joined: Mon Oct 19, 2009 12:05 pm

Re: Added Mac OS X support

Postby ikm » Sun Aug 07, 2011 10:49 pm

dictzip.h:65: error: expected specifier-qualifier-list before 'time_t'

Try adding #include <time.h> to the beginning of that header.
ikm
Автор GoldenDict
 
Posts: 1595
Joined: Wed Feb 04, 2009 10:40 am

Next

Return to General

Who is online

Users browsing this forum: No registered users and 31 guests