How to get the converter working on Linux: A Guide
Hey everyone. If you’re looking to get the converter running on Linux natively, you can! Just follow this guide.
First are some prerequisites (if you don't have them already installed.) These are CMake and wxWidgets.
Getting CMake out of the way first, just go to your terminal and type the following command:
Your mileage may vary because Linux is Linux, there are different package managers for different distros. You could be using apt or apt-get, if you have a Debian-based distro like me. You could use dnf if you have a RedHat distro. Pacman is another one. What I'm getting at here is there are a lot of different ways to get it working.
Now that that is over, we can move onto the harder part of the prerequisites, wxWidgets.
First, you'll want to go to the website and install it here. Now, you'll want to follow the next few code steps.
Now, if it hasn't been done before this, you'll want to make a directory called "wx", the name doesn't matter, it's just what I went with, and extract the installed folder from the website earlier here, and then change directory into /wxWidgets-3.2.5/. In the end, the file structure should look like this
Now, you'll want to create a new directory under this, called gtk-build. Change into it, and run these commands one after the other:
Congratulations! You have done the prerequisites! But you're not done yet! Now we will need to install the converter itself!
Go to the GitHub and click on the green button on the to right called "Code", and it should create a directory under your Downloads folder called "CK2ToEU4".
Next, you'll want to go back to the terminal again, and type this in after going into the folder called "CK2ToEU4":
If you don't have git installed and it gives you an error, use this.
Now, you'll have to run this command to ensure everything was gotten, otherwise if you don't, you'll get errors:
Now, if you go into the directory we were in, you should see a folder called "Release-Linux", along with other folders, a few of them called "build", "Fronter", and another folder called "CK2ToEU4", if not, then I probably told you to create the directory when it wasn't needed and I'm sorry. If I made a mistake, then just go into the only folder and you should see them. Now that you're here, you should also see a file called "build_linux.sh"
IF YOU DO, DO NOT CLICK THIS YET! You need to change something in a file, otherwise it won't work.
SO, go into your folder called "Fronter", there should be another folder called "Fronter" inside of that, and a folder called "Source", then "WorkerThreads", and finally a folder called "ConverterLauncher". In the end, your path should look like this:
Click the file that says "LinuxConverterLauncher.cpp", it should open as a text file. Now, you'll want to look for a line that says this:
And change it to this
ENSURE THAT YOU PUT TWO EQUALS SIGNS, NOT JUST ONE. Save the file and exit it.
Now, click on the file "build_linux.sh", and run it in terminal, and if everything was done correctly, (and if I remembered everything), it should go through without an error. Now, get into the folder titled "Release-Linux", and you should see a file called "ConverterFrontend", click this and the converter should pop up for you!
Beware though, if you put the right path to the CK2 Documents Directory, an error will pop up that says "An Assertion Failed!" If this happens, just uncheck the box titled "Show this dialog the next time", and it should go away when you hit "Continue". It will allow you to continue, but it will show up after you close and open the converter again. Just keep unchecking the dialog box, and you’ll be okay.
Congratulations! You should now be able to convert a game natively in Linux!
I would personally like to thank u/Empty_Change on Reddit for their help in getting this to work. Without them, I would still have no idea what to do! Thank you again, if you're here!
Hey everyone. If you’re looking to get the converter running on Linux natively, you can! Just follow this guide.
First are some prerequisites (if you don't have them already installed.) These are CMake and wxWidgets.
Getting CMake out of the way first, just go to your terminal and type the following command:
Code:
sudo apt-get install cmake
Your mileage may vary because Linux is Linux, there are different package managers for different distros. You could be using apt or apt-get, if you have a Debian-based distro like me. You could use dnf if you have a RedHat distro. Pacman is another one. What I'm getting at here is there are a lot of different ways to get it working.
Now that that is over, we can move onto the harder part of the prerequisites, wxWidgets.
First, you'll want to go to the website and install it here. Now, you'll want to follow the next few code steps.
Code:
sudo apt-get install build-essential
sudo apt-get install libgtk-3-dev
Now, if it hasn't been done before this, you'll want to make a directory called "wx", the name doesn't matter, it's just what I went with, and extract the installed folder from the website earlier here, and then change directory into /wxWidgets-3.2.5/. In the end, the file structure should look like this
Code:
~/wx/wxWidgets-3.2.5/
Now, you'll want to create a new directory under this, called gtk-build. Change into it, and run these commands one after the other:
Code:
../configure
make -j3
sudo make install
sudo ldconfig
../configure --with-gtk=3 --with-opengl
Congratulations! You have done the prerequisites! But you're not done yet! Now we will need to install the converter itself!
Go to the GitHub and click on the green button on the to right called "Code", and it should create a directory under your Downloads folder called "CK2ToEU4".
Next, you'll want to go back to the terminal again, and type this in after going into the folder called "CK2ToEU4":
Code:
git clone https://github.com/ParadoxGameConverters/CK2ToEU4.git
If you don't have git installed and it gives you an error, use this.
Code:
sudo apt-get install git
Now, you'll have to run this command to ensure everything was gotten, otherwise if you don't, you'll get errors:
Code:
git submodule update --init --recursive
Now, if you go into the directory we were in, you should see a folder called "Release-Linux", along with other folders, a few of them called "build", "Fronter", and another folder called "CK2ToEU4", if not, then I probably told you to create the directory when it wasn't needed and I'm sorry. If I made a mistake, then just go into the only folder and you should see them. Now that you're here, you should also see a file called "build_linux.sh"
IF YOU DO, DO NOT CLICK THIS YET! You need to change something in a file, otherwise it won't work.
SO, go into your folder called "Fronter", there should be another folder called "Fronter" inside of that, and a folder called "Source", then "WorkerThreads", and finally a folder called "ConverterLauncher". In the end, your path should look like this:
Code:
/CK2ToEU4/Fronter/Fronter/Source/WorkerThreads/ConverterLauncher
Click the file that says "LinuxConverterLauncher.cpp", it should open as a text file. Now, you'll want to look for a line that says this:
Code:
if (result > 0)
Code:
if (result == 0)
Now, click on the file "build_linux.sh", and run it in terminal, and if everything was done correctly, (and if I remembered everything), it should go through without an error. Now, get into the folder titled "Release-Linux", and you should see a file called "ConverterFrontend", click this and the converter should pop up for you!
Beware though, if you put the right path to the CK2 Documents Directory, an error will pop up that says "An Assertion Failed!" If this happens, just uncheck the box titled "Show this dialog the next time", and it should go away when you hit "Continue". It will allow you to continue, but it will show up after you close and open the converter again. Just keep unchecking the dialog box, and you’ll be okay.
Congratulations! You should now be able to convert a game natively in Linux!
I would personally like to thank u/Empty_Change on Reddit for their help in getting this to work. Without them, I would still have no idea what to do! Thank you again, if you're here!
Last edited:
- 2