• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Support v
« Previous 1 ... 1182 1183 1184 1185 1186 ... 1198 Next »

[SOLVED] Scons can't find shader libraries on Gentoo GNU/Linux
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
[SOLVED] Scons can't find shader libraries on Gentoo GNU/Linux
06-30-2009, 07:13 PM (This post was last modified: 07-01-2009, 06:02 PM by itzamna.)
#1
itzamna Offline
Junior Member
**
Posts: 20
Threads: 2
Joined: Mar 2009
Hello,

I'm trying to compile Dolphin from subversion on Gentoo GNU/Linux. I have, however, one problem: the video plugin refuses to be built because the compiler can't find my nvidia-cg-toolkit. Does anyone know how I can specify the path to my nvidia-cg-toolkit headers to the compiler?

Thanks in advance

I fear the location of the shader headers is hardcoded, and is not using pkg-config. I'll try to see how I can fix this.

Update: I found a workaround for the problem. It appears the Gentoo ports system installs nvidia-cg-toolkit on the /opt directory (third party software directory). All I had to do were the following things:

1) make a symbolic link from /usr/lib64/libCg.so and /usr/lib64/libCgGL.so to /opt/nvidia-cg-toolkit/lib/libCg.so and /opt/nvidia-cg-toolkit/lib/libCgGL.so:

Code:
ln -s /opt/nvidia-cg-toolkit/lib/libCg.so /usr/lib64/libCg.so
ln -s /opt/nvidia-cg-toolkit/lib/libCgGL.so /usr/lib64/libCgGL.so

This holds for a 64-bit Gentoo GNU/Linux system. If you're on a 32-bit system, replace /usr/lib64/ with /usr/lib/.

2) copy the /opt/nvidia-cg-toolkit/include/Cg/ directory to /usr/include/.
Find
Reply
06-30-2009, 07:20 PM
#2
abfab126 Offline
Revenge of the B*tch
*******
Posts: 715
Threads: 7
Joined: Apr 2009
Scons is crap ^^
Pentium G2120 Ivy Bridge 3.1Ghz
8GB 1333 DDR3
ASUS 560 TI CU2 TOP
Crucial M4 64Gb

Find
Reply
06-30-2009, 08:14 PM
#3
itzamna Offline
Junior Member
**
Posts: 20
Threads: 2
Joined: Mar 2009
Yes, I know, and I would've preferred Dolphin to be built by the GNU C Compiler. But it can only be built by Scons, so please tell me how I can specify the cg header path to Scons.
Find
Reply
07-01-2009, 06:08 AM
#4
gcp111
Unregistered
 
(06-30-2009, 08:14 PM)itzamna Wrote: GNU C Compiler

Wrong, it's built by gcc, but not by GNU automake Smile they're different packages.

Uhh, if you're sure to have the dev headers built, try setting CCFLAGS or whatever and use pkg_config --cflags.

And I agree, scons sucks. Even automake is better.
Reply
07-01-2009, 05:23 PM (This post was last modified: 07-01-2009, 05:51 PM by itzamna.)
#5
itzamna Offline
Junior Member
**
Posts: 20
Threads: 2
Joined: Mar 2009
I fear the location of the shader headers is hardcoded, and is not using pkg-config. I'll try to see how I can fix this.

Update: I found a workaround for the problem. It appears the Gentoo ports system installs nvidia-cg-toolkit on the /opt directory (third party software directory). All I had to do were the following things:

1) make a symbolic link from /usr/lib64/libCg.so and /usr/lib64/libCgGL.so to /opt/nvidia-cg-toolkit/lib/libCg.so and /opt/nvidia-cg-toolkit/lib/libCgGL.so:

Code:
ln -s /opt/nvidia-cg-toolkit/lib/libCg.so /usr/lib64/libCg.so
ln -s /opt/nvidia-cg-toolkit/lib/libCgGL.so /usr/lib64/libCgGL.so

This holds for a 64-bit Gentoo GNU/Linux system. If you're on a 32-bit system, replace /usr/lib64/ with /usr/lib/.

2) copy the /opt/nvidia-cg-toolkit/include/Cg/ directory to /usr/include/.
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode