You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+110-3Lines changed: 110 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ from http://www.ftdichip.com/Drivers/D2XX.htm and unzip it into "libftd2xx" fold
46
46
47
47
The linker will use "../libftd2xx" folder (see the Make files). Modify the Make files to change the cross-compiler location (default is /usr/bin/i686-w64-mingw32-*).
48
48
49
-
After unzipping the libftd2xx driver, you can cross-compile on Linux for Windows (yields fireprog.exe, which is a PE32 or PE32+ executable).
49
+
After unzipping the libftd2xx driver, you can cross-compile on Linux for Windows (yields "fireprog.exe", which is a PE32 or PE32+ executable).
50
50
Depending on the architecture and linking type, one of the following commands should be executed:
51
51
52
52
make -f Makefile.MinGW32Static clean
@@ -61,7 +61,7 @@ Depending on the architecture and linking type, one of the following commands sh
61
61
make -f Makefile.MinGW64Dynamic clean
62
62
make -f Makefile.MinGW64Dynamic
63
63
64
-
Dynamically linked executables require some libraries from the MinGW cross-compiler. Putting these libraries in the same folder where fireprog.exe resides, allows execution without errors:
64
+
Dynamically linked executables require some libraries from the MinGW cross-compiler. Putting these libraries in the same folder where "fireprog.exe" resides, allows execution without errors:
65
65
66
66
fireprog-win32-dynamic
67
67
├── fireprog.exe
@@ -75,10 +75,117 @@ Dynamically linked executables require some libraries from the MinGW cross-compi
75
75
├── libstdc++-6.dll
76
76
└── libwinpthread-1.dll
77
77
78
+
79
+
## Cross-compilation on Linux for MacOS
80
+
Install OSXCross toolchain from source to an easily accessable directory (e.g. "/opt"):
81
+
82
+
# Make the directory readable and writable to the user first
The output executable should be statically linked with no dynamic dependencies such as FT2XX:
175
+
176
+
x86_64-apple-darwin15-otool -L fireprog
177
+
fireprog:
178
+
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
179
+
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
180
+
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1253.0.0)
181
+
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1225.1.1)
182
+
183
+
184
+
78
185
## Usage
79
186
80
187
In order to program the Prometheus board, plug it in the USB port, Windows OS should recognize it as a USB-to-Serial (RS232) converter and associate it with the libftd2xx driver.
81
-
Now you can run fireprog.exe from the command line and supply the configuration bit-file.
188
+
Now you can run "fireprog.exe" from the command line and supply the configuration bit-file.
0 commit comments