Building Biarch Wine On Ubuntu - WineHQ Wiki
While struggling to compile PCSX2 on Ubuntu 64-bit (i386 dependencies want to remove needed amd64) I stumbled upon the link for building biarch wine with LXC. Has anybody else tried it?
The base procedure is this:
It's strange but the virtual container is at root so I just do a login with my local user then do normal sudo commands.
For some reason the build system is getting the wrong "-march=native" (not wrong per-se but won't create a distributable binary). I had to edit cmake/BuildParameters.cmake and change "set(ARCH_FLAG "-march=native")" to "-march=x86-64". That should give max cpu portability with medium support for SSE/AVX instruction sets.
The package mode will make it compatible with checkinstall. Too bad the default checkinstall that comes with Ubuntu can't package it. Build checkinstall from here https://github.com/giuliomoro/checkinstall
If packaging isn't an issue just use the build.sh script.
While struggling to compile PCSX2 on Ubuntu 64-bit (i386 dependencies want to remove needed amd64) I stumbled upon the link for building biarch wine with LXC. Has anybody else tried it?
The base procedure is this:
Code:
sudo apt install lxc
sudo lxc-create -t ubuntu -n my32bitbox -- --bindhome $LOGNAME -a i386
sudo cp -R /etc/apt /var/lib/lxc/my32bitbox/rootfs/etc
sudo lxc-start -n my32bitbox && sudo lxc-attach -n my32bitbox
login
It's strange but the virtual container is at root so I just do a login with my local user then do normal sudo commands.
Code:
sudo apt build-dep pcsx2
sudo apt install nvidia-cg-toolkit libglew-dev
git clone https://github.com/PCSX2/pcsx2.git --depth 1 --branch master pcsx2
For some reason the build system is getting the wrong "-march=native" (not wrong per-se but won't create a distributable binary). I had to edit cmake/BuildParameters.cmake and change "set(ARCH_FLAG "-march=native")" to "-march=x86-64". That should give max cpu portability with medium support for SSE/AVX instruction sets.
Code:
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DPACKAGE_MODE=TRUE ..
make
sudo checkinstall
exit
shutdown -h now
The package mode will make it compatible with checkinstall. Too bad the default checkinstall that comes with Ubuntu can't package it. Build checkinstall from here https://github.com/giuliomoro/checkinstall
If packaging isn't an issue just use the build.sh script.