Project

General

Profile

Actions

Emulator Issues #2175

closed

Mac OS X Snow Leopard scons osx=64cocoa error message with Cg Framework

Added by celgilles over 14 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

What steps will reproduce the problem?

  1. On Snow Leopard compiling with command #scons osx=64cocoa

What is the expected output? What do you see instead?

With #scons osx=64cocoa a Cg framework error appears
Looking for lib Cg... no Plugin_VideoOGL must have Cg framework from nvidia to be build
scons: File "/Users/me/dolphin-emu-read-only/Source/Plugins/Plugin_VideoSoftware?
/Src/SConscript", line 55, in <module>
Then you build with command #scons osx=64cocoa You don't get this error message if you
normally build with #scons or #scons osx=32cocoa

What version of the product are you using? On what operating system?
dolphin-svn 4977 on Mac OS X Snow Leopard 10.6.2

Please provide any additional information below.

Actually compiling with commands
#scons
#scons osx=32cocoa

works on Snow Leopard without any error, it spits out a binary file (with wxWidgets 2.8.9)

Actions #1

Updated by BhaaL over 14 years ago

  • Status changed from New to Questionable

Are you running SL with the 64-bit Kernel? It isnt enabled by default.
Check System Profiler > Software and see if "64-bit Kernel and Extensions" reads "yes".

Actions #2

Updated by BhaaL over 14 years ago

...also, try running scons osx=64cocoa --config=force in case you tried this before
installing Cg.framework - scons might cache this.

Actions #3

Updated by celgilles over 14 years ago

No I don't use Snow Leo with 64 bit Kernel...actually it seems to work (but not always) if you delete the file
args.cache in the root path of dolphin-emu...

#rm args.cache

Actions #4

Updated by BhaaL over 14 years ago

osx=64cocoa is only valid for 64-bit kernels. It might build on 32-bit kernels, but
wont run at all.

As for the general issue of "Cg framework not found", this seems to be more a scons
issue...
I get the same error occasionally (right after successful builds!), and then again it
wont work until I reboot once or twice.

Might be that we forgot to set some options for frameworks on OSX, but so far I
reached nothing with my tests.

Actions #5

Updated by Sonicadvance1 over 14 years ago

j4ck.fr0st, OSX's kernel is a bit different than the norm, It can run 64bit binaries
fine in 32bit mode. I can build and run 64bit Dolphin fine with a 32bit kernel
running.

Actions #6

Updated by celgilles over 14 years ago

ok so for the unmodified Snow-Leopard kernel (32bit) it's better to just compile with #scons ?

Actions #7

Updated by BhaaL over 14 years ago

Sonic: Interresting, I can't compile with 64cocoa, same problem: Cg.framework not found.
32cocoa works fine.

Any ideas on that?

Actions #9

Updated by Sonicadvance1 over 14 years ago

Seems to be an error with our checking, the CG framework is a universal x86/x86_64
framework, it seems to be a problem with how we are checking it. I can reproduce the
error as well, but it seems to be erratic and doesn't always appear. We need to
figure out exactly what the conditions are and fix it.

Actions #10

Updated by BhaaL over 14 years ago

The interresting thing is that our Framework check only does scons.TryLink.
Attempting the same from command line works fine, so I'm at a loss of ideas.

Actions #11

Updated by qurtabah2002 over 14 years ago

i m not a programmer or developer .. jus want to ask wat to do after compiling is finished i cant find emulator
where is it installed?

Actions #12

Updated by Sonicadvance1 over 14 years ago

It is stored in Binary/Darwin-*

Actions #13

Updated by qurtabah2002 over 14 years ago

thankx sonic but i still got the problem .. on the emulator icon it has a forbidden sign .. when i click it it says it
is not a supported application .. i m no mac 10.5.8 ..

Actions #14

Updated by qurtabah2002 over 14 years ago

so n e one can help please?

Actions #15

Updated by Sonicadvance1 over 14 years ago

  • Status changed from Questionable to Accepted
Actions #16

Updated by Anonymous about 14 years ago

Should work if you follow the wiki?

Actions #17

Updated by celgilles about 14 years ago

yes compilation works if you follow the new Mac OS X Wiki! Tried it on dolphin svn r5419.
thanks

Actions #18

Updated by soren.jorvang about 14 years ago

  • Status changed from Accepted to Work started

I believe this to be fixed as of r5574, so unless someone can still reproduce this problem, I will close this issue.

Actions #19

Updated by soren.jorvang about 14 years ago

  • Status changed from Work started to Fixed
Actions #20

Updated by BhaaL about 14 years ago

  • Status changed from Fixed to Accepted

Not fixed.

BhaaLs-Mac:Dolphin bhaal$ echo 'int main(int argc, char** argv) { return 0; }' >test.c
BhaaLs-Mac:Dolphin bhaal$ gcc -framework Cg test.c
BhaaLs-Mac:Dolphin bhaal$ scons | grep Cg
Checking for Cg... (cached)
Looking for framework Cg...
Looking for lib Cg... no
Plugin_VideoOGL must have Cg framework from nvidia to be build

scons: ***
File "/Users/bhaal/Dolphin/Source/Plugins/Plugin_VideoSoftware/Src/SConscript", line
52, in

scons still wont find my Cg, even if its there.
This might be a problem with one of the other flags passed tho (maybe one of the
hardcoded libs that doesnt have a check?)

Actions #21

Updated by BhaaL about 14 years ago

  • Status changed from Accepted to Fixed

The error message is quite misleading here. After searching thru config.log etc, it
turns out that my wx-config still returned -lwx_osx_cocoau_aui-2.9, altho wx is built
as monolithic (and thus doesnt have a separate aui lib).

To fix that, edit wx-config around line 1170 (search for "is_monolithic") and insert
"aui" in the list:

Core libs are already built into the blob.

for i in aui std xrc html qa adv core xml net base; do
wx_libs=remove_field $i $wx_libs
done

Non-monolithic builds shouldnt have this issue, unless they were built without aui.

Actions #22

Updated by soren.jorvang about 14 years ago

Have you reported this bug to the wxWidgets folks?

Actions

Also available in: Atom PDF