Version 9.
0 Notes
Installed: mingw-w64 compiler package
Geosoft Viewer 9.0 (for testing)*
GX Developer 9.0
*Note: This will remove any Geosoft 8.* version files from the computer, so park
your license first.
Geosoft grc and gxc compilers in
C:\Program Files\Geosoft\GX Developer (x64)\gx\bin
added to PATH in mingw-w64.bat
Created a working directory C:\User64\OM90 and copied OM80 GX files there
----------
Makelib mods:
OMVERS = 9.0
GLIBDIR = .
GDLLDIR = .
GEOGX_IMP = $(GLIBDIR)/geogx_utf8.lib Note: filenames are
consistent in 9.0
GEOGX_DLL = geogx_utf8.dll
GEODIST_IMP = $(GLIBDIR)/geodist.lib
GEODIST_DLL = geodist.dll
Copied to working directory:
All lib files from C:\Program Files\Geosoft\GX Developer (x64)\cpp\lib
All geogx* and geodist dll files from C:\Program Files\Geosoft\GX Developer
(x64)\redist\bin
mingw-w64 uses the 32-bit version of make, and calls it mingw32-make.exe
I copied and renamed it to make.exe in the mingw64\bin directory
I also renamed my old C:\MinGW directory to C:\MinGW32 to prevent the PATH from
accessing it
Copy Makelibs to Makefile and run make to create libGEODIST9.0.a and libGEOGX9.0.a
----------
wfuncs.c and wrappers.h modified to replace double underscores by single
underscores
include files from C:\Program Files\Geosoft\GX Developer (x64)\cpp\include
copied to an include directory under the working directory
Makefile mods in subdirectories (e.g. \usgs_addgrd):
OMVERS = 9.0
LIBDIR = -L ..
INCDIR = ../include
FC = gfortran
replace g77 by $(FC)
comment out the cp $(TARGET... lines
$(FC) -c $*.f -o $*.o
Run make to create the new dll; copy it to C:\Program Files\Geosoft\Desktop
Applications 9\bin
Run grc and grx to create the new gx; copy it to C:\Program Files\Geosoft\Desktop
Applications 9\gx
Menufiles USGS.omn and USGSV.omn must be moved to
C:\Program Files\Geosoft\Desktop Applications 9\user\omn
As needed, replace #include <all32.gxh> by #include <all.gxh> in gxc files
Compile Errors
usgs_gridprox.gxc unable to find the "iGetLength_DB" function
The USGS graphics programs have not been recompiled to 64-bit, so they cannot go
under Program Files.
Instead move the following files to C:\Program Files (x86)\Geosoft\Desktop
Applications 9\bin
usgs_mfdesign.exe
usgs_mfplot.exe
libgcc_s_dw2-1.dll
libgfortran-2.dll
tcl84.dll
tk84.dll
and move the lib1 directory to C:\Program Files (x86)\Geosoft\Desktop Applications
9\
lib
then add C:\Program Files (x86)\Geosoft\Desktop Applications 9\bin to the system
path
Control Panel
System
Advanced System Settings
Environment Variables
Path
Edit