Skip to content

Commit

Permalink
Corrected header install dir on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
cpiker committed Nov 20, 2023
2 parents 0811c1e + 2fa1612 commit e24f839
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 25 deletions.
15 changes: 5 additions & 10 deletions buildfiles/Darwin.mak
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Export mac compatable md5sum command

MD5SUM=md5 -r
export MD5SUM

export MD5SUM := md5 -r
export DIFFCMD := diff

##############################################################################
# Project definitions
Expand Down Expand Up @@ -52,12 +51,12 @@ WARNINGS:=-Wall -Wno-format-security -Wno-format-truncation

ifeq ($(CONDA_BUILD_STATE),)
# Non conda build, depends on homebrew
BREW_INC_DIR=/opt/homebrew/include
BREW_LIB_DIR=/opt/homebrew/lib
BREW_INC_DIR=/usr/local/include
BREW_LIB_DIR=/usr/local/lib


ifeq ($(OPENSSL_DIR),)
OPENSSL_DIR=/opt/homebrew/opt/openssl
OPENSSL_DIR=/usr/local/opt/openssl
endif

SSL_INC=-I $(OPENSSL_DIR)/include
Expand All @@ -73,8 +72,6 @@ LFLAGS= -L$(BREW_LIB_DIR) -lfftw3 -lexpat $(SSL_LIB) -lz -lm -lpthread
else
# Conda build

$(error wtf?)

SSL_INC=
SSL_LIB=-lssl -lcrypto

Expand All @@ -86,8 +83,6 @@ LFLAGS:=$(LDFLAGS) -lfftw3 -lexpat $(SSL_LIB) -lz -lm -lpthread

endif



##############################################################################
# Derived definitions

Expand Down
21 changes: 10 additions & 11 deletions buildfiles/conda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,21 @@ CONDA_BUILD_SYSROOT:
## Windows Notes
Before building anything for Windows you'll need a compiler. Microsoft makes
this more difficult to setup then any other operating system I normally work with.
Before building anything for Windows you'll need a compiler. Microsoft makes this
more difficult to setup then any other operating system I normally work with. Not
only will you need a copy of visual studio, you need the **particular version** of
visual studio that `conda build` looks for. The following link has
worked for me for miniconda3.9:

In the \notes directory of this repository you'll find a file named:
[install_visual_studio.txt](https://github.com/das-developers/das2C/blob/master/notes/install_visual_studio.txt)
Follow along there until you can run:
```
\opt\vs\2022\buildtools\Common7\Tools\VsDevCmd.bat
```
You'll need to invoke this command **after** entering the conda environment. Once
this is issued, move on to creating the pthreads4u and then the das2C packages.
(VS Build Tools 2015)[https://download.visualstudio.microsoft.com/download/pr/3e542575-929e-4297-b6c6-bef34d0ee648/639c868e1219c651793aff537a1d3b77/vs_buildtools.exe]

Install this before proceeding.

Das2C is built to be multi-thread safe. Thread safety is built around the
POSIX threads library, which is native to Linux and MacOS. On Windows a
wrapper library must be used instead. Before building das2C packages you'll
need to build pthreads4w (POSIX Threads for Windows). To do so:
need to build [pthreads4w](https://sourceforge.net/projects/pthreads4w/)
(POSIX Threads for Windows). To do so:

```dos
cd das2C\buildfiles
Expand Down
3 changes: 1 addition & 2 deletions buildfiles/conda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
{% set name = "das2c" %}
{% set conda_version = "2.3.0" %}
{% set git_version = "2.3.0" %}
#{% set sha256 = "6362189d746045b2294810f28d9319f60f1f035a3df71667a1d09677248f3e2e" %}
{% set sha256 = "6530b7b78e995f951ecf1598ca9dd9ff7ee7a8ba53ffcbc8d06d50ea0b4a0c4c" %}
{% set sha256 = "6f3775f6153ccd8eee7efd5ac3f5a182b1fd34020bea136191dd493c31d72e95" %}

package:
name: {{ name }}
Expand Down
6 changes: 4 additions & 2 deletions buildfiles/rpm/das2C.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Name: das2C
Version: 2.3
%global tagver 2.3
Version: 2.3.0
%global tagver 2.3.0

Release: 1%{?dist}
Summary: das2 stream utilities and catalog client in C
Expand Down Expand Up @@ -88,6 +88,7 @@ rm -rf $RPM_BUILD_ROOT
%{_bindir}/das2_histo
%{_bindir}/das2_prtime
%{_bindir}/das2_psd
%{_bindir}/das_node
%{_libdir}/*.so

%files devel
Expand All @@ -97,5 +98,6 @@ rm -rf $RPM_BUILD_ROOT


%changelog
* Sun Nov 06 2023 Chris Piker <[email protected]> - 2.3.0
* Sun Nov 28 2021 Chris Piker <[email protected]> - 2.3-pre4
- First das2C package
File renamed without changes.

0 comments on commit e24f839

Please sign in to comment.