I see makefiles but they don't seem to work.
make -f clipsjni/library-src/makefile.linux
make: *** No rule to make target `agenda.c', needed by `agenda.o'. Stop.
How do you build clips on linux?
something went wrong with the formatting, but the question is clear i think
You need to execute the makefile from the makefile directory. That makefile, however, is for creating a shared library for the java native interface. You'd need to modify the makefile to include the main.c file.
You can usually compile CLIPS on any system that supports a gcc compiler by grabbing the core source code from http://clipsrules.svn.sourceforge.net/viewvc/clipsrules/core/ (there's an option for downloading a gnu tarball at the bottom) and using the command "gcc -DGENERIC=1 -o clips *.c -lm". For Linux, you can also try "gcc -DLINUX=1 -o clips *.c -lm"
ssouffri@linux-z3ia:~/workspace/clipsrules/core> gcc -DLINUX=1 -o clips -lm *.c
edbasic.c: In function ‘wrapword’:
edbasic.c:423: warning: cast from pointer to integer of different size
edbasic.c: In function ‘ttopen’:
edbasic.c:1549: error: ‘TIOCGETP’ undeclared (first use in this function)
edbasic.c:1549: error: (Each undeclared identifier is reported only once
edbasic.c:1549: error: for each function it appears in.)
edbasic.c:1553: error: invalid use of undefined type ‘struct sgttyb’
edbasic.c:1553: error: ‘RAW’ undeclared (first use in this function)
edbasic.c:1554: error: invalid use of undefined type ‘struct sgttyb’
edbasic.c:1554: error: ‘ECHO’ undeclared (first use in this function)
edbasic.c:1554: error: ‘CRMOD’ undeclared (first use in this function)
edbasic.c:1556: error: ‘TIOCSETP’ undeclared (first use in this function)
edbasic.c: In function ‘ttclose’:
edbasic.c:1582: error: ‘TIOCSETP’ undeclared (first use in this function)
have the included linux-headers changed som much over the years?
The LINUX options were provided by a 3rd party and are untested. You can try either disabling the editor (-DEMACS_EDITOR=0) as this is the code least likely to port or compile using -DGENERIC=1.
Thx, it runs!
Log in to post a comment.