[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New Quran releases: libquran 0.21 and QtQuran 0.041



On Saturday 07 December 2002 20:03, Mohammed Sameer wrote:

> Allow my feedback ;)
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt3/include
> -I/usr/X11R6/include -DQT_THREAD_SUPPORT  -D_REENTRANT  -O2 -fno-exceptions
> -fno-check-new  -c searchform.cpp
> In file included from searchform.cpp:42:
> searchform.h:42: conflicting types for `struct quran'
> /usr/include/quran.h:96: previous declaration as `typedef struct quran
> quran'
>
> i commented the line 42
> but this produced another error
>
> /usr/lib/qt3/bin/moc ./searchform.h -o searchform.moc.cpp
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt3/include
> -I/usr/X11R6/include -DQT_THREAD_SUPPORT  -D_REENTRANT  -O2 -fno-exceptions
> -fno-check-new  -c searchform.moc.cppIn file included from
> searchform.moc.cpp:11:
> searchform.h:54: parse error before `*' token
> searchform.h:90: syntax error before `*' token
>
> so i had to add:
> #include <quran.h>
> to the file searchform.h
>
> i know that those errors are due to gcc 3.2 is more strict, but that's what
> we have! anyway, i've attached a patch that corrects the compilation
> problems
I just didn't want to #include <quran.h> everywhere


> $ /usr/src/qtquran-0.041/src/qtquran
> Xlib:  extension "GLX" missing on display ":0.0".
> Error calling quran_init()
>
> ??!
>
> had to dig through the source of libquran to find that it can't find
> /usr/share/libquran/audio and create it manually
oh, no you do not need to create it if you don't have audio files
Anyway before typing 'make install' in libquran you should modify
libquran.xml to reflect the prefix you set
so if you did : ./configure --prefix=/usr , you shouldn't need to
modify it but if you did: ./configure --prefix=/usr/local or if you
did only: ./configure , you will have to modify libquran.xml to be :
<libquran>
        <datadir>
                <text location="/usr/local/share/libquran/xml"/>
                <audio location="/usr/local/share/libquran/audio"/>
        </datadir>
</libquran>


> really i suggest that you print the return values from quran_init() it'll
> help the users troubleshoot it anyway
my working copy have that, I just thought that "Error calling quran_init() -2"
will not make sense to a user, I'm planning to add --debug option to configure
that have that should make qtquran verbose.

> plz don't be angry :-)
This has no place here :-)
And thanks for your feedback.
-- 
Mohammed Yousif
"She is in my mind and soul, I love her with all my heart and blood".
We _will_ restore OUR Jerusalem