building NetRadiant on OS X, without X11.app

For now: Everything about NetRadiant

Moderator: Moderators

building NetRadiant on OS X, without X11.app

Postby ingar » Thu Sep 03, 2009 8:38 pm

Hi,

I've been trying to get radiant working on OS X without having to depend on X11.
It is possible to produce a working binary, although not without a lot of tinkering.
There are a few quirks left to work out, so this is not yet intended for end-users.

I used macports 1.8 on 10.5 as build platform.
The Gtk2 library and all dependencies were installed as +no_x11 +quartz variant.

Code: Select all
sudo su -
echo "+no_x11 +quartz" > /opt/local/etc/macports/variants.conf
port install gtk2


The only exception is gtkglext. It does not support OS X and you need to
install a patched version. Download the source and get the gtkglext quartz patch from
sourceforge or my site

build with
Code: Select all
./configure --prefix=/opt/local --target-quartz
make
sudo make install


Patch the netradiant source with netradiant-395-quartz.patch and build as usual.

This is a work in progress: mouse handling seems to work in slow-motion and there
is some work to be done to get GL extensions to work. Insights are always appreciated
:wink:

It might be worth noting that the Gtk2 library can be built with the image loader libraries
included within the main library. This works on win32, it might also work on OS X.

10.5 binaries do not seem to work on 10.4.
ingar
Newbie
 
Posts: 9
Joined: Fri Oct 24, 2008 4:34 pm

Postby divVerent » Fri Sep 04, 2009 7:53 am

Once you get it working well, please tell me, this patch will get into NetRadiant svn then. Also I'll probably need all the libraries you need in binary and .h form, so I can install them on the build machine (as I really don't want to install macports there as it's not my computer and it currently uses fink instead).
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby Lixi » Fri Sep 11, 2009 11:28 am

Awesome, ingar, hopefully you can get it working stably and cleaned up!

ingar wrote:10.5 binaries do not seem to work on 10.4.

Did you build against the 10.4u SDK or the system default? Assuming you installed the 10.4 SDK when you installed the dev tools, you can set these in macports.conf:

http://guide.macports.org/chunked/internals.configuration-files.html wrote:universal_target
Sets MACOSX_DEPLOYMENT_TARGET

Example: 10.4

universal_sysroot
The SDK "sysroot" full path to use for +universal variant.

Example: /Developer/SDKs/MacOSX10.4u.sdk

universal_archs
The machine architectures to use for +universal variant (multiple entries must be space delimited). Options include: ppc, i386, ppc64, x86_64

Default: x86_64 i386 (ppc i386 for 10.5 and earlier)


And, then, of course, you'll need to build NetRadiant against that SDK, too, if div's makefile doesn't already do that. You can use the -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk compiler flags to make a complete universal 10.4 compatible bin.

divVerent wrote:Once you get it working well, please tell me, this patch will get into NetRadiant svn then. Also I'll probably need all the libraries you need in binary and .h form, so I can install them on the build machine (as I really don't want to install macports there as it's not my computer and it currently uses fink instead).

If you're referencing the MacBook: of course you're welcome to install MacPorts, or if you prefer, I can do so anytime you want. You're more than welcome to do anything you'd like with it. I only setup fink because, at the time, I felt it had the most complete number of stable ports. Since that time, however, I think MacPorts has really become de facto. Whatever makes your life easier.
Lixi
Member
 
Posts: 14
Joined: Sun Oct 26, 2008 5:33 pm

Postby ingar » Sat Sep 12, 2009 8:43 am

Lixi wrote:Did you build against the 10.4u SDK or the system default? Assuming you installed the 10.4 SDK when you installed the dev tools, you can set these in macports.conf:


Thanks for the tip Lixi, I did use the system default SDK, and not the 10.4 compatible one.
I'd better start recompiling my ports tree 8)
ingar
Newbie
 
Posts: 9
Joined: Fri Oct 24, 2008 4:34 pm

Postby mmoclan.webs.com » Wed Sep 30, 2009 2:45 pm

intersting.........
=|MMoC|= Admin
mmoclan.webs.com
Member
 
Posts: 15
Joined: Wed Sep 23, 2009 2:39 pm
Location: Hell


Return to NetRadiant - General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest