This is what I do, to install it under my own /opt :
make PREFIX=/opt/cppcheck-1.68 CFGDIR=/opt/cppcheck-1.68/cfg HAVE_RULES=yes
make PREFIX=/opt/cppcheck-1.68 CFGDIR=/opt/cppcheck-1.68/cfg HAVE_RULES=yes install
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This command provides the following error message,
make: Fatal error in reader: Makefile, line 5: Unexpected end of line seen
When I use gmake or g++, so many errors are displayed as
"lib/tokenize.h:29: map.h: No such file or directory
lib/tokenize.h:30: list.h: No such file or directory
lib/tokenize.h:31: ctime.h: No such file or directory
.
.
."
Anyone please assist, what is the actual issue and how can I instlal cppcheckon SunOS..?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I'm building/installing on Linux with make. How do I use DESTDIR/PREFIX?
PREFIX does not work like ./configure --prefix, since the .cfg files are not correctly installed:
install: ‘cfg/avr.cfg’ and ‘cfg/avr.cfg’ are the same file
Thanks.
Last edit: João M. S. Silva 2015-01-03
This is what I do, to install it under my own /opt :
make PREFIX=/opt/cppcheck-1.68 CFGDIR=/opt/cppcheck-1.68/cfg HAVE_RULES=yes
make PREFIX=/opt/cppcheck-1.68 CFGDIR=/opt/cppcheck-1.68/cfg HAVE_RULES=yes install
I think that worked. I don't know exactly why but I had the idea that CFGDIR was to indicate source .cfg files (not destination ones).
Thanks.
Last edit: João M. S. Silva 2015-01-05
My machine has SunOS 5.10 - Generic_142900-15 sun4u sparc SUNW,SPARC-Enterprise
"make PREFIX=/nfs/home02/sxxj1/CCache/cppcheck-1.68 CFGDIR=/nfs/home02/sxxj1/CCache/cppcheck-1.68/cfg HAVE_RULES=yes"
This command provides the following error message,
make: Fatal error in reader: Makefile, line 5: Unexpected end of line seen
When I use gmake or g++, so many errors are displayed as
"lib/tokenize.h:29: map.h: No such file or directory
lib/tokenize.h:30: list.h: No such file or directory
lib/tokenize.h:31: ctime.h: No such file or directory
.
.
."
Anyone please assist, what is the actual issue and how can I instlal cppcheckon SunOS..?