PPC build doesn't work on Tiger mac

Hi. I was trying to create mac executables with the code of the asteroids example on Panda3D 1.8.1. I haven’t tried the intel app yet but the ppc app doesn’t work. I used a pc with Windows 7 Professional 64 bits to compile the file and tested it on an old Ibook G4 with OS X 10.4 Tiger. Then I tried to use the Panda3d runtime for mac but the game doesn’t start after downloading the files. I know that assuring support for a Tiger mac must be a bother but I want to know if it can be done. Does the Panda3d ppc apps work on Tiger?

In theory. But we’ve never tested it extensively, and there may be bugs. You’d have to let us know exactly what kinds of errors you run into: show us the log files in ~/Library/Panda3D/log etc.

For what it’s worth, we do plan on dropping support for both PPC and Tiger soon.

The only log i found was “p3dpython.crash.log” located in /Users/juan/Library/Logs/CrashRepoter/ . Here it is:


Host Name: bob-friedmans-ibook-g4
Date/Time: 2014-01-07 17:23:26.605 -0500
OS Version: 10.4.11 (Build 8S165)
Report Version: 4

Command: p3dpython
Path: /Users/juan/Library/Caches/Panda3D/hosts/runtime.panda3d.org_0f5faf88846080ae/panda3d/cmu_1.8/P3DPython.app/Contents/MacOS/p3dpython
Parent: this_gameV2 [683]

Version: 0.9.3 (0.9.3)

PID: 690
Thread: Unknown

Link (dyld) error:

Library not loaded: Cg
Referenced from: /Users/juan/Library/Caches/Panda3D/hosts/runtime.panda3d.org_0f5faf88846080ae/panda3d/cmu_1.8/libpanda.dylib
Reason: image not found


Host Name: bob-friedmans-ibook-g4
Date/Time: 2014-01-07 17:23:46.632 -0500
OS Version: 10.4.11 (Build 8S165)
Report Version: 4

Command: p3dpython
Path: /Users/juan/Library/Caches/Panda3D/hosts/runtime.panda3d.org_0f5faf88846080ae/panda3d/cmu_1.8/P3DPython.app/Contents/MacOS/p3dpython
Parent: this_gameV2 [698]

Version: 0.9.3 (0.9.3)

PID: 699
Thread: Unknown

Link (dyld) error:

Library not loaded: Cg
Referenced from: /Users/juan/Library/Caches/Panda3D/hosts/runtime.panda3d.org_0f5faf88846080ae/panda3d/cmu_1.8/libpanda.dylib
Reason: image not found


Host Name: bob-friedmans-ibook-g4
Date/Time: 2014-01-07 17:24:41.012 -0500
OS Version: 10.4.11 (Build 8S165)
Report Version: 4

Command: p3dpython
Path: /Users/juan/Library/Caches/Panda3D/hosts/runtime.panda3d.org_0f5faf88846080ae/panda3d/cmu_1.8/P3DPython.app/Contents/MacOS/p3dpython
Parent: this_gameV2 [708]

Version: 0.9.3 (0.9.3)

PID: 709
Thread: Unknown

Link (dyld) error:

Library not loaded: Cg
Referenced from: /Users/juan/Library/Caches/Panda3D/hosts/runtime.panda3d.org_0f5faf88846080ae/panda3d/cmu_1.8/libpanda.dylib
Reason: image not found


Host Name: bob-friedmans-ibook-g4
Date/Time: 2014-04-06 17:51:40.403 -0500
OS Version: 10.4.11 (Build 8S165)
Report Version: 4

Command: p3dpython
Path: /Volumes/JUAN/osx_ppc/Asteroids.app/Contents/Resources/panda3d/cmu_1.8/P3DPython.app/Contents/MacOS/p3dpython
Parent: asteroids [283]

Version: 0.9.3 (0.9.3)

PID: 284
Thread: Unknown

Link (dyld) error:

Library not loaded: Cg
Referenced from: /Volumes/JUAN/osx_ppc/Asteroids.app/Contents/Resources/panda3d/cmu_1.8/libpanda.dylib
Reason: image not found


Host Name: bob-friedmans-ibook-g4
Date/Time: 2014-04-06 17:52:10.135 -0500
OS Version: 10.4.11 (Build 8S165)
Report Version: 4

Command: p3dpython
Path: /Volumes/JUAN/osx_ppc/Asteroids.app/Contents/Resources/panda3d/cmu_1.8/P3DPython.app/Contents/MacOS/p3dpython
Parent: asteroids [298]

Version: 0.9.3 (0.9.3)

PID: 299
Thread: Unknown

Link (dyld) error:

Library not loaded: Cg
Referenced from: /Volumes/JUAN/osx_ppc/Asteroids.app/Contents/Resources/panda3d/cmu_1.8/libpanda.dylib
Reason: image not found


Host Name: bob-friedmans-ibook-g4
Date/Time: 2014-04-06 17:52:12.539 -0500
OS Version: 10.4.11 (Build 8S165)
Report Version: 4

Command: p3dpython
Path: /Volumes/JUAN/osx_ppc/Asteroids.app/Contents/Resources/panda3d/cmu_1.8/P3DPython.app/Contents/MacOS/p3dpython
Parent: asteroids [301]

Version: 0.9.3 (0.9.3)

PID: 302
Thread: Unknown

Link (dyld) error:

Library not loaded: Cg
Referenced from: /Volumes/JUAN/osx_ppc/Asteroids.app/Contents/Resources/panda3d/cmu_1.8/libpanda.dylib
Reason: image not found


Host Name: bob-friedmans-ibook-g4
Date/Time: 2014-04-06 17:54:42.494 -0500
OS Version: 10.4.11 (Build 8S165)
Report Version: 4

Command: p3dpython
Path: /Volumes/JUAN/osx_ppc/Asteroids.app/Contents/Resources/panda3d/cmu_1.8/P3DPython.app/Contents/MacOS/p3dpython
Parent: asteroids [305]

Version: 0.9.3 (0.9.3)

PID: 306
Thread: Unknown

Link (dyld) error:

Library not loaded: Cg
Referenced from: /Volumes/JUAN/osx_ppc/Asteroids.app/Contents/Resources/panda3d/cmu_1.8/libpanda.dylib
Reason: image not found


Host Name: bob-friedmans-ibook-g4
Date/Time: 2014-04-06 17:54:47.433 -0500
OS Version: 10.4.11 (Build 8S165)
Report Version: 4

Command: p3dpython
Path: /Volumes/JUAN/osx_ppc/Asteroids.app/Contents/Resources/panda3d/cmu_1.8/P3DPython.app/Contents/MacOS/p3dpython
Parent: asteroids [308]

Version: 0.9.3 (0.9.3)

PID: 309
Thread: Unknown

Link (dyld) error:

Library not loaded: Cg
Referenced from: /Volumes/JUAN/osx_ppc/Asteroids.app/Contents/Resources/panda3d/cmu_1.8/libpanda.dylib
Reason: image not found


Host Name: bob-friedmans-ibook-g4
Date/Time: 2014-04-06 17:54:49.479 -0500
OS Version: 10.4.11 (Build 8S165)
Report Version: 4

Command: p3dpython
Path: /Volumes/JUAN/osx_ppc/Asteroids.app/Contents/Resources/panda3d/cmu_1.8/P3DPython.app/Contents/MacOS/p3dpython
Parent: asteroids [311]

Version: 0.9.3 (0.9.3)

PID: 312
Thread: Unknown

Link (dyld) error:

Library not loaded: Cg
Referenced from: /Volumes/JUAN/osx_ppc/Asteroids.app/Contents/Resources/panda3d/cmu_1.8/libpanda.dylib
Reason: image not found


Host Name: bob-friedmans-ibook-g4
Date/Time: 2014-04-06 17:54:56.153 -0500
OS Version: 10.4.11 (Build 8S165)
Report Version: 4

Command: p3dpython
Path: /Volumes/JUAN/osx_ppc/Asteroids.app/Contents/Resources/panda3d/cmu_1.8/P3DPython.app/Contents/MacOS/p3dpython
Parent: asteroids [314]

Version: 0.9.3 (0.9.3)

PID: 315
Thread: Unknown

Link (dyld) error:

Library not loaded: Cg
Referenced from: /Volumes/JUAN/osx_ppc/Asteroids.app/Contents/Resources/panda3d/cmu_1.8/libpanda.dylib
Reason: image not found


Host Name: bob-friedmans-ibook-g4
Date/Time: 2014-04-06 17:55:02.714 -0500
OS Version: 10.4.11 (Build 8S165)
Report Version: 4

Command: p3dpython
Path: /Volumes/JUAN/osx_ppc/Asteroids.app/Contents/Resources/panda3d/cmu_1.8/P3DPython.app/Contents/MacOS/p3dpython
Parent: asteroids [317]

Version: 0.9.3 (0.9.3)

PID: 318
Thread: Unknown

Link (dyld) error:

Library not loaded: Cg
Referenced from: /Volumes/JUAN/osx_ppc/Asteroids.app/Contents/Resources/panda3d/cmu_1.8/libpanda.dylib
Reason: image not found


Host Name: bob-friedmans-ibook-g4
Date/Time: 2014-04-06 17:55:04.512 -0500
OS Version: 10.4.11 (Build 8S165)
Report Version: 4

Command: p3dpython
Path: /Volumes/JUAN/osx_ppc/Asteroids.app/Contents/Resources/panda3d/cmu_1.8/P3DPython.app/Contents/MacOS/p3dpython
Parent: asteroids [320]

Version: 0.9.3 (0.9.3)

PID: 321
Thread: Unknown

Link (dyld) error:

Library not loaded: Cg
Referenced from: /Volumes/JUAN/osx_ppc/Asteroids.app/Contents/Resources/panda3d/cmu_1.8/libpanda.dylib
Reason: image not found


Host Name: bob-friedmans-ibook-g4
Date/Time: 2014-04-06 18:10:38.133 -0500
OS Version: 10.4.11 (Build 8S165)
Report Version: 4

Command: p3dpython
Path: /Users/juan/Library/Caches/Panda3D/hosts/runtime.panda3d.org_0f5faf88846080ae/panda3d/cmu_1.8/P3DPython.app/Contents/MacOS/p3dpython
Parent: panda3d_mac [381]

Version: 0.9.3 (0.9.3)

PID: 386
Thread: Unknown

Link (dyld) error:

Library not loaded: Cg
Referenced from: /Users/juan/Library/Caches/Panda3D/hosts/runtime.panda3d.org_0f5faf88846080ae/panda3d/cmu_1.8/libpanda.dylib
Reason: image not found


Host Name: bob-friedmans-ibook-g4
Date/Time: 2014-04-06 18:23:57.938 -0500
OS Version: 10.4.11 (Build 8S165)
Report Version: 4

Command: p3dpython
Path: /Volumes/JUAN/osx_ppc/Asteroids.app/Contents/Resources/panda3d/cmu_1.8/P3DPython.app/Contents/MacOS/p3dpython
Parent: asteroids [425]

Version: 0.9.3 (0.9.3)

PID: 426
Thread: Unknown

Link (dyld) error:

Library not loaded: Cg
Referenced from: /Volumes/JUAN/osx_ppc/Asteroids.app/Contents/Resources/panda3d/cmu_1.8/libpanda.dylib
Reason: image not found


Host Name: bob-friedmans-ibook-g4
Date/Time: 2014-04-07 18:01:22.700 -0500
OS Version: 10.4.11 (Build 8S165)
Report Version: 4

Command: p3dpython
Path: /Volumes/JUAN/Asteroids.app/Contents/Resources/panda3d/cmu_1.8/P3DPython.app/Contents/MacOS/p3dpython
Parent: asteroids [344]

Version: 0.9.3 (0.9.3)

PID: 345
Thread: Unknown

Link (dyld) error:

Library not loaded: Cg
Referenced from: /Volumes/JUAN/Asteroids.app/Contents/Resources/panda3d/cmu_1.8/libpanda.dylib
Reason: image not found


Host Name: bob-friedmans-ibook-g4
Date/Time: 2014-04-07 18:01:25.215 -0500
OS Version: 10.4.11 (Build 8S165)
Report Version: 4

Command: p3dpython
Path: /Volumes/JUAN/Asteroids.app/Contents/Resources/panda3d/cmu_1.8/P3DPython.app/Contents/MacOS/p3dpython
Parent: asteroids [347]

Version: 0.9.3 (0.9.3)

PID: 348
Thread: Unknown

Link (dyld) error:

Library not loaded: Cg
Referenced from: /Volumes/JUAN/Asteroids.app/Contents/Resources/panda3d/cmu_1.8/libpanda.dylib
Reason: image not found


Host Name: bob-friedmans-ibook-g4
Date/Time: 2014-04-07 18:01:27.264 -0500
OS Version: 10.4.11 (Build 8S165)
Report Version: 4

Command: p3dpython
Path: /Volumes/JUAN/Asteroids.app/Contents/Resources/panda3d/cmu_1.8/P3DPython.app/Contents/MacOS/p3dpython
Parent: asteroids [350]

Version: 0.9.3 (0.9.3)

PID: 351
Thread: Unknown

Link (dyld) error:

Library not loaded: Cg
Referenced from: /Volumes/JUAN/Asteroids.app/Contents/Resources/panda3d/cmu_1.8/libpanda.dylib
Reason: image not found


Host Name: bob-friedmans-ibook-g4
Date/Time: 2014-04-07 18:05:39.365 -0500
OS Version: 10.4.11 (Build 8S165)
Report Version: 4

Command: p3dpython
Path: /Users/juan/Library/Caches/Panda3D/hosts/runtime.panda3d.org_0f5faf88846080ae/panda3d/cmu_1.8/P3DPython.app/Contents/MacOS/p3dpython
Parent: panda3d_mac [368]

Version: 0.9.3 (0.9.3)

PID: 369
Thread: Unknown

Link (dyld) error:

Library not loaded: Cg
Referenced from: /Users/juan/Library/Caches/Panda3D/hosts/runtime.panda3d.org_0f5faf88846080ae/panda3d/cmu_1.8/libpanda.dylib
Reason: image not found


Host Name: bob-friedmans-ibook-g4
Date/Time: 2014-04-07 18:06:53.827 -0500
OS Version: 10.4.11 (Build 8S165)
Report Version: 4

Command: p3dpython
Path: /Users/juan/Library/Caches/Panda3D/hosts/runtime.panda3d.org_0f5faf88846080ae/panda3d/cmu_1.8/P3DPython.app/Contents/MacOS/p3dpython
Parent: panda3d_mac [378]

Version: 0.9.3 (0.9.3)

PID: 379
Thread: Unknown

Link (dyld) error:

Library not loaded: Cg
Referenced from: /Users/juan/Library/Caches/Panda3D/hosts/runtime.panda3d.org_0f5faf88846080ae/panda3d/cmu_1.8/libpanda.dylib
Reason: image not found

I see. Looks like it’s having trouble finding the NVIDIA Cg toolkit. Perhaps this requires manual installation to work.

Thank you for your quick reply. Yeah, the log file said that Panda3d couldn’t find the Cg library quite a few times. Do I need to reinstall Cg Toolkit? How do you install that manually?

You’d go to the website of the NVIDIA Cg Toolkit and install it from there:
developer.nvidia.com/cg-toolkit-download

You might have to manually copy a file to the Panda3D runtime directory afterward - if this doesn’t solve it, you’d have to browse to Cg.framework, copy the library file called “Cg” to the panda3d/cmu_1.8/ directory referenced in the error log.

You may alternatively be able to build against 1.7, which may not have this problem, but I’m not sure.

Copying the file in the folder doesn’t work because it gets deleted every time I try to open asteroids.p3d. Apparently those folders keep track of their content in xml files and the runtime download missing files and delete files not listed. Could two versions of Panda3d coexist on the same machine? Do I need to uninstall 1.8.1 to install and build against 1.7?

No, that can’t be a problem. Hmm. I’m not sure how to solve this problem right now, sorry.