Setup development evironment



Hi all,

 

At the moment, I am trying to modifying nm-applet source code. In order to compiling some new source file, that I added new source files into certain project source directory then I modified directly into Makefile, and the result run correctly. But, I know that modifying directly Makefile is wrong way of developing my application based on opensource code, so I try to use GNU build tools (aclocal, autoconf, automake).

 

What I did is:

  1. Get nm-applet source code from repository.
  2. Copy all of my new source code into source directory.
  3. Run aclocal, autoconf & automake
  4. ./configure –prefix=/usr/local
  5. make

 

I don’t know how to fix this so that I can setup development environment correctly.

 

Here is some log.

toannc toannc-desktop:~/Desktop/test$ make

make  all-recursive

make[1]: Entering directory `/home/toannc/Desktop/test'

Making all in src

make[2]: Entering directory `/home/toannc/Desktop/test/src'

Making all in marshallers

make[3]: Entering directory `/home/toannc/Desktop/test/src/marshallers'

make  all-am

make[4]: Entering directory `/home/toannc/Desktop/test/src/marshallers'

/bin/bash ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DG_DISABLE_DEPRECATED   -Wall -std=gnu89 -g -O2 -Wshadow -Wmissing-declarations -Wmissing-prototypes -Wdeclaration-after-statement -Wstrict-prototypes -Wfloat-equal -Wno-unused-parameter -Wno-sign-compare -fno-strict-aliasing -MT libmarshallers_la-nma-marshal-main.lo -MD -MP -MF .deps/libmarshallers_la-nma-marshal-main.Tpo -c -o libmarshallers_la-nma-marshal-main.lo `test -f 'nma-marshal-main.c' || echo './'`nma-marshal-main.c

../../libtool: line 821: X--tag=CC: command not found

../../libtool: line 854: libtool: ignoring unknown tag : command not found

../../libtool: line 821: X--mode=compile: command not found

../../libtool: line 988: *** Warning: inferring the mode of operation is deprecated.: command not found

../../libtool: line 989: *** Future versions of Libtool will require --mode=MODE be specified.: command not found

../../libtool: line 1132: Xgcc: command not found

../../libtool: line 1132: X-DHAVE_CONFIG_H: command not found

../../libtool: line 1132: X-I.: command not found

../../libtool: line 1132: X-I../..: No such file or directory

../../libtool: line 1132: X-I/usr/include/glib-2.0: No such file or directory

../../libtool: line 1132: X-I/usr/lib/glib-2.0/include: No such file or directory

../../libtool: line 1132: X-DG_DISABLE_DEPRECATED: command not found

../../libtool: line 1132: X-Wall: command not found

../../libtool: line 1132: X-std=gnu89: command not found

../../libtool: line 1132: X-g: command not found

../../libtool: line 1132: X-O2: command not found

../../libtool: line 1132: X-Wshadow: command not found

../../libtool: line 1132: X-Wmissing-declarations: command not found

../../libtool: line 1132: X-Wmissing-prototypes: command not found

../../libtool: line 1132: X-Wdeclaration-after-statement: command not found

../../libtool: line 1132: X-Wstrict-prototypes: command not found

../../libtool: line 1132: X-Wfloat-equal: command not found

../../libtool: line 1132: X-Wno-unused-parameter: command not found

../../libtool: line 1132: X-Wno-sign-compare: command not found

../../libtool: line 1132: X-fno-strict-aliasing: command not found

../../libtool: line 1132: X-MT: command not found

../../libtool: line 1132: Xlibmarshallers_la-nma-marshal-main.lo: command not found

../../libtool: line 1132: X-MD: command not found

../../libtool: line 1132: X-MP: command not found

../../libtool: line 1132: X-MF: command not found

../../libtool: line 1132: X.deps/libmarshallers_la-nma-marshal-main.Tpo: No such file or directory

../../libtool: line 1132: X-c: command not found

../../libtool: line 1184: Xlibmarshallers_la-nma-marshal-main.lo: command not found

../../libtool: line 1189: libtool: compile: cannot determine name of library object from `': command not found

make[4]: *** [libmarshallers_la-nma-marshal-main.lo] Error 1

make[4]: Leaving directory `/home/toannc/Desktop/test/src/marshallers'

make[3]: *** [all] Error 2

make[3]: Leaving directory `/home/toannc/Desktop/test/src/marshallers'

make[2]: *** [all-recursive] Error 1

make[2]: Leaving directory `/home/toannc/Desktop/test/src'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/toannc/Desktop/test'

make: *** [all] Error 2

 

toannc toannc-desktop:~/Desktop/test$ aclocal --version

aclocal (GNU automake) 1.10.2

Copyright (C) 2008 Free Software Foundation, Inc.

License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.

 

Written by Tom Tromey <tromey redhat com>

       and Alexandre Duret-Lutz <adl gnu org>.

toannc toannc-desktop:~/Desktop/test$ autoconf --version

autoconf (GNU Autoconf) 2.63

Copyright (C) 2008 Free Software Foundation, Inc.

License GPLv2+: GNU GPL version 2 or later

<http://gnu.org/licenses/old-licenses/gpl-2.0.html>

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.

 

Written by David J. MacKenzie and Akim Demaille.

toannc toannc-desktop:~/Desktop/test$ automake --version

automake (GNU automake) 1.10.2

Copyright (C) 2008 Free Software Foundation, Inc.

License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.

 

Written by Tom Tromey <tromey redhat com>

       and Alexandre Duret-Lutz <adl gnu org>.

 

 

Do you have any idea or experience with this work? Could you please give me some clue.

 



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