LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Who can compile qstardict slackbuild for me? Please help..) (http://www.linuxquestions.org/questions/slackware-14/who-can-compile-qstardict-slackbuild-for-me-please-help-793596/)

Dinobot 03-06-2010 06:01 AM

Who can compile qstardict slackbuild for me? Please help..)
 
Hi guys!

I'm getting a stupid error, trying compile qstardict on my slackware64... (so, I need x86_64 qstardict package)

http://slackbuilds.org/result/?search=qstardict&sv=13.0

when I did it at the first time, everything was OK, but the error now... Please mail final package to dinobot@xakep.ru or attach it here.

Gr8 Thanx!!!

brianL 03-06-2010 06:29 AM

What was the error? Did you follow the right procedure for dealing with SlackBuilds? Do you really think it's OK to ask someone else to do your work for you?

Dinobot 03-06-2010 06:47 AM

Quote:

Originally Posted by brianL (Post 3888151)
What was the error? Did you follow the right procedure for dealing with SlackBuilds? Do you really think it's OK to ask someone else to do your work for you?

my error is:
Quote:

g++ -c -O2 -fPIC -O2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wall -W -D_REENTRANT -fPIC -DHAVE_MMAP -DQSTARDICT_WITH_DBUS -DQSTARDICT_WITH_TRANSLATIONS -DQSTARDICT_VERSION=\"0.13.1\" -DQSTARDICT_INSTALL_PREFIX=\"/usr\" -DQSTARDICT_BIN_DIR=\"/usr/bin\" -DQSTARDICT_DATA_DIR=\"/usr/share/qstardict\" -DQSTARDICT_TRANSLATIONS_DIR=\"/usr/share/qstardict/translations\" -DQSTARDICT_PLUGINS_DIR=\"/usr/lib64/qstardict/plugins\" -DQT_NO_DEBUG -DQT_PLUGIN -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib64/qt/mkspecs/linux-g++-64 -I. -I/usr/lib64/qt/include/QtCore -I/usr/lib64/qt/include/QtNetwork -I/usr/lib64/qt/include/QtGui -I/usr/lib64/qt/include/QtXml -I/usr/lib64/qt/include -I/usr/lib64/qt/include/QtDBus -I../../../qstardict-0.13.1 -I. -I. -o dictziplib.o dictziplib.cpp
dictziplib.cpp:308:11: error: missing binary operator before token "Q_OS_WIN32"
make[2]: *** [dictziplib.o] Error 1
make[2]: Leaving directory `/tmp/SBo/qstardict-0.13.1/plugins/stardict'
make[1]: *** [sub-stardict-make_default] Error 2
make[1]: Leaving directory `/tmp/SBo/qstardict-0.13.1/plugins'
make: *** [sub-plugins-make_default] Error 2
Any ideas?

You're right. It's NOT OK. But I don't see another way how to get it...(

Who knows how to fix it?..

brianL 03-06-2010 06:57 AM

No, no idea. Where did you get it from?

dolphin77 03-06-2010 09:26 AM

http://gitorious.org/exherbo-cn/main...c1b4c3f3a11362
packages/app-dicts/qstardict/files/qstardict-gcc-4.4.patch
(0 / 14)

1 Source: Hong Hao <oahong@gmail.com>
2 Upstream: mail send
3 Reason: gcc 4.4
4 --- qstardict-0.13.1/plugins/stardict/dictziplib.cpp.orig 2009-05-17 17:48:37.605944568 +0800
5 +++ qstardict-0.13.1/plugins/stardict/dictziplib.cpp 2009-05-17 18:35:06.757994635 +0800
6 @@ -305,7 +305,7 @@
7
8 #ifdef Q_OS_UNIX
9 if (stat(fname.c_str(), &sb) || !S_ISREG(sb.st_mode))
10 -#elif def Q_OS_WIN32
11 +#elif defined Q_OS_WIN32
12 if (_stat(fname.c_str(), &sb) || !(sb.stMode & _S_IFREG))
13 #endif
14 {

Dinobot 03-06-2010 09:42 AM

Oh, great!!!!!!!! Thank you so much, guys!!!

dolphin77 03-06-2010 09:45 AM

One addition. I had it working, but after recent updates in -current it stopped to work. I just rebuilt a package from SVN http://qstardict.ylsoftware.com/svn.php
and it worked without any patches. So maybe you would like to do the same...

ROXR 03-06-2010 10:47 AM

The mother of matter:

#elif def Q_OS_WIN32
is bad

#elif defined Q_OS_WIN32
is well
....saint syntax :)


All times are GMT -5. The time now is 08:54 AM.