Re: [opsmodelling-general] Re: Joining Opsmodelling team
Status: Inactive
Brought to you by:
lyakhov
From: Daryl L. <dl...@al...> - 2005-10-25 15:01:19
|
On Tue, 2005-10-25 at 07:00, Fedor Lyakhov wrote: > Hi > > > I have compiled gui in Linux -- my gcc has found just one error in it: > line 54: > > static const GtkActionEntry entries[] = { > > After deleting 'const' everything was built nicely. > First version doesn't work, but the last one works almost perfectly. > I don't know GTK well, but I can add a handler for delete_event so it will be quitting normally. That's a curious thing. The "const" isn't important; it's just good coding practice to mark everything "const" that you don't intend to change. I'd be interested to know what version of gcc you're using. I'm using 3.4.4 on Cygwin. I'm upgrading my Linux computer later today; perhaps I will get the same result as you. > > I cannot compile it in windows, bacuse my cygwin is too old I think. > > > About making logics: I want binaries go to $(BASE)bin/, libraries -- lib etc. > Shared includes are in $(BASE)include/ ... > I don't know why my makefiles don't work at your comp, please describe it. First, the directories that I have (skipping documentation, etc.): +--include (contains some *.h files) +--src +--battle +--gauss +--grapher +--ode1 +--qlo +--tst +--tst-lb Note that there is no "lib" directory. 1. When I enter the battle directory and type "make" at the command prompt, I get an error finding the "../../lib" directory. If I "mkdir ../../lib" and re-run it, it's okay. I think the best solution is to add a lib folder to CVS so it's created when someone updates from CVS. It may be necessary to have a readme.txt file in the folder just to make sure it's created for the user. I'm not sure how CVS treats empty folders. This same error occurs in any of the folders that have an "ar" command: battle, grapher, ode1, and tst. 2. When I enter the gauss1 directory and type "make" I get an error trying to include "glut.h". I'm not sure how your computer is set up, but all my OpenGL files have "#include <GL/glut.h>". So there seems to be an include path discrepancy. My glut.h file is at /usr/include/GL/glut.h Daryl > > ----- Original Message ----- > From: "Daryl Lee" <dl...@al...> > To: "Fedor Lyakhov" <ly...@li...> > Subject: Re: Joining Opsmodelling team > Date: Mon, 24 Oct 2005 16:35:03 -0600 > > > > > I didn't think about compiling with MSVC--I like to not use that on open > > source projects, since I use it all day at work! > > Neither do I! But some people from the team use it (maybe). > > > I've downloaded a > > class "ParamContainer" at http://www.biorainbow.com/paramcontainer that > > should work nicely. I'll replace getopt_long with it, add the copyright > > stuff, post to CVS, and announce it on the forum. > > Well. > What about splitting main.cpp into main.cpp, gui.hpp, gui.cpp, and even maybe cui.cpp(&.hpp)? > I've tried to do so, but have got linking errors... > > > Best regards, > Fedor -- Daryl Lee Open the Present, it's a Gift. |