You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Will download & build CDF and SPICE utilities as needed when the
following environment variables are not defined:
CSPICE_INC - If not set CSPICE is downloaded
CSPICE_LIB - If not set CSPICE is built
CDF_INC - If not set CDF libraries are downloaded
CDF_LIB - If not set CDF libs are built
For larger projects incorporating das2C, define the variables
above before calling make.
Das2C utility programs are used by [dasFlex](https://github.com/das-developers/dasFlex)
25
-
web-services for server-side processing.
26
-
27
-
Top level XML schema definition for das2 and das3 headers are also kept here.
23
+
The core library is used by [das2py](https://github.com/das-developers/das2py) and [das2dlm](https://github.com/das-developers/das2dlm). The utility programs are used by [dasFlex](https://github.com/das-developers/dasFlex) web-services for server-side processing.
28
24
29
25
To find out more about das2 visit https://das2.org.
30
26
@@ -49,8 +45,6 @@ build libdas2.3:
49
45
***expat** - XML Parsing library
50
46
***fftw3** - Fastest Fourier Transform in the West, version 3.
51
47
***openssl** - Secure network socket library
52
-
***libcdf** - NASA Common Data Format file creation (optional)
53
-
***cspice** - NAIF SPICE spacecraft position library (optional)
54
48
55
49
Though package names vary from system to system, commands for installing the
56
50
prequisites are provided below \.\.\.
@@ -70,32 +64,22 @@ $ brew install fftw
70
64
The expat library should already be present on MacOS once the compiler install
71
65
command `xcode-select --install` has been run.
72
66
73
-
The cspice and libcdf libraries are maunal download and un-pack only. Here's
74
-
where I typically put them:
75
-
```bash
76
-
/usr/local/cspice
77
-
/usr/local/cdf
78
-
```
79
-
or on Windows
80
-
```batchfile
81
-
C:\opt\cspice
82
-
C:\opt\cdf
83
-
```
67
+
If your system already has the NAIF CSpice Toolkit and the Goddard CDF libraries
68
+
installed you can set environment variables to incorporate them into the build,
69
+
otherwise the Makefiles will download them automatically.
84
70
85
-
## Manual Build and Install
86
-
87
-
Decide where you want to install the software. In the instructions below we've
88
-
chosen `/usr/local` but anywhere is fine.
71
+
## Manual Build
89
72
90
73
For POSIX compliant systems (Linux, MacOS, Android) issue the following commands
91
-
to build, test and install the software.
74
+
to build, and test the software.
92
75
93
-
```
94
-
$ export PREFIX=/usr/local
95
-
$ export N_ARCH=/ # For generic builds, omit per-OS sub-directories.
96
-
$ make
97
-
$ make test
98
-
$ make install
76
+
```bash
77
+
$ make SPICE=yes CDF=yes
78
+
$ make SPICE=yes CDF=yes test
79
+
80
+
# To rebuild
81
+
$ make SPICE=yes CDF=yes clean # Removes only das2C output
82
+
$ make SPICE=yes CDF=yes distclean # Removes CDF and SPICE libs as well
99
83
```
100
84
101
85
For Windows systems issue the following commands in a command shell to build, test
@@ -105,32 +89,37 @@ and install the software.
105
89
> set N_ARCH=\
106
90
> set LIBRARY_INC= ::location of your vcpkg installed\x64-windows-static include
107
91
> set LIBRARY_LIB= ::location of your vcpkg installed\x64-windows-static lib
108
-
> set CSPICE_INC=C:\opt\cspice\include :: only if building with spice
109
-
> set CSPICE_LIB=C:\opt\cspice\lib\cspice.lib :: only if building with spice
110
-
> set CDF_INC=C:\opt\cdf\include\ :: only if building with cdf
111
-
> set CDF_LIB=C:\opt\cdf\lib\libcdf.lib :: only if building with cdf
Note that on Windows, `libdas3.0lib` is the full static library but the file
159
-
`das3.0.lib` is merely a DLL import library.
147
+
Note that on Windows, `libdas.lib` is the full static library but the file `das.lib`
148
+
is merely a DLL import library.
149
+
150
+
151
+
## Using the Utility programs
152
+
153
+
Most of the utility programs filters are designed to take a *das* stream
154
+
on standard input and output a transformed stream to standard output. The
155
+
**das3_cdf** program
156
+
160
157
161
158
162
-
## Building with XMake
159
+
## Building with XMake (unsupported)
163
160
164
161
Two build systems are provided for das2C. Plain ole GNU Make and Microsoft NMake files, and an [xmake](https://github.com/xmake-io/xmake) file. Since xmake is both a package manager and a build tool, you do not need to install any prerequisites to build das2C with xmake, other then your compiler and xmake itself.
0 commit comments