From: Antoine L. <an...@sh...> - 2001-02-21 19:29:32
|
Hi, in order to compile the cpropep executable you must previously compile three library: libcproprep, libthermo, libnum These library are also in the cvs and you should also install them. In reality, cpropep is only a program that read a description file and use libcpropep functions to compute equilibrium and performance. The philosophy behind that is to let us easily reuse the functionality of cpropep to include in other program. By example, if you want a GUI front end to cpropep, you could directly link with the library and use the function. I also work on a program to simulate complete thrust curve of a motor based on combustion equation that link with cpropep. On Wed, Feb 21, 2001 at 11:43:10AM -0700, David Lautenschlager wrote: > The Make file for the CVS version does not work in my GNU environment, the > error follows. I was able to compile the CVS version using MS VC++ by moving > all the files to a single directory. > > $ make > make -C src all > make[1]: Entering directory `/rwb/cpropep/src' > gcc -g -Wall -O3 cpropep.o -L../../libnum/lib -L../../libthermo/lib > -L../../lib > cpropep/lib -lcpropep -lthermo -lnum -lm -o cpropep > /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-6/../../../../i686-pc-cygwin/bin/ld: > cann > ot find -lcpropep > collect2: ld returned 1 exit status > make[1]: *** [cpropep] Error 1 > make[1]: Leaving directory `/rwb/cpropep/src' > make: *** [all] Error 2 > > In the make file in the cpropep directory is the following rule: > > $(PROG): $(OBJS) $(LIBNAME) > $(CC) $(COPT) $(OBJS) $(LIBDIR) $(LIB) -o $@ > > But LIBNAME is not defined anywhere. Do you have any environment variables > set, or a special directory structure different from the CVS version? I just forgot to remove this old rule, sorry. > > Also, it would be convienient if there was a single CVS module to check out > that included all the files needed to compile cpropep, instead of having to > check out each directory individually. Based on the previous explanation, I think it is better for the project to be split in different library that could be reuse in diferent programs. > > > $ make > make -C src all > make[1]: Entering directory `/rwb/cpropep/src' > gcc -g -Wall -O3 cpropep.o -L../../libnum/lib -L../../libthermo/lib > -L../../lib > cpropep/lib -lcpropep -lthermo -lnum -lm -o cpropep > /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-6/../../../../i686-pc-cygwin/bin/ld: > cann > ot find -lcpropep > collect2: ld returned 1 exit status > make[1]: *** [cpropep] Error 1 > make[1]: Leaving directory `/rwb/cpropep/src' > make: *** [all] Error 2 After you install and compile the three library, everything should work normally. Give me news about that. I'm happy to see that you are really interested in the project. -- Antoine Lefebvre ant...@po... |