Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
2e34ef4a
Commit
2e34ef4a
authored
24 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
_NODLL flag
parent
72d36478
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Fltk/GUI.cpp
+2
-1
2 additions, 1 deletion
Fltk/GUI.cpp
Fltk/Main.cpp
+6
-1
6 additions, 1 deletion
Fltk/Main.cpp
Makefile
+87
-67
87 additions, 67 deletions
Makefile
Plugin/Plugin.cpp
+4
-1
4 additions, 1 deletion
Plugin/Plugin.cpp
with
99 additions
and
70 deletions
Fltk/GUI.cpp
+
2
−
1
View file @
2e34ef4a
// $Id: GUI.cpp,v 1.6
0
2001-04-
08 20:36:49
geuzaine Exp $
// $Id: GUI.cpp,v 1.6
1
2001-04-
17 11:22:00
geuzaine Exp $
// To make the interface as visually consistent as possible, please:
// To make the interface as visually consistent as possible, please:
// - use the BH, BW, WB, IW values for button heights/widths, window borders, etc.
// - use the BH, BW, WB, IW values for button heights/widths, window borders, etc.
...
@@ -1565,6 +1565,7 @@ void GUI::set_statistics(){
...
@@ -1565,6 +1565,7 @@ void GUI::set_statistics(){
A plugin has n options, we also show infos about
A plugin has n options, we also show infos about
the plugin on the top of the window
the plugin on the top of the window
*/
*/
PluginDialogBox
*
GUI
::
create_plugin_window
(
GMSH_Plugin
*
p
,
int
iView
)
PluginDialogBox
*
GUI
::
create_plugin_window
(
GMSH_Plugin
*
p
,
int
iView
)
{
{
char
buffer
[
1024
],
namep
[
1024
],
copyright
[
256
],
author
[
256
],
help
[
1024
];
char
buffer
[
1024
],
namep
[
1024
],
copyright
[
256
],
author
[
256
],
help
[
1024
];
...
...
This diff is collapsed.
Click to expand it.
Fltk/Main.cpp
+
6
−
1
View file @
2e34ef4a
// $Id: Main.cpp,v 1.2
2
2001-04-
08 20:36:49
geuzaine Exp $
// $Id: Main.cpp,v 1.2
3
2001-04-
17 11:22:00
geuzaine Exp $
#include
<signal.h>
#include
<signal.h>
#ifndef _NOPLUGIN
#include
"PluginManager.h"
#include
"PluginManager.h"
#endif
#include
"Gmsh.h"
#include
"Gmsh.h"
#include
"GmshUI.h"
#include
"GmshUI.h"
#include
"GmshVersion.h"
#include
"GmshVersion.h"
...
@@ -46,9 +49,11 @@ int main(int argc, char *argv[]){
...
@@ -46,9 +49,11 @@ int main(int argc, char *argv[]){
if
(
CTX
.
verbosity
&&
CTX
.
terminal
)
if
(
CTX
.
verbosity
&&
CTX
.
terminal
)
fprintf
(
stderr
,
"%s, Version %.2f
\n
"
,
gmsh_progname
,
GMSH_VERSION
);
fprintf
(
stderr
,
"%s, Version %.2f
\n
"
,
gmsh_progname
,
GMSH_VERSION
);
#ifndef _NOPLUGIN
// Register Default Plugins (in test ...)
// Register Default Plugins (in test ...)
if
(
CTX
.
default_plugins
)
if
(
CTX
.
default_plugins
)
GMSH_PluginManager
::
Instance
()
->
RegisterDefaultPlugins
();
GMSH_PluginManager
::
Instance
()
->
RegisterDefaultPlugins
();
#endif
// Initialize the static Mesh
// Initialize the static Mesh
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
87
−
67
View file @
2e34ef4a
# $Id: Makefile,v 1.8
8
2001-04-17
09:30:41
geuzaine Exp $
# $Id: Makefile,v 1.8
9
2001-04-17
11:22:00
geuzaine Exp $
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
# Makefile for Gmsh
# Makefile for Gmsh
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
GMSH_RELEASE
=
1.17
GMSH_RELEASE
=
1.17
MAKE
=
make
MAKE
=
make
CC
=
c++
CC
=
c++
FLAGS
=
-g
-Wall
FLAGS
=
-g
-Wall
RM
=
rm
RM
=
rm
RMFLAGS
=
-f
RMFLAGS
=
-f
OPENGL_INC
=
-I
/usr/include/X11/GLw
\
# ----------------------------------------------------------------------
-I
$(
HOME
)
/SOURCES/Mesa-3.1/include
\
# Includes
-I
$(
HOME
)
/SOURCES/Mesa-3.1/include/GL
# ----------------------------------------------------------------------
MOTIF_INC
=
-I
/usr/X11R6/LessTif/Motif1.2/include
FLTK_INC
=
-I
$(
HOME
)
/SOURCES/fltk
OPENGL_INC
=
-I
/usr/include/X11/GLw
\
-I
$(
HOME
)
/SOURCES/Mesa-3.1/include
\
-I
$(
HOME
)
/SOURCES/Mesa-3.1/include/GL
MOTIF_INC
=
-I
/usr/X11R6/LessTif/Motif1.2/include
FLTK_INC
=
-I
$(
HOME
)
/SOURCES/fltk
FLTK_INC_SCOREC
=
-I
/users/develop/develop/visual/fltk/1.0/include
FLTK_INC_SCOREC
=
-I
/users/develop/develop/visual/fltk/1.0/include
FLTK_INC_LAPTOPJF
=
-I
../../fltk-1.0.9
FLTK_INC_LAPTOPJF
=
-I
../../fltk-1.0.9
FLTK_INC_GERTHA_BURO
=
-I
../../fltk
FLTK_INC_GERTHA_BURO
=
-I
../../fltk
OPENGL_LIB
=
-lGLU
-lGL
# ----------------------------------------------------------------------
OPENGL_MOTIF_LIB
=
-lGLw
# 3rd party libraries
MESA_LIB
=
-L
$(
HOME
)
/SOURCES/Mesa-3.1/lib
-lGLU
-lGL
# ----------------------------------------------------------------------
MESA_MOTIF_LIB
=
-L
$(
HOME
)
/SOURCES/Mesa-3.1/lib
-lGLw
MESA_STATIC_LIB
=
$(
HOME
)
/SOURCES/Mesa-static/lib/libGLU.a
\
OPENGL_LIB
=
-lGLU
-lGL
$(
HOME
)
/SOURCES/Mesa-static/lib/libGL.a
OPENGL_MOTIF_LIB
=
-lGLw
MESA_MOTIF_STATIC_LIB
=
$(
HOME
)
/SOURCES/Mesa-static/lib/libGLw.a
MESA_LIB
=
-L
$(
HOME
)
/SOURCES/Mesa-3.1/lib
-lGLU
-lGL
# XMOTIF_LIB = /usr/local/lib/libXm.so.2 -L/usr/X11R6/lib -lXt -lX11 -lXext
MESA_MOTIF_LIB
=
-L
$(
HOME
)
/SOURCES/Mesa-3.1/lib
-lGLw
XMOTIF_LIB
=
-L
/usr/local/lib
-L
/usr/X11R6/LessTif/Motif1.2/lib
-lXm
\
MESA_STATIC_LIB
=
$(
HOME
)
/SOURCES/Mesa-static/lib/libGLU.a
\
-L
/usr/X11R6/lib
-lXt
-lX11
-lXext
$(
HOME
)
/SOURCES/Mesa-static/lib/libGL.a
FLTK_LIB
=
-L
$(
HOME
)
/SOURCES/fltk/lib
-lfltk
\
MESA_MOTIF_STATIC_LIB
=
$(
HOME
)
/SOURCES/Mesa-static/lib/libGLw.a
-L
/usr/X11R6/lib
-lX11
# XMOTIF_LIB = /usr/local/lib/libXm.so.2 -L/usr/X11R6/lib -lXt -lX11 -lXext
XMOTIF_LIB
=
-L
/usr/local/lib
-L
/usr/X11R6/LessTif/Motif1.2/lib
-lXm
\
-L
/usr/X11R6/lib
-lXt
-lX11
-lXext
FLTK_LIB
=
-L
$(
HOME
)
/SOURCES/fltk/lib
-lfltk
\
-L
/usr/X11R6/lib
-lX11
FLTK_LIB_SOLARIS_SCOREC
=
/users/develop/develop/visual/fltk/1.0/lib/sun4_5/libfltk-gcc.a
\
FLTK_LIB_SOLARIS_SCOREC
=
/users/develop/develop/visual/fltk/1.0/lib/sun4_5/libfltk-gcc.a
\
-L
/usr/X11R6/lib
-lX11
-L
/usr/X11R6/lib
-lX11
FLTK_LIB_LINUX_SCOREC
=
/users/develop/develop/visual/fltk/1.0/lib/x86_linux/libfltk.a
\
FLTK_LIB_LINUX_SCOREC
=
/users/develop/develop/visual/fltk/1.0/lib/x86_linux/libfltk.a
\
-L
/usr/X11R6/lib
-lX11
-L
/usr/X11R6/lib
-lX11
THREAD_LIB
=
-L
/usr/lib
-lpthread
THREAD_LIB
=
-L
/usr/lib
-lpthread
GMSH_DIR
=
Adapt Common DataStr Geo Graphics Mesh Parser Motif Fltk Plugin
\
# ----------------------------------------------------------------------
jpeg utils
# Gmsh definitions
GMSH_XMOTIF_DIR
=
Adapt Common DataStr Geo Graphics Mesh Parser Motif jpeg
# ----------------------------------------------------------------------
GMSH_FLTK_DIR
=
Adapt Common DataStr Geo Graphics Mesh Parser Fltk jpeg Plugin
GMSH_BOX_DIR
=
Adapt Box Common DataStr Geo Mesh Parser
GMSH_DIR
=
Adapt Common DataStr Geo Graphics Mesh Parser
\
GMSH_BIN_DIR
=
bin
Motif Fltk Plugin jpeg utils
GMSH_LIB_DIR
=
lib
GMSH_XMOTIF_DIR
=
Adapt Common DataStr Geo Graphics Mesh Parser Motif jpeg
GMSH_DOC_DIR
=
doc
GMSH_FLTK_DIR
=
Adapt Common DataStr Geo Graphics Mesh Parser Fltk jpeg Plugin
GMSH_DEMO_DIR
=
demos
GMSH_BOX_DIR
=
Adapt Box Common DataStr Geo Mesh Parser
GMSH_TUTOR_DIR
=
tutorial
GMSH_BIN_DIR
=
bin
GMSH_ARCHIVE_DIR
=
archives
GMSH_LIB_DIR
=
lib
GMSH_XMOTIF_LIB
=
-L
$(
GMSH_LIB_DIR
)
-lMotif
-lGraphics
-lParser
-lMesh
-lGeo
\
GMSH_DOC_DIR
=
doc
-lAdapt
-lCommon
-lDataStr
-lJpeg
GMSH_DEMO_DIR
=
demos
GMSH_FLTK_LIB
=
-L
$(
GMSH_LIB_DIR
)
-lFltk
-lParser
-lGraphics
-lMesh
-lGeo
\
GMSH_TUTOR_DIR
=
tutorial
-lAdapt
-lCommon
-lDataStr
-lJpeg
-lPlugin
GMSH_ARCHIVE_DIR
=
archives
GMSH_BOX_LIB
=
-L
$(
GMSH_LIB_DIR
)
-lBox
-lParser
-lMesh
-lGeo
\
-lAdapt
-lCommon
-lDataStr
GMSH_ARCHIVE
=
$(
GMSH_ARCHIVE_DIR
)
/gmsh-
`
date
"+%Y.%m.%d"
`
GMSH_XMOTIF_LIB
=
-L
$(
GMSH_LIB_DIR
)
-lMotif
-lGraphics
-lParser
-lMesh
-lGeo
\
GMSH_SRCRPM
=
gmsh-
$(
GMSH_RELEASE
)
-lAdapt
-lCommon
-lDataStr
-lJpeg
GMSH_SOURCES
=
`
find
.
\(
!
-name
"*.tar*"
-a
!
-name
"*.tgz"
\
GMSH_FLTK_LIB
=
-L
$(
GMSH_LIB_DIR
)
-lFltk
-lParser
-lGraphics
-lMesh
-lGeo
\
-a
!
-name
"*.o"
-a
!
-name
"lib*.a"
\
-lAdapt
-lCommon
-lDataStr
-lJpeg
-lPlugin
-a
!
-name
"*.msh"
-a
!
-name
"*.bak"
\
GMSH_BOX_LIB
=
-L
$(
GMSH_LIB_DIR
)
-lBox
-lParser
-lMesh
-lGeo
\
-a
!
-name
"gmsh"
-a
!
-name
"gmsh-*"
\
-lAdapt
-lCommon
-lDataStr
-a
!
-type
d
\)
`
GMSH_ARCHIVE
=
$(
GMSH_ARCHIVE_DIR
)
/gmsh-
`
date
"+%Y.%m.%d"
`
GMSH_UNAME
=
`
uname
`
GMSH_SRCRPM
=
gmsh-
$(
GMSH_RELEASE
)
GMSH_SOURCES
=
`
find
.
\(
!
-name
"*.tar*"
-a
!
-name
"*.tgz"
\
-a
!
-name
"*.o"
-a
!
-name
"lib*.a"
\
-a
!
-name
"*.msh"
-a
!
-name
"*.bak"
\
-a
!
-name
"gmsh"
-a
!
-name
"gmsh-*"
\
-a
!
-type
d
\)
`
GMSH_UNAME
=
`
uname
`
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
# Rules for developpers
# Rules for developpers
...
@@ -365,22 +379,22 @@ fltk_compile_little_endian:
...
@@ -365,22 +379,22 @@ fltk_compile_little_endian:
"GUI_INCLUDE=
$(
FLTK_INC
)
"
\
"GUI_INCLUDE=
$(
FLTK_INC
)
"
\
)
;
done
)
;
done
fltk_compile_
big
_endian
:
fltk_compile_
little
_endian
_2952
:
@
for
i
in
$(
GMSH_FLTK_DIR
);
do
(
cd
$$
i
&&
$(
MAKE
)
\
@
for
i
in
$(
GMSH_FLTK_DIR
);
do
(
cd
$$
i
&&
$(
MAKE
)
\
"CC=
$(
CC
)
"
\
"CC=
$(
HOME
)
/gcc-2.95.2/bin/g++
"
\
"C_FLAGS=-O3"
\
"C_FLAGS=-O3"
\
"OS_FLAGS="
\
"OS_FLAGS=
-D_LITTLE_ENDIAN
"
\
"VERSION_FLAGS=-D_FLTK"
\
"VERSION_FLAGS=-D_FLTK"
\
"GL_INCLUDE=
$(
OPENGL_INC
)
"
\
"GL_INCLUDE=
$(
OPENGL_INC
)
"
\
"GUI_INCLUDE=
$(
FLTK_INC
)
"
\
"GUI_INCLUDE=
$(
FLTK_INC
)
"
\
)
;
done
)
;
done
fltk_compile_
little
_endian
_2952
:
fltk_compile_
big
_endian
:
@
for
i
in
$(
GMSH_FLTK_DIR
);
do
(
cd
$$
i
&&
$(
MAKE
)
\
@
for
i
in
$(
GMSH_FLTK_DIR
);
do
(
cd
$$
i
&&
$(
MAKE
)
\
"CC=
$(
HOME
)
/gcc-2.95.2/bin/g++
"
\
"CC=
$(
CC
)
"
\
"C_FLAGS=-O3"
\
"C_FLAGS=-O3"
\
"OS_FLAGS=
-D_LITTLE_ENDIAN
"
\
"OS_FLAGS="
\
"VERSION_FLAGS=-D_FLTK"
\
"VERSION_FLAGS=-D_FLTK
-D_NODLL
"
\
"GL_INCLUDE=
$(
OPENGL_INC
)
"
\
"GL_INCLUDE=
$(
OPENGL_INC
)
"
\
"GUI_INCLUDE=
$(
FLTK_INC
)
"
\
"GUI_INCLUDE=
$(
FLTK_INC
)
"
\
)
;
done
)
;
done
...
@@ -419,27 +433,33 @@ fltk_compile_sgi:
...
@@ -419,27 +433,33 @@ fltk_compile_sgi:
fltk_link_solaris_scorec
:
fltk_link_solaris_scorec
:
$(
CC
)
-o
$(
GMSH_BIN_DIR
)
/gmsh-sun
$(
GMSH_FLTK_LIB
)
$(
OPENGL_LIB
)
\
$(
CC
)
-o
$(
GMSH_BIN_DIR
)
/gmsh-sun
$(
GMSH_FLTK_LIB
)
$(
OPENGL_LIB
)
\
$(
FLTK_LIB_SOLARIS_SCOREC
)
-lm
-ldl
$(
FLTK_LIB_SOLARIS_SCOREC
)
-lm
-ldl
fltk_link_linux_scorec
:
fltk_link_linux_scorec
:
$(
CC
)
-o
$(
GMSH_BIN_DIR
)
/gmsh-linux
$(
GMSH_FLTK_LIB
)
$(
OPENGL_LIB
)
\
$(
CC
)
-o
$(
GMSH_BIN_DIR
)
/gmsh-linux
$(
GMSH_FLTK_LIB
)
$(
OPENGL_LIB
)
\
$(
FLTK_LIB_LINUX_SCOREC
)
-lm
-ldl
$(
FLTK_LIB_LINUX_SCOREC
)
-lm
-ldl
fltk_link_mesa
:
fltk_link_mesa
:
$(
CC
)
-o
$(
GMSH_BIN_DIR
)
/gmsh
$(
GMSH_FLTK_LIB
)
$(
MESA_LIB
)
\
$(
CC
)
-o
$(
GMSH_BIN_DIR
)
/gmsh
$(
GMSH_FLTK_LIB
)
$(
MESA_LIB
)
\
$(
FLTK_LIB
)
-lm
-ldl
$(
FLTK_LIB
)
-lm
-ldl
fltk_link_mesa_2952
:
$(
HOME
)
/gcc-2.95.2/bin/g++
-o
$(
GMSH_BIN_DIR
)
/gmsh
$(
GMSH_FLTK_LIB
)
$(
MESA_LIB
)
\
$(
FLTK_LIB
)
-lm
-ldl
fltk_link_opengl
:
fltk_link_opengl
:
$(
CC
)
-o
$(
GMSH_BIN_DIR
)
/gmsh
$(
GMSH_FLTK_LIB
)
$(
OPENGL_LIB
)
\
$(
CC
)
-o
$(
GMSH_BIN_DIR
)
/gmsh
$(
GMSH_FLTK_LIB
)
$(
OPENGL_LIB
)
\
$(
FLTK_LIB
)
-lm
$(
FLTK_LIB
)
-lm
fltk_link_sgi
:
fltk_link_sgi
:
CC
-O2
-mips3
-n32
-o
$(
GMSH_BIN_DIR
)
/gmsh
$(
GMSH_FLTK_LIB
)
\
CC
-O2
-mips3
-n32
-o
$(
GMSH_BIN_DIR
)
/gmsh
$(
GMSH_FLTK_LIB
)
\
$(
FLTK_LIB
)
$(
OPENGL_LIB
)
-lm
-ldl
$(
FLTK_LIB
)
$(
OPENGL_LIB
)
-lm
fltk_link_sun
:
fltk_link_sun
:
$(
CC
)
-o
$(
GMSH_BIN_DIR
)
/gmsh
$(
GMSH_FLTK_LIB
)
$(
MESA_LIB
)
\
$(
CC
)
-o
$(
GMSH_BIN_DIR
)
/gmsh
$(
GMSH_FLTK_LIB
)
$(
MESA_LIB
)
\
$(
FLTK_LIB
)
-lXext
-lsocket
-lnsl
-ldl
-lm
$(
FLTK_LIB
)
-lXext
-lsocket
-lnsl
-ldl
-lm
fltk_link_hp
:
fltk_link_hp
:
g++
-Wl
,+s
-o
$(
GMSH_BIN_DIR
)
/gmsh
$(
GMSH_FLTK_LIB
)
\
g++
-Wl
,+s
-o
$(
GMSH_BIN_DIR
)
/gmsh
$(
GMSH_FLTK_LIB
)
\
$(
MESA_LIB
)
$(
FLTK_LIB
)
-lm
$(
MESA_LIB
)
$(
FLTK_LIB
)
-lm
fltk_link_
mesa_2952
:
fltk_link_
ibm
:
$(
HOME
)
/gcc-2.95.2/bin/g++
-o
$(
GMSH_BIN_DIR
)
/gmsh
$(
GMSH_FLTK_LIB
)
$(
MESA_LIB
)
\
$(
CC
)
-o
$(
GMSH_BIN_DIR
)
/gmsh
$(
GMSH_FLTK_LIB
)
$(
MESA_LIB
)
\
$(
FLTK_LIB
)
-lm
-ldl
fltk_linux
:
tag fltk_compile_little_endian fltk_link_mesa strip_bin compress_bin
fltk_linux
:
tag fltk_compile_little_endian fltk_link_mesa strip_bin compress_bin
...
@@ -452,7 +472,7 @@ fltk_sun: tag fltk_compile_big_endian fltk_link_sun strip_bin compress_bin
...
@@ -452,7 +472,7 @@ fltk_sun: tag fltk_compile_big_endian fltk_link_sun strip_bin compress_bin
fltk_hp
:
tag fltk_compile_big_endian fltk_link_hp strip_bin compress_bin
fltk_hp
:
tag fltk_compile_big_endian fltk_link_hp strip_bin compress_bin
fltk_ibm
:
tag fltk_compile_big_endian fltk_link_
mesa
strip_bin compress_bin
fltk_ibm
:
tag fltk_compile_big_endian fltk_link_
ibm
strip_bin compress_bin
fltk_solaris_scorec
:
tag fltk_compile_solaris_scorec fltk_link_solaris_scorec strip_bin
fltk_solaris_scorec
:
tag fltk_compile_solaris_scorec fltk_link_solaris_scorec strip_bin
...
...
This diff is collapsed.
Click to expand it.
Plugin/Plugin.cpp
+
4
−
1
View file @
2e34ef4a
#ifndef _NODLL
#include
<dlfcn.h>
#include
<dlfcn.h>
#endif
#include
<map>
#include
<map>
#include
<FL/filename.H>
#include
<FL/filename.H>
...
@@ -74,7 +77,7 @@ void GMSH_PluginManager::RegisterDefaultPlugins()
...
@@ -74,7 +77,7 @@ void GMSH_PluginManager::RegisterDefaultPlugins()
void
GMSH_PluginManager
::
AddPlugin
(
char
*
dirName
,
char
*
pluginName
)
void
GMSH_PluginManager
::
AddPlugin
(
char
*
dirName
,
char
*
pluginName
)
{
{
#if defined(WIN32) && !defined(__CYGWIN__)
#if
(
defined(WIN32) && !defined(__CYGWIN__)
) || defined(_NODLL) )
Msg
(
WARNING
,
"Plugins not yet implemented for WIN32 native compiler"
);
Msg
(
WARNING
,
"Plugins not yet implemented for WIN32 native compiler"
);
return
;
return
;
#else
#else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment