Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/geosoftinc/gxc
GXC for Geosoft GX Developer
https://github.com/geosoftinc/gxc
geosciences geospatial gxc
Last synced: 22 days ago
JSON representation
GXC for Geosoft GX Developer
- Host: GitHub
- URL: https://github.com/geosoftinc/gxc
- Owner: GeosoftInc
- License: bsd-2-clause
- Created: 2017-11-01T14:20:44.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-11-08T20:28:16.000Z (about 1 month ago)
- Last Synced: 2024-11-08T21:26:46.671Z (about 1 month ago)
- Topics: geosciences, geospatial, gxc
- Language: C
- Homepage: https://geosoftgxdev.atlassian.net/wiki/spaces/GD/overview
- Size: 13 MB
- Stars: 6
- Watchers: 5
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Geosoft GX for GXC Repository
This is the repository for Geosoft GX Developer support for GX Language development. Refer to the documentation for more information.
[GX Developer documentation](https://geosoftgxdev.atlassian.net/wiki/display/GD/Python+in+GX+Developer)
[Geosoft GX Language](https://geosoftgxdev.atlassian.net/wiki/spaces/GXD93/pages/78020870/Geosoft+GX+Language)
Also see the [Geosoft Inc. organization on Github](https://github.com/GeosoftInc) for the other programming language specific repos.
Quick Start
-----------### Configuration
Select a __[Release](https://github.com/GeosoftInc/gxc/releases)__ and download the source code compressed file. Extract to a folder (e.g. ___c:\geosoft_code\gxc___) on your system. This will contain the following sub-folders:
| Folder | Content |
|:------:| ------- |
| ___examples___ | source code for all Geosoft GXs |
| ___include___ | GXC header files that document the GX API |The compiler and support tools are part of your Geosoft Desktop installation. You will need to add the Geosoft Desktop bin directory to the __PATH__ environment so the compiler programs can be found, and set the environment variable __INCLUDE__ to your ___gxc\include___ folder.
To avoid affecting other applications or developer toolkits, it is not recommended to change this in the system-wide operating system settings. Rather only do it within a command-line shell or a reusable batch script.
For example:
```
set "PATH=%PATH%;C:\Program Files\Geosoft\Desktop Applications 9\bin"
set "INCLUDE=c:\geosoft_code\gxc\include"
```NOTE: The location of the quotes is important. Technically the quotes are only necessary if there are spaces within them to ensure the __set__ command sees the whole environment assignment as a single parameter. It is safer though to just assume they are always needed, but to make sure there is just one quote right in front of the environment name being set, and one right at the end.
#### Compile a GX
A GX will have a _.gxc_ source file and an optional _.grc_ resorce file. There may also be _.hlp_ files that are used by the resource file. Compiling is a 2-step process. For this example navigate to the __gxc\examples\agggrid__ folder:
```
grc.exe agggrid
gxc.exe agggrid
```This will create the GX file: __aggrid.gx__.
License
-------
Any source code found here are released under the [BSD 2-clause license](https://github.com/GeosoftInc/gxpy/blob/master/LICENSE). Core functionality exposed by the GX API may have additional license implications. For more information consult the [License page in the GX Developer Wiki](https://geosoftgxdev.atlassian.net/wiki/spaces/GD/pages/2359406/License)