8000 Windows · bobmorane06/LK8000 Wiki · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Windows

bobmorane06 edited this page May 24, 2022 · 21 revisions

Windows

To set up a development environment on Windows, there are a number of options.

Virtual PC with Linux

Windows Subsystem for Linux / WSL2

A hybrid option of native Windows / Linux environment is to install WSL2 on Windows 10 or 11 - follow instructions here: Linux-via-Windows-WSL2.

Once WSL2 and the build environment are setup, to build LK8000-PC.exe, from the root of the LK8000 project run:

make TARGET=PC 

After your first successfull build, add the distrib option to your make command, copy the contents of the LK8000 folders structure to your Windows C or D drive and run LK8000-PC.exe from there:

make TARGET=PC distrib
cp -R ./Distrib/PC/LK8000 /mnt/c/_your_path_to_LK8000

For subsequent builds, you can copy only the executable:

cp ./LK8000-PC.exe /mnt/c
C73B
/_your_path_to_LK8000/LK8000

With the WSL2 option you have setup the environment to build for other targets than Windows too of course, see Linux-via-Windows-WSL2 section.

Cygwin_X86

Cygwin creates a *NIX-like environment on Windows.

  • Download and set up Cygwin with at least the following packages and there dependencies:

    • make
    • mingw64-i686-gcc-g++
    • zip
    • gdb (version 9.2-1)
    • wget
  • install GeographicLib from source using script available in source:

./Scripts/install-mingw-w64-depends.sh
  • make TARGET=PC distrib should result in an 'PC-install.zip'.

MinGW (deprecated)

  • Install MinGW, make sure to install the C++ compiler and the MinGW Developer toolkit.
  • Start a MinGW shell.
  • Download the LK8000 sources.
  • Edit the LK8000 Makefile as follows:
ifeq ($(CONFIG_PC),y)
#TCPATH		:=i386-mingw32-
TCPATH	:=

and:

ifeq ($(CONFIG_PC),y)
#LDLIBS		:= -lmingw32 -lcomctl32 -lkernel32 -luser32 -lgdi32 -ladvapi32 -lwinmm -lmsimg32 -lstdc++
LDLIBS := -Wl,-Bstatic -lstdc++  -lmingw32 -lcomctl32 -lkernel32 -luser32 -lgdi32 -ladvapi32 -lwinmm -lmsimg32

This last change may not required anymore. If you still need to do this change, and if you're using LiveTracker then also add -lwsock32.

  • Build LK8000-PC.exe with:
make TARGET=PC

Notes:

  • With this setup, it's only possible to compile the PC version of LK8000.
  • The resulting executable is slightly larger (~10%) than the released version.
0