/usr/local/devtools/dgl
/usr/local/devtools/dtk
etc
And we recently installed DIVERSE with CMakeLists.txt files following your instructions under
/usr/local/DIVERSE/install
built in: /usr/local/DIVERSE/build
and source in: /usr/local/DIVERSE/source
When we change something in ../source/dgl/lib/DGLWindow.cpp we do a "make install" in the build directory as you suggested us to do.
However, when making the example in " /usr/local/DIVERSE/source/dgl
This is what we get when making the CCallbackHelix example:
[root@groupe2 CCallbackHelix]# make
g++ -I/usr/local/devtools/dtk/include -I/usr/local/include -I/usr/local/devtools/Producer
sed -e '/^[A-Za-z1-9]/s/^/.\//' .depend > .depend-temp
mv -f .depend-temp .depend
g++ -O3 -Wall -g -O3 -Wall -I/usr/local/devtools/dtk
g++ -o helix helix.o -O3 -Wall -g -O3 -Wall -L/usr/local/devtools/dtk/lib -ldtk -Wl,-rpath -Wl,/usr/local/devtools/dtk/lib -ldl -lpthread -lc -lm -lGL -lGLU -L/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib -ldgl -L/usr/local/devtools/OpenScene
I guess this is what we need to change (in bold). Is there something to have with "dgl-config" which is in the helix example Makefile ? What do you suggest?
> printenv
LD_LIBRARY_PATH=:/usr/local
COINDIR=/usr/local/devtools
OSG_LIB_DIR=/usr/local/devtools
FLTK_DIR=/usr/local/devtools
DPF_INSTALL_DIR=/usr/local
PATH=/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr
PRODUCER_LIB_DIR=/usr/local
PWD=/usr/local/DIVERSE/source
DIVERSE=/usr/local/DIVERSE/
PRODUCER_INC_DIR=/usr/local
OPENTHREADS_INC_DIR=/usr/local
====================================================
I think the problem is that your PATH is set to use the dtk in devtools.
Try this:
which dtk-config
You want to see:
/usr/local/DIVERSE/install/bin
But you'll probably see:
/usr/local/devtools/dtk/bin
dtk-config is used to set many of the build options, so if you point to the
wrong one, problems ensue.
You also want to see why the PATH has this in it:
/usr/local/DIVERSE//install
On the plus side, I do see
/usr/local/DIVERSE/install/bin
PATH, or put /usr/local/diverse/install/bin at the front of your PATH, and
rebuild, your should be OK.
Here's what my PATH is set to:
> echo $PATH
/usr/local/HEV/savg/dgl
The directory of note is /usr/local/HEV/apps/diverse
All the "savg" stuff is locally written software. That is followed by
locally installed packages like DIVERSE, OSG and so forth, and lastly by the
standard system directories like /usr/bin.