public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] error: Cg/cg.h: No such file or directory
@ 2013-02-03 13:40 João Matos
  2013-02-03 14:30 ` Nilesh Govindrajan
  2013-02-04 16:41 ` [gentoo-user] " Nuno Silva
  0 siblings, 2 replies; 4+ messages in thread
From: João Matos @ 2013-02-03 13:40 UTC (permalink / raw
  To: gentoo-user


[-- Attachment #1.1: Type: text/plain, Size: 1344 bytes --]

Dear list,

I'm trying to build dolphin-emu from gamerlay, and I got the following
error:


error: Cg/cg.h: No such file or directory

But the file actually exists:

/opt/nvidia-cg-toolkit/include/Cg/cg.h

Should it be a problem that I can solve myself?

I thought so, than I've made a symlink for
/opt/nvidia-cg-toolkit/include/Cg at /usr/include. The compilation took a
little longer, but later, I've got the following:

/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld:
cannot find -lCg
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld:
cannot find -lCgGL

It happen when I'm using ggc 4.6. But I also have the 4.4, that gives me a
differtent error message:

/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:
error: 'CGcontext' does not name a type
/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:
error: 'CGprofile' does not name a type

It seems to be some environment detail, but I can't figure it by myself.

-- 
João de Matos
Linux User #461527
Graduando em Engenharia de Computação 2005.1
UEFS - Universidade Estadual de Feira de Santana

[-- Attachment #1.2: Type: text/html, Size: 1752 bytes --]

[-- Attachment #2: emrege --info --]
[-- Type: application/octet-stream, Size: 5628 bytes --]

Portage 2.1.11.50 (default/linux/amd64/13.0/desktop/kde, gcc-4.6.3, glibc-2.16.0, 3.7.1-gentoo x86_64)
=================================================================
System uname: Linux-3.7.1-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E7200_@_2.53GHz-with-gentoo-2.2
KiB Mem:     2055448 total,     29292 free
KiB Swap:    3070972 total,   3061564 free
Timestamp of tree: Sat, 02 Feb 2013 14:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p42
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.4.7, 4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo gamerlay games x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -msse4.1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -msse4.1"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="pt_BR.iso8859-1"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/gamerlay /var/lib/layman/games /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli connection-sharing consolekit cracklib crypt cuda cups cupsddk cxx dbus declarative djvu dri dts dvd dvdr embedded emboss emerald encode exif fam fat fbcondecor ffmpeg firefox flac fortran g3dvl gif glitz gpm gstreamer hal hwdb iconv icu java java6 joystick jpeg kde kipi lame lcms ldap libffi libnotify libproxy libv4l lm_sensors mad mikmod mmx mmxext mng mod modules mp3 mp4 mpeg mudflap multilib mysql ncurses netplay network networkmanager nls nokia nptl nsplugin ntfs nvidia offensive ogg opencl opengl openmp pam pango pcre pdf phonon plasma png policykit private-headers pulseaudio qt3support qt4 quicktime rar readline s3tc samba scanner schroedinger sdl semantic-desktop session spell sql sse sse2 sse4_1 ssl ssse3 startup-notification static-libs subversion svg systemd tcpd threads thumbnail tiff truetype udev udisks unicode upower usb v4l v4l2 vaapi vdpau vorbis webcam webkit wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="canon ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="plymouth" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="emu efi-64 pc" INPUT_DEVICES="keyboard mouse joystick evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pt_BR en_US" NETBEANS_MODULES="apisupport harness ide java nb websvccommon cnd dlight" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] error: Cg/cg.h: No such file or directory
  2013-02-03 13:40 [gentoo-user] error: Cg/cg.h: No such file or directory João Matos
@ 2013-02-03 14:30 ` Nilesh Govindrajan
  2013-02-03 15:09   ` João Matos
  2013-02-04 16:41 ` [gentoo-user] " Nuno Silva
  1 sibling, 1 reply; 4+ messages in thread
From: Nilesh Govindrajan @ 2013-02-03 14:30 UTC (permalink / raw
  To: Gentoo User Mailing List

On Sun, Feb 3, 2013 at 7:10 PM, João Matos <jaoneto@gmail.com> wrote:
> Dear list,
>
> I'm trying to build dolphin-emu from gamerlay, and I got the following
> error:
>
>
> error: Cg/cg.h: No such file or directory
>
> But the file actually exists:
>
> /opt/nvidia-cg-toolkit/include/Cg/cg.h
>
> Should it be a problem that I can solve myself?
>
> I thought so, than I've made a symlink for /opt/nvidia-cg-toolkit/include/Cg
> at /usr/include. The compilation took a little longer, but later, I've got
> the following:
>
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld:
> cannot find -lCg
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld:
> cannot find -lCgGL
>
> It happen when I'm using ggc 4.6. But I also have the 4.4, that gives me a
> differtent error message:
>
> /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:
> error: 'CGcontext' does not name a type
> /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:
> error: 'CGprofile' does not name a type
>
> It seems to be some environment detail, but I can't figure it by myself.
>

You might want to have a look here -
http://forums.gentoo.org/viewtopic-t-894512-start-0.html
Also it seems it is media-gfx/nvidia-cg-toolkit which is probably
missing in your system.

--
Nilesh Govindrajan
http://nileshgr.com


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] error: Cg/cg.h: No such file or directory
  2013-02-03 14:30 ` Nilesh Govindrajan
@ 2013-02-03 15:09   ` João Matos
  0 siblings, 0 replies; 4+ messages in thread
From: João Matos @ 2013-02-03 15:09 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2239 bytes --]

2013/2/3 Nilesh Govindrajan <me@nileshgr.com>

> On Sun, Feb 3, 2013 at 7:10 PM, João Matos <jaoneto@gmail.com> wrote:
> > Dear list,
> >
> > I'm trying to build dolphin-emu from gamerlay, and I got the following
> > error:
> >
> >
> > error: Cg/cg.h: No such file or directory
> >
> > But the file actually exists:
> >
> > /opt/nvidia-cg-toolkit/include/Cg/cg.h
> >
> > Should it be a problem that I can solve myself?
> >
> > I thought so, than I've made a symlink for
> /opt/nvidia-cg-toolkit/include/Cg
> > at /usr/include. The compilation took a little longer, but later, I've
> got
> > the following:
> >
> >
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld:
> > cannot find -lCg
> >
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld:
> > cannot find -lCgGL
> >
> > It happen when I'm using ggc 4.6. But I also have the 4.4, that gives me
> a
> > differtent error message:
> >
> >
> /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:
> > error: 'CGcontext' does not name a type
> >
> /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:
> > error: 'CGprofile' does not name a type
> >
> > It seems to be some environment detail, but I can't figure it by myself.
> >
>
> You might want to have a look here -
> http://forums.gentoo.org/viewtopic-t-894512-start-0.html
> Also it seems it is media-gfx/nvidia-cg-toolkit which is probably
> missing in your system.
>

In fact it is not. And I've also tried everything else in this topic. No
results.

The files are there, but the compiler can't find then at compilation time.


Before the compilation starts it displays:

-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.7")
Using shared zlib
GLEW found
Cg not found
CgGL not found
-- Found wxWidgets: TRUE



>
> --
> Nilesh Govindrajan
> http://nileshgr.com
>
>


-- 
João de Matos
Linux User #461527
Graduando em Engenharia de Computação 2005.1
UEFS - Universidade Estadual de Feira de Santana

[-- Attachment #2: Type: text/html, Size: 3331 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gentoo-user] Re: error: Cg/cg.h: No such file or directory
  2013-02-03 13:40 [gentoo-user] error: Cg/cg.h: No such file or directory João Matos
  2013-02-03 14:30 ` Nilesh Govindrajan
@ 2013-02-04 16:41 ` Nuno Silva
  1 sibling, 0 replies; 4+ messages in thread
From: Nuno Silva @ 2013-02-04 16:41 UTC (permalink / raw
  To: gentoo-user

On 2013-02-03, João Matos wrote:

> Dear list,
>
> I'm trying to build dolphin-emu from gamerlay, and I got the following
> error:
>
>
> error: Cg/cg.h: No such file or directory
>
> But the file actually exists:
>
> /opt/nvidia-cg-toolkit/include/Cg/cg.h
>
> Should it be a problem that I can solve myself?
>
> I thought so, than I've made a symlink for
> /opt/nvidia-cg-toolkit/include/Cg at /usr/include. The compilation took a
> little longer, but later, I've got the following:

It took a little longer because it compiled, in fact the error occured
so early that it failed without doing that much, I guess.

>
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld:
> cannot find -lCg
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld:
> cannot find -lCgGL

It is some library detail: when configuring the makefiles to build some
piece of source, the configure script needs to find the libraries and
set *two* things from these libraries:

- The include directories, to which it should append the
  /opt/nvidia-cg-toolkit/include path

- The library directories, to which it should append a directory where
  nvidia-cg-toolkit has its libs

This, at least for some packages, is done with pkg-config, see, for
example, if you have gtk+-2.x on your system:

   pkg-config --cflags gtk+-2.0

This generates the right flags to pass to gcc when you want to compile a
gtk+-2.x application. Likewise, --libs gives you the linker flags.

Now what happened: you *did* provide it the header file, which is enough
to compile the code part that depends on the nvidia library
(compilation, which is modular, you can just go for parts of the code
and information on other parts are on the header files), but you still
need the library itself when you are assembling the final binary, so
that the binary can be extended with information on where to get the
library (or with the library itself, in the case of static linking).

Although here --libs only gives me -l* for gtk, there is also a
companion -L flag that, like -I for includes, sets the directories where
the libraries can be found. I assue that, if -L is not given, that just
means gtk+ is in the default locations.


If you can figure out how to tell the configure script where to look for
the libs, that would be the easiest thing to do; next to that, you can
manually link the files using the right -L parameter or perhaps
appending it to LD_LIBRARY_PATH when compiling.


Perhaps try reinstalling nvidia-cg-toolkit after resyncing: some
searches tell me there was yet another compilation breakage that got
fixed recently: https://bugs.gentoo.org/show_bug.cgi?id=443546

But one person noted it does not work in amd64... I wonder if linking
lib64 to lib there would work.

-- 
Nuno Silva (aka njsg)
http://njsg.sdf-eu.org/



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-02-04 16:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-03 13:40 [gentoo-user] error: Cg/cg.h: No such file or directory João Matos
2013-02-03 14:30 ` Nilesh Govindrajan
2013-02-03 15:09   ` João Matos
2013-02-04 16:41 ` [gentoo-user] " Nuno Silva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox