Difference between revisions of "Compiling"

From BRL-CAD
(Library dependencies)
(Troubleshooting)
Line 39: Line 39:
 
make
 
make
 
</pre>
 
</pre>
 +
 +
If make returns this error:
 +
 +
: ''error: '::ptrdiff_t' has not been declared''
 +
 +
See Bug Tracker: '''Make error - ID: 2950488'''
 +
 +
If make returns this error:
 +
 +
: ''bomb.c:111: error: ignoring return value of ‘write’, declared with attribute warn_unused_result''
 +
 +
See Bug Tracker: '''Error compiling "bomb.c" - ID: 2953632'''
  
 
=== History ===
 
=== History ===
 
These tips gleaned from [http://www.linuxquestions.org/questions/linux-software-2/brl-cad-7.14.6-compilation-fails-on-debian-lenny-stable-pentium-6-722382/ knudfl] and [http://ibot.rikers.org/%23brlcad/20080906.html.gz #brlcad].  Tested by JamesVasile on Ubuntu Intrepid with BRL-CAD 7.14.8.
 
These tips gleaned from [http://www.linuxquestions.org/questions/linux-software-2/brl-cad-7.14.6-compilation-fails-on-debian-lenny-stable-pentium-6-722382/ knudfl] and [http://ibot.rikers.org/%23brlcad/20080906.html.gz #brlcad].  Tested by JamesVasile on Ubuntu Intrepid with BRL-CAD 7.14.8.

Revision as of 17:18, 20 February 2010

Compiling BRL-CAD

BRL-CAD source files contain an INSTALL file with general instructions. This page contains tips for building on specific systems.

Debian / Ubuntu

Tools

aptitude install build-essential libtool

Library dependencies

aptitude install libxi-dev libncursesw5-dev libxt-dev libxslt1-dev 
libxmu-dev libxmu-headers byacc flex libtnt-dev libxext-dev 
libpng12-dev zlib1g-dev libsm-dev libx11-dev libxau-dev 
tk8.5-dev tcl8.5-dev tk8.4-dev tcl8.4-dev itcl3-dev

Configure

./configure --enable-optimized

Make and Install

make
sudo make install

Troubleshooting

If make returns an error complaining that libitk.la cannot be found, make sure you have libtool installed then do:

./autogen.sh
make noprod
make

If make returns this error:

error: '::ptrdiff_t' has not been declared

See Bug Tracker: Make error - ID: 2950488

If make returns this error:

bomb.c:111: error: ignoring return value of ‘write’, declared with attribute warn_unused_result

See Bug Tracker: Error compiling "bomb.c" - ID: 2953632

History

These tips gleaned from knudfl and #brlcad. Tested by JamesVasile on Ubuntu Intrepid with BRL-CAD 7.14.8.