Maxwell Render

Maxwell Render Information Repository
It is currently Mon May 20, 2013 11:19 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Fri Jun 17, 2011 4:13 pm 

Joined: Fri Apr 01, 2005 10:17 am
Posts: 5
hello.

I tried to compile 2.5.1 SDK with XCode 4.0 ( Mac OS X 10.6 ) for my plugin project. but It failed by liker ld error.

Code:
// compiling for 32bit intel
Undefined symbols for architecture i386:
  "_Microseconds", referenced from:
      Ctimer::Ctick::getRandomSeed()     in libmxs.a(timer.o) ... 67 errors more...

// compiling for 64bit intel
Undefined symbols for architecture x86_64:
  "_Microseconds", referenced from:
      Ctimer::Ctick::getRandomSeed()     in libmxs.a(timer.o)


I googled, and it seems to be known problem of Mac OS X 10.6 environment.
I checked 'ranlib' for libmxs.a, and it showed "no symbols" message for each architectures ( ppc/i386/x86_64 ).
I tried some liker options, but no succeed.

anyone can compile SDK on OSX 10.6? Did I miss anything?

regards.

tg_jp


Top
 Profile  
 
PostPosted: Mon Jun 20, 2011 11:30 am 

Joined: Fri Jun 30, 2006 9:10 am
Posts: 321
You should link With CoreServices.framework for this function.

nachob

_________________
Next Limit Team


Top
 Profile  
 
PostPosted: Tue Jun 28, 2011 2:39 am 

Joined: Fri Apr 01, 2005 10:17 am
Posts: 5
thank you for replying. It's help a lot.

I have linked with CoreService.framework, so now I linked with Foundation.framework and CoreService.framework. Still Linker Errors are remained, but its count is decreased. now I have 2 question.

1. Are there any other framework or external library I should link with? Should I link with additional libraries (png/tiff/imf/zip) for compiling?
2. A maxwelllights.h file is missing in SDK, but maxwelllights.cpp, it's not required?

regards.

tg_jp


Top
 Profile  
 
PostPosted: Tue Jun 28, 2011 11:15 am 

Joined: Fri Jun 30, 2006 9:10 am
Posts: 321
Hi tg_jp,

1- Yes, linking with zlib is usually also required. Depending in what functionality you use from the SDK, you might also need to link with Cocoa or even libxml2. But as I said it depends on what functions of the sdk you are using.

2- Yes that's not needed, it's just an example of how to convert some of the non physical lights to geometry ones keeping similar behaviour.

Best regards,

nachob

_________________
Next Limit Team


Top
 Profile  
 
PostPosted: Wed Jun 29, 2011 2:29 pm 

Joined: Fri Apr 01, 2005 10:17 am
Posts: 5
Hi, nachob

thank you so much for help. It succeeded.

regards.

tg_jp


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group