[bt-devel] bibletime compile question

Martin Gruner bt-devel@crosswire.org
Sun, 8 Jul 2001 16:19:18 +0200


As you see gcc includes sword fomr /usr/local/sword.
But your Makefile.cfg says sword installs in /usr/. This was changed recently.
So delete /usr/local/sword and recompile using /usr. Then gcc will probably 
find the right sword lib.

Martin

> I don't know if this is a user or code bug, I think I issued all of the
> correct commands on a fresh copy of the CVS.
> The bibletime code did not build, and the error seems to have something
> to do with cswordmoduleinfo.cpp and CSwordBackend::Version ().
>
> Fred
>
>
> Sword CVS from 8 July about 7:00AM
> Bibletime CVS from 8 July about 7:15AM
>
>
> --------------------------------------------------------------
> sword/makefile.cvs
> --------------------------------------------------------------
> # General defines
>
> version := 1.5.2
>
>
> # ownership (used by 'make install')
>
> user      := root
> group     := root
>
>
> # this WILL NOT WORK for you. only inhouse patched version of
> # sapphire will omit enciphering code when set to yes, so leave
> # as no, unless you really know what you're doing
>
> legalexport := no
>
>
> ##### Customizable stuff. Set it how you like it #####
>
> # compiler
>
> CROSS_COMPILE =
> CC         = gcc
> need_local_regex := no
>
>
> # shared library- set to yes if you would like to build
>
> buildshare := yes
>
>
> # VCL library- set to yes if you would like to build
>
> buildvcl := yes
>
>
> # Debugging options etc...
>
> debug   := no
> profile := no
>
>
> # endian, etc. support for other hardware
>
> system := intel
> #system := sparc
> #system := macosx
> #system := arm
>
> ## MAC OSX Support works but possible bug exists in
> /usr/include/sys/dirent.h
> ## on the current version (B) of OSX.  You will need to add this line
> right after the #ifdef of DIRENT
> #include <sys/types.h>
>
>
> # zLib support
>
> zlib := yes
>
>
> # paths
>
> instdir   := /usr
>
> bindir    := ${instdir}/bin
> libdir    := ${instdir}/lib
> hdir      := ${instdir}/include/sword
> docdir    := ${instdir}/doc/sword
> confdir   := ${instdir}/share/sword
>
>
>
> #--------------------------------------------------------------------------
>----#
>
> # You shouldn't need to change anything below here.
>
>
>
>
> ++++++++++++++++++++++++++++++++++
> Bibletime install messages
> ++++++++++++++++++++++++++++++++++
> Up to this point everything seems OK
>
>
> g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I/usr/include
> -I/usr/lib/qt2/include -I/usr/X11R6/include   -D_REENTRANT
> -I/usr/local/sword/include/sword -DQT_NO_ASCII_CAST  -O2 -fno-exceptions
> -fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes
> -Wwrite-strings -Wno-long-long -fno-builtin -c chtmlchapterdisplay.cpp
> g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I/usr/include
> -I/usr/lib/qt2/include -I/usr/X11R6/include   -D_REENTRANT
> -I/usr/local/sword/include/sword -DQT_NO_ASCII_CAST  -O2 -fno-exceptions
> -fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes
> -Wwrite-strings -Wno-long-long -fno-builtin -c chtmlentrydisplay.cpp
> g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I/usr/include
> -I/usr/lib/qt2/include -I/usr/X11R6/include   -D_REENTRANT
> -I/usr/local/sword/include/sword -DQT_NO_ASCII_CAST  -O2 -fno-exceptions
> -fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes
> -Wwrite-strings -Wno-long-long -fno-builtin -c cswordmoduleinfo.cpp
> cswordmoduleinfo.cpp: In method
> `CSwordModuleInfo::CSwordModuleInfo(CSwordBackend *, SWModule *)':
> cswordmoduleinfo.cpp:49: no matching function for call to
> `CSwordBackend::Version ()'
> cswordmoduleinfo.cpp:50: no matching function for call to
> `CSwordBackend::Version ()'
> cswordmoduleinfo.cpp: In method `const class QString
> CSwordModuleInfo::getAboutInformation() const':
> cswordmoduleinfo.cpp:132: warning: ANSI C++ forbids variable-size array
> `dummy'
> make[4]: *** [cswordmoduleinfo.o] Error 1
> make[4]: Leaving directory
> `/home/fks00/Develop/cvs_repository/bibletime/bibletime/backend/sword_backe
>nd'
>
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory
> `/home/fks00/Develop/cvs_repository/bibletime/bibletime/backend'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
> `/home/fks00/Develop/cvs_repository/bibletime/bibletime'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/home/fks00/Develop/cvs_repository/bibletime'
> make: *** [all-recursive-am] Error 2
> [fks00@localhost bibletime]$