Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 13:53:46 +0000



[User Discussion] - Linux

View Count: 74588

[2024-04-14 18:01:31]
ertrader - Posts: 648
+1. πŸ˜‚
[2024-04-26 01:20:15]
archymede - Posts: 19
to all fellow unix users, just a little comment to say that sierra chart rocks on freebsd, if you ever want to try a different taste of the unix world ;) (it won’t run on openbsd or netbsd though since those do not support wine).
also, with just a little text file in the .config the font smoothing issues are gone.
my only issue has ever been the support for a gaming mouse, but xbindkeys and xdotool does the job, sierra trading shortcuts are now working very well with my logitech mouse.
there is no need to turn on the setting to use a single buffer. I did notice though that compared to windows, the downloads are much much faster!
[2024-05-02 14:52:17]
YSS - Posts: 107
Anyone doing sierrachart ACSIL development on Linux? I run arch linux but I have a windows 11 Machine specifically for SC with Visual Studio for debugging. I tried C-lion but after attaching to .exe the breakpoints don't work but it works perfectly on Visual Studio.

I am doubting what body parts I would give up to have SC Native linux :-) We won't see this ever imho since SC is using the Win32 apis quite heavy.

Thanks.
Date Time Of Last Edit: 2024-05-02 14:52:49
[2024-05-02 15:40:38]
archymede - Posts: 19
yes, I do that, any simple editor will do it since you can remotely build your studies directly from sierra chart
[2024-05-02 15:58:02]
VLiviu - Posts: 169
one thing just came into my mind:
- SC doesn't need any marketing πŸ˜‚

Linux? check
custom build and config? check
reliable and fast? check
[2024-05-02 17:03:23]
YSS - Posts: 107
@archymede how do you set your breakpoints then?
[2024-05-02 17:23:13]
Tony - Posts: 461
@YSS,

I put Manjaro (Arch based) on my 9-year-old Mac Book, running Windows 10 with Oracle Virtualbox, I have no problem running Visual Studio, although I don't do ASCIL on my Mac Book though. I mainly using Windows 10 to test Ninja, the speed is acceptable to me.
[2024-05-02 19:14:42]
User900285 - Posts: 85
@YSS

Yes you can use the remote compiler, although if you include additional dependencies you might need to use a local compiler. I build the binaries on a Windows 11 virtual machine running inside my Debian 12 box. The software that runs the virtual machine is called LXD.

I edit the source and debug the studies on the parent Linux box. I switch over to the VM and build locally there using clang 16 which uses MSVS. I tell my build script which source I need to obtain, it grabs it using scp, builds the DLL on Windows 11 VM, then copies the binaries back over to the Linux box where I can run them on Sierra through Wine.
Date Time Of Last Edit: 2024-05-02 19:15:21
[2024-05-08 05:32:30]
Kiwi - Posts: 375
Regarding compilation. I just use linux with wine (currently MX-23.2_x64 with an NVIDIA GP108 and wine 9.0).

The easiest way is to just use remote compilation in the analysis > build custom studies menu.

Another way is to use the ming compiler. Install with
sudo apt install g++-mingw-w64-x86-64

and compile your code with

/usr/bin/x86_64-w64-mingw32-g++ -march=x86-64 -mtune=x86-64 -O2 -shared -static -static-libgcc -static-libstdc++ -s -fno-rtti -fno-exceptions -w <file to compile>.cpp -o <output file and path>


More info in How to build ACSIL study on Ubuntu/Linux
Date Time Of Last Edit: 2024-05-08 05:33:08
[2024-05-08 12:45:33]
emmanuel - Posts: 37
I do ACSIL development on Linux, but I haven't tried using a debugger.

I have a shim which to Sierra Chart looks like the Visual C++ compiler, so that local builds work; Build Release and Build Debug.

The compiler is actually Clang, but I use Zig as an interface since it's easier to work with and the Zig build cache speeds up builds, once the cache is hot.

The shim consists of:

- a simple C++ program which is installed as cl.exe; This is the fake Visual C++ compiler. It's job is to grab the commandline arguments issued by Sierra Chart.
- a BASH script which acts as a bridge between the Windows and UNIX worlds. The Wine cmd.exe knows how to execute BASH scripts.
- the Clang compiler, which is executed on Linux and cross-compiles to Windows.

https://github.com/emmanuelrosa/erosanix/tree/master/pkgs/sierrachart-zig-msvc-shim
[2024-05-11 17:43:09]
emmanuel - Posts: 37
Update regarding debugging ASCIL on Linux...

It works :)

This means the entire development cycle is possible without touching Windows:

- Compile studies on Linux using Clang cross-compiling. Actually, I use Zig which then compiles with Clang targeting Windows.
- For debugging with GDB, compile the study with debug symbols in the DWARF 2 format: zig c++ -x c++ -shared -static -std=c++17 -target x86_64-windows -ffp-model=precise -v -g -gdwarf-2 -O0 $sourceFiles -o $dllFile
- As I've mentioned before, with a small shim installed to simulate cl.exe, this can all be done transparently behind the scenes so that you can just do Analysis -> Build -> Debug Visual C++. You can also build with a Makefile, which is what I've been doing lately.

To debug a study, execute SierraChart_64.exe using winedbg: winedbg --gdb --no-start path/to/SierraChart_64.exe

That will then display the remote connection, such as localhost:1234

From another terminal, use gdb to connect to winedbg.

Here's a video of it in action, but I should warn you. After numerous failed screen recording attempts, I gave up and grabbed my phone. And in the middle of the recording the dog walked in and... left me a gift.

Nevertheless, it's possible to debug and step through ASCIL code on Linux.

https://www.youtube.com/watch?v=0qMqAdpt56U
Date Time Of Last Edit: 2024-05-11 17:44:03

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

Login

Login Page - Create Account