OSX-renewing buildprocess -out-of-the-box-compile -

Discussion and help for Compilation problems and platform portability.

Moderator: coordinators

Re: OSX-renewing buildprocess -out-of-the-box-compile -

Postby Eros » Mon Sep 27, 2010 1:05 pm

Just to confirm that both the latest lux and luxrays compile and work fine out of the box. Only changes where to things in xcode where it had not chosen the correct defaults.

Time to test out the velvet :D
User avatar
Eros
 
Posts: 415
Joined: Wed Jul 22, 2009 8:37 am

Re: OSX-renewing buildprocess -out-of-the-box-compile -

Postby jensverwiebe » Mon Sep 27, 2010 1:46 pm

Jupp

It appears that you can´t affect the xcode-gui-app with : set(xcode_attribute_<attribute> , just the comandline xcodebuild.
But thats not a biggie

Jens
User avatar
jensverwiebe
Developer
 
Posts: 2124
Joined: Wed Apr 02, 2008 4:34 pm

Re: OSX-renewing buildprocess -out-of-the-box-compile -

Postby pciccone » Wed Sep 29, 2010 1:52 am

jens, thank you very much for the reviewed instructions, I'll give it a try soon.
User avatar
pciccone
Developer
 
Posts: 686
Joined: Wed Jan 13, 2010 11:02 am
Location: California

Re: OSX-renewing buildprocess -out-of-the-box-compile -

Postby jensverwiebe » Wed Sep 29, 2010 5:36 am

-Added postbuildrule to have a complete Info.plist ( assure icons are set and bundlename is LuxRender )
- Added postbuildrule to rename luxrender --> LuxRender
- Added plists to macos repo

Jens
User avatar
jensverwiebe
Developer
 
Posts: 2124
Joined: Wed Apr 02, 2008 4:34 pm

Re: OSX-renewing buildprocess -out-of-the-box-compile -

Postby remi » Sat Oct 09, 2010 11:30 pm

jensverwiebe wrote:Hi all
...
- get source of Luxrender, LuxRays and macos in the same directory

...

Jens


Hi,

for some reason I cannot clone any of mercurial repository located at src.luxrender.net, I always get a "premature EOF" error.
abort: premature EOF reading chunk (got 548410 bytes, expected 15281868)

using mercurial 1.6.3

Thankfully, I just discovered that there are mirrors on bitbucket, they work great, except for the "macos" repository that is missing.
http://bitbucket.org/luxrender

I've tried downloaded the macos archive from there, but without success, the zip seems to be corrupted.
http://src.luxrender.net/

Would you know how I could clone this macos repository?

cheers,

Rémi
remi
 
Posts: 2
Joined: Tue Sep 21, 2010 4:58 am

Re: OSX-renewing buildprocess -out-of-the-box-compile -

Postby jensverwiebe » Sun Oct 10, 2010 3:50 am

Unfortunately the "macos" repo is not mirrored, i just can tell you try again clone the original one.

Edit: in the works : hg clone http://bitbucket.org/luxrender/macos

Should be transferred 13:00 GMT today...finished.


Jens
User avatar
jensverwiebe
Developer
 
Posts: 2124
Joined: Wed Apr 02, 2008 4:34 pm

Re: OSX-renewing buildprocess -out-of-the-box-compile -

Postby remi » Mon Oct 11, 2010 4:12 am

thanks, I managed to clone it :-)
remi
 
Posts: 2
Joined: Tue Sep 21, 2010 4:58 am

Re: OSX-renewing buildprocess -out-of-the-box-compile -

Postby jensverwiebe » Sat Nov 27, 2010 6:52 pm

bump
User avatar
jensverwiebe
Developer
 
Posts: 2124
Joined: Wed Apr 02, 2008 4:34 pm

Re: OSX-renewing buildprocess -out-of-the-box-compile -

Postby a.boeglin » Fri Dec 17, 2010 3:41 am

Hi,

I tried the build yesterday without any success. I passed by many problems that I could finally solve ( header problems basically, first with opencl, then boost ), I got the code compiled but I do have a problem at the linking step. ld tells me that my boost is not for the right architecture ( I tried compiling only for i386 or only x86_64, no result ). I got my boost from macports and set the library in /opt/local/lib where it is. ld finds it good actually. I also tried with the macos package & the boost inside it, it's not working either. What am I doing wrong here ? I followed every single step & I'm finally so close to the goal ..

Thanks for attention.
a.boeglin
 
Posts: 1
Joined: Fri Dec 17, 2010 3:36 am

Re: OSX-renewing buildprocess -out-of-the-box-compile -

Postby jensverwiebe » Fri Dec 17, 2010 4:01 am

If you completely ignore my buildinstructions and do not use the lib-repostory i made, then
it´s your problem. Sorry. You will also miss the icons and preferencelists and such.
If you do as instructed, it should work out of the box, just a few tweaks are needed later to
build pylux against right python ( 3.1.x , so in xcode searchpath for /Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks must be first ! )

+ i do not recommend macports, it is often not build correct for universal use, especially backwardscompatibility ( not important in this case )
+ you will have to reconfigure all pathes the way you setup your build. ( boost_root ), as asked for i reconfigured building to use the repo, thus other pathes are ignored ( no_default_path option )
All dependencies are satisfied in "macos", so nothing else but Qt and perhaps Python 3.1.x is needed , keep in mind there is no official 64bit framework out from python.org. I you use the
alpha 3.2 you must undef but this may be an intermediate issue in python 3.2 alpha only.
Code: Select all
     1.1 --- a/include/boost/date_time/date_parsing.hpp   Sun Oct 31 14:17:16 2010 +0100
     1.2 +++ b/include/boost/date_time/date_parsing.hpp   Tue Dec 07 23:25:29 2010 +0100
     1.3 @@ -21,6 +21,15 @@
     1.4  #include <cctype> // ::tolower(int)
     1.5  #else
     1.6  #include <locale> // std::tolower(char, locale)
     1.7 +#ifdef __APPLE__
     1.8 +#ifdef PY_MAJOR_VERSION   3
     1.9 +#ifdef PY_MINOR_VERSION   1
    1.10 +#if PY_MICRO_VERSION>1
    1.11 +#undef tolower // for Python > 3.1.1
    1.12 +#endif
    1.13 +#endif
    1.14 +#endif
    1.15 +#endif
#endif



BTW: you did not mention the OSX you try to build on, guess 10.6.x ?

Jens
User avatar
jensverwiebe
Developer
 
Posts: 2124
Joined: Wed Apr 02, 2008 4:34 pm

PreviousNext

Return to Compilation & Portability

Who is online

Users browsing this forum: No registered users and 1 guest