Hello Ilya,
As you have found, the conversion from our old development environment to
the open source conventions was incomplete. Therefore for some of the custom
module types, the libraries are not built correctly. The module makefiles
also require hand editing. We have made some progress though and some of
this is fixed in cvs, awaiting a new release.
Meanwhile, this or a small variation should work with 4.0.6-4.0.9:
A sample Linux Makefile for inboard user module "watchfile.c" ... your
missing main.c follows it.
I hope this helps you. If you wanted to check out cvs and contribute
additional testing and fixes that would be "kewl" too.
Happy New Year,
Pete
FILES = main.o userwatchfile.o watchfile.o
BASE = /usr/local/dx
CC = gcc
CFLAGS = -O -Dlinux -I$(BASE)/include
LIBS = -L$(BASE)/lib_linux -L/usr/X11R6/lib -L/usr/local/lib \
-lDX -lGL -lm -lX11 -ldl -lnsl
# make the Data Explorer executable
watchfile: $(FILES)
$(CC) $(LDFLAGS) $(FILES) $(LIBS) -o dxexec
# make the user.c file
userwatchfile.c: watchfile.mdf
$(BASE)/bin/mdf2c watchfile.mdf > userwatchfile.c
main.c follows: (src/exec/dxexec/main.c)
/***********************************************************************/
/* Open Visualization Data Explorer */
/* (C) Copyright IBM Corp. 1989,1999 */
/* ALL RIGHTS RESERVED */
/* This code licensed under the */
/* "IBM PUBLIC LICENSE - Open Visualization Data Explorer" */
/***********************************************************************/
#include <dxconfig.h>
/* real entry point, calls DXmain() immediately */
extern DXmain(int argc, char **argv, char **envp);
#ifdef DXD_WIN
#include "dx/arch.h"
#endif
#ifdef DXD_HAS_WINSOCKETS
#include <stdio.h>
#include <winsock.h>
fd_set sockSet;
SOCKET PASCAL FAR socket (int af, int type, int protocol);
#endif
main (argc, argv, envp)
int argc;
char **argv;
char **envp;
{
#ifdef DXD_WIN
#ifdef _X86_
HCLXtInit();
#endif
#endif
#if defined(DXD_HAS_WINSOCKETS)
{
WSADATA wsadata;
int i;
i = WSAStartup(MAKEWORD(1,1),&wsadata);
if(i != 0)
{
}
}
#endif
return DXmain(argc, argv, envp);
}
"Ilya Y. Ginzburg" wrote:
> Hi All,
> I'm pretty new to Open DX so I have several questions
> I've installed it and it works fine(more or less) but
> I haven't managed to build any custom module, so
> could someone mail me examples of makefiles to build modules under
> linux(intel platform)
> module builder generates strange makefiles
> for outboard modules i haven't found outboard.c
> and for inboard it doesn't include main and thus doesn't run
> for loadable it builds but when loading module i get message that
> DXAddModule not found :(
>
> I need modules cause I failed to find another way to solve next problems
> :
> 1) data is given on particles; each particles is described by
> it's center location and dimensions ; I can calculate particle corners
> but i can't
> connect them neither in 2D or 3D case(Glyphs for particles visualization
> isn't ok because i want to see particle deformations)
> 2) btw maybe someone has modules for drawing LIC surfaces or something
> like that
> for visualization of vector fields
> any other technique for line of flow visualization besides stream/streak
> lines?
>
> if someone can give me few advices on mentioned topics it will be very
> kewl ;)