Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Here is a nightmare guide to compiling c-octo on ubuntu 16.04 wsl
- # Because it involves building compilers in the mxe build stage
- # this will take some time. it takes me about 20-25 minutes but my CPU isn't very good
- # Step 1, Make sure apt-get is up to date:
- sudo apt-get update
- # Step 2, Get all mxe requirements per https://mxe.cc/#requirements-debian
- sudo apt-get install autoconf automake autopoint bash bison bzip2 flex g++ g++-multilib gettext git gperf intltool libc6-dev-i386 libgdk-pixbuf2.0-dev libltdl-dev libssl-dev libtool-bin libxml-parser-perl lzip make openssl p7zip-full patch perl python ruby sed unzip wget xz-utils
- # Get mxe:
- git clone https://github.com/mxe/mxe.git
- # Get c-octo
- git clone https://github.com/JohnEarnest/c-octo.git
- # Build mxe:
- cd mxe
- sudo make cc
- sudo make sdl2
- sudo make sdl2_mixer
- # Build c-octo
- cd ..
- cd c-octo
- mkdir build
- # These massive piles of libs are by in large required by SDL and typically included via some SDL related param, but I'm not sure how to use these with mxe, so, I just wrote them all in.
- ../mxe/usr/bin/i686-w64-mingw32.static-gcc src/octo_cli.c -o build/octo-cli.exe -Wall -Werror -Wextra -Wno-format-truncation -DVERSION="\"1.2\""
- ../mxe/usr/bin/i686-w64-mingw32.static-gcc src/octo_run.c -o build/octo-run.exe -I../mxe/usr/i686-w64-mingw32.static/include/SDL2 -L../mxe/usr/i686-w64-mingw32.static/lib -lmingw32 -lSDL2main -lSDL2 -lSDL2_mixer -lgdi32 -lhid -l setupapi -lole32 -ldinput8 -ldxguid -ldxerr8 -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion -luuid -lsamplerate -Wall -Werror -Wextra -Wno-format-truncation -DVERSION="\"1.2\""
- ../mxe/usr/bin/i686-w64-mingw32.static-gcc src/octo_de.c -o build/octo-de.exe -I../mxe/usr/i686-w64-mingw32.static/include/SDL2 -L../mxe/usr/i686-w64-mingw32.static/lib -lmingw32 -lSDL2main -lSDL2 -lSDL2_mixer -lgdi32 -lhid -l setupapi -lole32 -ldinput8 -ldxguid -ldxerr8 -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion -luuid -lsamplerate -Wall -Werror -Wextra -Wno-format-truncation -DVERSION="\"1.2\""
- # You can then recover your files via: eg \\wsl$\Ubuntu-16.04\home as the file system is available via windows networking or whatever
Advertisement
Add Comment
Please, Sign In to add comment