Login Page - Create Account

Support Board


Date/Time: Sat, 27 Jul 2024 01:54:30 +0000



[User Discussion] - Linux

View Count: 77524

[2024-07-09 19:05:19]
ertrader - Posts: 666
Latest configuration:
SierraChart Version 2654 64 bit (2 instances)
Wine 9.12
Mint Linux 21.3/Cinnamon desktop
Kernel 6.5.0-35 generic
AMD Ryzen 7 3800X
GeForce GTX 1660 Nvidia/6 GB GDDR5/Driver 545.29.06/OpenGL
Dual Monitors 1920X1080 60 Hz for both monitors
Total System RAM: 16 Gig
Memory usage: <500 Meg for main instance 200 meg for copy trade instance. This configuration greatly simplified my setup.
CPU Utilization: <8% for main instance <5% for copy instance.
28 Charts, 4 instruments and 4 ADR symbols (ES, YM, NQ, RTY, ADR-YM, ADR-TF, ADR-NASDAQ, ADR-SP)
Denali data-feed with MBO data
Teton Order Routing with Stage5/Advantage and Ironbeam
Rithmic for trader evaluations and PA accounts
RealVNC for remote access
Trade Copying from: https://www.simplesystemtrading.com/local-trade-copier/
Updated 7/9/24
Date Time Of Last Edit: 2024-07-09 19:06:03
[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
[2024-07-12 16:21:05]
ertrader - Posts: 666
Great.. glad you got it working :)
[2024-07-12 21:32:05]
d9e5c763 - Posts: 98
build dll in gentoo linux:
$ sudo emerge dev-util/mingw64-toolchain
$ /usr/lib/mingw64-toolchain/bin/x86_64-w64-mingw32-g++ -march=native -O2 -shared -std=gnu++11 -static -static-libgcc -static-libstdc++ -s -fno-rtti -fno-exceptions -w ExampleCustomStudies.cpp -o ExampleCustomStudies.dll

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account