Skip to content

Commit

Permalink
Minor build improvements (#16)
Browse files Browse the repository at this point in the history
Signed-off-by: Joakim Roubert <[email protected]>
  • Loading branch information
joakimr-axis authored Oct 29, 2024
1 parent 3c52615 commit 484b25d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ WORKDIR "$OPEN62541_BUILD_DIR"
RUN . /opt/axis/acapsdk/environment-setup* && \
cmake -j \
-DCMAKE_INSTALL_PREFIX="$SDKTARGETSYSROOT"/usr \
-DBUILD_BUILD_EXAMPLES=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=ON \
-DUA_ENABLE_NODEMANAGEMENT=ON \
"$OPEN62541_SRC_DIR"
RUN make -j install
RUN make -j "$(nproc)" install

# Copy the built library files to application directory
WORKDIR "$ACAP_BUILD_DIR"/lib
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CXXFLAGS += $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) pkg-config --cflags-only-
LDLIBS += $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) pkg-config --libs $(PKGS))

CXXFLAGS += -I$(SDKTARGETSYSROOT)/usr/include/opencv4 -I$(CURDIR)/include
LDFLAGS = -L./lib -Wl,--no-as-needed,-rpath,'$$ORIGIN/lib'
LDFLAGS = -L./lib -Wl,--no-as-needed,-rpath,'$$ORIGIN/lib' -flto=auto
LDLIBS += -lm -lopencv_core -lopencv_imgproc -lopencv_video -lpthread

# Set DEBUG_WRITE to write debug images to storage
Expand All @@ -29,7 +29,7 @@ $(TARGET): $(OBJECTS)

# docker build container targets
%.eap:
DOCKER_BUILDKIT=1 docker build $(DOCKER_ARGS) --build-arg ARCH=$(basename $@) -o type=local,dest=. "$(CURDIR)"
DOCKER_BUILDKIT=1 docker build $(DOCKER_ARGS) --build-arg ARCH=$(*F) -o type=local,dest=. "$(CURDIR)"

dockerbuild: armv7hf.eap aarch64.eap

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# OPC UA Color Checker ACAP

[![Build ACAPs](https://github.com/AxisCommunications/opc-ua-colorchecker-acap/actions/workflows/build.yml/badge.svg)](https://github.com/AxisCommunications/opc-ua-colorchecker-acap/actions/workflows/build.yml)
[![Build ACAP packages](https://github.com/AxisCommunications/opc-ua-colorchecker-acap/actions/workflows/build.yml/badge.svg)](https://github.com/AxisCommunications/opc-ua-colorchecker-acap/actions/workflows/build.yml)
[![GitHub Super-Linter](https://github.com/AxisCommunications/opc-ua-colorchecker-acap/actions/workflows/super-linter.yml/badge.svg)](https://github.com/AxisCommunications/opc-ua-colorchecker-acap/actions/workflows/super-linter.yml)

This repository contains the source code to build a small example
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"vendorUrl": "https://www.axis.com/",
"runMode": "respawn",
"version": "1.1.0"
"version": "1.1.1"
},
"configuration": {
"settingPage": "settings.html",
Expand Down
4 changes: 3 additions & 1 deletion src/opcuaserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@
* limitations under the License.
*/

#include "opcuaserver.hpp"
#include <assert.h>

#include "common.hpp"
#include "opcuaserver.hpp"

using namespace std;

Expand Down

0 comments on commit 484b25d

Please sign in to comment.