Re: [Anjuta-list] Includes in anjuta 2.2



Thanks for the reply, but it's not solved the problem.

I've run autogenerate separately. I think it does this when you chose
build project anyway, if you've changed the packages.  I'm still getting
the same errors though even though autogen says "Checking for DEPS...
yes"  I've attached the messages from autogenerate and build project.

Just to summarise what I've done:

 * Created a new 'Generic C Project'
 * Add Shared Library Support and Internationalisation, but left
configure external packages as no (is this where I went wrong?)
 * Copied in some code that uses glib and clutter libraries 
     #include <glib/gstdio.h> 
     #include <clutter/clutter.h>
 * Went to project->properties->packages
   * Added module and called it DEPS
   * Added Packages clutter-0.3 and glib-2.0 by ticking the boxes
 * Build->Run Autogenerate
 * Build->Build Project
I can find clutter.h at '/usr/include/clutter-0.3/clutter/clutter.h'
and gstdio.h at '/usr/include/glib-2.0/glib/gstdio.h'

I must just be missing something really basic :s

Thanks for helping

Stephen.

On Sun, 2007-07-15 at 16:20 +0200, Johannes Schmid wrote:
> Hi!
> 
> You have to run autogen after you add any packages.
> 
> Regards,
> Johannes
> 
> Stephen Armitage schrieb:
> > Hi,
> > 
> > I'm very new to linux development so excuse the newbie question but how
> > do I set include paths in anjuta 2.2?  I've added the packages required
> > in project properties and configure runs fine but when make runs I get
> > errors such as:
> > 
> > /home/r-mo/Projects/test/src/main.c:25:25: error: glib/gstdio.h: No such
> > file or directory
> > In file included from /home/r-mo/Projects/test/src/main.c:26:
> > /home/r-mo/Projects/test/src/clutter-reflect-texture.h:29:29: error:
> > clutter/clutter.h: No such file or directory
> > In file included from /home/r-mo/Projects/test/src/main.c:26:
> > 
> > Do I have to manually add them, thought the advantage of an IDE was that
> > it looked after this kind of thing for you...
> > 
> > Hope someone can help
> > 
> > Stephen Armitage
> > 
> > 
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > _______________________________________________
> > Anjuta-list mailing list
> > Anjuta-list lists sourceforge net
> > https://lists.sourceforge.net/lists/listinfo/anjuta-list
> > 
> 
./autogen.sh
**Warning**: I am going to run `configure' with no arguments.
If you wish to pass any to it, please specify them on the
`./autogen.sh' command line.

processing .
Creating ./aclocal.m4 ...
Running glib-gettextize...  Ignore non-fatal messages.
Copying file mkinstalldirs
Copying file po/Makefile.in.in

Please add the files
codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
progtest.m4
from the /aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.

Making ./aclocal.m4 writable ...
Running intltoolize...
Running libtoolize...
Running aclocal  ...
/usr/share/aclocal/libmcrypt.m4:17: warning: underquoted definition of AM_PATH_LIBMCRYPT
run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
Running autoheader...
Running automake --gnu  ...
Running autoconf ...
Running ./configure --enable-maintainer-mode ...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for intltool >= 0.35.0... 0.35.5 found
checking for perl... /usr/bin/perl
checking for XML::Parser... ok
checking for iconv... /usr/bin/iconv
checking for msgfmt... /usr/bin/msgfmt
checking for msgmerge... /usr/bin/msgmerge
checking for xgettext... /usr/bin/xgettext
checking for a sed that does not truncate output... /bin/sed
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
cat: /etc/ld.so.conf.d/*.conf: No such file or directory
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
cat: /etc/ld.so.conf.d/*.conf: No such file or directory
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for DEPS... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: executing intltool commands
config.status: executing po/stamp-it commands
Now type `make' to compile.
Completed... successful
Total time taken: 14 secs
make
make  all-recursive
make[1]: Entering directory `/home/r-mo/Projects/test'
Making all in src
make[2]: Entering directory `/home/r-mo/Projects/test/src'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -DPACKAGE_SRC_DIR=\""."\" -DPACKAGE_DATA_DIR=\""/usr/local/share"\"    -Wall -g -g -O2 -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o main.c
/home/r-mo/Projects/test/src/main.c:25:25: error: glib/gstdio.h: No such file or directory
In file included from /home/r-mo/Projects/test/src/main.c:26:
/home/r-mo/Projects/test/src/clutter-reflect-texture.h:29:29: error: clutter/clutter.h: No such file or directory
In file included from /home/r-mo/Projects/test/src/main.c:26:
/home/r-mo/Projects/test/src/clutter-reflect-texture.h:55: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘typedef’
/home/r-mo/Projects/test/src/clutter-reflect-texture.h:61: error: expected specifier-qualifier-list before ‘ClutterCloneTexture’
/home/r-mo/Projects/test/src/clutter-reflect-texture.h:69: error: expected specifier-qualifier-list before ‘ClutterCloneTextureClass’
/home/r-mo/Projects/test/src/clutter-reflect-texture.h:78: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘clutter_reflect_texture_get_type’
/home/r-mo/Projects/test/src/clutter-reflect-texture.h:80: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/home/r-mo/Projects/test/src/main.c:28: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’
make[2]: *** [main.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
make[2]: Leaving directory `/home/r-mo/Projects/test/src'
make[1]: Leaving directory `/home/r-mo/Projects/test'
Completed... unsuccessful
Total time taken: 0 secs


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]