Working version of Linux library

43 views
Skip to first unread message

Daniel de Haas

unread,
Dec 21, 2012, 3:21:09 AM12/21/12
to col...@googlegroups.com
Hi,

I've been trying to install the Linux colorer library on several of my machines (Mac OS X 10.8.2 and Ubuntu 12.10), and have had little luck. When I run 'make' I get the following output:

---------------- Building Colorer-take5 console tools
make -C src/colorer/ -f makefile.gcc
gcc -O3 -Wp,-I../shared/,-I../shared/../zlib/,-w -o objs/ConsoleToolsRunner.o  -c -s   -D__unix__ -DCOLORER_FEATURE_HTTPINPUTSOURCE=FALSE ConsoleToolsRunner.cpp
gcc -O3 -Wp,-I../shared/,-I../shared/../zlib/,-w -o objs/adler32.o  -c -s   -D__unix__ -DCOLORER_FEATURE_HTTPINPUTSOURCE=FALSE ../shared//../zlib/adler32.c
gcc -O3 -Wp,-I../shared/,-I../shared/../zlib/,-w -o objs/crc32.o  -c -s   -D__unix__ -DCOLORER_FEATURE_HTTPINPUTSOURCE=FALSE ../shared//../zlib/crc32.c
gcc -O3 -Wp,-I../shared/,-I../shared/../zlib/,-w -o objs/infblock.o  -c -s   -D__unix__ -DCOLORER_FEATURE_HTTPINPUTSOURCE=FALSE ../shared//../zlib/infblock.c
gcc -O3 -Wp,-I../shared/,-I../shared/../zlib/,-w -o objs/infcodes.o  -c -s   -D__unix__ -DCOLORER_FEATURE_HTTPINPUTSOURCE=FALSE ../shared//../zlib/infcodes.c
gcc -O3 -Wp,-I../shared/,-I../shared/../zlib/,-w -o objs/inffast.o  -c -s   -D__unix__ -DCOLORER_FEATURE_HTTPINPUTSOURCE=FALSE ../shared//../zlib/inffast.c
gcc -O3 -Wp,-I../shared/,-I../shared/../zlib/,-w -o objs/inflate.o  -c -s   -D__unix__ -DCOLORER_FEATURE_HTTPINPUTSOURCE=FALSE ../shared//../zlib/inflate.c
gcc -O3 -Wp,-I../shared/,-I../shared/../zlib/,-w -o objs/inftrees.o  -c -s   -D__unix__ -DCOLORER_FEATURE_HTTPINPUTSOURCE=FALSE ../shared//../zlib/inftrees.c
gcc -O3 -Wp,-I../shared/,-I../shared/../zlib/,-w -o objs/infutil.o  -c -s   -D__unix__ -DCOLORER_FEATURE_HTTPINPUTSOURCE=FALSE ../shared//../zlib/infutil.c
gcc -O3 -Wp,-I../shared/,-I../shared/../zlib/,-w -o objs/uncompr.o  -c -s   -D__unix__ -DCOLORER_FEATURE_HTTPINPUTSOURCE=FALSE ../shared//../zlib/uncompr.c
gcc -O3 -Wp,-I../shared/,-I../shared/../zlib/,-w -o objs/zutil.o  -c -s   -D__unix__ -DCOLORER_FEATURE_HTTPINPUTSOURCE=FALSE ../shared//../zlib/zutil.c
gcc -O3 -Wp,-I../shared/,-I../shared/../zlib/,-w -o objs/unzip.o  -c -s   -D__unix__ -DCOLORER_FEATURE_HTTPINPUTSOURCE=FALSE ../shared//../zlib/contrib/minizip/unzip.c
gcc -O3 -Wp,-I../shared/,-I../shared/../zlib/,-w -o objs/ioapi.o  -c -s   -D__unix__ -DCOLORER_FEATURE_HTTPINPUTSOURCE=FALSE ../shared//../zlib/contrib/minizip/ioapi.c
gcc -O3 -Wp,-I../shared/,-I../shared/../zlib/,-w -o objs/Logging.o  -c -s   -D__unix__ -DCOLORER_FEATURE_HTTPINPUTSOURCE=FALSE ../shared//./common/Logging.cpp
gcc -O3 -Wp,-I../shared/,-I../shared/../zlib/,-w -o objs/xmldom.o  -c -s   -D__unix__ -DCOLORER_FEATURE_HTTPINPUTSOURCE=FALSE ../shared//./xml/xmldom.cpp
gcc -O3 -Wp,-I../shared/,-I../shared/../zlib/,-w -o objs/cregexp.o  -c -s   -D__unix__ -DCOLORER_FEATURE_HTTPINPUTSOURCE=FALSE ../shared//./cregexp/cregexp.cpp
gcc -O3 -Wp,-I../shared/,-I../shared/../zlib/,-w -o objs/BitArray.o  -c -s   -D__unix__ -DCOLORER_FEATURE_HTTPINPUTSOURCE=FALSE ../shared//./unicode/BitArray.cpp
../shared//./unicode/BitArray.cpp: In destructor ‘BitArray::~BitArray()’:
../shared//./unicode/BitArray.cpp:11: error: cast from ‘int*’ to ‘int’ loses precision
../shared//./unicode/BitArray.cpp: In member function ‘void BitArray::setBit(int)’:
../shared//./unicode/BitArray.cpp:20: error: cast from ‘int*’ to ‘int’ loses precision
../shared//./unicode/BitArray.cpp: In member function ‘void BitArray::clearBit(int)’:
../shared//./unicode/BitArray.cpp:25: error: cast from ‘int*’ to ‘int’ loses precision
../shared//./unicode/BitArray.cpp: In member function ‘void BitArray::addRange(int, int)’:
../shared//./unicode/BitArray.cpp:29: error: cast from ‘int*’ to ‘int’ loses precision
../shared//./unicode/BitArray.cpp: In member function ‘void BitArray::clearRange(int, int)’:
../shared//./unicode/BitArray.cpp:52: error: cast from ‘int*’ to ‘int’ loses precision
../shared//./unicode/BitArray.cpp: In member function ‘void BitArray::addBitArray(BitArray*)’:
../shared//./unicode/BitArray.cpp:73: error: cast from ‘int*’ to ‘int’ loses precision
../shared//./unicode/BitArray.cpp:75: error: cast from ‘int*’ to ‘int’ loses precision
../shared//./unicode/BitArray.cpp: In member function ‘void BitArray::clearBitArray(BitArray*)’:
../shared//./unicode/BitArray.cpp:86: error: cast from ‘int*’ to ‘int’ loses precision
../shared//./unicode/BitArray.cpp:87: error: cast from ‘int*’ to ‘int’ loses precision
../shared//./unicode/BitArray.cpp: In member function ‘void BitArray::intersectBitArray(BitArray*)’:
../shared//./unicode/BitArray.cpp:102: error: cast from ‘int*’ to ‘int’ loses precision
../shared//./unicode/BitArray.cpp:103: error: cast from ‘int*’ to ‘int’ loses precision
../shared//./unicode/BitArray.cpp: In member function ‘void BitArray::addBitArray(char*, int)’:
../shared//./unicode/BitArray.cpp:110: error: cast from ‘int*’ to ‘int’ loses precision
../shared//./unicode/BitArray.cpp: In member function ‘void BitArray::clearBitArray(char*, int)’:
../shared//./unicode/BitArray.cpp:117: error: cast from ‘int*’ to ‘int’ loses precision
../shared//./unicode/BitArray.cpp: In member function ‘bool BitArray::getBit(int)’:
../shared//./unicode/BitArray.cpp:124: error: cast from ‘int*’ to ‘int’ loses precision
make[1]: *** [objs/BitArray.o] Error 1
make: *** [colorer] Error 2

 
I found this post which had an error similar to mine: https://groups.google.com/forum/?fromgroups=#!topic/colorer/c9FkguTKTLI

However, I don't know where to find the latest version of the BitArray file. 

The Linux Colorer Library on sourceforge hasn't been updated since 2006, so I figure I'm using a very old version. However, I can't find any later versions, and I don't want to use the Eclipse plugin (I will actually be using the generator.php, which requires that the colorer library be installed). Could anyone offer any assistance to me?

Thank you in advance!

Igor Russkih

unread,
Dec 21, 2012, 3:29:20 AM12/21/12
to colorer
Hello Daniel, believe the issue was fixed and is available in SVN trunk. just checkout SVN tree and build from there.

  Igor

Daniel de Haas

unread,
Dec 21, 2012, 3:46:55 AM12/21/12
to col...@googlegroups.com
Hi Igor,

Thank you so much for your quick reply!

Pardon my ignorance, but where can I find the SVN tree?

Igor Russkih

unread,
Dec 21, 2012, 4:12:25 AM12/21/12
to colorer

Daniel de Haas

unread,
Dec 21, 2012, 4:30:52 AM12/21/12
to col...@googlegroups.com
Thank you once again!
Reply all
Reply to author
Forward
0 new messages