Discussion:
[Gmsh] C++ IDE for compiling Gmsh under Windows XP
M***@aol.com
2008-06-28 08:26:32 UTC
Permalink
Hi,

I would like to make some additional programming on my Gmsh installation,
especially for defining constraints and materials. I have Windows XP SP2
running.

Now IŽm looking for an C++ IDE. IŽm using Bloodshed Dev-C++ V 4.9.9.2, but
IŽm not sure, that this is the best choice. It seems to be a lot of work to
create a new project in Dev-C++ for Gmsh.

Does anybody have some experience with Dev-C++ or another C++-IDE?



Greetings,

Michael Glockenmeier

----------------------------------------------
Fa. Michael Glockenmeier
Dipl.-Ing. Michael Glockenmeier
Hauptstr. 55 c
D-86926 Greifenberg
Germany

Tel ++49 (0) 8192/933 185
Fax ++49 (0) 8192/933 186
Email ***@aol.com_ (mailto:***@aol.com)
Web _www.femcfd.com_ (http://www.femcfd.com)

---------------------------------------------
Prakash Manandhar
2008-06-28 08:37:22 UTC
Permalink
I used to do Bloodshed projects, but soon they had too many things that
needed to be adjusted from the user interface based on which version of IDE,
compiler set I used...

For example, the system sometimes refused to link to the library files if
the path had spaces or the default project format put linking commands in
the middle of the command line while the MinGW toolchain only worked with
linking commands at the end... and I had to override all the convenience of
the user interface provided and put in command line options for the compiler
in strange ways...

So, these days even when I use Dev-C++, I resort to Makefile style projects
and use command line make with MinGW....

Prakash.

p-manandhar.info
Post by M***@aol.com
Hi,
I would like to make some additional programming on my Gmsh installation,
especially for defining constraints and materials. I have Windows XP SP2
running.
Now IŽm looking for an C++ IDE. IŽm using Bloodshed Dev-C++ V 4.9.9.2, but
IŽm not sure, that this is the best choice. It seems to be a lot of work to
create a new project in Dev-C++ for Gmsh.
Does anybody have some experience with Dev-C++ or another C++-IDE?
Greetings,
Michael Glockenmeier
----------------------------------------------
Fa. Michael Glockenmeier
Dipl.-Ing. Michael Glockenmeier
Hauptstr. 55 c
D-86926 Greifenberg
Germany
Tel ++49 (0) 8192/933 185
Fax ++49 (0) 8192/933 186
Web www.femcfd.com
---------------------------------------------
_______________________________________________
gmsh mailing list
http://www.geuz.org/mailman/listinfo/gmsh
M***@aol.com
2008-06-28 08:46:42 UTC
Permalink
So, these days even when I use Dev-C++, I resort to Makefile style projects
and use command line make with MinGW....

Prakash.

Hi Prakash,


Thanks for your fast reply. How do you do the debugging when working with
command line make?




Greetings,

Michael

----------------------------------------------
Fa. Michael Glockenmeier
Dipl.-Ing. Michael Glockenmeier
Hauptstr. 55 c
D-86926 Greifenberg
Germany

Tel ++49 (0) 8192/933 185
Fax ++49 (0) 8192/933 186
Email ***@aol.com_ (mailto:***@aol.com)
Web _www.femcfd.com_ (http://www.femcfd.com)
---------------------------------------------
Prakash Manandhar
2008-06-28 09:10:35 UTC
Permalink
I am also planning to compile gmsh on my own in windows but perhaps after
this week only... Prakash.
I have attached a test project and I am able to debug without problems.
Notice the lines in the .dev project file
UseCustomMakefile=1
CustomMakefile=Makefile
--------
I used some libraries too for demonstration. I use the boost and QT
libraries a lot.
--------
# Test Makefile
# Prakash Manandhar June 16 2008
CC = g++
CFLAGS = -I$(BOOSTLIBDIR) -g3
LDFLAGS = -L$(BOOSTLIBDIR)\stage\lib -lboost_regex-mgw34-d-1_34_1
BOOSTLIBDIR = C:\boost_1_34_1
SRCS = main.cpp
OBJS = main.o
all: TestProject
$(OBJS): $(SRCS)
$(CC) $(CFLAGS) -c $*.cpp
TestProject: $(OBJS)
--------
HTH, Prakash.
p-manandhar.info
Post by Prakash Manandhar
So, these days even when I use Dev-C++, I resort to Makefile style
projects and use command line make with MinGW....
Prakash.
Hi Prakash,
Thanks for your fast reply. How do you do the debugging when working with
command line make?
Greetings,
Michael
----------------------------------------------
Fa. Michael Glockenmeier
Dipl.-Ing. Michael Glockenmeier
Hauptstr. 55 c
D-86926 Greifenberg
Germany
Tel ++49 (0) 8192/933 185
Fax ++49 (0) 8192/933 186
Web www.femcfd.com
---------------------------------------------
_______________________________________________
gmsh mailing list
http://www.geuz.org/mailman/listinfo/gmsh
Prakash Manandhar
2008-06-28 09:09:20 UTC
Permalink
I have attached a test project and I am able to debug without problems.

Notice the lines in the .dev project file
UseCustomMakefile=1
CustomMakefile=Makefile
--------
I used some libraries too for demonstration. I use the boost and QT
libraries a lot.
--------

Makefile is simple (notice the g3 CFLAGS for enabling debuggin):

# Test Makefile
# Prakash Manandhar June 16 2008

CC = g++
CFLAGS = -I$(BOOSTLIBDIR) -g3
LDFLAGS = -L$(BOOSTLIBDIR)\stage\lib -lboost_regex-mgw34-d-1_34_1
BOOSTLIBDIR = C:\boost_1_34_1
SRCS = main.cpp
OBJS = main.o
all: TestProject

$(OBJS): $(SRCS)
$(CC) $(CFLAGS) -c $*.cpp

TestProject: $(OBJS)
$(CC) -o $@ $(OBJS) $(LDFLAGS)

--------

HTH, Prakash.
p-manandhar.info
Post by Prakash Manandhar
So, these days even when I use Dev-C++, I resort to Makefile style
projects and use command line make with MinGW....
Prakash.
Hi Prakash,
Thanks for your fast reply. How do you do the debugging when working with
command line make?
Greetings,
Michael
----------------------------------------------
Fa. Michael Glockenmeier
Dipl.-Ing. Michael Glockenmeier
Hauptstr. 55 c
D-86926 Greifenberg
Germany
Tel ++49 (0) 8192/933 185
Fax ++49 (0) 8192/933 186
Web www.femcfd.com
---------------------------------------------
_______________________________________________
gmsh mailing list
http://www.geuz.org/mailman/listinfo/gmsh
M***@aol.com
2008-06-28 12:59:05 UTC
Permalink
Hi Prakash,

I have spend a bit of time to think about your answer and made some tests.
You need to know, that I am a C++ beginner.

I have tried your example and it works after commenting out the lines for
boost, because I havenŽt installed it.

Next I have copied the file TestProject.dev to the root directory of my Gmsh
sources. In this file IŽve changed the path to main.cpp:

...
[Unit1]
FileName=fltk/main.cpp
...

I have also changed the name of variables.in to variables, so that this file
will be found now when makefile runs.

Then I opened this project file in Dev C++ and started compilation. This is
the compiler output:

---------------------------------------------
Compiler: Default compiler
Führt make... aus
make.exe -f "Makefile" all
"********************************************************************"

"Please configure Gmsh by running ./configure"

"For help, type ./configure --help"

"********************************************************************"

make.exe: *** [variables] Error 1

Ausführung beendet
---------------------------------------------

WhatŽs wrong?

I did not run ./configure. How can I do this under Windows?



Greetings,

Michael Glockenmeier

----------------------------------------------
Fa. Michael Glockenmeier
Dipl.-Ing. Michael Glockenmeier
Hauptstr. 55 c
D-86926 Greifenberg
Germany

Tel ++49 (0) 8192/933 185
Fax ++49 (0) 8192/933 186
Email ***@aol.com_ (mailto:***@aol.com)

Visit my site: _www.femcfd.com_ (http://www.femcfd.com/)

---------------------------------------------

Loading...