Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: artoj on February 02, 2007, 08:13:46 pm

Title: pkg-config --cflags codeblocks: variable 'datarootdir' not defined
Post by: artoj on February 02, 2007, 08:13:46 pm
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
Title: Re: pkg-config --cflags codeblocks: variable 'datarootdir' not defined
Post by: TheTuxKeeper on February 03, 2007, 12:10:45 am
should be fixed in rev3564. :)
Title: Re: pkg-config --cflags codeblocks: variable 'datarootdir' not defined
Post by: artoj on February 03, 2007, 12:22:01 pm
Thanks! Works great. :wink: