Include files not included?
System dynamics program with additional features for economics
Brought to you by:
hpcoder,
profstevekeen
Sorry if this is a dufus of a quuestion but,
I am using Dev-C++ to compile the source files from the latest commit on minsky but cant seem to find some files:
xgl/cairorenderer.h, xgl/xgl.h, arrays.h, cairo_base.h, ctype.h, ecolab_epilogue.h
I'm new to C++, more of a php bloke.
Anyone know what I'm doing wrong?
Paul
That's alright. You are missing some software dependencies, in this
case MegaBitz (available from http://megabitz.sf.net) and EcoLab
(available from http://ecolab.sf.net). You're also missing ctype.h,
which is a bit weird, as ctype.h is a standard C header (see page 248
of Kernighan and Ritchie) and should come with the compiler.
If you have already installed these packages, then its likely your
search paths are not set up correctly. I'm not familiar with Dev-C++ -
does it call out to the Makefile to build the software? If Megabitz
and EcoLab are installed in their default locations, then the supplied
Minsky Makefile will find them.
If, on the other hand, Dev-C++ doesn't use the Makefile, then you will
need to study the Minsky Makefile to work out how to configure the
Dev-C++ build environment. That will be painful, unfortunately, but if
you're persistent, it should be possible. I'm happy to answer any
specific questions if you get stuck.
Cheers
On Thu, Mar 14, 2013 at 10:27:21PM +0000, Paul Connolly wrote:
--
Prof Russell Standish Phone 0425 253119 (mobile)
Principal, High Performance Coders
Visiting Professor of Mathematics hpcoder@hpcoders.com.au
University of New South Wales http://www.hpcoders.com.au
Thanks for the guidance.
I have moved over to netbeans and that is going better.
ctype.h was mistakenly included in the question and is not actually missing.
I have installed Megablitz and Ecolab. Now I only have three sets of errors left (which I am actually pleased about)
First i have changed paths in the code to:
ifeq ($(shell ls $(HOME)/ecolab/include/ecolab.h),$(HOME)/ecolab/include/ecolab.h)
ECOLAB_HOME=$(HOME)/ecolab
else
ECOLAB_HOME=/ecolab
endif
for..
include $(ECOLAB_HOME)/include/Makefile
..in the hope that I can get rid of this error:
ls: /ecolab/include/ecolab.h: No such file or directory
Makefile:36: /ecolab/include/Makefile: No such file or directory
\ecolab\include\Makefile is definately there.
Secondly,
with this call in the code:
include $(MODELS:=.d) $(OTHER_OBJS:.o=.d)
It seems to be looking for these which I can't find anywhere in the directories:
Makefile:95: minsky.d: No such file or directory
Makefile:95: tclmain.d: No such file or directory
Makefile:95: godley.d: No such file or directory
Makefile:95: portManager.d: No such file or directory
Makefile:95: wire.d: No such file or directory
Makefile:95: variable.d: No such file or directory
Makefile:95: variableManager.d: No such file or directory
Makefile:95: variableValue.d: No such file or directory
Makefile:95: operation.d: No such file or directory
Makefile:95: evalOp.d: No such file or directory
Makefile:95: plotWidget.d: No such file or directory
Makefile:95: cairoItems.d: No such file or directory
Makefile:95: XGLItem.d: No such file or directory
Makefile:95: godleyIcon.d: No such file or directory
Makefile:95: groupIcon.d: No such file or directory
Makefile:95: equations.d: No such file or directory
Makefile:95: schema0.d: No such file or directory
Makefile:95: schema1.d: No such file or directory
Makefile:95: inGroupTest.d: No such file or directory
And finally in the code:
include schema/schema0.d
produces this error, but I have that file in the schema directory, don't know why its not picking up the path.
Makefile:97: schema/schema0.d: No such file or directory
If there's any obvious mistakes I am making on any of the three above, would be grateful for a steer.
Thanks
Paul
On Fri, Mar 15, 2013 at 09:57:45PM +0000, Paul Connolly wrote:
This "error" is meaningless. It is caused by the code trying to figure
out where EcoLab is installed (ie the value of ECOLAB_HOME).
Again this is normal. Makefile generates these files if they're not
found. If you can think of a way of silencing these messages, it would
be good.
Again, the Makefile should create this file.
BTW - what version of make are you using? These makefiles assume you
are using GNU make - which is what you get if you're using MinGW.
--
Prof Russell Standish Phone 0425 253119 (mobile)
Principal, High Performance Coders
Visiting Professor of Mathematics hpcoder@hpcoders.com.au
University of New South Wales http://www.hpcoders.com.au
I'm using the latest MinGW as compiler and Mysis 1.0 for the make.exe (the exe file is shown as last modified 16/03/2004)
Did you mean Msys? Msys should be fine - that has GNU Make in it.
On Sat, Mar 16, 2013 at 06:44:43AM +0000, Paul Connolly wrote:
--
Prof Russell Standish Phone 0425 253119 (mobile)
Principal, High Performance Coders
Visiting Professor of Mathematics hpcoder@hpcoders.com.au
University of New South Wales http://www.hpcoders.com.au
Yes, but not using it any more because I have moved on IDEs again to code::blocks, it seems better than netbeans but doesn't generally use Makefiles.
I prefer this IDE over the others, so now it is just a case of how whether I have time write out the info from the makefiles into the ".cbp" files that cod::blocks uses.
Do you use a windows IDE or linux?
EDIT OUT ACCIDENTAL REPEAT POST
Last edit: Paul Connolly 2013-03-16
Normally, I use GNU emacs on Linux for development. I have used Visual
Studio on some projects - the debugger is very good, compilers
adequate, but I don't like the editor, and the build system is a crock
of s**t. I have also used Eclipse - but mainly for Java projects,
where it works really well. I haven't tried using it for C++ projects, though.
Choice of development environment is a very personal thing. Obviously,
you take a bit of a hit when you follow a path different from your
project team members, but it can be worth the effort to set things up
for your favourite environment, as the performance boost from working
with the familiar outweighs the extra overhead of maintaining a
personal build system.
Cheers
On Sat, Mar 16, 2013 at 10:09:00PM +0000, Paul Connolly wrote:
--
Prof Russell Standish Phone 0425 253119 (mobile)
Principal, High Performance Coders
Visiting Professor of Mathematics hpcoder@hpcoders.com.au
University of New South Wales http://www.hpcoders.com.au