Hi.
I was just trying to compile BRL_CAD on my Ubuntu 9.10 system, but ran into this error.
>>>>
Making all in libbu
make[2]: Entering directory `/home/jnp/brlcad-7.16.4/src/libbu'
.
.
output omitted
.
.
/bin/bash ../../libtool --silent --tag=CC --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../include -DPREFIX=\"/usr/brlcad\" -I../../src/other/tcl/generic -I../../src/other/tcl/unix -I/usr/local/include -DBRLCADBUILD=1 -I../../include -I../../src/other/openNURBS -pedantic -W -Wall -Werror -Wno-long-long -pipe -fno-strict-aliasing -fno-common -fexceptions -g -O3 -c -o bomb.lo bomb.c
cc1: warnings being treated as errors
bomb.c: In function ‘bu_bomb’:
bomb.c:111: error: ignoring return value of ‘write’, declared with attribute warn_unused_result
bomb.c:112: error: ignoring return value of ‘write’, declared with attribute warn_unused_result
bomb.c:157: error: ignoring return value of ‘write’, declared with attribute warn_unused_result
make[2]: *** [bomb.lo] Error 1
make[2]: Leaving directory `/home/jnp/brlcad-7.16.4/src/libbu'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jnp/brlcad-7.16.4/src'
make: *** [all-recursive] Error 1
root@jnp-desktop:/home/jnp/brlcad-7.16.4#
<<<<<<
Earlier tryed installing using just
./configure
make
make install"
But didn't work.
Then followed this instruction: http://brlcad.org/wiki/Compiling#Compiling_BRL-CAD
Any suggestion how to continue from hereon?
Thanks!
Best Regards
JNymarkP
Add --disable-strict to your compilation options. You should also use source release 7.16.6 instead. The INSTALL file has more details on compilation options.
Worked like a charm :D
Thanks a LOT!