gts546167 / swtoolkit

Automatically exported from code.google.com/p/swtoolkit
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

LInker error -rpath is not an viable option? MacOSX SnowLeopard compile mandelbrot example #21

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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_v
0.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

Original issue reported on code.google.com by Rudy.Mayo@gmail.com on 28 Oct 2011 at 9:45

GoogleCodeExporter commented 8 years ago
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?

Original comment by luke.we...@gmail.com on 14 Aug 2012 at 3:38