Galaxis
Member
- Joined
- Aug 30, 2010
- Messages
- 318
Ok, so I'm somewhat stumped currently, as pkg-config from /mnt/utmp/codeblocks/usr/bin/pkg-config produces broken info...
I have (for example) a .pc file with the following content:
prefix=/mnt/utmp/codeblocks/home/src/vlc-2.0.5/contrib/native
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: libmpeg2
Description: MPEG-1 and MPEG-2 stream decoding library
Version: 0.5.1
Libs: -L${libdir} -lmpeg2
Cflags: -I${includedir}/mpeg2dec
...but when I run pkg-config --debug --cflags "libmpeg2" I get the following output:
Parsing package file '/mnt/utmp/codeblocks/home/src/vlc-2.0.5/contrib/native/lib/pkgconfig/libmpeg2.pc'
line>prefix=/mnt/utmp/codeblocks/home/src/vlc-2.0.5/contrib/native
Variable declaration, 'prefix' has value '/mnt/utmp/codeblocks/home/src/vlc-2.0.5/contrib/native'
line>exec_prefix=${prefix}
Variable declaration, 'exec_prefix' has value '/mnt/utmp/codeblocks/usr'
line>libdir=${exec_prefix}/lib
Variable declaration, 'libdir' has value '/mnt/utmp/codeblocks/usr/lib'
line>includedir=${prefix}/include
Variable declaration, 'includedir' has value '/mnt/utmp/codeblocks/usr/include'
line>
line>Name: libmpeg2
line>Description: MPEG-1 and MPEG-2 stream decoding library
line>Version: 0.5.1
line>Libs: -L${libdir} -lmpeg2
line>Cflags: -I${includedir}/mpeg2dec
WTF!?
Why does it tell me "prefix" has a certain value, and after exec_prefix=${prefix}, the variable exec_prefix contains something else?
Does anyone have an idea what I have to look at? It's not something from the global environment...
I have (for example) a .pc file with the following content:
prefix=/mnt/utmp/codeblocks/home/src/vlc-2.0.5/contrib/native
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: libmpeg2
Description: MPEG-1 and MPEG-2 stream decoding library
Version: 0.5.1
Libs: -L${libdir} -lmpeg2
Cflags: -I${includedir}/mpeg2dec
...but when I run pkg-config --debug --cflags "libmpeg2" I get the following output:
Parsing package file '/mnt/utmp/codeblocks/home/src/vlc-2.0.5/contrib/native/lib/pkgconfig/libmpeg2.pc'
line>prefix=/mnt/utmp/codeblocks/home/src/vlc-2.0.5/contrib/native
Variable declaration, 'prefix' has value '/mnt/utmp/codeblocks/home/src/vlc-2.0.5/contrib/native'
line>exec_prefix=${prefix}
Variable declaration, 'exec_prefix' has value '/mnt/utmp/codeblocks/usr'
line>libdir=${exec_prefix}/lib
Variable declaration, 'libdir' has value '/mnt/utmp/codeblocks/usr/lib'
line>includedir=${prefix}/include
Variable declaration, 'includedir' has value '/mnt/utmp/codeblocks/usr/include'
line>
line>Name: libmpeg2
line>Description: MPEG-1 and MPEG-2 stream decoding library
line>Version: 0.5.1
line>Libs: -L${libdir} -lmpeg2
line>Cflags: -I${includedir}/mpeg2dec
WTF!?
Why does it tell me "prefix" has a certain value, and after exec_prefix=${prefix}, the variable exec_prefix contains something else?
Does anyone have an idea what I have to look at? It's not something from the global environment...
Last edited by a moderator: