Skip to content

Commit

Permalink
Merge pull request #497 from mdavidsaver/fixup-build
Browse files Browse the repository at this point in the history
Fixup build with deb12
  • Loading branch information
MarkRivers authored Jan 1, 2024
2 parents e9c6f03 + db47e11 commit 20772fd
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .ci
Submodule .ci updated 1 files
+3 −2 cue.py
3 changes: 3 additions & 0 deletions .github/workflows/ci-scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
BCFG: ${{ matrix.configuration }}
BASE: ${{ matrix.base }}
SET: ${{ matrix.deps }}
EXTRA: ${{ matrix.extra }}

strategy:
fail-fast: false
Expand All @@ -31,6 +32,8 @@ jobs:
configuration: default
base: "7.0"
deps: os
extra: "CMD_CFLAGS='-fvisibility=hidden'
CMD_CXXFLAGS='-fvisibility=hidden -fvisibility-inlines-hidden'"
test: true

- os: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion ADApp/pluginSrc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LIBRARY_IOC += NDPlugin
DBD += NDPluginSupport.dbd

# Persuade travis (ubuntu 12.04) to use HDF5 API V2 (1.8 rather than default 1.6)
USR_CXXFLAGS_Linux += -DH5_NO_DEPRECATED_SYMBOLS -DH5Gopen_vers=2
USR_CXXFLAGS_Linux += -DH5Gopen_vers=2

# json.hpp requires C++11
NDPluginBadPixel_CXXFLAGS_Linux += -std=c++11
Expand Down
3 changes: 2 additions & 1 deletion ADApp/pluginSrc/NDFileHDF5AttributeDataset.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
#include <hdf5.h>
#include <asynDriver.h>
#include <NDAttribute.h>
#include <NDPluginAPI.h>
#include "NDFileHDF5Layout.h"
#include "NDFileHDF5VersionCheck.h"

class NDFileHDF5AttributeDataset
class NDPLUGIN_API NDFileHDF5AttributeDataset
{
public:
NDFileHDF5AttributeDataset(hid_t file, const std::string& name, NDAttrDataType_t type);
Expand Down
3 changes: 2 additions & 1 deletion ADApp/pluginSrc/NDFileHDF5Dataset.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@

#include <string>
#include <hdf5.h>
#include <NDPluginAPI.h>
#include "NDPluginFile.h"
#include "NDFileHDF5VersionCheck.h"

/** Class used for writing a Dataset with the NDFileHDF5 plugin.
*/
class NDFileHDF5Dataset
class NDPLUGIN_API NDFileHDF5Dataset
{
public:
NDFileHDF5Dataset(asynUser *pAsynUser, const std::string& name, hid_t dataset);
Expand Down
3 changes: 2 additions & 1 deletion ADApp/pluginSrc/NDPluginAttrPlot.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#include "CircularBuffer.h"

#include <NDPluginAPI.h>
#include <NDPluginDriver.h>
#include <epicsThread.h>

Expand All @@ -42,7 +43,7 @@ class NDPluginAttrPlot;
/**
* A task that periodically executes the data exposure method of the plugin.
*/
class ExposeDataTask : public epicsThreadRunable
class NDPLUGIN_API ExposeDataTask : public epicsThreadRunable
{
public:
/**
Expand Down
7 changes: 5 additions & 2 deletions ADApp/pluginTests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ include $(TOP)/configure/CONFIG
# ADD MACRO DEFINITIONS AFTER THIS LINE
#=============================

# Only build static version of ADTestUtility (missing dllimport/export)
SHARED_LIBRARIES=NO

# Persuade travis (ubuntu 12.04) to use HDF5 API V2 (1.8 rather than default 1.6)
USR_CXXFLAGS_Linux += -DH5_NO_DEPRECATED_SYMBOLS -DH5Dopen_vers=2 -DH5Gcreate_vers=2
USR_CFLAGS_Linux += -DH5_NO_DEPRECATED_SYMBOLS -DH5Dopen_vers=2 -DH5Gcreate_vers=2
USR_CXXFLAGS_Linux += -DH5Dopen_vers=2 -DH5Gcreate_vers=2
USR_CFLAGS_Linux += -DH5Dopen_vers=2 -DH5Gcreate_vers=2

ifeq ($(SHARED_LIBRARIES), YES)
USR_CXXFLAGS_WIN32 += -DH5_BUILT_AS_DYNAMIC_LIB
Expand Down

0 comments on commit 20772fd

Please sign in to comment.