Support Board
Date/Time: Mon, 07 Oct 2024 08:16:48 +0000
Post From: Linux
[2024-07-12 08:53:39] |
nzfarmer - Posts: 6 |
Good news guys. My development box at work (Ubuntu 22.04) allowed me to build the DLL and load it successfully. So I've started afresh at home with a clean 22.04 install apt install wine apt install g++-mingw-w64-x86-64-win32 apt install git build-essential etc. I did get a small error when compiling (error _ASSERT not defined) - not sure why it compiled first time on the workstation at work but hey, pretty minor. For a quick fix, I just edited ACS_Source/scdatetime.h and included crtdbg.h Anyway, happy days. Makefile below as promised - adapt as necessary. # Compiler and flags CXX = x86_64-w64-mingw32-g++ CXXFLAGS = -march=x86-64 -mtune=x86-64 -O2 -shared -static -static-libgcc -static-libstdc++ -s -fexceptions -w INCLUDES = -I../../ACS_Source/ -I/usr/x86_64-w64-mingw32/include # Source and target SRC = button_studies.cpp TARGET_DIR = ../../Data TARGET = $(TARGET_DIR)/button_studies.dll # Default target all: $(TARGET) # Build target $(TARGET): $(SRC) $(CXX) $(CXXFLAGS) $(INCLUDES) $< -o $@ # Clean target clean: rm -f $(TARGET) .PHONY: all clean |