Aidan
07-12-2005, 04:14 AM
I have a problem building the nr libraries from the makefile supplied. I extracted the files to /usr/local/src and then tried to make them following the instructions is the read me. First I got an error message when cc was not a recognised command. When I changed this in the makefile to CC=gcc the first few lines of the make file built correctly until it fell over at xairy.o with a huge ream of errors. Does anyone have any suggestions how I should proceed
Aidan
07-13-2005, 10:41 AM
I got a very helpful suggestion from a user called Andrew. Here is what I did, and it worked :
1) unpack the nr source into a folder. create a separate folder called, say,
"test" and copy only the makefile into this folder.
2) edit the make file in the "test" directory so that NRROOT points to the
folder where you unpacked the nr source, e.g.
NRROOT=/store/NRC++/recipes_cpp
change the compiler to gcc
CC=gcc
3) cd into "test" and run "make lib" from the command line. This compiles all
the object modules and creates the library "librecipes_c-.a" from them. Just
running make fails! You have to move the headers and the library to the
correct places yourself.
Thanks Andrew!