IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Autres éditeurs Discussion :

Glade 2.12.1 & C++


Sujet :

Autres éditeurs

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre chevronné
    Avatar de bricecol
    Homme Profil pro
    Consultant informatique
    Inscrit en
    Avril 2007
    Messages
    364
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 36
    Localisation : France, Isère (Rhône Alpes)

    Informations professionnelles :
    Activité : Consultant informatique

    Informations forums :
    Inscription : Avril 2007
    Messages : 364
    Par défaut Glade 2.12.1 & C++
    Bonjour,

    Glade 2.12.1 est non seulement capable de générer un fichier XML décrivant une interface graphique et des signaux (comme tout logiciel de création d'interface) mais ce qui m'intéresse c'est sa capacité a générer du code C++ en fonction du XML.

    En fait, il crée un dossier "projet" disons avec une certaine arborescence, un fichier autogen.sh et d'autres scripts.

    Au début, j'avais beaucoup d'erreurs car il me manquait des librairies.
    Maintenant je suis à deux doigts d'y arriver mais maintenant j'ai une erreur provenant d'un fichier .cc généré par Glade! Vous imaginez ma tronche quand j'ai vu çà?!

    Bref, voici un aperçu du shell après un make all:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
     
     
    colucci@eppervier:~/Projects/project1/src$ make all
    /bin/bash ../libtool --tag=CXX --mode=link g++ -I/usr/include/gtkmm-2.0 -I/usr/lib/gtkmm-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/sigc++-1.2/include -I/usr/include/sigc++-1.2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/atk-1.0    -g -O2   -o admin_panel  admin_panel.o admin_panel_glade.o admin_panel.o -lgtkmm-2.0 -lgdkmm-2.0 -latkmm-1.0 -lgtk-x11-2.0 -lpangomm-1.0 -lglibmm-2.0 -lsigc-1.2 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
    g++ -I/usr/include/gtkmm-2.0 -I/usr/lib/gtkmm-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/sigc++-1.2/include -I/usr/include/sigc++-1.2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/atk-1.0 -g -O2 -o admin_panel admin_panel.o admin_panel_glade.o admin_panel.o  /usr/lib/libgtkmm-2.0.so /usr/lib/libgdkmm-2.0.so /usr/lib/libatkmm-1.0.so /usr/lib/libgtk-x11-2.0.so /usr/lib/libpangomm-1.0.so /usr/lib/libglibmm-2.0.so /usr/lib/libsigc-1.2.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so -lm /usr/lib/libpangocairo-1.0.so -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes /usr/lib/libpango-1.0.so /usr/lib/libcairo.so -lX11 /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so
    admin_panel.o: In function `main':
    /home/colucci/Projects/project1/src/admin_panel.cc:14: multiple definition of `main'
    admin_panel.o:/home/colucci/Projects/project1/src/admin_panel.cc:14: first defined here
    admin_panel.o: In function `main':
    admin_panel.cc:(.text+0x96): undefined reference to `VTT for admin_panel'
    admin_panel.cc:(.text+0xa6): undefined reference to `VTT for admin_panel'
    admin_panel.cc:(.text+0xb4): undefined reference to `vtable for admin_panel'
    admin_panel.cc:(.text+0xbb): undefined reference to `vtable for admin_panel'
    admin_panel.cc:(.text+0xc2): undefined reference to `vtable for admin_panel'
    admin_panel.cc:(.text+0x116): undefined reference to `VTT for admin_panel'
    admin_panel.o: In function `main':
    admin_panel.cc:(.text+0x96): undefined reference to `VTT for admin_panel'
    admin_panel.cc:(.text+0xa6): undefined reference to `VTT for admin_panel'
    admin_panel.cc:(.text+0xb4): undefined reference to `vtable for admin_panel'
    admin_panel.cc:(.text+0xbb): undefined reference to `vtable for admin_panel'
    admin_panel.cc:(.text+0xc2): undefined reference to `vtable for admin_panel'
    admin_panel.cc:(.text+0x116): undefined reference to `VTT for admin_panel'
    collect2: ld returned 1 exit status
    make: *** [admin_panel] Erreur 1
    Voici le fichier makefile:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
     
     
    # Makefile.in generated by automake 1.9.6 from Makefile.am.
    # src/Makefile.  Generated from Makefile.in by configure.
     
    # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
    # 2003, 2004, 2005  Free Software Foundation, Inc.
    # This Makefile.in is free software; the Free Software Foundation
    # gives unlimited permission to copy and/or distribute it,
    # with or without modifications, as long as this notice is preserved.
     
    # This program is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
    # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
    # PARTICULAR PURPOSE.
     
     
     
     
    srcdir = .
    top_srcdir = ..
     
    pkgdatadir = $(datadir)/admin_panel
    pkglibdir = $(libdir)/admin_panel
    pkgincludedir = $(includedir)/admin_panel
    top_builddir = ..
    am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
    INSTALL = /usr/bin/install -c
    install_sh_DATA = $(install_sh) -c -m 644
    install_sh_PROGRAM = $(install_sh) -c
    install_sh_SCRIPT = $(install_sh) -c
    INSTALL_HEADER = $(INSTALL_DATA)
    transform = $(program_transform_name)
    NORMAL_INSTALL = :
    PRE_INSTALL = :
    POST_INSTALL = :
    NORMAL_UNINSTALL = :
    PRE_UNINSTALL = :
    POST_UNINSTALL = :
    build_triplet = i686-pc-linux-gnu
    host_triplet = i686-pc-linux-gnu
    bin_PROGRAMS = admin_panel$(EXEEXT)
    subdir = src
    DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \
        $(srcdir)/Makefile.in
    ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    am__aclocal_m4_deps = $(top_srcdir)/configure.in
    am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
        $(ACLOCAL_M4)
    mkinstalldirs = $(install_sh) -d
    CONFIG_HEADER = $(top_builddir)/config.h
    CONFIG_CLEAN_FILES =
    am__installdirs = "$(DESTDIR)$(bindir)"
    binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
    PROGRAMS = $(bin_PROGRAMS)
    am_admin_panel_OBJECTS = admin_panel.$(OBJEXT) \
        admin_panel_glade.$(OBJEXT) admin_panel.$(OBJEXT)
    admin_panel_OBJECTS = $(am_admin_panel_OBJECTS)
    admin_panel_DEPENDENCIES =
    DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
    depcomp = $(SHELL) $(top_srcdir)/depcomp
    am__depfiles_maybe = depfiles
    CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
        $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
    LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \
        $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
        $(AM_CXXFLAGS) $(CXXFLAGS)
    CXXLD = $(CXX)
    CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \
        $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
    SOURCES = $(admin_panel_SOURCES)
    DIST_SOURCES = $(admin_panel_SOURCES)
    HEADERS = $(noinst_HEADERS)
    ETAGS = etags
    CTAGS = ctags
    DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
    ACLOCAL = ${SHELL} /home/colucci/Projects/project1/missing --run aclocal-1.9
    AMDEP_FALSE = #
    AMDEP_TRUE = 
    AMTAR = ${SHELL} /home/colucci/Projects/project1/missing --run tar
    AR = ar
    AUTOCONF = ${SHELL} /home/colucci/Projects/project1/missing --run autoconf
    AUTOHEADER = ${SHELL} /home/colucci/Projects/project1/missing --run autoheader
    AUTOMAKE = ${SHELL} /home/colucci/Projects/project1/missing --run automake-1.9
    AWK = mawk
    CATALOGS = 
    CATOBJEXT = .gmo
    CC = gcc
    CCDEPMODE = depmode=gcc3
    CFLAGS = -g -O2
    CPP = gcc -E
    CPPFLAGS = 
    CXX = g++
    CXXCPP = g++ -E
    CXXDEPMODE = depmode=gcc3
    CXXFLAGS = -g -O2
    CYGPATH_W = echo
    DATADIRNAME = share
    DEFS = -DHAVE_CONFIG_H
    DEPDIR = .deps
    ECHO = echo
    ECHO_C = 
    ECHO_N = -n
    ECHO_T = 
    EGREP = /bin/grep -E
    EXEEXT = 
    F77 = 
    FFLAGS = 
    GETTEXT_PACKAGE = admin_panel
    GMOFILES = 
    GMSGFMT = /usr/bin/msgfmt
    GREP = /bin/grep
    GTKMM_CFLAGS = -I/usr/include/gtkmm-2.0 -I/usr/lib/gtkmm-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/sigc++-1.2/include -I/usr/include/sigc++-1.2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/atk-1.0  
    GTKMM_LIBS = -lgtkmm-2.0 -lgdkmm-2.0 -latkmm-1.0 -lgtk-x11-2.0 -lpangomm-1.0 -lglibmm-2.0 -lsigc-1.2 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0  
    INSTALL_DATA = ${INSTALL} -m 644
    INSTALL_PROGRAM = ${INSTALL}
    INSTALL_SCRIPT = ${INSTALL}
    INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s
    INSTOBJEXT = .mo
    INTLLIBS = 
    LDFLAGS = 
    LIBOBJS = 
    LIBS = 
    LIBTOOL = $(SHELL) $(top_builddir)/libtool
    LN_S = ln -s
    LTLIBOBJS = 
    MAKEINFO = ${SHELL} /home/colucci/Projects/project1/missing --run makeinfo
    MKINSTALLDIRS = ./mkinstalldirs
    MSGFMT = /usr/bin/msgfmt
    MSGFMT_OPTS = -c
    OBJEXT = o
    PACKAGE = admin_panel
    PACKAGE_BUGREPORT = colucci@eppervier.(none)
    PACKAGE_NAME = admin_panel
    PACKAGE_STRING = admin_panel 0.0
    PACKAGE_TARNAME = admin_panel
    PACKAGE_VERSION = 0.0
    PATH_SEPARATOR = :
    PKG_CONFIG = /usr/bin/pkg-config
    POFILES = 
    POSUB = po
    PO_IN_DATADIR_FALSE = 
    PO_IN_DATADIR_TRUE = 
    RANLIB = ranlib
    SET_MAKE = 
    SHELL = /bin/bash
    STRIP = strip
    USE_NLS = yes
    VERSION = 0.0
    XGETTEXT = /usr/bin/xgettext
    ac_ct_CC = gcc
    ac_ct_CXX = g++
    ac_ct_F77 = 
    am__fastdepCC_FALSE = #
    am__fastdepCC_TRUE = 
    am__fastdepCXX_FALSE = #
    am__fastdepCXX_TRUE = 
    am__include = include
    am__leading_dot = .
    am__quote = 
    am__tar = ${AMTAR} chof - "$$tardir"
    am__untar = ${AMTAR} xf -
    bindir = ${exec_prefix}/bin
    build = i686-pc-linux-gnu
    build_alias = 
    build_cpu = i686
    build_os = linux-gnu
    build_vendor = pc
    datadir = ${datarootdir}
    datarootdir = ${prefix}/share
    docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
    dvidir = ${docdir}
    exec_prefix = ${prefix}
    host = i686-pc-linux-gnu
    host_alias = 
    host_cpu = i686
    host_os = linux-gnu
    host_vendor = pc
    htmldir = ${docdir}
    includedir = ${prefix}/include
    infodir = ${datarootdir}/info
    install_sh = /home/colucci/Projects/project1/install-sh
    libdir = ${exec_prefix}/lib
    libexecdir = ${exec_prefix}/libexec
    localedir = ${datarootdir}/locale
    localstatedir = ${prefix}/var
    mandir = ${datarootdir}/man
    mkdir_p = mkdir -p --
    oldincludedir = /usr/include
    pdfdir = ${docdir}
    prefix = /usr/local
    program_transform_name = s,x,x,
    psdir = ${docdir}
    sbindir = ${exec_prefix}/sbin
    sharedstatedir = ${prefix}/com
    sysconfdir = ${prefix}/etc
    target_alias = 
    admin_panel_SOURCES = \
        admin_panel.cc\
        admin_panel_glade.cc \
        admin_panel.cc 
     
    noinst_HEADERS = \
        admin_panel_glade.hh \
        admin_panel.hh 
     
    AM_CXXFLAGS = -I/usr/include/gtkmm-2.0 -I/usr/lib/gtkmm-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/sigc++-1.2/include -I/usr/include/sigc++-1.2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/atk-1.0   
    admin_panel_LDADD =  -lgtkmm-2.0 -lgdkmm-2.0 -latkmm-1.0 -lgtk-x11-2.0 -lpangomm-1.0 -lglibmm-2.0 -lsigc-1.2 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0   
    all: all-am
     
    .SUFFIXES:
    .SUFFIXES: .cc .lo .o .obj
    $(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
        @for dep in $?; do \
          case '$(am__configure_deps)' in \
            *$$dep*) \
              cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
            && exit 0; \
              exit 1;; \
          esac; \
        done; \
        echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/Makefile'; \
        cd $(top_srcdir) && \
          $(AUTOMAKE) --gnu  src/Makefile
    .PRECIOUS: Makefile
    Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
        @case '$?' in \
          *config.status*) \
            cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
          *) \
            echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
            cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
        esac;
     
    $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
     
    $(top_srcdir)/configure:  $(am__configure_deps)
        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    $(ACLOCAL_M4):  $(am__aclocal_m4_deps)
        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    install-binPROGRAMS: $(bin_PROGRAMS)
        @$(NORMAL_INSTALL)
        test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
        @list='$(bin_PROGRAMS)'; for p in $$list; do \
          p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
          if test -f $$p \
             || test -f $$p1 \
          ; then \
            f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
           echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
           $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
          else :; fi; \
        done
     
    uninstall-binPROGRAMS:
        @$(NORMAL_UNINSTALL)
        @list='$(bin_PROGRAMS)'; for p in $$list; do \
          f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
          echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
          rm -f "$(DESTDIR)$(bindir)/$$f"; \
        done
     
    clean-binPROGRAMS:
        @list='$(bin_PROGRAMS)'; for p in $$list; do \
          f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
          echo " rm -f $$p $$f"; \
          rm -f $$p $$f ; \
        done
    admin_panel$(EXEEXT): $(admin_panel_OBJECTS) $(admin_panel_DEPENDENCIES) 
        @rm -f admin_panel$(EXEEXT)
        $(CXXLINK) $(admin_panel_LDFLAGS) $(admin_panel_OBJECTS) $(admin_panel_LDADD) $(LIBS)
     
    mostlyclean-compile:
        -rm -f *.$(OBJEXT)
     
    distclean-compile:
        -rm -f *.tab.c
     
    include ./$(DEPDIR)/admin_panel.Po
    include ./$(DEPDIR)/admin_panel_glade.Po
     
    .cc.o:
        if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
        then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
    #    source='$<' object='$@' libtool=no \
    #    DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
    #    $(CXXCOMPILE) -c -o $@ $<
     
    .cc.obj:
        if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
        then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
    #    source='$<' object='$@' libtool=no \
    #    DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
    #    $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
     
    .cc.lo:
        if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
        then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
    #    source='$<' object='$@' libtool=yes \
    #    DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
    #    $(LTCXXCOMPILE) -c -o $@ $<
     
    mostlyclean-libtool:
        -rm -f *.lo
     
    clean-libtool:
        -rm -rf .libs _libs
     
    distclean-libtool:
        -rm -f libtool
    uninstall-info-am:
     
    ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
        list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
        unique=`for i in $$list; do \
            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
          done | \
          $(AWK) '    { files[$$0] = 1; } \
               END { for (i in files) print i; }'`; \
        mkid -fID $$unique
    tags: TAGS
     
    TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
            $(TAGS_FILES) $(LISP)
        tags=; \
        here=`pwd`; \
        list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
        unique=`for i in $$list; do \
            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
          done | \
          $(AWK) '    { files[$$0] = 1; } \
               END { for (i in files) print i; }'`; \
        if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
          test -n "$$unique" || unique=$$empty_fix; \
          $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
            $$tags $$unique; \
        fi
    ctags: CTAGS
    CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
            $(TAGS_FILES) $(LISP)
        tags=; \
        here=`pwd`; \
        list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
        unique=`for i in $$list; do \
            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
          done | \
          $(AWK) '    { files[$$0] = 1; } \
               END { for (i in files) print i; }'`; \
        test -z "$(CTAGS_ARGS)$$tags$$unique" \
          || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
             $$tags $$unique
     
    GTAGS:
        here=`$(am__cd) $(top_builddir) && pwd` \
          && cd $(top_srcdir) \
          && gtags -i $(GTAGS_ARGS) $$here
     
    distclean-tags:
        -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
     
    distdir: $(DISTFILES)
        @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
        topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
        list='$(DISTFILES)'; for file in $$list; do \
          case $$file in \
            $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
            $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
          esac; \
          if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
          dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
          if test "$$dir" != "$$file" && test "$$dir" != "."; then \
            dir="/$$dir"; \
            $(mkdir_p) "$(distdir)$$dir"; \
          else \
            dir=''; \
          fi; \
          if test -d $$d/$$file; then \
            if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
              cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
            fi; \
            cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
          else \
            test -f $(distdir)/$$file \
            || cp -p $$d/$$file $(distdir)/$$file \
            || exit 1; \
          fi; \
        done
    check-am: all-am
    check: check-am
    all-am: Makefile $(PROGRAMS) $(HEADERS)
    installdirs:
        for dir in "$(DESTDIR)$(bindir)"; do \
          test -z "$$dir" || $(mkdir_p) "$$dir"; \
        done
    install: install-am
    install-exec: install-exec-am
    install-data: install-data-am
    uninstall: uninstall-am
     
    install-am: all-am
        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
     
    installcheck: installcheck-am
    install-strip:
        $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
          install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
          `test -z '$(STRIP)' || \
            echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
    mostlyclean-generic:
     
    clean-generic:
     
    distclean-generic:
        -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
     
    maintainer-clean-generic:
        @echo "This command is intended for maintainers to use"
        @echo "it deletes files that may require special tools to rebuild."
    clean: clean-am
     
    clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
     
    distclean: distclean-am
        -rm -rf ./$(DEPDIR)
        -rm -f Makefile
    distclean-am: clean-am distclean-compile distclean-generic \
        distclean-libtool distclean-tags
     
    dvi: dvi-am
     
    dvi-am:
     
    html: html-am
     
    info: info-am
     
    info-am:
     
    install-data-am:
     
    install-exec-am: install-binPROGRAMS
     
    install-info: install-info-am
     
    install-man:
     
    installcheck-am:
     
    maintainer-clean: maintainer-clean-am
        -rm -rf ./$(DEPDIR)
        -rm -f Makefile
    maintainer-clean-am: distclean-am maintainer-clean-generic
     
    mostlyclean: mostlyclean-am
     
    mostlyclean-am: mostlyclean-compile mostlyclean-generic \
        mostlyclean-libtool
     
    pdf: pdf-am
     
    pdf-am:
     
    ps: ps-am
     
    ps-am:
     
    uninstall-am: uninstall-binPROGRAMS uninstall-info-am
     
    .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
        clean-generic clean-libtool ctags distclean distclean-compile \
        distclean-generic distclean-libtool distclean-tags distdir dvi \
        dvi-am html html-am info info-am install install-am \
        install-binPROGRAMS install-data install-data-am install-exec \
        install-exec-am install-info install-info-am install-man \
        install-strip installcheck installcheck-am installdirs \
        maintainer-clean maintainer-clean-generic mostlyclean \
        mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
        pdf pdf-am ps ps-am tags uninstall uninstall-am \
        uninstall-binPROGRAMS uninstall-info-am
     
    # Tell versions [3.59,3.63) of GNU make to not export all variables.
    # Otherwise a system limit (for SysV at least) may be exceeded.
    .NOEXPORT:
    Enfin, voici le fichier admin_panel.cc:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
     
     
    // generated 2007/10/29 10:48:23 CET by colucci@eppervier.(none)
    // using glademm V2.6.0
    //
    // newer (non customized) versions of this file go to admin_panel.cc_new
     
    // This file is for your program, I won't touch it again!
     
    #include <config.h>
    #include <gtkmm/main.h>
    #include <glib/gi18n.h>
     
    #include "admin_panel.hh"
     
    int main(int argc, char **argv)
    {  
    #if defined(ENABLE_NLS)
       bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
       bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
       textdomain (GETTEXT_PACKAGE);
    #endif //ENABLE_NLS
     
       Gtk::Main m(&argc, &argv);
     
    admin_panel *admin_panel = new class admin_panel();
       m.run(*admin_panel);
    delete admin_panel;
       return 0;
    }
    Si quelqu'un avait déjà tenté l'expérience ou si quelqu'un trouve peut-être une solution, qu'il n'hésites pas!

    Merci d'avance!

  2. #2
    Rédacteur
    Avatar de Laurent Gomila
    Profil pro
    Développeur informatique
    Inscrit en
    Avril 2003
    Messages
    10 651
    Détails du profil
    Informations personnelles :
    Âge : 41
    Localisation : France, Moselle (Lorraine)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Avril 2003
    Messages : 10 651
    Par défaut
    Il y a un quelconque rapport avec le développement 2D / 3D / Jeux ?

  3. #3
    Membre chevronné
    Avatar de bricecol
    Homme Profil pro
    Consultant informatique
    Inscrit en
    Avril 2007
    Messages
    364
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 36
    Localisation : France, Isère (Rhône Alpes)

    Informations professionnelles :
    Activité : Consultant informatique

    Informations forums :
    Inscription : Avril 2007
    Messages : 364
    Par défaut
    Bonjour,

    Merci pour ce rappel, cepedant je pense que oui. Tout dépend du niveau du jeu, en tout cas, j'ai besoin de savoir coupler glade et c++.

    Si personne ne peut m'aider, tant pis, j'irai ailleur, si il faut rediriger mon post, il suffit de gentillement me le dire.

    Merci.

  4. #4
    Rédacteur
    Avatar de Laurent Gomila
    Profil pro
    Développeur informatique
    Inscrit en
    Avril 2003
    Messages
    10 651
    Détails du profil
    Informations personnelles :
    Âge : 41
    Localisation : France, Moselle (Lorraine)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Avril 2003
    Messages : 10 651
    Par défaut
    J'ai juste du mal à te suivre. De quel jeu parles-tu ?

  5. #5
    Membre Expert
    Avatar de shenron666
    Homme Profil pro
    avancé
    Inscrit en
    Avril 2005
    Messages
    2 567
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 48
    Localisation : France, Seine et Marne (Île de France)

    Informations professionnelles :
    Activité : avancé

    Informations forums :
    Inscription : Avril 2005
    Messages : 2 567
    Par défaut
    je pense que, même si ça a rapport avec un jeu, c'est un problème d'ordre général en C++ sinon eb rapport avec glade

    pour ton problème, la difficulté serait de trouver quelqu'un qui connait glade

    à vu de nez en regardant bien les erreurs générées, je pense déjà que tu as plusieurs fichiers qui ne sont pas "compatibles" entre eux dans ton projet (plusieurs main)

    les erreurs
    undefined reference to `VTT for admin_panel'
    undefined reference to `vtable for admin_panel'
    sont peut-etre dues à une bibliothèque système manquante
    je pense que c'est relatif au compilateur / linker que tu utilises
    Tutoriels OpenGL
    Je ne répondrai à aucune question en MP
    - Si c'est simple tu dis que c'est compliqué et tu le fait
    - Si c'est compliqué tu dis que c'est simple et tu le sous-traite ou le fait faire par un stagiaire.

Discussions similaires

  1. Installation de Glade?
    Par sali dans le forum Applications et environnements graphiques
    Réponses: 4
    Dernier message: 14/01/2005, 17h44
  2. Installation d'Anjuta + Glade
    Par Noki dans le forum Applications et environnements graphiques
    Réponses: 12
    Dernier message: 31/03/2004, 23h17

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo