Skip to content
This repository was archived by the owner on Aug 21, 2024. It is now read-only.

Commit 4e9a082

Browse files
authored
Add info for 32-bit build
1 parent 6c198ee commit 4e9a082

File tree

1 file changed

+15
-19
lines changed

1 file changed

+15
-19
lines changed

README.md

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,35 +7,31 @@ For generating:
77
- Use or install Ubuntu 22.04
88

99
- Install packages:
10-
11-
`sudo apt install mingw-w64 python3-pip git build-essential gcc nsis`
10+
- - `sudo apt install mingw-w64 python3-pip git build-essential gcc nsis`
1211

1312
- Install selected packages from Ubuntu 22.*10*
13+
- - `wget -c http://mirrors.kernel.org/ubuntu/pool/universe/m/mingw-w64/mingw-w64-common_10.0.0-2_all.deb && sudo dpkg -i mingw-w64-common_10.0.0-2_all.deb`
14+
- - (x64) `wget -c http://mirrors.kernel.org/ubuntu/pool/universe/m/mingw-w64/mingw-w64-x86-64-dev_10.0.0-2_all.deb && sudo dpkg -i mingw-w64-x86-64-dev_10.0.0-2_all.deb`
15+
- - (i686) `wget -c http://mirrors.kernel.org/ubuntu/pool/universe/m/mingw-w64/mingw-w64-i686-dev_10.0.0-2_all.deb && sudo dpkg -i mingw-w64-i686-dev_10.0.0-2_all.deb`
1416

15-
`wget -c http://mirrors.kernel.org/ubuntu/pool/universe/m/mingw-w64/mingw-w64-common_10.0.0-2_all.deb && dpkg -i /mingw-w64-common_10.0.0-2_all.deb`
16-
17-
`wget -c http://mirrors.kernel.org/ubuntu/pool/universe/m/mingw-w64/mingw-w64-x86-64-dev_10.0.0-2_all.deb && dpkg -i mingw-w64-x86-64-dev_10.0.0-2_all.deb`
17+
- Set correct cross-compiler
18+
- - (x64) `sudo update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix`
19+
- - (i686) `sudo update-alternatives --set i686-w64-mingw32-g++ /usr/bin/i686-w64-mingw32-g++-posix`
1820

1921
- Install conan
20-
21-
`pip3 install conan`
22+
- - `sudo pip3 install conan`
2223

2324
- If necessary, clone vcmi repository
25+
- - `git clone https://github.com/vcmi/vcmi.git vcmi`
26+
- - `cd vcmi`
2427

25-
`git clone https://github.com/vcmi/vcmi.git vcmi`
26-
27-
`cd vcmi`
28-
29-
- Run conan:
30-
31-
`conan install . --install-folder=conan-generated --no-imports --build=missing --profile:build=default --profile:host=CI/conan/mingw64-linux.jinja`
32-
(this will take a while)
28+
- Run conan: (this will take a while)
29+
- - (x64) `conan install . --install-folder=conan-generated --no-imports --build=missing --profile:build=default --profile:host=CI/conan/mingw64-linux.jinja`
30+
- - (i686) `conan install . --install-folder=conan-generated --no-imports --build=missing --profile:build=default --profile:host=CI/conan/mingw32-linux.jinja`
3331

3432
- Remove temporary files that we won't need:
35-
36-
`conan remove --builds --src --force '*'`
33+
- - `conan remove --builds --src --force '*'`
3734

3835
- Create output archive with dependencies:
39-
40-
`tar -czvf vcmi-deps-windows-conan-w64.tgz -C ~/.conan data`
36+
- - `tar -czvf vcmi-deps-windows-conan-w64.tgz -C ~/.conan data`
4137

0 commit comments

Comments
 (0)