Skip to content

Instantly share code, notes, and snippets.

@ooxi
Last active October 11, 2015 18:31
Show Gist options
  • Save ooxi/5de2970e46e9465c453d to your computer and use it in GitHub Desktop.
Save ooxi/5de2970e46e9465c453d to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "debian/jessie64"
config.vm.provision "shell", inline: <<-SHELL
apt-get update
apt-get install -y cmake git
echo "deb http://mxe.redjohn.tk/repos/apt/debian jessie main" > /etc/apt/sources.list.d/mxe.list
wget -O - http://mxe.redjohn.tk/repos/apt/conf/mxeapt.gpg | apt-key add -
apt-get update
sudo apt-get -y install mxe-x86-64-w64-mingw32.static-boost mxe-x86-64-w64-mingw32.static-gcc mxe-x86-64-w64-mingw32.static-gettext mxe-x86-64-w64-mingw32.static-sdl mxe-x86-64-w64-mingw32.static-sdl-image mxe-x86-64-w64-mingw32.static-sdl-mixer mxe-x86-64-w64-mingw32.static-sdl-ttf
git clone https://github.com/ooxi/violetland
cd violetland
git checkout 365ac41f1e3732612bafc00ae265c367a0dde85e
git submodule init
git submodule update
mkdir build
cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=/usr/lib/mxe/usr/x86_64-w64-mingw32.static/share/cmake/mxe-conf.cmake
make
SHELL
end
@ooxi
Copy link
Author

ooxi commented Oct 11, 2015

jessie64 i686-w64-mingw32.static

# -*- mode: ruby -*-
# vi: set ft=ruby :

VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
    config.vm.box = "debian/jessie64"


    config.vm.provision "shell", inline: <<-SHELL
        apt-get update
        apt-get install -y cmake git

        echo "deb http://mxe.redjohn.tk/repos/apt/debian jessie main" > /etc/apt/sources.list.d/mxe.list
        wget -O - http://mxe.redjohn.tk/repos/apt/conf/mxeapt.gpg | apt-key add -

        apt-get update
        sudo apt-get -y install i686-w64-mingw32.static-boost i686-w64-mingw32.static-gcc i686-w64-mingw32.static-gettext i686-w64-mingw32.static-sdl i686-w64-mingw32.static-sdl-image i686-w64-mingw32.static-sdl-mixer i686-w64-mingw32.static-sdl-ttf

        git clone https://github.com/ooxi/violetland
        cd violetland

        git checkout 365ac41f1e3732612bafc00ae265c367a0dde85e
        git submodule init
        git submodule update

        mkdir build
        cd build

        cmake .. -DCMAKE_TOOLCHAIN_FILE=/usr/lib/mxe/usr/i686-w64-mingw32.static/share/cmake/mxe-conf.cmake
        make
    SHELL

end

Error log

==> default: Cloning into 'violetland'...
==> default: Note: checking out '365ac41f1e3732612bafc00ae265c367a0dde85e'.
==> default: 
==> default: You are in 'detached HEAD' state. You can look around, make experimental
==> default: changes and commit them, and you can discard any commits you make in this
==> default: state without impacting any branches by performing another checkout.
==> default: 
==> default: If you want to create a new branch to retain commits you create, you may
==> default: do so (now or later) by using -b with the checkout command again. Example:
==> default: 
==> default:   git checkout -b new_branch_name
==> default: HEAD is now at 365ac41... Merge pull request #77 from sir-sigurd/master
==> default: Submodule 'lib/CMake-Gettext' (https://github.com/jarro2783/CMake-Gettext.git) registered for path 'lib/CMake-Gettext'
==> default: Submodule 'lib/fcitx' (https://github.com/fcitx/fcitx.git) registered for path 'lib/fcitx'
==> default: Cloning into 'lib/CMake-Gettext'...
==> default: Submodule path 'lib/CMake-Gettext': checked out '6ee6405ac4d5edf0c31bb42c079a3b63421bb4f5'
==> default: Cloning into 'lib/fcitx'...
==> default: Submodule path 'lib/fcitx': checked out 'a636a83ec385ab9b2dd003c3c7c5bff7ab75f261'
==> default: -- The C compiler identification is GNU 5.2.0
==> default: -- The CXX compiler identification is GNU 5.2.0
==> default: -- Check for working C compiler: /usr/lib/mxe/usr/bin/i686-w64-mingw32.static-gcc
==> default: -- Check for working C compiler: /usr/lib/mxe/usr/bin/i686-w64-mingw32.static-gcc -- works
==> default: -- Detecting C compiler ABI info
==> default: -- Detecting C compiler ABI info - done
==> default: -- Check for working CXX compiler: /usr/lib/mxe/usr/bin/i686-w64-mingw32.static-g++
==> default: -- Check for working CXX compiler: /usr/lib/mxe/usr/bin/i686-w64-mingw32.static-g++ -- works
==> default: -- Detecting CXX compiler ABI info
==> default: -- Detecting CXX compiler ABI info - done
==> default: -- Looking for include file pthread.h
==> default: -- Looking for include file pthread.h - not found
==> default: -- Found Threads: TRUE  
==> default: -- Found SDL: mingw32;/usr/lib/mxe/usr/i686-w64-mingw32.static/lib/libSDLmain.a;/usr/lib/mxe/usr/i686-w64-mingw32.static/lib/libSDL.a (found version "1.2.15") 
==> default: -- Found SDL_image: /usr/lib/mxe/usr/i686-w64-mingw32.static/lib/libSDL_image.a (found version "1.2.12") 
==> default: -- Found SDL_ttf: /usr/lib/mxe/usr/i686-w64-mingw32.static/lib/libSDL_ttf.a (found version "2.0.11") 
==> default: -- Found SDL_mixer: /usr/lib/mxe/usr/i686-w64-mingw32.static/lib/libSDL_mixer.a (found version "1.2.12") 
==> default: -- Found OpenGL: opengl32  
==> default: -- Found Gettext: /usr/bin/msgmerge (found version "0.19.3") 
==> default: -- Boost version: 1.57.0
==> default: -- Found the following Boost libraries:
==> default: --   filesystem
==> default: --   system
==> default: -- Looking for dgettext
==> default: -- Looking for dgettext - not found
==> default: -- Found Libintl: /usr/lib/mxe/usr/i686-w64-mingw32.static/include  
==> default: -- Configuring done
==> default: -- Generating done
==> default: -- Build files have been written to: /home/vagrant/violetland/build
==> default: Scanning dependencies of target violetland
==> default: [  1%] 
==> default: Building CXX object CMakeFiles/violetland.dir/src/program.cpp.obj
==> default: In file included from /usr/lib/mxe/usr/i686-w64-mingw32.static/include/boost/limits.hpp:19:0,
==> default:                  from /usr/lib/mxe/usr/i686-w64-mingw32.static/include/boost/format/internals.hpp:21,
==> default:                  from /usr/lib/mxe/usr/i686-w64-mingw32.static/include/boost/format.hpp:38,
==> default:                  from /home/vagrant/violetland/src/program.cpp:33:
==> default: /usr/lib/mxe/usr/lib/gcc/i686-w64-mingw32.static/5.2.0/include/c++/limits:1598:7: internal compiler error: Illegal instruction
==> default:        min() _GLIBCXX_USE_NOEXCEPT { return __FLT_MIN__; }
==> default:        ^
==> default: 0xaa78ff crash_signal
==> default:    /usr/lib/mxe/tmp-gcc-i686-w64-mingw32.static/gcc-5.2.0/gcc/toplev.c:383
==> default: Please submit a full bug report,
==> default: with preprocessed source if appropriate.
==> default: Please include the complete backtrace with any bug report.
==> default: See <http://gcc.gnu.org/bugs.html> for instructions.
==> default: CMakeFiles/violetland.dir/build.make:55: recipe for target 'CMakeFiles/violetland.dir/src/program.cpp.obj' failed
==> default: make[2]: *** [CMakeFiles/violetland.dir/src/program.cpp.obj] Error 1
==> default: CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/violetland.dir/all' failed
==> default: make[1]: *** [CMakeFiles/violetland.dir/all] Error 2
==> default: Makefile:117: recipe for target 'all' failed
==> default: make: *** [all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment