Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Problem with installing kbedic on GNOME
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
arcee
n00b
n00b


Joined: 24 Jul 2010
Posts: 10
Location: Nova Cronum, Cybertron

PostPosted: Sat Jul 31, 2010 2:17 pm    Post subject: [SOLVED] Problem with installing kbedic on GNOME Reply with quote

I'm using GNOME and I'm trying to install kbedic, since I can't find a Bulgarian/English dictionary for GNOME. I downloaded the source package for version 4.0 and when I run ./configure it gives me the following error:
Code:
configure: error: You need to have the QT 3.0 or higher libraries installed

I have qt, qt-assistant, qt-core, qt-dbus, qt-gui, qt-multimedia, qt-opengl, qt-phonon, qt-qt3support, qt-script, qt-sql, qt-svg, qt-test, qt-webkit, qt-xmlpatterns installed, but it still gives me the same error. I don't know which package contains these libraries...


Last edited by arcee on Sun Aug 01, 2010 7:14 am; edited 1 time in total
Back to top
View user's profile Send private message
sebaro
Veteran
Veteran


Joined: 03 Jul 2006
Posts: 1131
Location: Romania

PostPosted: Sat Jul 31, 2010 3:48 pm    Post subject: Reply with quote

kbedic needs qt3, which isn't in portage anymore.
For qt4 use kbgoffice:
http://bgoffice.sourceforge.net/
http://nikolavp.blogspot.com/2009/05/how-to-install-kbgoffice-qt4.html
For gnome use gbgoffice:
http://git.overlays.gentoo.org/gitweb/?p=user/wish.git;a=tree;f=app-dicts;hb=HEAD
Back to top
View user's profile Send private message
arcee
n00b
n00b


Joined: 24 Jul 2010
Posts: 10
Location: Nova Cronum, Cybertron

PostPosted: Sat Jul 31, 2010 4:08 pm    Post subject: Reply with quote

Ok, I downloaded the latest version of gbgoffice and when I compile it it gives me this error:
Code:
Making all in src
make[1]: Entering directory `/home/aleksandrina/Desktop/gbgoffice-1.4/src'
make  all-am
make[2]: Entering directory `/home/aleksandrina/Desktop/gbgoffice-1.4/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.  -DDATA_DIR_CONFIG=\"/usr/local/share/bgoffice/\"   -I/usr/include/gtkmm-2.4 -I/usr/lib64/gtkmm-2.4/include -I/usr/include/giomm-2.4 -I/usr/lib64/giomm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/lib64/pangomm-1.4/include -I/usr/include/gtk-2.0 -I/usr/include/gtk-unix-print-2.0 -I/usr/include/atkmm-1.6 -I/usr/include/gdkmm-2.4 -I/usr/lib64/gdkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib64/glibmm-2.4/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/include/cairomm-1.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0    -g -O2 -MT database.o -MD -MP -MF ".deps/database.Tpo" -c -o database.o database.cpp; \
   then mv -f ".deps/database.Tpo" ".deps/database.Po"; else rm -f ".deps/database.Tpo"; exit 1; fi
database.cpp: In member function ‘bool Database::init(const char*, long int)’:
database.cpp:117: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
database.cpp: In member function ‘bool Database::findWord(const char*)’:
database.cpp:168: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
database.cpp:179: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
database.cpp:183: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
database.cpp:185: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
database.cpp: In member function ‘void Database::readData()’:
database.cpp:231: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
database.cpp: In member function ‘char* Database::getNextRandomWord()’:
database.cpp:271: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
if g++ -DHAVE_CONFIG_H -I. -I. -I.  -DDATA_DIR_CONFIG=\"/usr/local/share/bgoffice/\"   -I/usr/include/gtkmm-2.4 -I/usr/lib64/gtkmm-2.4/include -I/usr/include/giomm-2.4 -I/usr/lib64/giomm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/lib64/pangomm-1.4/include -I/usr/include/gtk-2.0 -I/usr/include/gtk-unix-print-2.0 -I/usr/include/atkmm-1.6 -I/usr/include/gdkmm-2.4 -I/usr/lib64/gdkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib64/glibmm-2.4/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/include/cairomm-1.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0    -g -O2 -MT history.o -MD -MP -MF ".deps/history.Tpo" -c -o history.o history.cpp; \
   then mv -f ".deps/history.Tpo" ".deps/history.Po"; else rm -f ".deps/history.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.  -DDATA_DIR_CONFIG=\"/usr/local/share/bgoffice/\"   -I/usr/include/gtkmm-2.4 -I/usr/lib64/gtkmm-2.4/include -I/usr/include/giomm-2.4 -I/usr/lib64/giomm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/lib64/pangomm-1.4/include -I/usr/include/gtk-2.0 -I/usr/include/gtk-unix-print-2.0 -I/usr/include/atkmm-1.6 -I/usr/include/gdkmm-2.4 -I/usr/lib64/gdkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib64/glibmm-2.4/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/include/cairomm-1.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0    -g -O2 -MT translator.o -MD -MP -MF ".deps/translator.Tpo" -c -o translator.o translator.cpp; \
   then mv -f ".deps/translator.Tpo" ".deps/translator.Po"; else rm -f ".deps/translator.Tpo"; exit 1; fi
translator.cpp: In member function ‘char* Translator::transformResult(const char*)’:
translator.cpp:404: error: invalid conversion from ‘const char*’ to ‘char*’
make[2]: *** [translator.o] Error 1
make[2]: Leaving directory `/home/aleksandrina/Desktop/gbgoffice-1.4/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/aleksandrina/Desktop/gbgoffice-1.4/src'
make: *** [all-recursive] Error 1
Back to top
View user's profile Send private message
sebaro
Veteran
Veteran


Joined: 03 Jul 2006
Posts: 1131
Location: Romania

PostPosted: Sat Jul 31, 2010 4:34 pm    Post subject: Reply with quote

Why don't you use the ebuild?
Back to top
View user's profile Send private message
arcee
n00b
n00b


Joined: 24 Jul 2010
Posts: 10
Location: Nova Cronum, Cybertron

PostPosted: Sat Jul 31, 2010 5:31 pm    Post subject: Reply with quote

I tried, but it requires glibmm-2.4 and gtkmm-2.4 - I downloaded the source packages of them, since those versions are not in the tree, but it gives me similar error when I try to compile them:
Code:
collect2: ld returned 1 exit status
make[4]: *** [libpangomm-1.4.la] Error 1
make[4]: Leaving directory `/home/aleksandrina/Desktop/gtkmm-2.4.0/pango/pangomm'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/aleksandrina/Desktop/gtkmm-2.4.0/pango/pangomm'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/aleksandrina/Desktop/gtkmm-2.4.0/pango'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/aleksandrina/Desktop/gtkmm-2.4.0'
make: *** [all] Error 2
Back to top
View user's profile Send private message
sebaro
Veteran
Veteran


Joined: 03 Jul 2006
Posts: 1131
Location: Romania

PostPosted: Sat Jul 31, 2010 6:07 pm    Post subject: Reply with quote

arcee wrote:
I tried, but it requires glibmm-2.4 and gtkmm-2.4

?
Code:
DEPEND=">=dev-libs/libsigc++-2.2.3
>=dev-cpp/gtkmm-2.16.0
>=dev-cpp/glibmm-2.20.1
>=app-dicts/bgoffice-dictfiles-1.0"
Back to top
View user's profile Send private message
arcee
n00b
n00b


Joined: 24 Jul 2010
Posts: 10
Location: Nova Cronum, Cybertron

PostPosted: Sat Jul 31, 2010 11:02 pm    Post subject: Reply with quote

Hmm, that's probably the ebuild for kbgoffice in bugzilla, but I used a similar one for bgboffice, which required these versions. Nevermind I edited the ebuild and changed the dependencies to those you posted and it started compiling but it gave me another error:
Code:
translator.cpp: In member function ‘char* Translator::transformResult(const char*)’:
translator.cpp:404: error: invalid conversion from ‘const char*’ to ‘char*’
make[2]: *** [translator.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-dicts/gbgoffice-1.4/work/gbgoffice-1.4/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/app-dicts/gbgoffice-1.4/work/gbgoffice-1.4/src'
make: *** [all-recursive] Error 1
 * ERROR: app-dicts/gbgoffice-1.4 failed:
 *   Building failed!
 *
 * Call stack:
 *     ebuild.sh, line  54:  Called src_compile
 *   environment, line 2954:  Called die
 * The specific snippet of code:
 *           emake || die "Building failed!";
 *
 * If you need support, post the output of 'emerge --info =app-dicts/gbgoffice-1.4',
 * the complete build log and the output of 'emerge -pqv =app-dicts/gbgoffice-1.4'.
 * This ebuild is from an overlay: '/usr/local/portage/'
 * The complete build log is located at '/var/tmp/portage/app-dicts/gbgoffice-1.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-dicts/gbgoffice-1.4/temp/environment'.
 * S: '/var/tmp/portage/app-dicts/gbgoffice-1.4/work/gbgoffice-1.4'

>>> Failed to emerge app-dicts/gbgoffice-1.4
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2152
Location: Berlin, Germany

PostPosted: Sun Aug 01, 2010 1:36 am    Post subject: Reply with quote

Quote:
Code:
translator.cpp:404: error: invalid conversion from ‘const char*’ to ‘char*’
This was introduced by recent versions of gcc, and applications which have not been updated to fix this fail to build. Try to build with gcc-4.2 or older.
Back to top
View user's profile Send private message
sebaro
Veteran
Veteran


Joined: 03 Jul 2006
Posts: 1131
Location: Romania

PostPosted: Sun Aug 01, 2010 6:41 am    Post subject: Reply with quote

Why don't you use the ebuilds from here:
http://git.overlays.gentoo.org/gitweb/?p=user/wish.git;a=tree;f=app-dicts;hb=HEAD
:?:
with patches for that error?
Back to top
View user's profile Send private message
arcee
n00b
n00b


Joined: 24 Jul 2010
Posts: 10
Location: Nova Cronum, Cybertron

PostPosted: Sun Aug 01, 2010 7:14 am    Post subject: Reply with quote

Thank you, sebaro, these worked :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum