luixvayo Posted August 6, 2015 Posted August 6, 2015 Hi guys, i want to know if anyone has a easy way to compile Raine under windows.Something like the "mame way" that you just havo to download in some cases just one file (i.e. mingw_for_mame_xx.zip) with all the tools compiled and ready to be used to compile the binary. I tried to compile raine a few times with no succeed. I'm trying to make a spanish translated version of raine, menus, warnings, etc. Thanks in advance.
Tux Posted August 6, 2015 Posted August 6, 2015 (edited) I'd say maybe the easiest way is to do it under linux, because that's what I am doing, and if the distribution is not too dumb it makes getting the dependancies very easy ! Otherwise it's not too hard to do with mingw, you just need to get the dependancies yourself, but it's documented on the download page there l:Oops broken link, I'll fix it later.Well meanwhile you still have the logiqx notes there : http://www.logiqx.com/HowTo/RAINE32.phpAnyway from memory you need : (everything can be found by using google) : - zlib - libpng - sdl-1.2 - sdl-image - sdl-ttf - muparser - sdl-soundand it's harder for sdl-sound because if you want to be able to play mp3s containing id3 tags, you need to get the latest mercury version instead of the official latest version, but you can start by using the official version 1st anyway.By the way this mercury version uses libmpg123 for decoding mp3s, so you need this too, search for mpg123 (easier to find in linux, it's included in every dsitribution, but it can be compiled in windows too). Good luck ! (it's long, but it's not too hard, and the reason why I don't make a big package containing everything is because it would have to be maintained when there are updates and it would be quite boring). Also you can compile without the console (edit the makefile, find the place where it talks about HAS_CONSOLE and comment it, there are comments explaining this, it's at the topof the makefile). In this case you don't need muparser. Edited August 6, 2015 by Tux
luixvayo Posted August 7, 2015 Author Posted August 7, 2015 Thank you! I'm on the work of getting everything now, i wish i know how to work with linux, sound pretty much easy that way, but i have zero experience using that OS.Thanks so much again.
Tux Posted August 7, 2015 Posted August 7, 2015 Well you need time to master it, but it's worth the time spent !In short, in linux distributions handle dependancies automatically, you say you want to install raine, so it will install all the dependancies 1st automatically.Normally when compiling a win32 program from linux you loose these dependancies but gentoo has the same system to be able to install dependancies the same way when compiling something in windows, but gentoo is really specialized for developpers.I could at least put a binary package for sdl_sound because this one is not that easy.For all the others, it's download the package, extract, run ./configure, make, make install, that's all.So post again if you want to try a binary package for sdl-sound.
luixvayo Posted August 7, 2015 Author Posted August 7, 2015 Posting again! Thank you! I think i got all the tools now, i'm re-cheking.This weekend gonna try again, just realize that i delete all the previous attempt to compile Raine while reinstalling windows Thank you for the package!
Tux Posted August 7, 2015 Posted August 7, 2015 (edited) Ok, you can find the pre-compiled packages there at the top of the page (section dev of the downloads) :http://raine.1emulation.com/download/dev.html There should be almost everything, tell me if I forgot something (it actually from my linux installation, but it should work without problem with mingw32).As it's said on the page : unpack this where you have your mingw32 bin lib and include directories Edited August 7, 2015 by Tux 1
luixvayo Posted August 7, 2015 Author Posted August 7, 2015 Holy orochi and mario bros! Thank you again! I try to compile it today.Greetings!
Tux Posted August 7, 2015 Posted August 7, 2015 You'll probably have some problems with the sdl-config / libpng-config files, they still have the absolute paths from my install here.Well if you do edit these files with a text editor (they are in the bin directory) and replace i686-pc-mingw32/usr by nothing, it should fix the problems.
luixvayo Posted August 8, 2015 Author Posted August 8, 2015 The links for the precompiled packages says 404 not found Why destiny, why!?
Robert Posted August 8, 2015 Posted August 8, 2015 raine.1emulation.com/archive/dev/archive/dev/zlib.7z is certainly a 404. It says /archive/dev twice, if I remove one of them, it then says 403 Forbidden.
Tux Posted August 8, 2015 Posted August 8, 2015 (edited) Sorry guys, at least it allowed me to update this and edit the config files in bin, you won't have to edit anything anymore normally.And added freetype too now.Now maybe I still forgot something, we'll see how it works ! Now be careful the 7z links seem to display the files directly in the browser as if the web server here didn't know about .7z files. The weird thing is that it works from the main download page though. I'll have to send a message to alpha to see if he has an idea... Edited August 8, 2015 by Tux 1
luixvayo Posted August 8, 2015 Author Posted August 8, 2015 Thank's again Tux! Downloaded all already . I will be posting the development news or any errors i get, so i will be bothering you, sorry in advance.Greetings again!
Tux Posted August 8, 2015 Posted August 8, 2015 If you are really interested in making a translation, I could make raine to use gettext.It would allow you to just translate the text in some text files, then you send the text file to me, I convert it, and you get your translation.Normally gettext works in linux, windows and about everything except dos, but dos used something else anyway.It's not too hard to do on my part, it's just that I never thought seriously about adding some translated text... It would allow non programmers to send their translations for inclusion.I still need to test this in windows, but normally it should work ! 1
luixvayo Posted August 8, 2015 Author Posted August 8, 2015 Yes, if it's good for you, awesome, send me the thingy and i will translate the text, later also if you want, and it's not too much trouble, send me a compiled version of Raine with gettext and the converted translation and i will test it under windows too.But i will keep trying to compile my own Raine, to get satisfaction
Tux Posted August 8, 2015 Posted August 8, 2015 (edited) Ok, well I have tested and it works perfectly in windows as promised (and in linux too of course) !Judging from your profile I guess you want to try to make a spanish translation then...So you can do it by using a program, it's called poedit there : http://poedit.net/Or you can edit directly the text file for your language. Here is the base texts, all in english in case you want to create a new language using poedit : http://raine.1emulation.com/archive/dev/raine.potHere is the french translation (unfinished) that I started as an example (it's just started, not done much yet !) : http://raine.1emulation.com/archive/dev/french.poAnd here is a file you could use for spanish, nothing done yet inside : http://raine.1emulation.com/archive/dev/es.po All these files are in ascii, you can either open them in a text editor or handle them using poedit.Inside you have a header where you can put your information to be contacted in case of future problem (!)then you have the strings in this format :# a comment which starts by a # and which shows from which source file the text comesmsgid "the original text in english"msgstr "the translation" and so on.If you leave msgstr empty for a string, then the english text is kept, which allows to test things without finishing completely the tranlsation. For now I have only put the texts from the gui, so there are not so many texts to translate finally.I don't think it's a good idea to try to translate dipswitches, or cheats, and even less history (for history you'd better translate their file directly !), nor the game names.So I think it's good as it is now, but we can always add more texts later if we want. For info in the end the po file must be converted to the mo format to be used by raine, I am not sure poedit can do that.Normally I do that from the command line like this for the french file : msgfmt -c -v -o raine.mo french.poif you want to try that you can get a windows distribution of gettext there : http://gnuwin32.sourceforge.net/packages/gettext.htmI guess it works the same way and you would need to use the command line for that (gnu tools love the command line !).Otherwise I can make the conversion for you. EDIT : update done, all the 3 files are updated, you'll need either to refresh them manually in your browser or to restart your browser. Edited August 8, 2015 by Tux
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now