I wanted to build DjVuLibre 3.5.25.3 without threads (./configure --disable-threads
), but it failed to build:
/bin/bash ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I.. -I. -DNDEBUG -Wall -O3 -Wno-non-virtual-dtor -c GOS.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I.. -I. -DNDEBUG -Wall -O3 -Wno-non-virtual-dtor -c GOS.cpp -fPIC -DPIC -o .libs/GOS.o In file included from GOS.cpp:64:0: GThreads.h:139:21: fatal error: threads.h: No such file or directory #include <threads.h>
Dear Jakub,
This bug does not exist with more recent versions of djvulibre. Note that
djvulibre does not run correctly without threads anyway. Therefore I've
changed the configure script to abort when no threading package is found.
If you really want to try without threads, take the 3.5.25.3 code base
and remove the three lines involving MACTHREADS in GThreads.h. Then it will
compile. But it will not run correctly in all circumstances. Only the simplest
djvu files can be decoded without threads...
On Sunday, February 08, 2015 03:22:46 PM Jakub Wilk wrote:
Related
Bugs:
#249