[SOLVED] NetRadiant compile Windows 7 - Printable Version +- Xonotic Forums (https://forums.xonotic.org) +-- Forum: Creating & Contributing (https://forums.xonotic.org/forumdisplay.php?fid=10) +--- Forum: Xonotic - Development (https://forums.xonotic.org/forumdisplay.php?fid=12) +--- Thread: [SOLVED] NetRadiant compile Windows 7 (/showthread.php?tid=5051) |
NetRadiant compile Windows 7 - toneddu2000 - 08-26-2014 Hy guys, I tried many times to compile NetRadiant on Windows 7 but with no luck. Today I started again with A LOT of patience but, again, no compilation succeded. Here all my steps in detail so maybe other users that tried this adventure can share their opinions Note: I used these instructions 1) Downloaded MinGW with MSys integrated from here 2) Downloaded NetRadiant source from here and NetRadiant dipendencies from here 3) Installed MinGw on C:\MinGW and launched MSys. From /home/username/netradiant I issued the command: Code: make MAKEFILE_CONF=mingw-Makefile.conf Make will not find AR(binutils),RANLIB(binutils) and pkg-config (PKGCONFIG). Go to C:\MinGW\msys\1.0\etc, duplicate fstab.sample to fstab [without extension], open it and edit it like this: Code: #Win32_Path Mount_Point To permit make to find PKGCONFIG I used this guide on StackOverflow, so: 4) Download pkg-config_0.26-1_win32.zip from here, extract the file bin/pkg-config.exe to C:\MinGW\bin. Download the file gettext-runtime_0.18.1.1-2_win32.zip from here and extract the file bin/intl.dll to C:\MinGW\bin Download glib_2.28.8-1_win32.zip from here and extract bin/libglib-2.0-0.dll to C:\MinGW\bin Re make and now make will go smooth through the dependencies check 5) It will hang here(I just copied the only portion of code that console buffer stored): Code: WINOLEAUTAPI VarDecFromDate(DATE,DECIMAL*); And now? I would ask if someone would be so kind to share his/her knowledge to fix this issue. Thanks in advance for any hint, cheers RE: NetRadiant compile Windows 7 - Mr. Bougo - 08-26-2014 Damn. I personally have no way to help you with that, and I really don't know who can... What version of mingw / msys have you tried? EDIT: If you don't require git, I'm sure you can find useable builds somewhere. RE: NetRadiant compile Windows 7 - end user - 08-26-2014 Try these links The latest pacakge I believe. Netradiant should be in there http://beta.xonotic.org/autobuild/Xonotic-latest-mappingsupport.zip In the prompt g-23 is the pass xonotic is the user. Set Up Info http://dev.xonotic.org/projects/3/wiki/Mapping-Setup There's also an older compiling write up here http://forums.xonotic.org/showthread.php?tid=4420 but Mario is on a walk about with kangaroos and alligators atm. RE: NetRadiant compile Windows 7 - toneddu2000 - 08-26-2014 Thanks guys for your kind reply, I've downloaded mingw auto installer so I don't know which version is. Probably is the newer one. I followed the links that end user posted and I found out that maybe I can just use the 2013 executables with a gamepack! Is it possible to add custom gamepack? For example for a foo game add a foo.game? Would it work? Compiling NetRadiant on Windows I think it's too complicated at the moment. I hope devs will add a Visual Studio sln file. That would be really appreciated RE: NetRadiant compile Windows 7 - Mr. Bougo - 08-27-2014 Do you have any specific game in mind? NetRadiant can't be used for any game, and the ones that do support its format should have some sort of info on how to set it up in their documentation/websites. Visual Studio, I doubt it. None of the devs work in windows as far as I can tell. RE: NetRadiant compile Windows 7 - toneddu2000 - 08-27-2014 (08-27-2014, 12:54 AM)Mr. Bougo Wrote: Do you have any specific game in mind? NetRadiant can't be used for any game, and the ones that do support its format should have some sort of info on how to set it up in their documentation/websites.Well, it can be used for any quake3 based game. I'm using it for a tech demo with FTEQW and DP engine and my gamedata folder is "data" so maybe I can use Xonotic's one and change few things. My question was different (sorry if it wasn't detailed) : I used GTK Radiant and support for new games must be expanded in source code, I'd like to know if NetRadiant has the same mechanism or it just need to add a xxx.game folder with its game features(data folder name, executable path, an so on) to make recognize the new game. But, honestly, there's no need to bother the forums, I can test it by my own! (08-27-2014, 12:54 AM)Mr. Bougo Wrote: Visual Studio, I doubt it. None of the devs work in windows as far as I can tell.yep, but broading the audience of architecture served, could only benefit the development of new features (layer support hint hint!) RE: NetRadiant compile Windows 7 - Mr. Bougo - 08-27-2014 If someone wants to do any sizeable contribution to NR, surely they'll want to adapt the build environment to their liking. Right now I think it's counterproductive to ask people who do not use VisualWhatever to create a file when there's no guarantee that your horde of potential devs aren't using eclipse anyway. If you're comfortable with VS, please go ahead and make a project file. But if that can't make use of GNU make and other unix tools, good luck with that. The build process is too involved. I'd say something's up with your msys / mingw setup anyway. It has worked just fine for at least three people so far. If you really need git, try to clean up your environment and reconstruct it from scratch. EDIT: As for game dirs, I don't know, as I'm no *radiant user. It shouldn't be too different. Look at how the xonotic gamefiles are made, compare it to something gtkradiant uses. RE: NetRadiant compile Windows 7 - toneddu2000 - 08-28-2014 I completely disagree with your vision of open development, but of course someone could disagree with mine. Internet is a democratic place. I found out that I don't need to build from scratch NetRadiant on Windows just to adapt it to my game. Here's what I did: 1) Downloaded NetRadiant last version from here (in the Downloads section) 2) go into the main NR folder and duplicate xonotic.game folder with mygame.game folder changing everything to suit your needs. I deleted everything except the entities (shaderlist is in my game/scripts folder so I don't see why leaving a duplicate) which need to be cut and paste depending on how many and which entities you need 3) go into the games folder and duplicate xonotic.game with mygame.game and edit: type="mygame" index="1" name="MyGame" enginepath_win32="c:\games\mygame" enginepath_linux="useless" enginepath_macos="useless" engine_win32="mygame-executable-name.exe" engine_linux="useless" engine_macos="useless" prefix=".mygame" basegame="mygamedata" basegamename="mygame" unknowngamename="Custom My Game modification" shaderpath="scripts" archivetypes="pk3" texturetypes="tga jpg png" modeltypes="ase obj" maptypes="mapq3" shaders="quake3" entityclass="quake3" entityclasstype="xml" entities="quake3" brushtypes="quake3" patchtypes="quake3" default_scale="0.25" forbidden_paths="xonotic*-data*.pk3* xonotic*-nexcompat*.pk3*" q3map2_type="xonotic" brush_primit="1" 4) open NetRadiant and Choose MyGame from the dropdown menu and (hopefully) everything should be set up! RE: [SOLVED] NetRadiant compile Windows 7 - Mr. Bougo - 08-28-2014 There's no doubt that VS project files would be a plus, but in practice, I don't think any developer of netradiant is ready to produce a well-made project file without significant work that requires getting familiar with VS in the first place. That's a significant investment of time and the actual benefit is questionable. Currently, the build system of netradiant relies on *NIX tools. Part of it is because it needs to download game packs from several different sources under several different protocols. With that in mind, no matter how many developers are involved, it's absolutely natural to prefer a *NIX environment like msys or cygwin or any other scripting environment like python that can work portably across platforms, instead of maintaining scripts in parallel for windows and non-windows. It just so happens that none of these environments work out of the box in Windows, and require some setup. In your case, something broke, but I can assure you that it has worked correctly in the past. I wouldn't blame the NR developers for it. EDIT: Anyway, I'm glad you worked out the gamepack structure to adapt it to your use case. RE: [SOLVED] NetRadiant compile Windows 7 - toneddu2000 - 08-28-2014 Quote:Currently, the build system of netradiant relies on *NIX tools. Part of it is because it needs to download game packs from several different sources under several different protocols. With that in mind, no matter how many developers are involved, it's absolutely natural to prefer a *NIX environment like msys or cygwin or any other scripting environment like python that can work portably across platforms, instead of maintaining scripts in parallel for windows and non-windows.Completely agree. My only point is: Would it be so harder or time consuming for maintainers to add a mingw/msys installation (maybe in the downloads section) already tested for NetRadiant / Xonotic compiling? I mean, I use Linux for 8 years now, I couldn't consider myself a pro but not a newbie. I never used mingw, right, but spend 2 days to build an environment that fails at compile is a little frustrating! I don't blame anyone and, at the opposite, I thank A LOT, NR developers to bring us a fresh alternative to GTK radiant RE: [SOLVED] NetRadiant compile Windows 7 - Mr. Bougo - 08-29-2014 (08-28-2014, 04:50 PM)toneddu2000 Wrote: Completely agree. My only point is: Would it be so harder or time consuming for maintainers to add a mingw/msys installation (maybe in the downloads section) already tested for NetRadiant / Xonotic compiling? I mean, I use Linux for 8 years now, I couldn't consider myself a pro but not a newbie. I never used mingw, right, but spend 2 days to build an environment that fails at compile is a little frustrating! It wouldn't be too hard, no. But it's fair to assume that a fair proportion of users will already be using mingw to compile Xonotic for example, so it won't always be the most hassle-free solution because you either end up with two parallel mingw setups or having to merge both. I think it's already quite nice of them to provide the whole toolset needed within mingw in a single package. Some time ago I wasn't aware of the guide, and tried to assist a user to figure out what dependencies were needed and how to install them. It was a very frustrating experience, so I understand your pain. I'll give a shot at setting up the environment in a windows VM some time in september, to see if there's a flaw with the instructions. What version of windows were you using? RE: [SOLVED] NetRadiant compile Windows 7 - toneddu2000 - 08-29-2014 (08-29-2014, 01:34 AM)Mr. Bougo Wrote: It wouldn't be too hard, no. But it's fair to assume that a fair proportion of users will already be using mingw to compile Xonotic for exampleIs it different from this? (08-29-2014, 01:34 AM)Mr. Bougo Wrote: , so it won't always be the most hassle-free solution because you either end up with two parallel mingw setups or having to merge both.Well, I hope not, as long as they stay in the msys "home" dir I can build dozens of different projects with a single mingw setup. I only need a "warranty certificate"(lol) that says: "don't worry, to compile Xonotic or any other Xonotic tool (NetRadiant for example) download this MinGW installation already shipped with all the common and xonotic-related libs and you're good to go" Quote:I think it's already quite nice of them to provide the whole toolset needed within mingw in a single package.indeed Quote:Some time ago I wasn't aware of the guide, and tried to assist a user to figure out what dependencies were needed and how to install them.So, there's another guide except the one I posted in the first link? Maybe I'm just wrong and I read an outdated guide! Quote:I'll give a shot at setting up the environment in a windows VM some time in september, to see if there's a flaw with the instructions. What version of windows were you using?Windows 7 and thanks for your help RE: NetRadiant compile Windows 7 - Mr. Bougo - 08-31-2014 No no, you're referring to the right guide. I wasn't aware of it or of the dependency package it links to. I'll post here when I try it out in a VM RE: NetRadiant compile Windows 7 - Mr. Bougo - 09-27-2014 Okay, I got this to work on a Windows 7 (32 bit) virtual machine. Here's what I did:
Troubleshooting for a problem I encountered:
I don't know how well this will work in 64 bit Windows. Let me know! RE: NetRadiant compile Windows 7 - toneddu2000 - 09-28-2014 Oh man, Thank you! It worked like a charm! The weird thing is that I was able to skip step n.6, compiler didn't claim any jpeg lib missing! Quote:Troubleshooting for a problem I encountered:No, I didn't remove them. Should I have done? Is it harmful for the compilation? Thanks A LOT Mr. Bougo! I really appreciated your effort!Now someone should stick Mr. Bougo's last post! EDIT: for those who has a multi-cores processor I suggesto to compile with: make MAKEFILE_CONF=mingw-Makefile.conf -j X where X is the maximum number of cores your processor has. Mine is a i7 8 cores and it compiles in 10 sec! RE: NetRadiant compile Windows 7 - Mr. Bougo - 09-28-2014 Ah, strange that you didn't need libjpeg. I really don't have a clue why. Could you run a search through your mingw install directory for files that include "libjpeg" in their name? Tell me if it finds libjpeg-8.dll in there. I suppose you were using Windows 7 64 bit? Did you reinstall mingw completely or did you use the install that had previously failed? I'll see if we can update the guide and dependency package. RE: NetRadiant compile Windows 7 - toneddu2000 - 09-28-2014 Nope. I've already a MinGW folder but i renamed MinGW_ and I started from scratch with the installer as you described. Apparently Windows 7(I have 64bit Home Premium) finds only libjpeg6.a in C:\MinGW\msys\1.0\home\user\netradiant RE: NetRadiant compile Windows 7 - Mr. Bougo - 09-28-2014 Weird. I wonder where that file came from. What's the creation / modification timestamp on this? RE: NetRadiant compile Windows 7 - toneddu2000 - 09-29-2014 (09-28-2014, 11:20 PM)Mr. Bougo Wrote: Weird. I wonder where that file came from. What's the creation / modification timestamp on this?I think I cannot be of help, here. Creation / modification date says it's yesterday at 4:44 PM! There's a way to see original creation date? RE: NetRadiant compile Windows 7 - Mr. Bougo - 09-29-2014 Nope, if it tells you it's yesterday, it's yesterday... Not sure how to explain that then! RE: NetRadiant compile Windows 7 - toneddu2000 - 09-29-2014 Are you sure that lib is not in the git repo? RE: NetRadiant compile Windows 7 - Mr. Bougo - 09-29-2014 Yup, I'm positive it isn't! |