Gentoo Archives: gentoo-user

From: Nilesh Govindrajan <me@××××××××.com>
To: Gentoo User Mailing List <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] error: Cg/cg.h: No such file or directory
Date: Sun, 03 Feb 2013 14:31:31
Message-Id: CAHgBc-sX4YwJk2fZzmaU-T8T6bbOvjcCOEHup=a+JQgw19Nc+g@mail.gmail.com
In Reply to: [gentoo-user] error: Cg/cg.h: No such file or directory by "João Matos"
1 On Sun, Feb 3, 2013 at 7:10 PM, João Matos <jaoneto@×××××.com> wrote:
2 > Dear list,
3 >
4 > I'm trying to build dolphin-emu from gamerlay, and I got the following
5 > error:
6 >
7 >
8 > error: Cg/cg.h: No such file or directory
9 >
10 > But the file actually exists:
11 >
12 > /opt/nvidia-cg-toolkit/include/Cg/cg.h
13 >
14 > Should it be a problem that I can solve myself?
15 >
16 > I thought so, than I've made a symlink for /opt/nvidia-cg-toolkit/include/Cg
17 > at /usr/include. The compilation took a little longer, but later, I've got
18 > the following:
19 >
20 > /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld:
21 > cannot find -lCg
22 > /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld:
23 > cannot find -lCgGL
24 >
25 > It happen when I'm using ggc 4.6. But I also have the 4.4, that gives me a
26 > differtent error message:
27 >
28 > /var/tmp/portage/games-emulation/dolphin-emu-3.0/work/dolphin-emu-3.0/Source/Plugins/Plugin_VideoSoftware/Src/../../Plugin_VideoOGL/Src/GLUtil.h:120:
29 > error: 'CGcontext' does not name a type
30 > /var/tmp/portage/games-emulation/dolphin-emu-3.0/work/dolphin-emu-3.0/Source/Plugins/Plugin_VideoSoftware/Src/../../Plugin_VideoOGL/Src/GLUtil.h:121:
31 > error: 'CGprofile' does not name a type
32 >
33 > It seems to be some environment detail, but I can't figure it by myself.
34 >
35
36 You might want to have a look here -
37 http://forums.gentoo.org/viewtopic-t-894512-start-0.html
38 Also it seems it is media-gfx/nvidia-cg-toolkit which is probably
39 missing in your system.
40
41 --
42 Nilesh Govindrajan
43 http://nileshgr.com

Replies

Subject Author
Re: [gentoo-user] error: Cg/cg.h: No such file or directory "João Matos" <jaoneto@×××××.com>