./configure --prefix ??
Hi! I am trying to add a prefix to the ./configure line of gtkpod to help it find the libgpod-1.0.pc directory which is located @
/usr/local/lib/pkgconfig I can't seem to make it work, probably because I am adding the wrong prefix, or flag? error message during configure: checking for PACKAGE_LIBS... Package libgpod-1.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `libgpod-1.0.pc' to the PKG_CONFIG_PATH environment variable No package 'libgpod-1.0' found configure: error: *** `config.log': configure:4073: $PKG_CONFIG --exists "gtk+-2.0 >= 2.4.0 gthread-2.0 >= 0.14.0 glib-2.0 > 2.4.0 libglade-2.0 >= 2.4.0 gmodule-2.0 libgpod-1.0 >= 0.3.0" >/dev/null 2>&1 configure:4076: $? = 1 configure:4086: result: configure help: Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --datadir=DIR read-only architecture-independent data [PREFIX/share] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --infodir=DIR info documentation [PREFIX/info] --mandir=DIR man documentation [PREFIX/man] Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] Optional Features: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer --disable-dependency-tracking Speeds up one-time builds --enable-dependency-tracking Do not reject slow dependency extractors Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a nonstandard directory <lib dir> CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir> PKG_CONFIG path to pkg-config utility PACKAGE_CFLAGS C compiler flags for PACKAGE, overriding pkg-config PACKAGE_LIBS linker flags for PACKAGE, overriding pkg-config CPP C preprocessor |
Quote:
Try the following: Code:
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH && ./configure |
The --prefix option specifies where the software will be located after a make install.
You should either have a --with-lib option, or as the previous post states, update the PKG_CONFIG_PATH path. Good luck! |
thanks! I tried
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH && ./configure but, I get this message again: Package libgpod-1.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `libgpod-1.0.pc' to the PKG_CONFIG_PATH environment variable No package 'libgpod-1.0' found I can see in there! there is no "with" option in the configure help... |
Quote:
|
The --libdir=DIR options specifies where the program libraries will be installed once compiled.
It seems that the libgpod-1.0 library is not on your system. The linker searches in /usr/lib and /lib for libraries when linking a program and configure should complain if it doesn't find the library in there. Have a look in /usr/lib and maybe /lib - if you don't find the required library there you'll need to get and install it. Henry |
Try,
Code:
$export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig |
Quote:
I usually do this way when get this error :) |
Quote:
|
I looked in /usr/lib and /lib, no such file there. "libgpod-1.0.pc" still resides in /usr/local/lib/pkgconfig
Should I just move it elsewhere? code gives this error: $export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig -bash: PKG_CONFIG_PATH=:/usr/local/lib/pkgconfig: No such file or directory --that is weird, this is the exact path! Caspervn, are you sayin that if I install it to some other directory, I wouldn't get this error? don't you think it would still look for that other library it complains about? thanks for all the help! |
The correct command was:
CFLAGS="-I$HOME/Applications/libgpod-1.0.pc/include -L$/usr/local/lib/pkgconfig" ./configure thank you! |
All times are GMT -5. The time now is 11:03 PM. |