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

Ogre Discussion :

Probléme d'include sous kdevelop


Sujet :

Ogre

  1. #1
    Membre à l'essai
    Inscrit en
    Mars 2002
    Messages
    22
    Détails du profil
    Informations forums :
    Inscription : Mars 2002
    Messages : 22
    Points : 17
    Points
    17
    Par défaut Probléme d'include sous kdevelop
    je commence à utilisé ogre3d sous linux. J'ai prit un tutorial pour compil le code et le comprendre.
    Voici le code :
    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
    #ifdef HAVE_CONFIG_H
    #include <config.h>
    #endif
     
    #include <iostream>
    #include <cstdlib>
    #include </usr/local/include/OGRE/Ogre.h>
     
    #include <Samples/Common/include/ExampleApplication.h>
    //#define OGRE_PLATFORM LINUX
     
    using namespace std;
     
    /*int main(int argc, char *argv[])
    {
      cout << "Bonjour Maitre !" << endl;
     
      return EXIT_SUCCESS;
    }*/
     
    class TutorialApplication : public ExampleApplication
    {
    protected:
    public:
        TutorialApplication()
        {
        }
     
        ~TutorialApplication() 
        {
        }
    protected:
        void createScene(void)
        {
        }
    };
     
    #ifdef OGRE_PLATFORM // == OGRE_PLATFORM_WIN32
    #define WIN32_LEAN_AND_MEAN
    #include "windows.h"
     
    INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
    #else
    int main(int argc, char **argv)
    #endif
    {
        // Create application object
        TutorialApplication app;
     
        try {
            app.go();
        } catch( Exception& e ) {
    #ifdef OGRE_PLATFORM // == OGRE_PLATFORM_WIN32 
            MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR | 
     
    MB_TASKMODAL);
    #else
            fprintf(stderr, "An exception has occured: %s\n",
                    e.getFullDescription().c_str());
    #endif
        }
     
        return 0;
    }
    Et j'obtient les erreurs suivantes(je vous mets pour un meilleur compréhension):
    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
    cd '/home/david/developpement/HelloOgre/debug' && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" gmake -k 
    gmake all-recursive
    gmake[1]: entrant dans le répertoire « /home/david/developpement/HelloOgre/debug »
    Making all in src
    gmake[2]: entrant dans le répertoire « /home/david/developpement/HelloOgre/debug/src »
    Compilation helloogre.cpp (g++)
    Dans le fichier inclus à partir de /usr/local/include/OGRE/OgreTimer.h:39,
    à partir de /usr/local/include/OGRE/OgreRenderTarget.h:37,
    à partir de /usr/local/include/OGRE/OgreRenderSystem.h:42,
    à partir de /usr/local/include/OGRE/Ogre.h:88,
    à partir de /home/david/developpement/HelloOgre/src/helloogre.cpp:28:
    /usr/local/include/OGRE/GLX/OgreTimerImp.h:33:31: erreur: OgrePrerequisites.h : Aucun fichier ou répertoire de ce type
    Dans le fichier inclus à partir de /home/david/developpement/HelloOgre/src/helloogre.cpp:30:
    /usr/include/Samples/Common/include/ExampleApplication.h:24:18: erreur: Ogre.h : Aucun fichier ou répertoire de ce type
    /usr/include/Samples/Common/include/ExampleApplication.h:25:28: erreur: OgreConfigFile.h : Aucun fichier ou répertoire de ce type
    Dans le fichier inclus à partir de /usr/include/Samples/Common/include/ExampleApplication.h:26,
    à partir de /home/david/developpement/HelloOgre/src/helloogre.cpp:30:
    /usr/include/Samples/Common/include/ExampleFrameListener.h:39:33: erreur: OgreStringConverter.h : Aucun fichier ou répertoire de ce type
    /usr/include/Samples/Common/include/ExampleFrameListener.h:40:27: erreur: OgreException.h : Aucun fichier ou répertoire de ce type
    /usr/include/Samples/Common/include/ExampleFrameListener.h:45:21: erreur: OIS/OIS.h : Aucun fichier ou répertoire de ce type
    /home/david/developpement/HelloOgre/src/helloogre.cpp:61:21: erreur: windows.h : Aucun fichier ou répertoire de ce type
    In file included from /usr/include/Samples/Common/include/ExampleApplication.h:26,
    from /home/david/developpement/HelloOgre/src/helloogre.cpp:30:
    /usr/include/Samples/Common/include/ExampleFrameListener.h:395: erreur: ‘OIS’ has not been declared
    /usr/include/Samples/Common/include/ExampleFrameListener.h:395: erreur: expected ‘;’ before ‘*’ token
    /usr/include/Samples/Common/include/ExampleFrameListener.h:396: erreur: ‘OIS’ has not been declared
    /usr/include/Samples/Common/include/ExampleFrameListener.h:396: erreur: expected ‘;’ before ‘*’ token
    /usr/include/Samples/Common/include/ExampleFrameListener.h:397: erreur: ‘OIS’ has not been declared
    /usr/include/Samples/Common/include/ExampleFrameListener.h:397: erreur: expected ‘;’ before ‘*’ token
    /usr/include/Samples/Common/include/ExampleFrameListener.h:398: erreur: ‘OIS’ has not been declared
    /usr/include/Samples/Common/include/ExampleFrameListener.h:398: erreur: expected ‘;’ before ‘*’ token
    /usr/include/Samples/Common/include/ExampleFrameListener.h: In constructor ‘ExampleFrameListener::ExampleFrameListener(Ogre::RenderWindow*, Ogre::Camera*, bool, bool, bool)’:
    /usr/include/Samples/Common/include/ExampleFrameListener.h:95: erreur: class ‘ExampleFrameListener’ does not have any field named ‘mInputManager’
    /usr/include/Samples/Common/include/ExampleFrameListener.h:95: erreur: class ‘ExampleFrameListener’ does not have any field named ‘mMouse’
    /usr/include/Samples/Common/include/ExampleFrameListener.h:95: erreur: class ‘ExampleFrameListener’ does not have any field named ‘mKeyboard’
    /usr/include/Samples/Common/include/ExampleFrameListener.h:95: erreur: class ‘ExampleFrameListener’ does not have any field named ‘mJoy’
    /usr/include/Samples/Common/include/ExampleFrameListener.h:97: erreur: ‘OIS’ is not a namespace-name
    /usr/include/Samples/Common/include/ExampleFrameListener.h:97: erreur: expected namespace-name before ‘;’ token
    /usr/include/Samples/Common/include/ExampleFrameListener.h:102: erreur: ‘ParamList’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:102: erreur: expected `;' before ‘pl’
    /usr/include/Samples/Common/include/ExampleFrameListener.h:108: erreur: ‘pl’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:110: erreur: ‘mInputManager’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:110: erreur: ‘InputManager’ has not been declared
    /usr/include/Samples/Common/include/ExampleFrameListener.h:113: erreur: ‘mKeyboard’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:113: erreur: expected type-specifier before ‘Keyboard’
    /usr/include/Samples/Common/include/ExampleFrameListener.h:113: erreur: expected `>' before ‘Keyboard’
    /usr/include/Samples/Common/include/ExampleFrameListener.h:113: erreur: expected `(' before ‘Keyboard’
    /usr/include/Samples/Common/include/ExampleFrameListener.h:113: erreur: ‘Keyboard’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:113: erreur: expected primary-expression before ‘>’ token
    /usr/include/Samples/Common/include/ExampleFrameListener.h:113: erreur: ‘OISKeyboard’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:113: erreur: expected `)' before ‘;’ token
    /usr/include/Samples/Common/include/ExampleFrameListener.h:114: erreur: ‘mMouse’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:114: erreur: expected type-specifier before ‘Mouse’
    /usr/include/Samples/Common/include/ExampleFrameListener.h:114: erreur: expected `>' before ‘Mouse’
    /usr/include/Samples/Common/include/ExampleFrameListener.h:114: erreur: expected `(' before ‘Mouse’
    /usr/include/Samples/Common/include/ExampleFrameListener.h:114: erreur: ‘Mouse’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:114: erreur: expected primary-expression before ‘>’ token
    /usr/include/Samples/Common/include/ExampleFrameListener.h:114: erreur: ‘OISMouse’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:114: erreur: expected `)' before ‘;’ token
    /usr/include/Samples/Common/include/ExampleFrameListener.h:116: erreur: ‘mJoy’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:116: erreur: expected type-specifier before ‘JoyStick’
    /usr/include/Samples/Common/include/ExampleFrameListener.h:116: erreur: expected `>' before ‘JoyStick’
    /usr/include/Samples/Common/include/ExampleFrameListener.h:116: erreur: expected `(' before ‘JoyStick’
    /usr/include/Samples/Common/include/ExampleFrameListener.h:116: erreur: ‘JoyStick’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:116: erreur: expected primary-expression before ‘>’ token
    /usr/include/Samples/Common/include/ExampleFrameListener.h:116: erreur: ‘OISJoyStick’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:116: erreur: expected `)' before ‘;’ token
    /usr/include/Samples/Common/include/ExampleFrameListener.h:119: erreur: ‘mJoy’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h: In member function ‘virtual void ExampleFrameListener::windowResized(Ogre::RenderWindow*)’:
    /usr/include/Samples/Common/include/ExampleFrameListener.h:138: erreur: ‘OIS’ has not been declared
    /usr/include/Samples/Common/include/ExampleFrameListener.h:138: erreur: expected initializer before ‘&’ token
    /usr/include/Samples/Common/include/ExampleFrameListener.h:139: erreur: ‘ms’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h: In member function ‘virtual void ExampleFrameListener::windowClosed(Ogre::RenderWindow*)’:
    /usr/include/Samples/Common/include/ExampleFrameListener.h:149: erreur: ‘mInputManager’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:151: erreur: ‘mMouse’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:152: erreur: ‘mKeyboard’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:153: erreur: ‘mJoy’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:155: erreur: ‘OIS’ has not been declared
    /usr/include/Samples/Common/include/ExampleFrameListener.h: In member function ‘virtual bool ExampleFrameListener::processUnbufferedKeyInput(const Ogre::FrameEvent&)’:
    /usr/include/Samples/Common/include/ExampleFrameListener.h:170: erreur: ‘OIS’ is not a namespace-name
    /usr/include/Samples/Common/include/ExampleFrameListener.h:170: erreur: expected namespace-name before ‘;’ token
    /usr/include/Samples/Common/include/ExampleFrameListener.h:172: erreur: ‘mKeyboard’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:172: erreur: ‘KC_A’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:175: erreur: ‘mKeyboard’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:175: erreur: ‘KC_D’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:178: erreur: ‘mKeyboard’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:178: erreur: ‘KC_UP’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:178: erreur: ‘KC_W’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:181: erreur: ‘mKeyboard’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:181: erreur: ‘KC_DOWN’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:181: erreur: ‘KC_S’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:184: erreur: ‘mKeyboard’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:184: erreur: ‘KC_PGUP’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:187: erreur: ‘mKeyboard’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:187: erreur: ‘KC_PGDOWN’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:190: erreur: ‘mKeyboard’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:190: erreur: ‘KC_RIGHT’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:193: erreur: ‘mKeyboard’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:193: erreur: ‘KC_LEFT’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:196: erreur: ‘mKeyboard’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:196: erreur: ‘KC_ESCAPE’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:196: erreur: ‘KC_Q’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:199: erreur: ‘mKeyboard’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:199: erreur: ‘KC_F’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:206: erreur: ‘mKeyboard’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:206: erreur: ‘KC_T’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:231: erreur: ‘mKeyboard’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:231: erreur: ‘KC_SYSRQ’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:240: erreur: ‘mKeyboard’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:240: erreur: ‘KC_R’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:252: erreur: ‘mKeyboard’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:252: erreur: ‘KC_P’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h: In member function ‘bool ExampleFrameListener::processUnbufferedMouseInput(const Ogre::FrameEvent&)’:
    /usr/include/Samples/Common/include/ExampleFrameListener.h:271: erreur: ‘OIS’ is not a namespace-name
    /usr/include/Samples/Common/include/ExampleFrameListener.h:271: erreur: expected namespace-name before ‘;’ token
    /usr/include/Samples/Common/include/ExampleFrameListener.h:275: erreur: expected initializer before ‘&’ token
    /usr/include/Samples/Common/include/ExampleFrameListener.h:276: erreur: ‘ms’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:276: erreur: ‘MB_Right’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h: In member function ‘virtual bool ExampleFrameListener::frameStarted(const Ogre::FrameEvent&)’:
    /usr/include/Samples/Common/include/ExampleFrameListener.h:314: erreur: ‘OIS’ is not a namespace-name
    /usr/include/Samples/Common/include/ExampleFrameListener.h:314: erreur: expected namespace-name before ‘;’ token
    /usr/include/Samples/Common/include/ExampleFrameListener.h:319: erreur: ‘mKeyboard’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:320: erreur: ‘mMouse’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:321: erreur: ‘mJoy’ was not declared in this scope
    /usr/include/Samples/Common/include/ExampleFrameListener.h:323: erreur: ‘mJoy’ was not declared in this scope
    /home/david/developpement/HelloOgre/src/helloogre.cpp: At global scope:
    /home/david/developpement/HelloOgre/src/helloogre.cpp:63: erreur: ‘INT’ does not name a type
    gmake[2]: *** [helloogre.o] Erreur 1
    gmake[2]: La cible « all » n'a pas pu être refabriquée à cause d'erreurs.
    gmake[2]: quittant le répertoire « /home/david/developpement/HelloOgre/debug/src »
    gmake[2]: entrant dans le répertoire « /home/david/developpement/HelloOgre/debug »
    gmake[2]: Rien à faire pour « all-am ».
    gmake[2]: quittant le répertoire « /home/david/developpement/HelloOgre/debug »
    gmake[1]: *** [all-recursive] Erreur 1
    gmake[1]: quittant le répertoire « /home/david/developpement/HelloOgre/debug »
    gmake: *** [all] Erreur 2
    *** Sortie avec l'état : 2 ***
    Pour moi, cela vient du paramétrages du projet, je connais mal kdevelop, je n'ai pas trouve comment lui indiqué ou trouver les .h nécéssaire. Pourriez vous m'aider?

  2. #2
    Nouveau Candidat au Club
    Inscrit en
    Décembre 2007
    Messages
    1
    Détails du profil
    Informations forums :
    Inscription : Décembre 2007
    Messages : 1
    Points : 1
    Points
    1
    Par défaut Include
    Arg c'est pas beau ca !
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    #include </usr/local/include/OGRE/Ogre.h>
    Bon ayant découverts kdevelop il y à 2-3jour j'avoue qu'il est dur de retrouver ses marques...

    Pour ce qui est des includes cherche l'onglet "Configurer automake";
    Une fois ouvert tu devrais voir 2fenetres, avec chacune sa série d'icone, dont "option"
    -> clique sur l'icone "option" du haut
    -> puis choisi l'onglet "inclusion"
    -> et enfin tu peut ajouter "-I/usr/include/OGRE" dans les includes.

    N'oublie pas les libs, pour ma part j'ai ajouter " `pkg-config --cflags --libs OGRE OIS CEGUI`" à la ligne LDFLAGS (icone "option" du bas).
    les caracteres avant pkgconfig et aprés CEGUI sont des apostrophe inverse, j'ai l'impression qu'elle s'affiche mal ^^

    J'espere que tu t'en sortira, ogre n'est pratiquement pas documenté, et les peu de doc existantes sont obsolète, bref c'est un sacré challenge !

  3. #3
    Membre à l'essai
    Inscrit en
    Mars 2002
    Messages
    22
    Détails du profil
    Informations forums :
    Inscription : Mars 2002
    Messages : 22
    Points : 17
    Points
    17
    Par défaut
    Je voulais m'assurer qu'il s'agissait d'un probléme de librairie. Je les ait mit dans l'automake. Pour le liens c'était claire par contre, je ne savais pas vraiment ou mettre à librairie. J'ai plusieurs essaye sans succés. Finalement, je l'ai ajouter dans :
    Projet->option projet->Option de Configure. J'ai toujours une référence à CPPFLAGS et LDFLAGS.
    A présent, j'ai une erreur 77, connais le sens.
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
     
    cd '/home/david/developpement/HelloOgre/debug' && LDFLAGS="pkg-config --cflags --libs OGRE OIS CEGUI" CPPFLAGS="-I/usr/include/OGRE" CXXFLAGS="-O0 -g3" "/home/david/developpement/HelloOgre/configure" --enable-debug=full
    Processus d'installation -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking for g++... g++
    checking for C++ compiler default output file name... 
    configure: error: C++ compiler cannot create executables
    See `config.log' for more details.
    *** Sortie avec l'état : 77 ***
    Pourriez vous m'eclairer?

  4. #4
    Membre à l'essai
    Inscrit en
    Mars 2002
    Messages
    22
    Détails du profil
    Informations forums :
    Inscription : Mars 2002
    Messages : 22
    Points : 17
    Points
    17
    Par défaut
    J'ajoute les résultat du config.log.

    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
     
    This file contains any messages produced by compilers while
    running configure, to aid debugging if configure makes a mistake.
     
    It was created by configure, which was
    generated by GNU Autoconf 2.61.  Invocation command line was
     
      $ /home/david/developpement/HelloOgre/configure --enable-debug=full
     
    ## --------- ##
    ## Platform. ##
    ## --------- ##
     
    hostname = AMD3700B64
    uname -m = x86_64
    uname -r = 2.6.22.9-desktop-1mdv
    uname -s = Linux
    uname -v = #1 SMP Wed Sep 26 22:36:49 CEST 2007
     
    /usr/bin/uname -p = unknown
    /bin/uname -X     = unknown
     
    /bin/arch              = x86_64
    /usr/bin/arch -k       = unknown
    /usr/convex/getsysinfo = unknown
    /usr/bin/hostinfo      = unknown
    /bin/machine           = unknown
    /usr/bin/oslevel       = unknown
    /bin/universe          = unknown
     
    PATH: /usr/bin
    PATH: /bin
    PATH: /usr/local/bin
    PATH: /usr/X11R6/bin/
    PATH: /usr/games
    PATH: /usr/lib/qt3//bin
    PATH: /home/david/bin
     
     
    ## ----------- ##
    ## Core tests. ##
    ## ----------- ##
     
    configure:1968: checking for a BSD-compatible install
    configure:2024: result: /usr/bin/install -c
    configure:2035: checking whether build environment is sane
    configure:2078: result: yes
    configure:2106: checking for a thread-safe mkdir -p
    configure:2145: result: /bin/mkdir -p
    configure:2158: checking for gawk
    configure:2174: found /usr/bin/gawk
    configure:2185: result: gawk
    configure:2196: checking whether make sets $(MAKE)
    configure:2217: result: yes
    configure:2470: checking for g++
    configure:2486: found /usr/bin/g++
    configure:2497: result: g++
    configure:2528: checking for C++ compiler version
    configure:2535: g++ --version >&5
    g++ (GCC) 4.2.2 20070909 (prerelease) (4.2.2-0.RC.1mdv2008.0)
    Copyright (C) 2007 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
     
    configure:2538: $? = 0
    configure:2545: g++ -v >&5
    Using built-in specs.
    Target: x86_64-mandriva-linux-gnu
    Configured with: ../configure --prefix=/usr --libexecdir=/usr/lib --with-slibdir=/lib64 --mandir=/usr/share/man --infodir=/usr/share/info --enable-checking=release --enable-languages=c,c++,ada,fortran,objc,obj-c++,java --host=x86_64-mandriva-linux-gnu --with-cpu=generic --with-system-zlib --enable-threads=posix --enable-shared --enable-long-long --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --enable-gtk-cairo --disable-libjava-multilib --enable-ssp --disable-libssp
    Thread model: posix
    gcc version 4.2.2 20070909 (prerelease) (4.2.2-0.RC.1mdv2008.0)
    configure:2548: $? = 0
    configure:2555: g++ -V >&5
    g++: '-V' option must have argument
    configure:2558: $? = 1
    configure:2581: checking for C++ compiler default output file name
    configure:2608: g++ -O0 -g3 -I/usr/include/OGRE pkg-config --cflags --libs OGRE OIS CEGUI conftest.cpp  >&5
    g++: pkg-config: No such file or directory
    g++: OGRE: No such file or directory
    g++: OIS: No such file or directory
    g++: CEGUI: No such file or directory
    cc1plus: error: unrecognized command line option "-fcflags"
    cc1plus: error: unrecognized command line option "-flibs"
    configure:2611: $? = 1
    configure:2649: result: 
    configure: failed program was:
    | /* confdefs.h.  */
    | #define PACKAGE_NAME ""
    | #define PACKAGE_TARNAME ""
    | #define PACKAGE_VERSION ""
    | #define PACKAGE_STRING ""
    | #define PACKAGE_BUGREPORT ""
    | #define PACKAGE "helloogre"
    | #define VERSION "0.1"
    | /* end confdefs.h.  */
    | 
    | int
    | main ()
    | {
    | 
    |   ;
    |   return 0;
    | }
    configure:2656: error: C++ compiler cannot create executables
    See `config.log' for more details.
     
    ## ---------------- ##
    ## Cache variables. ##
    ## ---------------- ##
     
    ac_cv_env_CCC_set=
    ac_cv_env_CCC_value=
    ac_cv_env_CC_set=
    ac_cv_env_CC_value=
    ac_cv_env_CFLAGS_set=
    ac_cv_env_CFLAGS_value=
    ac_cv_env_CPPFLAGS_set=set
    ac_cv_env_CPPFLAGS_value=-I/usr/include/OGRE
    ac_cv_env_CPP_set=
    ac_cv_env_CPP_value=
    ac_cv_env_CXXCPP_set=
    ac_cv_env_CXXCPP_value=
    ac_cv_env_CXXFLAGS_set=set
    ac_cv_env_CXXFLAGS_value='-O0 -g3'
    ac_cv_env_CXX_set=
    ac_cv_env_CXX_value=
    ac_cv_env_F77_set=
    ac_cv_env_F77_value=
    ac_cv_env_FFLAGS_set=
    ac_cv_env_FFLAGS_value=
    ac_cv_env_LDFLAGS_set=set
    ac_cv_env_LDFLAGS_value='pkg-config --cflags --libs OGRE OIS CEGUI'
    ac_cv_env_LIBS_set=
    ac_cv_env_LIBS_value=
    ac_cv_env_build_alias_set=
    ac_cv_env_build_alias_value=
    ac_cv_env_host_alias_set=
    ac_cv_env_host_alias_value=
    ac_cv_env_target_alias_set=
    ac_cv_env_target_alias_value=
    ac_cv_path_install='/usr/bin/install -c'
    ac_cv_path_mkdir=/bin/mkdir
    ac_cv_prog_AWK=gawk
    ac_cv_prog_ac_ct_CXX=g++
    ac_cv_prog_make_make_set=yes
     
    ## ----------------- ##
    ## Output variables. ##
    ## ----------------- ##
     
    ACLOCAL='${SHELL} /home/david/developpement/HelloOgre/missing --run aclocal-1.10'
    AMDEPBACKSLASH=''
    AMDEP_FALSE=''
    AMDEP_TRUE=''
    AMTAR='${SHELL} /home/david/developpement/HelloOgre/missing --run tar'
    AR=''
    AUTOCONF='${SHELL} /home/david/developpement/HelloOgre/missing --run autoconf'
    AUTOHEADER='${SHELL} /home/david/developpement/HelloOgre/missing --run autoheader'
    AUTOMAKE='${SHELL} /home/david/developpement/HelloOgre/missing --run automake-1.10'
    AWK='gawk'
    CC=''
    CCDEPMODE=''
    CFLAGS=''
    CPP=''
    CPPFLAGS='-I/usr/include/OGRE'
    CXX='g++'
    CXXCPP=''
    CXXDEPMODE=''
    CXXFLAGS='-O0 -g3'
    CYGPATH_W='echo'
    DEFS=''
    DEPDIR=''
    ECHO='echo'
    ECHO_C=''
    ECHO_N='-n'
    ECHO_T=''
    EGREP=''
    EXEEXT=''
    F77=''
    FFLAGS=''
    GREP=''
    INSTALL_DATA='${INSTALL} -m 644'
    INSTALL_PROGRAM='${INSTALL}'
    INSTALL_SCRIPT='${INSTALL}'
    INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
    LDFLAGS='pkg-config --cflags --libs OGRE OIS CEGUI'
    LIBOBJS=''
    LIBS=''
    LIBTOOL=''
    LN_S=''
    LTLIBOBJS=''
    MAKEINFO='${SHELL} /home/david/developpement/HelloOgre/missing --run makeinfo'
    OBJEXT=''
    PACKAGE='helloogre'
    PACKAGE_BUGREPORT=''
    PACKAGE_NAME=''
    PACKAGE_STRING=''
    PACKAGE_TARNAME=''
    PACKAGE_VERSION=''
    PATH_SEPARATOR=':'
    RANLIB=''
    SET_MAKE=''
    SHELL='/bin/sh'
    STRIP=''
    VERSION='0.1'
    ac_ct_CC=''
    ac_ct_CXX='g++'
    ac_ct_F77=''
    am__fastdepCC_FALSE=''
    am__fastdepCC_TRUE=''
    am__fastdepCXX_FALSE=''
    am__fastdepCXX_TRUE=''
    am__include=''
    am__isrc=' -I$(srcdir)'
    am__leading_dot='.'
    am__quote=''
    am__tar='${AMTAR} chof - "$$tardir"'
    am__untar='${AMTAR} xf -'
    bindir='${exec_prefix}/bin'
    build=''
    build_alias=''
    build_cpu=''
    build_os=''
    build_vendor=''
    datadir='${datarootdir}'
    datarootdir='${prefix}/share'
    docdir='${datarootdir}/doc/${PACKAGE}'
    dvidir='${docdir}'
    exec_prefix='NONE'
    host=''
    host_alias=''
    host_cpu=''
    host_os=''
    host_vendor=''
    htmldir='${docdir}'
    includedir='${prefix}/include'
    infodir='${datarootdir}/info'
    install_sh='$(SHELL) /home/david/developpement/HelloOgre/install-sh'
    libdir='${exec_prefix}/lib'
    libexecdir='${exec_prefix}/libexec'
    localedir='${datarootdir}/locale'
    localstatedir='${prefix}/var'
    mandir='${datarootdir}/man'
    mkdir_p='/bin/mkdir -p'
    oldincludedir='/usr/include'
    pdfdir='${docdir}'
    prefix='NONE'
    program_transform_name='s,x,x,'
    psdir='${docdir}'
    sbindir='${exec_prefix}/sbin'
    sharedstatedir='${prefix}/com'
    sysconfdir='${prefix}/etc'
    target_alias=''
     
    ## ----------- ##
    ## confdefs.h. ##
    ## ----------- ##
     
    #define PACKAGE_NAME ""
    #define PACKAGE_TARNAME ""
    #define PACKAGE_VERSION ""
    #define PACKAGE_STRING ""
    #define PACKAGE_BUGREPORT ""
    #define PACKAGE "helloogre"
    #define VERSION "0.1"
     
    configure: exit 77

  5. #5
    Membre à l'essai
    Inscrit en
    Mars 2002
    Messages
    22
    Détails du profil
    Informations forums :
    Inscription : Mars 2002
    Messages : 22
    Points : 17
    Points
    17
    Par défaut
    Cela semble venir de mon paramétrage.

    http://www.developpez.net/forums/sho...d.php?t=437110

    Es ce que arrive à compiler sans pb?

  6. #6
    Membre à l'essai
    Inscrit en
    Mars 2002
    Messages
    22
    Détails du profil
    Informations forums :
    Inscription : Mars 2002
    Messages : 22
    Points : 17
    Points
    17
    Par défaut
    Il manquait une librairie, la OIS, je l'ai installé. De plus, je suis en 64 bit, cela semble également posé des problémes d'installation de Ogre3D qui reste 32bits.
    Il semblerait également que les librairies soient installé au mauvais endroit, soit parce que j'utilise une version 64bit ou bien parce que c'est la mandriva. J'étudie le pb et je vous tiens au courant.

  7. #7
    Membre à l'essai
    Inscrit en
    Mars 2002
    Messages
    22
    Détails du profil
    Informations forums :
    Inscription : Mars 2002
    Messages : 22
    Points : 17
    Points
    17
    Par défaut
    Voici mon code :
    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
     
    /***************************************************************************
     *   Copyright (C) 2007 by David Bieder   *
     *   david.bieder@free.fr   *
     *                                                                         *
     *   This program is free software; you can redistribute it and/or modify  *
     *   it under the terms of the GNU Library General Public License as       *
     *   published by the Free Software Foundation; either version 2 of the    *
     *   License, or (at your option) any later version.                       *
     *                                                                         *
     *   This program is distributed in the hope that it will be useful,       *
     *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
     *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
     *   GNU General Public License for more details.                          *
     *                                                                         *
     *   You should have received a copy of the GNU Library General Public     *
     *   License along with this program; if not, write to the                 *
     *   Free Software Foundation, Inc.,                                       *
     *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
     ***************************************************************************/
     
     
    #ifdef HAVE_CONFIG_H
    #include <config.h>
    #endif
     
    #include <iostream>
    #include <cstdlib>
    #include <Ogre.h>
     
    #include <Samples/Common/include/ExampleApplication.h>
    //#define OGRE_PLATFORM LINUX
     
    using namespace std;
     
    /*int main(int argc, char *argv[])
    {
      cout << "Bonjour Maitre !" << endl;
     
      return EXIT_SUCCESS;
    }*/
     
     
    class TutorialApplication : public ExampleApplication
    {
    protected:
    public:
        TutorialApplication()
        {
        }
     
        ~TutorialApplication() 
        {
        }
    protected:
        void createScene(void)
        {
        }
    };
     
    #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
    #define WIN32_LEAN_AND_MEAN
    #include "windows.h"
     
    INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
    #else
    int main(int argc, char **argv)
    #endif
    {
        // Create application object
        TutorialApplication app;
     
        try {
            app.go();
        } catch( Exception& e ) {
    #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 
            MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL);
    #else
            fprintf(stderr, "An exception has occured: %s\n",
                    e.getFullDescription().c_str());
    #endif
        }
     
        return 0;
    }
    Et la sortie actuelle de kdevelop :

    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
     
    cd '/home/david/developpement/HelloOgre/debug' && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" gmake -k 
    gmake all-recursive
    gmake[1]: entrant dans le répertoire « /home/david/developpement/HelloOgre/debug »
    Making all in src
    gmake[2]: entrant dans le répertoire « /home/david/developpement/HelloOgre/debug/src »
    cd /home/david/developpement/HelloOgre && /bin/sh /home/david/developpement/HelloOgre/missing --run automake-1.10 --gnu src/Makefile
    cd .. && /bin/sh ./config.status src/Makefile depfiles
    config.status: creating src/Makefile
    config.status: executing depfiles commands
    gmake[2]: quittant le répertoire « /home/david/developpement/HelloOgre/debug/src »
    gmake[2]: entrant dans le répertoire « /home/david/developpement/HelloOgre/debug/src »
    gmake[2]: *** Pas de règle pour fabriquer la cible « pkg-config », nécessaire pour « helloogre ».
    gmake[2]: *** Pas de règle pour fabriquer la cible « --cflags », nécessaire pour « helloogre ».
    gmake[2]: *** Pas de règle pour fabriquer la cible « --libs », nécessaire pour « helloogre ».
    gmake[2]: *** Pas de règle pour fabriquer la cible « OGRE », nécessaire pour « helloogre ».
    gmake[2]: *** Pas de règle pour fabriquer la cible « OIS », nécessaire pour « helloogre ».
    gmake[2]: *** Pas de règle pour fabriquer la cible « CEGUI », nécessaire pour « helloogre ».
    gmake[2]: La cible « all » n'a pas pu être refabriquée à cause d'erreurs.
    gmake[2]: quittant le répertoire « /home/david/developpement/HelloOgre/debug/src »
    gmake[2]: entrant dans le répertoire « /home/david/developpement/HelloOgre/debug »
    gmake[2]: Rien à faire pour « all-am ».
    gmake[2]: quittant le répertoire « /home/david/developpement/HelloOgre/debug »
    gmake[1]: *** [all-recursive] Erreur 1
    gmake[1]: quittant le répertoire « /home/david/developpement/HelloOgre/debug »
    gmake: *** [all] Erreur 2
    *** Sortie avec l'état : 2 ***
    Voila ou j'en suis du pb.

  8. #8
    Membre à l'essai
    Inscrit en
    Mars 2002
    Messages
    22
    Détails du profil
    Informations forums :
    Inscription : Mars 2002
    Messages : 22
    Points : 17
    Points
    17
    Par défaut
    j'ai reussi à tout faire marcher. Je compile et j'exécute. j'ai installer les librairie manquante, faillait ajouter une ogre.sh
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
     
    if [ -z $PKG_CONFIG_PATH ]; then
        PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
    else
        PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/usr/local/lib/pkgconfig/
    fi
    Dans le /etc/profile.d afin de permettre à pkg-config,
    "`pkg-config $(all_libraries) --libs CEGUI OGRE OIS`"
    dans l'autmoke, parametre, flags.

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Problème d'include sous Ubuntu
    Par nixmind dans le forum Débuter
    Réponses: 3
    Dernier message: 12/06/2012, 21h39
  2. [PHP 5.3] Problème d'include sous Linux
    Par sibelmoch dans le forum Langage
    Réponses: 7
    Dernier message: 21/03/2011, 11h58
  3. Problème d'include et sous-répertoires
    Par didou038 dans le forum Langage
    Réponses: 6
    Dernier message: 22/12/2006, 10h46
  4. [Qt]Problème d'include sous vc2005 express
    Par Cheps dans le forum VC++ .NET
    Réponses: 6
    Dernier message: 05/10/2006, 09h38
  5. Problème d'include sous Dev-c++ 4.9.8.0
    Par Argonz dans le forum Dev-C++
    Réponses: 16
    Dernier message: 20/11/2003, 17h36

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