Author Topic: pkg-config --cflags codeblocks: variable 'datarootdir' not defined  (Read 6817 times)

Offline artoj

  • Almost regular
  • **
  • Posts: 206
  • Location: Supporting my team
    • http://ajonsson.kapsi.fi/
Ubuntu Edgy, wxGTK 2.6.3p2, rev 3562

Code
$ pkg-config --cflags codeblocks

returns error "Variable 'datarootdir' not defined in /usr/local/lib/pkgconfig/codeblocks.pc"

codeblocks.pc:

Code
prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
plugindir=${datarootdir}/codeblocks/plugins
sharedir=${datarootdir}
datarootdir = ${prefix}/share

Name: codeblocks
Description: Code::Blocks IDE
Version: trunk-r3562
Libs: -L${libdir} -lcodeblocks
Cflags: -I${includedir}/codeblocks

I built Code::Blocks with:

Code
$ ./boostrap
$ ./configure
$ make
$ sudo make install

Offline TheTuxKeeper

  • Regular
  • ***
  • Posts: 293
  • daniel2000
Re: pkg-config --cflags codeblocks: variable 'datarootdir' not defined
« Reply #1 on: February 03, 2007, 12:10:45 am »
should be fixed in rev3564. :)
Nightly builds for openSUSE

Offline artoj

  • Almost regular
  • **
  • Posts: 206
  • Location: Supporting my team
    • http://ajonsson.kapsi.fi/
Re: pkg-config --cflags codeblocks: variable 'datarootdir' not defined
« Reply #2 on: February 03, 2007, 12:22:01 pm »
Thanks! Works great. :wink: