Topic: Compilation under linux minihelp
Tibor Topic Opener |
Posted at: 2015-05-13, 21:35
This is intended as an introduction for new user about linux and about its command line.
also to list the content of current directory and to 'Change the Directory': 'cd' without any arguments takes you into home directory Some jobs must be done as root (ubuntu usually has the account disabled and is using sudo, but still), so to find out who you are now: So this was general introduction, now preparation for installation itself First of all, make sure you have everything installed with command I got list of packages from https://wl.widelands.org/wiki/Building%20Widelands/#ubuntu__debian this list tends to change over time.... (note that you do not type, just copy paste from here to console - it works in graphical interface at least). To copy, it should be enough to higlight the source text, go to terminal and middle-click it to paste highlighted text. Some of listed packages are already installed, some of them have to be installed. Some distributions do not have sudo and have standart root user, so then you use su comand Installation of widelands itself: First, you can have multiple installations in separate directories. So let presume first installation will be in directory /home/tibor/widelands1. Now download the branch you are to compile (you should still be in /home/tibor/widelands1 directory): Wait 10-20 minutes and unless it complains about anything, use 'ls' to verify that you have the directory with source code created enter it and run the compilation: and wait and read the output. You should get at the end (might differ, take it as example): So compiled binary is here /home/tibor/widelands1/bug-1451147/widelands. As usual, copy it with mouse to prompt and hit enter. And if it starts, you made it! :) "Housekeeping" maybe you will need to delete entire installation later, there is command for it 'rm': It will take couple of seconds till you get a prompt... In fact widelands1 directory itself is not necessary, it would work to have just directories like /home/tibor/bug-1451147 /home/tibor/bug-1475187 and so on, it is up to you... I hope this will encourage somebody to try the linux and compilation of widelands there. Though this does not cover installation of linux itself that can be a trouble for windows-only user :) I will gladly answer any questions. Or somebody else here I believe Edited: 2015-05-22, 18:37
Top Quote |
fk |
Posted at: 2015-05-14, 08:42
The link to the package lists does not work. I actually hoped to find the list of libs for r18. Secondly, if I compile WL in a certain directory than I can't change the name of the directory anymore or the next compilation will fail. I think that it helps to know this in advance.
That is still true for some obscure versions, but the installation of Ubuntu, Mint etc. has become a matter of entering a DVD of USB. Top Quote |
kaputtnik |
Posted at: 2015-05-14, 09:15
Try this link: /wiki/Building Widelands/#ubuntu__debian Fight simulator for Widelands: |
GunChleoc |
Posted at: 2015-05-14, 09:29
Great guide If you want to play with multiple branches, instead of:
Do this:
Then, still in the same directory, you can run widelands like this:
Busy indexing nil values Top Quote |
Tibor Topic Opener |
Posted at: 2015-05-14, 18:42
Gyus, thanks for feedback!
be sure you are in the directory where you made the compilation. In other words, 'ls' command must show also widelands file in the current directory Let me elaborate it a bit: You might wonder what './' is for - this means 'search for following binary in current directory'. Without it it would search for executable in PATH - that is couple of directories where operation systems searches for executables by default (Hint: type 'echo $PATH' to terminal) In case you have widelands installed also via package manager, just package's executable would be run and you would be probably bit confused what is going on. Edited: 2015-05-14, 20:57
Top Quote |
hjd |
Posted at: 2015-05-16, 11:46
Like others mentioned, see the section on dependencies on Building Widelands. I haven't looked over the dependencies for all distributions recently, but apart from FreeBSD* most of them should be a mix of dependencies for trunk and build18. So you install the whole list and then you should be able to compile either version. Can I ask why you might be looking for a list of dependencies for build18? The drawback with having a combined list is of course that it requires people installing several libraries they don't need. As a prime example since build18 used SDL1.2, but trunk has switched to SDL2, anyone installing the list gets both libraries when they probably only need one. For this reason I have been pondering either splitting it into two lists (which I'm afraid might make things more confusing) or simply list the dependencies for latest trunk. If people do need instructions for build18 it will always be available in the page history, and from what I can see most (if not all) distributions have packaged and shipped build18 some time ago so it should be available in the standard archives. I don't want to remove things without first checking if people are still using it though, in case it is still useful. *As mentiond on the page, the list of FreeBSD dependencies are only for trunk, since build18 is available in the ports archive (and needed some patches to build). Edited: 2015-05-16, 11:47
Ships! Top Quote |
fk |
Posted at: 2015-05-16, 13:06
Yes, but I will try to stay on topic. I don't particularly like build19 and I only wanted to improve the AI a bit, so build18 was the better choice. Besides of that I had problems with the compilation of build19 with Kubuntu, although it worked again after I had upgraded to the newest version. I have switched to Linux Mint and I can again not compile build19, although they also have an upgrade. That might work but I haven't needed it so far. Top Quote |
hjd |
Posted at: 2015-05-16, 19:01
Keep in mind that build19 doesn't exist yet. There is a development version though, which have seen various major changes which also means the requirements and dependencies for building Widelands has changed. The only thing I know which would be a straight-up blocker is that we dropped support for Ubuntu 12.04 some time back, so you would need Ubuntu 14.04 (or something based on that release) or newer in order to build Widelands. We've tried to keep the documentation on the building page up to date and we also have a PPA which for the most part have continuously built Widelands for recent Ubuntu releases. As you say this is getting off-topic, but if you have or run into any particular building errors, please open a thread here or stop by the IRC chat and we'll sort it out.
Ok, I'm sorry to hear that. It's hard to tell what you're unhappy with, without details though. Unless you've done so already (I rarely read the forum, so apologies in advance) could you elaborate a bit on this? I would like to note though, that if someone wants to integrate your AI changes to a future build, that might be harder due to all the changes which have happened since build18 was released. All right, let's get back to topic. Ships! Top Quote |
Tibor Topic Opener |
Posted at: 2015-05-16, 20:41
@fk, as hjd said above, dont bother with build18, there was so much changes since, that you changes could end up nontransferable to current trunk. Top Quote |
fk |
Posted at: 2015-05-16, 20:58
hjd wrote:
I don't think that it would help, it is clear that I have a different idea of how a game should work and perhaps also a different taste than the current builders/developers. But we can still learn from each other. Tibor wrote:
That is a loss for that trunk, not for my version. Top Quote |