PDA

View Full Version : My C++ tool will only run on the computer where it was compiled




joakimk
Dec 18, 2008, 03:11 AM
Hi! I have some C++ code which needs to run on a mac (it uses VecLib BLAS), so I installed Xcode yesterday on my old G4 and was able to compile and run the tool :D

However, I'd like to go to work now (hehe), where we use Linux. My plan is to have the tool on a USB stick, and simply ask my OSX colleague to run the tool when I need it. But, trying this on my G3 iBook, it obviously isn't compiled to run on a different machine. The iBook says,

Marthes-maskin:~/cycleCounter/build marthe$ ./cycleCounter
dyld: ./cycleCounter can't open library:
/Users/jknudsen/cycleCounter/build/cycleCounter.build/cycleCounter.build/Objects-normal/ppc/libstdc++_ZeroLink.dylib (No such file or
directory, errno = 2)
Trace/BPT trap

Now, jknudsen is me on the G4. What can be done in Xcode to make a standalone app? It's OK for this to be a terminal tool. Please see attached snapshot of my Xcode project :) Thanks a bunch!!

Joakim



gnasher729
Dec 18, 2008, 03:31 AM
Hi! I have some C++ code which needs to run on a mac (it uses VecLib BLAS), so I installed Xcode yesterday on my old G4 and was able to compile and run the tool :D

However, I'd like to go to work now (hehe), where we use Linux. My plan is to have the tool on a USB stick, and simply ask my OSX colleague to run the tool when I need it. But, trying this on my G3 iBook, it obviously isn't compiled to run on a different machine. The iBook says,


Now, jknudsen is me on the G4. What can be done in Xcode to make a standalone app? It's OK for this to be a terminal tool. Please see attached snapshot of my Xcode project :) Thanks a bunch!!

Joakim

1. Turn Zerolink off.
2. Vector code won't run on a G3.

joakimk
Dec 18, 2008, 03:51 AM
1. Turn Zerolink off.
2. Vector code won't run on a G3.

Thanks, I'll make a "release build". So I should expect the program to run fine on the G5 laptops of my colleagues, then?

Cromulent
Dec 18, 2008, 04:09 AM
Thanks, I'll make a "release build". So I should expect the program to run fine on the G5 laptops of my colleagues, then?

G5 laptops. Please tell where you got these mythical machines from!

There is no such thing as a G5 laptop :).

Sander
Dec 18, 2008, 08:04 AM
G5 laptops. Please tell where you got these mythical machines from!

There is no such thing as a G5 laptop :).

See here (http://laptops.techfresh.net/gigabyte-w251-g5-laptop/) for a G5 laptop. You could even build one yourself by swapping out the motherboard of a G4 laptop, by buying this (http://cgi.ebay.com/Original-Apple-Power-Mac-G5-Laptop-Motherboard-New_W0QQitemZ140269663181QQcmdZViewItem).

;)

Cromulent
Dec 18, 2008, 08:18 AM
See here (http://http://laptops.techfresh.net/gigabyte-w251-g5-laptop/) for a G5 laptop. You could even build one yourself by swapping out the motherboard of a G4 laptop, by buying this (http://http://cgi.ebay.com/Original-Apple-Power-Mac-G5-Laptop-Motherboard-New_W0QQitemZ140269663181QQcmdZViewItem).

;)

Your links are broken :).

I see there was a laptop called a G5 but it was not actually a G5. That eBay action made me laugh though.