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

Fail to build goldendict from git in FreeBSD 8.1...

General discussion

Fail to build goldendict from git in FreeBSD 8.1...

Postby YZMSQ » Fri Nov 05, 2010 6:06 am

Hi,there:
I'm now one of freebsd users switching from archlinux.When I was an archlinux user, goldendict-git was my favorite dict program,and now I just wanna use it on FB.I tried to compile it from git,while it complained:

Code: Select all
[justin@YZMSQ /usr/home/justin/pkg/goldendict]$ qmake-qt4
[justin@YZMSQ /usr/home/justin/pkg/goldendict]$ make
g++ -c -pipe -rdynamic -O2 -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include/hunspell -Wall -W -DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\" -DPROGRAM_VERSION=\"0.9.0+git\" -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_PHONON_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../../local/share/qt4/mkspecs/freebsd-g++ -I. -I../../../../local/include/qt4/QtCore -I../../../../local/include/qt4/QtNetwork -I../../../../local/include/qt4/QtGui -I../../../../local/include/qt4/QtXml -I../../../../local/kde4/include/phonon -I../../../../local/include/qt4/QtWebKit -I../../../../local/include/qt4 -I. -I/usr/local/include/qt4/phonon_compat -Ibuild -Ibuild -I../../../../local/include -o build/bgl_babylon.o bgl_babylon.cc
bgl_babylon.cc: In member function 'void Babylon::convertToUtf8(std::string&, unsigned int)':
bgl_babylon.cc:662: error: invalid conversion from 'char**' to 'const char**'
bgl_babylon.cc:662: error:   initializing argument 2 of 'size_t libiconv(void*, const char**, size_t*, char**, size_t*)'
*** Error code 1

Stop in /usr/home/justin/pkg/goldendict.

I've installed all the dependency goldendict needs.So,what's wrong with my way?Hopefully you might help me,thank you. :oops:

Code: Select all
[justin@YZMSQ /usr/home/justin/pkg/goldendict]$ pkg_info|grep qt4
qt4-4.6.3           Multiplatform C++ application framework (metaport)
qt4-accessible-4.6.3 Qt accessibility widgets
qt4-assistant-4.6.3 Qt documentation browser
qt4-assistant-adp-4.6.3 Qt documentation browser, adp compat version
qt4-clucene-4.6.3   QtCLucene full text search library wrapper
qt4-corelib-4.6.3_1 Qt core library
qt4-dbus-4.6.3      Qt4 bindings for the D-BUS messaging system
qt4-designer-4.6.3  Qt ui editor
qt4-doc-4.6.3       Multiplatform C++ application framework
qt4-gui-4.6.3       Qt graphical user interface library
qt4-help-4.6.3      QtHelp module provides QHelpEngine API and is used by Assis
qt4-iconengines-4.6.3 Qt SVG icon engine plugin
qt4-imageformats-4.6.3 Qt imageformat plugins for GIF, JPEG, MNG and SVG
qt4-inputmethods-4.6.3 Qt input method plugins
qt4-l10n-4.6.3      Qt translations messages
qt4-libQtAssistantClient-4.6.3 Qt documentation browser integration library
qt4-linguist-4.6.3  Qt localisation tool
qt4-moc-4.6.3       Qt meta object compiler
qt4-multimedia-4.6.3 Qt4 low-level multimedia API
qt4-network-4.6.3   Qt network library
qt4-opengl-4.6.3    Qt OpenGL library
qt4-qdbusviewer-4.6.3 Qt4 D-BUS viewer
qt4-qmake-4.6.3     The build utility of the Qt project
qt4-qt3support-4.6.3_1 Qt3 compatibility library
qt4-qtconfig-4.6.3  Qt graphical configuration utility
qt4-qtestlib-4.6.3  Qt unit testing library
qt4-qvfb-4.6.3      Qt virtual framebuffer utility
qt4-rcc-4.6.3       Qt resource compiler
qt4-script-4.6.3    Qt script
qt4-scripttools-4.6.3 Qt script
qt4-sql-4.6.3       Qt SQL library
qt4-sqlite-plugin-4.6.3 Qt SQLite 3.x database plugin
qt4-svg-4.6.3       Qt SVG library
qt4-uic-4.6.3       Qt user interface compiler
qt4-webkit-4.6.3    Qt4 WebKit engine
qt4-xml-4.6.3       Qt XML library
qt4-xmlpatterns-4.6.3 XQuery 1.0 and XPath 2.0 support for Qt4
qt4-xmlpatterns-tool-4.6.3 Qt4 command line utility for running XQueries
YZMSQ
 
Posts: 7
Joined: Wed Nov 18, 2009 12:53 pm

Re: Fail to build goldendict from git in FreeBSD 8.1...

Postby ikm » Fri Nov 05, 2010 6:34 am

This is a known iconv issue - different iconv verions use different function signatures. A quick way to compile is to add #define _WIN32 to the beginning of the file in question. The proper way is to edit #ifdefs and add Freebsd there, of course.
ikm
Автор GoldenDict
 
Posts: 1595
Joined: Wed Feb 04, 2009 10:40 am

Re: Fail to build goldendict from git in FreeBSD 8.1...

Postby YZMSQ » Fri Nov 05, 2010 8:51 am

Hi,thank you for your reply.I add a line "#define _WIN32" in that file,while there're other problems after my recompiling :

Code: Select all
[justin@YZMSQ /usr/home/justin/pkg/goldendict]$ qmake-qt4
[justin@YZMSQ /usr/home/justin/pkg/goldendict]$ make
g++ -c -pipe -rdynamic -O2 -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include/hunspell -Wall -W -DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\" -DPROGRAM_VERSION=\"0.9.0+git\" -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_PHONON_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../../local/share/qt4/mkspecs/freebsd-g++ -I. -I../../../../local/include/qt4/QtCore -I../../../../local/include/qt4/QtNetwork -I../../../../local/include/qt4/QtGui -I../../../../local/include/qt4/QtXml -I../../../../local/kde4/include/phonon -I../../../../local/include/qt4/QtWebKit -I../../../../local/include/qt4 -I. -I/usr/local/include/qt4/phonon_compat -Ibuild -Ibuild -I../../../../local/include -o build/bgl_babylon.o bgl_babylon.cc
bgl_babylon.cc:34:20: error: io.h: No such file or directory
bgl_babylon.cc: In member function 'bool Babylon::open()':
bgl_babylon.cc:98: error: '_dup' was not declared in this scope
*** Error code 1

Stop in /usr/home/justin/pkg/goldendict.


It seems that there isn't a file called "io.h" in FreeBSD as yet,and I search on Google,but I still don't know how to deal with it 'cause I'm not a programmer yet. :cry: So what should I do?
YZMSQ
 
Posts: 7
Joined: Wed Nov 18, 2009 12:53 pm

Re: Fail to build goldendict from git in FreeBSD 8.1...

Postby Artem S. Tashkinov » Mon Nov 08, 2010 8:10 am

You can patch it according to this message (use google translate, if you want to understand what everything is about).
Artem S. Tashkinov
 
Posts: 20
Joined: Sat Oct 23, 2010 9:54 am

Re: Fail to build goldendict from git in FreeBSD 8.1...

Postby YZMSQ » Mon Nov 08, 2010 1:17 pm

Artem S. Tashkinov wrote:You can patch it according to this message (use google translate, if you want to understand what everything is about).

Thank you,I'm trying to understand it via Google Translation..... :P
YZMSQ
 
Posts: 7
Joined: Wed Nov 18, 2009 12:53 pm


Return to General

Who is online

Users browsing this forum: Google [Bot] and 12 guests