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

Can't build GoldenDict from git

Report bugs here

Can't build GoldenDict from git

Postby betwee » Tue Feb 21, 2012 8:27 pm

Hi,

Many things have changed in recent months regarding GoldenDict. Thanks for all the improvements! ;)
Today I tried to compile and build it from git, on Ubuntu 10.04.4. The terminal complains:

Code: Select all
...-o build/decompress.o decompress.cc
decompress.cc:5:19: error: bzlib.h: No such file or directory
decompress.cc: In function ‘std::string decompressBzip2(char*, unsigned int)’:
decompress.cc:41: error: ‘bz_stream’ was not declared in this scope
decompress.cc:41: error: expected ‘;’ before ‘zs’
decompress.cc:45: error: ‘zs’ was not declared in this scope
decompress.cc:51: error: ‘BZ2_bzDecompressInit’ was not declared in this scope
decompress.cc:52: error: ‘BZ_OK’ was not declared in this scope
decompress.cc:54: error: ‘BZ_STREAM_END’ was not declared in this scope
decompress.cc:60: error: ‘BZ2_bzDecompress’ was not declared in this scope
decompress.cc:62: error: ‘BZ_OK’ was not declared in this scope
decompress.cc:67: error: ‘BZ2_bzDecompressEnd’ was not declared in this scope
decompress.cc:68: error: ‘BZ_STREAM_END’ was not declared in this scope
make: *** [build/decompress.o] Error 1
betwee
 
Posts: 33
Joined: Tue May 17, 2011 8:10 am

Re: Can't build GoldenDict from git

Postby Abs62 » Tue Feb 21, 2012 8:41 pm

Last GD versions (with support sdict and aard formats) requires bzip2 library.
Abs62
 
Posts: 631
Joined: Mon Jun 14, 2010 11:51 am

Re: Can't build GoldenDict from git

Postby betwee » Tue Feb 21, 2012 8:52 pm

Thanks, that was it!
betwee
 
Posts: 33
Joined: Tue May 17, 2011 8:10 am

Re: Can't build GoldenDict from git

Postby The waiter » Sat Feb 25, 2012 8:11 pm

Hello, I need your help as well with building from git:

I was suggested to install these dependencies but there is a problem with some versions. Could you help me with it?

stefan@stefan-pc:~$ sudo apt-get install qt4-qmake libvorbis-dev zlib1g-dev libhunspell-dev x11proto-record-dev libqt4-dev g++ libxtst-dev libphonon-dev libqt4-webkit-dev python-dev python-bzutils libbz2-dev
[sudo] password for stefan:
Reading package lists... Done
Building dependency tree
Reading state information... Done
zlib1g-dev is already the newest version.
zlib1g-dev set to manually installed.
g++ is already the newest version.
g++ set to manually installed.
Note, selecting libqtwebkit-dev instead of libqt4-webkit-dev
python-dev is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libhunspell-dev: Depends: libhunspell-1.2-0 (= 1.2.8-6ubuntu1) but 1.2.11-1ubuntu1 is to be installed
libqtwebkit-dev: Depends: libqtwebkit4 (= 2.0.0-0ubuntu1~lucid1~ppa1) but 2.1~git20110120-0ubuntu1 is to be installed
E: Broken packages
---------------------------------------------------------------------------------------------------------------------------------
I was trying to downgrade to lower version but many apps are related and it could make my system unusable.
What to do now?
The waiter
 
Posts: 53
Joined: Sat Jun 18, 2011 9:26 pm

Re: Can't build GoldenDict from git

Postby The waiter » Sat Feb 25, 2012 8:43 pm

Uh, shame on me. I finally got over it. I downgraded what I needed but another issue appeared after make:

stefan@stefan-S12:~/goldendict$ make
g++ -c -pipe -rdynamic -O2 -I/usr/include/hunspell -Wall -W -D_REENTRANT -DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\" -DPROGRAM_VERSION=\"1.0.1+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/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/phonon -I/usr/include/qt4/QtWebKit -I/usr/include/qt4 -I. -Iqtsingleapplication/src -I/usr/include/qt4/phonon_compat -Ibuild -Ibuild -o build/file.o file.cc
In file included from /usr/include/bits/errno.h:25,
from /usr/include/errno.h:36,
from /usr/include/c++/4.4/cerrno:43,
from file.cc:7:
/usr/include/linux/errno.h:4:23: error: asm/errno.h: No such file or directory
file.cc: In function ‘bool File::exists(const char*)’:
file.cc:64: error: ‘EOVERFLOW’ was not declared in this scope
make: *** [build/file.o] Error 1
The waiter
 
Posts: 53
Joined: Sat Jun 18, 2011 9:26 pm

Re: Can't build GoldenDict from git

Postby ikm » Sun Feb 26, 2012 7:55 am

Install linux-libc-dev package.
ikm
Автор GoldenDict
 
Posts: 1595
Joined: Wed Feb 04, 2009 10:40 am

Re: Can't build GoldenDict from git

Postby The waiter » Sun Feb 26, 2012 8:10 am

Thanx ikm. I solved it yesterday night. The problem was, I have no include/asm folder. I have includ/asm-genreic. I just redirected all setting there and problem was solved. Yeah, I am using the last GD from git :D
The waiter
 
Posts: 53
Joined: Sat Jun 18, 2011 9:26 pm

Re: Can't build GoldenDict from git

Postby turing » Sun Mar 11, 2012 4:05 pm

Hi,

I came across the problem reported at the beginning of this thread for Ubuntu 10.04. I solved it by doing:

ln -s winlibs/include/bzlib.h .

Then I compiled again and got a link-time error complaining about bzip2. I think I did:

sudo apt-get install libbz2-dev (I think it was this library, I don't remember exactly, sorry).

Then I retried and it compiled successfully. And it's working. I don't understand the exact implications of what I did, but it seems to work.

Maybe there is more than one way to get around this. The thing is that there is something missing in http://goldendict.org/buildfromgit.php, at least for compiling in Ubuntu 10.04. Only libbz2-dev? But I tried removing the symlink to bzlib.h and compiling again and it didn't work.

Hope this helps.
turing
 
Posts: 7
Joined: Sun Nov 06, 2011 12:02 pm


Return to Bugs

Who is online

Users browsing this forum: No registered users and 17 guests

cron