Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Git Version | Version Git generate-new-applet.sh > erreur de compilation
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Git Version | Version Git

Subjects Author Language Messages Last message
[Locked] generate-new-applet.sh > erreur de compilation
Rom1 Français 11 fabounet [Read]
28 March 2008 à 17:37

Rom1, Thursday 27 March 2008 à 20:53


Subscription date : 18 March 2008
Messages : 451
Le script de creation de nouvel applet génère un applet qui ne se compile pas

rom1@rom1laptop:~/cairo-dock_svn/plug-ins$ ./generate-new-applet.sh
Enter applet's name : Test
Enter your name : Test_name
Enter an e-mail adress to contact you for bugs or congratulations :
Enter the default label of your applet (Just type enter to leave it empty for the moment) :TesT
Enter the default icon of your applet (Just type enter if you'll draw it dynamically, for exemple like the 'clock' or the 'dustbin' applet) :desktop
creation de l'arborescence de l'applet Test ...
find: Test/.svn: Aucun fichier ou répertoire de ce type
find: Test/po/.svn: Aucun fichier ou répertoire de ce type
find: Test/src/.svn: Aucun fichier ou répertoire de ce type
find: Test/data/.svn: Aucun fichier ou répertoire de ce type
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --force
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --force-missing
configure.ac: installing `./install-sh'
configure.ac: installing `./missing'
src/Makefile.am: installing `./compile'
src/Makefile.am: installing `./depcomp'
autoreconf: Leaving directory `.'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
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 a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
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 recognize dependent libraries... pass_all
checking how to run the C preprocessor... gcc -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 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... 98304
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
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
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 intltool >= 0.35.0... 0.35.0 found
checking for perl... /usr/bin/perl
checking for XML::Parser... ok
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 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 ANSI C header files... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for pid_t... yes
checking for sscanf... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for PACKAGE... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating po/Makefile.in
config.status: creating data/Makefile
config.status: creating data/readme
config.status: creating data/Test.conf
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing intltool commands
config.status: executing default-1 commands
config.status: executing po/stamp-it commands
make all-recursive
make[1]: entrant dans le répertoire « /home/rom1/cairo-dock_svn/plug-ins/Test »
Making all in .
make[2]: entrant dans le répertoire « /home/rom1/cairo-dock_svn/plug-ins/Test »
make[2]: Rien à faire pour « all-am ».
make[2]: quittant le répertoire « /home/rom1/cairo-dock_svn/plug-ins/Test »
Making all in src
make[2]: entrant dans le répertoire « /home/rom1/cairo-dock_svn/plug-ins/Test/src »
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -pthread -I/usr/local/include/cairo -I/usr/local/include -I/usr/include/cairo-dock -I/usr/include/cairo-dock/cairo-dock -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -DMY_APPLET_SHARE_DATA_DIR=\""/usr/share/cairo-dock/plug-in/Test"\" -DMY_APPLET_README_FILE=\""readme"\" -DMY_APPLET_PREVIEW_FILE=\""preview.png"\" -DMY_APPLET_CONF_FILE=\""Test.conf"\" -DMY_APPLET_USER_DATA_DIR=\""Test"\" -DMY_APPLET_VERSION=\""0.0.1"\" -DMY_APPLET_GETTEXT_DOMAIN=\""cd-Test"\" -DMY_APPLET_DOCK_VERSION=\""`pkg-config --modversion cairo-dock`"\" -DMY_APPLET_ICON_FILE=\""icon.png"\" -std=c99 -Werror-implicit-function-declaration -O3 -g -O2 -MT libcd_Test_la-applet-init.lo -MD -MP -MF ".deps/libcd_Test_la-applet-init.Tpo" -c -o libcd_Test_la-applet-init.lo `test -f 'applet-init.c' || echo './'`applet-init.c; \
then mv -f ".deps/libcd_Test_la-applet-init.Tpo" ".deps/libcd_Test_la-applet-init.Plo"; else rm -f ".deps/libcd_Test_la-applet-init.Tpo"; exit 1; fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -pthread -I/usr/local/include/cairo -I/usr/local/include -I/usr/include/cairo-dock -I/usr/include/cairo-dock/cairo-dock -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -DMY_APPLET_SHARE_DATA_DIR=\"/usr/share/cairo-dock/plug-in/Test\" -DMY_APPLET_README_FILE=\"readme\" -DMY_APPLET_PREVIEW_FILE=\"preview.png\" -DMY_APPLET_CONF_FILE=\"Test.conf\" -DMY_APPLET_USER_DATA_DIR=\"Test\" -DMY_APPLET_VERSION=\"0.0.1\" -DMY_APPLET_GETTEXT_DOMAIN=\"cd-Test\" -DMY_APPLET_DOCK_VERSION=\"1.5.4-beta1\" -DMY_APPLET_ICON_FILE=\"icon.png\" -std=c99 -Werror-implicit-function-declaration -O3 -g -O2 -MT libcd_Test_la-applet-init.lo -MD -MP -MF .deps/libcd_Test_la-applet-init.Tpo -c applet-init.c -fPIC -DPIC -o .libs/libcd_Test_la-applet-init.o
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -pthread -I/usr/local/include/cairo -I/usr/local/include -I/usr/include/cairo-dock -I/usr/include/cairo-dock/cairo-dock -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -DMY_APPLET_SHARE_DATA_DIR=\"/usr/share/cairo-dock/plug-in/Test\" -DMY_APPLET_README_FILE=\"readme\" -DMY_APPLET_PREVIEW_FILE=\"preview.png\" -DMY_APPLET_CONF_FILE=\"Test.conf\" -DMY_APPLET_USER_DATA_DIR=\"Test\" -DMY_APPLET_VERSION=\"0.0.1\" -DMY_APPLET_GETTEXT_DOMAIN=\"cd-Test\" -DMY_APPLET_DOCK_VERSION=\"1.5.4-beta1\" -DMY_APPLET_ICON_FILE=\"icon.png\" -std=c99 -Werror-implicit-function-declaration -O3 -g -O2 -MT libcd_Test_la-applet-init.lo -MD -MP -MF .deps/libcd_Test_la-applet-init.Tpo -c applet-init.c -o libcd_Test_la-applet-init.o >/dev/null 2>&1
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -pthread -I/usr/local/include/cairo -I/usr/local/include -I/usr/include/cairo-dock -I/usr/include/cairo-dock/cairo-dock -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -DMY_APPLET_SHARE_DATA_DIR=\""/usr/share/cairo-dock/plug-in/Test"\" -DMY_APPLET_README_FILE=\""readme"\" -DMY_APPLET_PREVIEW_FILE=\""preview.png"\" -DMY_APPLET_CONF_FILE=\""Test.conf"\" -DMY_APPLET_USER_DATA_DIR=\""Test"\" -DMY_APPLET_VERSION=\""0.0.1"\" -DMY_APPLET_GETTEXT_DOMAIN=\""cd-Test"\" -DMY_APPLET_DOCK_VERSION=\""`pkg-config --modversion cairo-dock`"\" -DMY_APPLET_ICON_FILE=\""icon.png"\" -std=c99 -Werror-implicit-function-declaration -O3 -g -O2 -MT libcd_Test_la-applet-config.lo -MD -MP -MF ".deps/libcd_Test_la-applet-config.Tpo" -c -o libcd_Test_la-applet-config.lo `test -f 'applet-config.c' || echo './'`applet-config.c; \
then mv -f ".deps/libcd_Test_la-applet-config.Tpo" ".deps/libcd_Test_la-applet-config.Plo"; else rm -f ".deps/libcd_Test_la-applet-config.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -pthread -I/usr/local/include/cairo -I/usr/local/include -I/usr/include/cairo-dock -I/usr/include/cairo-dock/cairo-dock -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -DMY_APPLET_SHARE_DATA_DIR=\"/usr/share/cairo-dock/plug-in/Test\" -DMY_APPLET_README_FILE=\"readme\" -DMY_APPLET_PREVIEW_FILE=\"preview.png\" -DMY_APPLET_CONF_FILE=\"Test.conf\" -DMY_APPLET_USER_DATA_DIR=\"Test\" -DMY_APPLET_VERSION=\"0.0.1\" -DMY_APPLET_GETTEXT_DOMAIN=\"cd-Test\" -DMY_APPLET_DOCK_VERSION=\"1.5.4-beta1\" -DMY_APPLET_ICON_FILE=\"icon.png\" -std=c99 -Werror-implicit-function-declaration -O3 -g -O2 -MT libcd_Test_la-applet-config.lo -MD -MP -MF .deps/libcd_Test_la-applet-config.Tpo -c applet-config.c -fPIC -DPIC -o .libs/libcd_Test_la-applet-config.o
applet-config.c:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'reset_config'
applet-config.c:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
make[2]: *** [libcd_Test_la-applet-config.lo] Erreur 1
make[2]: quittant le répertoire « /home/rom1/cairo-dock_svn/plug-ins/Test/src »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/rom1/cairo-dock_svn/plug-ins/Test »
make: *** [all] Erreur 2
now it's your turn ! type sudo make install to install it.
rom1@rom1laptop:~/cairo-dock_svn/plug-ins$

cchumi, Thursday 27 March 2008 à 22:38


Subscription date : 11 January 2008
Messages : 390
Oui j'ai remarquer cela aujourd'hui aussi.
En fait il manque a la fin du CD_APPLET_DEFINITION ("applet",0,0,0,CAIRO_DOCK_CATEGORY_DESKTOP ou CAIRO_DOCK_CATEGORY_CONTROLER ou CAIRO_DOCK_CATEGORY_ACCESSORY)
Ce dernier donne la categorie de l'applet cree.


Rom1, Thursday 27 March 2008 à 22:48


Subscription date : 18 March 2008
Messages : 451
Dans l'applet créé avec le batch
dossier scr, fichier applet-init.c
j'ai pourtant bien cela:
CD_APPLET_DEFINITION ("Test", 1, 4, 7, CAIRO_DOCK_CATEGORY_ACCESSORY)

c'est où qu'il manque quelque chose?

cchumi, Thursday 27 March 2008 à 22:54


Subscription date : 11 January 2008
Messages : 390
je viens de regarder et enfait dans le fichier applet-config.c si tu regarde bien tu as actuellement void reset config et void reset data.
Hors maintenant voici ce qu'il faut mettre en lieu et place de ces derniers.
CD_APPLET_RESET_CONFIG_BEGIN
CD_APPLET_RESET_CONFIG_END

CD_APPLET_RESET_DATA_BEGIN
CD_APPLET_RESET_DATA_END

me suis fait avoir aussi ici j'ai chercher longtemps jusqu'a ce que je regarde dans d'autres applets.

necropotame, Friday 28 March 2008 à 00:08


Subscription date : 29 November 2007
Messages : 1583
Oui moi aussi ^^ Le temps de faire une applet et hop, déjà des changements

fabounet, Friday 28 March 2008 à 03:25


Subscription date : 30 November 2007
Messages : 17118
arf je corrige ça tout de suite ! ça serait bête de vous décourager de faire des nouvelles applets à cause d'une étourderie de ma part
bah non en fait ça compile très bien. ton dock est bien à jour ? (1.5.4-beta1)

Rom1, Friday 28 March 2008 à 11:36


Subscription date : 18 March 2008
Messages : 451
bah... je viens de mettre à jour la version svn, et j'ai toujours le problème:
rom1@rom1laptop:~/cairo-dock_svn/plug-ins$ ./generate-new-applet.sh
Enter applet's name : Test2
Enter your name : TesT
Enter an e-mail adress to contact you for bugs or congratulations :
Enter the default label of your applet (Just type enter to leave it empty for the moment) :TEST
Enter the default icon of your applet (Just type enter if you'll draw it dynamically, for exemple like the 'clock' or the 'dustbin' applet) :
creation de l'arborescence de l'applet Test2 ...
find: Test2/.svn: Aucun fichier ou répertoire de ce type
find: Test2/po/.svn: Aucun fichier ou répertoire de ce type
find: Test2/src/.svn: Aucun fichier ou répertoire de ce type
find: Test2/data/.svn: Aucun fichier ou répertoire de ce type
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --force
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --force-missing
configure.ac: installing `./install-sh'
configure.ac: installing `./missing'
src/Makefile.am: installing `./compile'
src/Makefile.am: installing `./depcomp'
autoreconf: Leaving directory `.'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
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 a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
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 recognize dependent libraries... pass_all
checking how to run the C preprocessor... gcc -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 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... 98304
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
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
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 intltool >= 0.35.0... 0.35.0 found
checking for perl... /usr/bin/perl
checking for XML::Parser... ok
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 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 ANSI C header files... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for pid_t... yes
checking for sscanf... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for PACKAGE... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating po/Makefile.in
config.status: creating data/Makefile
config.status: creating data/readme
config.status: creating data/Test2.conf
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing intltool commands
config.status: executing default-1 commands
config.status: executing po/stamp-it commands
make all-recursive
make[1]: entrant dans le répertoire « /home/rom1/cairo-dock_svn/plug-ins/Test2 »
Making all in .
make[2]: entrant dans le répertoire « /home/rom1/cairo-dock_svn/plug-ins/Test2 »
make[2]: Rien à faire pour « all-am ».
make[2]: quittant le répertoire « /home/rom1/cairo-dock_svn/plug-ins/Test2 »
Making all in src
make[2]: entrant dans le répertoire « /home/rom1/cairo-dock_svn/plug-ins/Test2/src »
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -pthread -I/usr/local/include/cairo -I/usr/local/include -I/usr/include/cairo-dock -I/usr/include/cairo-dock/cairo-dock -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -DMY_APPLET_SHARE_DATA_DIR=\""/usr/share/cairo-dock/plug-in/Test2"\" -DMY_APPLET_README_FILE=\""readme"\" -DMY_APPLET_PREVIEW_FILE=\""preview.png"\" -DMY_APPLET_CONF_FILE=\""Test2.conf"\" -DMY_APPLET_USER_DATA_DIR=\""Test2"\" -DMY_APPLET_VERSION=\""0.0.1"\" -DMY_APPLET_GETTEXT_DOMAIN=\""cd-Test2"\" -DMY_APPLET_DOCK_VERSION=\""`pkg-config --modversion cairo-dock`"\" -DMY_APPLET_ICON_FILE=\""icon.png"\" -std=c99 -Werror-implicit-function-declaration -O3 -g -O2 -MT libcd_Test2_la-applet-init.lo -MD -MP -MF ".deps/libcd_Test2_la-applet-init.Tpo" -c -o libcd_Test2_la-applet-init.lo `test -f 'applet-init.c' || echo './'`applet-init.c; \
then mv -f ".deps/libcd_Test2_la-applet-init.Tpo" ".deps/libcd_Test2_la-applet-init.Plo"; else rm -f ".deps/libcd_Test2_la-applet-init.Tpo"; exit 1; fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -pthread -I/usr/local/include/cairo -I/usr/local/include -I/usr/include/cairo-dock -I/usr/include/cairo-dock/cairo-dock -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -DMY_APPLET_SHARE_DATA_DIR=\"/usr/share/cairo-dock/plug-in/Test2\" -DMY_APPLET_README_FILE=\"readme\" -DMY_APPLET_PREVIEW_FILE=\"preview.png\" -DMY_APPLET_CONF_FILE=\"Test2.conf\" -DMY_APPLET_USER_DATA_DIR=\"Test2\" -DMY_APPLET_VERSION=\"0.0.1\" -DMY_APPLET_GETTEXT_DOMAIN=\"cd-Test2\" -DMY_APPLET_DOCK_VERSION=\"1.5.4-beta1\" -DMY_APPLET_ICON_FILE=\"icon.png\" -std=c99 -Werror-implicit-function-declaration -O3 -g -O2 -MT libcd_Test2_la-applet-init.lo -MD -MP -MF .deps/libcd_Test2_la-applet-init.Tpo -c applet-init.c -fPIC -DPIC -o .libs/libcd_Test2_la-applet-init.o
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -pthread -I/usr/local/include/cairo -I/usr/local/include -I/usr/include/cairo-dock -I/usr/include/cairo-dock/cairo-dock -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -DMY_APPLET_SHARE_DATA_DIR=\"/usr/share/cairo-dock/plug-in/Test2\" -DMY_APPLET_README_FILE=\"readme\" -DMY_APPLET_PREVIEW_FILE=\"preview.png\" -DMY_APPLET_CONF_FILE=\"Test2.conf\" -DMY_APPLET_USER_DATA_DIR=\"Test2\" -DMY_APPLET_VERSION=\"0.0.1\" -DMY_APPLET_GETTEXT_DOMAIN=\"cd-Test2\" -DMY_APPLET_DOCK_VERSION=\"1.5.4-beta1\" -DMY_APPLET_ICON_FILE=\"icon.png\" -std=c99 -Werror-implicit-function-declaration -O3 -g -O2 -MT libcd_Test2_la-applet-init.lo -MD -MP -MF .deps/libcd_Test2_la-applet-init.Tpo -c applet-init.c -o libcd_Test2_la-applet-init.o >/dev/null 2>&1
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -pthread -I/usr/local/include/cairo -I/usr/local/include -I/usr/include/cairo-dock -I/usr/include/cairo-dock/cairo-dock -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -DMY_APPLET_SHARE_DATA_DIR=\""/usr/share/cairo-dock/plug-in/Test2"\" -DMY_APPLET_README_FILE=\""readme"\" -DMY_APPLET_PREVIEW_FILE=\""preview.png"\" -DMY_APPLET_CONF_FILE=\""Test2.conf"\" -DMY_APPLET_USER_DATA_DIR=\""Test2"\" -DMY_APPLET_VERSION=\""0.0.1"\" -DMY_APPLET_GETTEXT_DOMAIN=\""cd-Test2"\" -DMY_APPLET_DOCK_VERSION=\""`pkg-config --modversion cairo-dock`"\" -DMY_APPLET_ICON_FILE=\""icon.png"\" -std=c99 -Werror-implicit-function-declaration -O3 -g -O2 -MT libcd_Test2_la-applet-config.lo -MD -MP -MF ".deps/libcd_Test2_la-applet-config.Tpo" -c -o libcd_Test2_la-applet-config.lo `test -f 'applet-config.c' || echo './'`applet-config.c; \
then mv -f ".deps/libcd_Test2_la-applet-config.Tpo" ".deps/libcd_Test2_la-applet-config.Plo"; else rm -f ".deps/libcd_Test2_la-applet-config.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -pthread -I/usr/local/include/cairo -I/usr/local/include -I/usr/include/cairo-dock -I/usr/include/cairo-dock/cairo-dock -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -DMY_APPLET_SHARE_DATA_DIR=\"/usr/share/cairo-dock/plug-in/Test2\" -DMY_APPLET_README_FILE=\"readme\" -DMY_APPLET_PREVIEW_FILE=\"preview.png\" -DMY_APPLET_CONF_FILE=\"Test2.conf\" -DMY_APPLET_USER_DATA_DIR=\"Test2\" -DMY_APPLET_VERSION=\"0.0.1\" -DMY_APPLET_GETTEXT_DOMAIN=\"cd-Test2\" -DMY_APPLET_DOCK_VERSION=\"1.5.4-beta1\" -DMY_APPLET_ICON_FILE=\"icon.png\" -std=c99 -Werror-implicit-function-declaration -O3 -g -O2 -MT libcd_Test2_la-applet-config.lo -MD -MP -MF .deps/libcd_Test2_la-applet-config.Tpo -c applet-config.c -fPIC -DPIC -o .libs/libcd_Test2_la-applet-config.o
applet-config.c:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'reset_config'
applet-config.c:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
make[2]: *** [libcd_Test2_la-applet-config.lo] Erreur 1
make[2]: quittant le répertoire « /home/rom1/cairo-dock_svn/plug-ins/Test2/src »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/rom1/cairo-dock_svn/plug-ins/Test2 »
make: *** [all] Erreur 2
now it's your turn ! type sudo make install to install it.

rom1@rom1laptop:~/cairo-dock_svn/plug-ins$ cairo-dock -v
v1.5.4-beta1

Je suis le seul à avoir le problème?

fabounet, Friday 28 March 2008 à 13:07


Subscription date : 30 November 2007
Messages : 17118
voila qui est étrange !
bon je vais regarder ce qu'il y'a aux lignes 21 et 27
tu compiles avec des options de compil particulère ?

Rom1, Friday 28 March 2008 à 13:20


Subscription date : 18 March 2008
Messages : 451
non non, j'ai le message d'erreur lorsque je lance le script ./generate-new-applet.sh à la fin du traitement
je ne lance aucune autre commande

ChAnGFu, Friday 28 March 2008 à 15:08


Subscription date : 17 January 2008
Messages : 1526
Normalement tu doit "remplir" certaines fonctions essentielles de l'applet avant de le compiler, de plus la compilation c'est toi qui la fait, pas le script. Le script sert juste a créer un canevas pour faciliter le developpement

Pour compiler il faut:
autoreconf -isvf && ./configure --prefix=/usr && make clean all > compile les sources

et
sudo make install > install le programmes et les données

N'oublie pas de jouer dans les makefile afin d'ajouter les fichiers qui doivent être installer et compiler
Dans le configure.ac tu pourra changer le numero de version, et dans readme il y a la description (en anglais) de l'applet

Voila.

Rom1, Friday 28 March 2008 à 15:55


Subscription date : 18 March 2008
Messages : 451
exact, c'est ce que j'ai fait dans l'applet que je m'étais créé
Mais le problème est que le script generate-new-applet.sh génère une erreur
Si un nouveau essaye de créer l'applet et qu'il voit une erreur avant même qu'il a commencé, il va vite s'arrêter

fabounet, Friday 28 March 2008 à 17:37


Subscription date : 30 November 2007
Messages : 17118
en fait le script génère une appli fonctionnelle (quoique complètement inutile) et la compile direct.
mais j'ai testé hier et c'est passé alors je comprends pas.

Git Version | Version Git

Subjects Author Language Messages Last message
[Locked] generate-new-applet.sh > erreur de compilation
Rom1 Français 11 fabounet [Read]
28 March 2008 à 17:37


Glx-Dock / Cairo-Dock List of forums Git Version | Version Git generate-new-applet.sh > erreur de compilation Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.