Issue 21 in swtoolkit: LInker error -rpath is not an viable option? MacOSX SnowLeopard compile mandelbrot example

30 views
Skip to first unread message

codesite...@google.com

unread,
Oct 28, 2011, 5:46:00 PM10/28/11
to swto...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 21 by Rudy.M...@gmail.com: LInker error -rpath is not an viable
option? MacOSX SnowLeopard compile mandelbrot example
http://code.google.com/p/swtoolkit/issues/detail?id=21

What steps will reproduce the problem?
1. I am trying to do a simple compile with the mandelbrot example for mac.
I get everything to compile but when it gets to the linker phase :

scons: done reading SConscript files.
scons: Building targets ...
________Compiling scons-out/opt-mac/obj/mac/MandelbrotView.o
________Compiling scons-out/opt-mac/obj/mac/ImageGeneratorView.o
________Compiling scons-out/opt-mac/obj/mac/main.o
________Compiling scons-out/opt-mac/obj/cross/mandelbrot_generator.o
________Creating library scons-out/opt-mac/obj/cross/libmandelbrot_gen.a
________Indexing scons-out/opt-mac/obj/cross/libmandelbrot_gen.a
Install file: "scons-out/opt-mac/obj/cross/libmandelbrot_gen.a"
as "scons-out/opt-mac/lib/libmandelbrot_gen.a"
________Linking scons-out/opt-mac/obj/mac/mandelbrot
ld: unknown option:
-rpath=/Users/9r0ximi7y/Desktop/VideoChat_Folder/VideoChat/VideoChat_libjingle_v0.6.2/swtoolkit/samples/mandelbrot/scons-out/opt-mac/lib
collect2: ld returned 1 exit status
scons: *** [scons-out/opt-mac/obj/mac/mandelbrot] Error 1
scons: building terminated because of errors.

What is the expected output? What do you see instead?
I should get an application?

What version of the product are you using? On what operating system?
I am on SnowLeopard with XCode 4.1 installed, right before XCode 4.2 w/iOS
5.0 GM was released


codesite...@google.com

unread,
Aug 14, 2012, 11:38:30 AM8/14/12
to swto...@googlegroups.com

Comment #1 on issue 21 by luke.we...@gmail.com: LInker error -rpath is not
an viable option? MacOSX SnowLeopard compile mandelbrot example
http://code.google.com/p/swtoolkit/issues/detail?id=21

This is still failing. Is there a preferred way to deal with this.

I thought adding the following to my main.scons would fix it:
mac_env.Replace(
RPATH = [],
)

Instead I had to add:
env.Replace(
RPATH = [],
)

Which seems to be a bit of a hack for something that's definitely broken.
Is there a better workaround, is the mac_env stuff broken?


Reply all
Reply to author
Forward
0 new messages