Login Page - Create Account

Support Board


Date/Time: Thu, 09 May 2024 11:25:27 +0000



Post From: custom studies build

[2016-10-06 22:40:58]
User35525 - Posts: 180
Hi @User222821,

I'm not an expert at this, but I'd try Ganz's suggestion first (untested by me).
1) Download and install this DMG: http://crossgcc.rts-software.org/doku.php?id=compiling_for_win32

2) Run "i686-w64-mingw32-gcc --help" from the command line. If it says "command not found", try running "/usr/local/gcc-4.8.0-qt-4.8.4-for-mingw32/win32-gcc/bin/i686-w64-mingw32-gcc --help". You'll want to use whatever cross-compiler it installed in the "/usr/local/gcc-4.8.0-qt-4.8.4-for-mingw32/win32-gcc/bin/" folder. If that's unsuccessful, then try Homebrew and my directions in post #5; you'll first need to see "http://brew.sh" for instructions to install Homebrew (just a single line you type at the terminal).

3) I'm assuming your'e already running SC using Wine on your Mac. I installed Wine with Homebrew:
https://www.davidbaumgold.com/tutorials/wine-mac/
You could probably also have used WineBottler:
http://winebottler.kronenberg.org/

4) To compile AdaptiveERI_MA.cpp to AdaptiveERI_MA.dll, I first used terminal and this command:
cd ~/.wine/drive_c/SierraChart/ACS_Source

Then I used ganz's command to cross-compile the CPP file, saving the DLL to SC's "Data" folder [post 5 above].

Hope this helps. Now I have to figure out how to cross-compile from my Linux server to 32-bit Windows DLL's. :-)

This should be moot next month when SC releases their Remote Compiler service from within SC. I presume that will simply upload your CPP code to their server, compile it, then download the DLL to your "Data" folder.
Date Time Of Last Edit: 2016-10-06 22:44:27