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

wxWidgets Discussion :

wxWidgets installation Windows eclipse


Sujet :

wxWidgets

  1. #1
    Membre éclairé Avatar de grabriel
    Inscrit en
    Septembre 2006
    Messages
    946
    Détails du profil
    Informations forums :
    Inscription : Septembre 2006
    Messages : 946
    Points : 730
    Points
    730
    Par défaut wxWidgets installation Windows eclipse
    Bonjour,

    Est-ce que quelqu'un utilise wxwidget avec eclipse?? et à réussit à l'installer j'ai trouvé un tuto avec netbeans et j'ai essayé de faire la même chose mais c'est un peu tendu du slip pour le transposer pour eclipse, je comprends pas tout!!!???.

    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
    Installing Netbeans with wxWidgets
     
    Install Netbeans
    1.Make sure you have the Java Development Kit, if not, download and install the JDK from Sun's website (Uninstall any versions of the Java Runtime Evironment, as a JRE is included in the JDK. )
     
    2.Download MinGW, Msys, and the GNU DeBugger package from <a href="http://mingw.org" target="_blank">http://mingw.org</a>
     
    3.Install MinGW, then install Msys. USE THE DEFAULT SETTINGS!
     
    4.At the end of the Msys installer, it asks to configure it with MinGW. Select yes. The installation folder for MinGW should be c:\MinGW
     
    5.Extract the GDB archive, and copy gdb.exe from the bin folder to C:\MinGW\bin
     
    6.Download and install Netbeans.
     
    7.Add  C:\MinGW\bin and C:\msys\1.0\bin (The bin directories for MinGW and Msys) to the PATH System variable, under  System Properties (My Computer->Right-click->Properties)  -> Advanced, the Evironment Variables button. Separate the directories using a semicolon (;)
     
    Install and compile wxWidgets
    1.Download the msi installer for wxWidgets from <a href="http://wxWidgets.org" target="_blank">http://wxWidgets.org</a>
     
    2.Install wxWidgets using default settings.
     
    3.Open the Msys console. (If it isn't installed with a shortcut on the desktop, it is in the Start Menu under Programs ->MinGW->MSYS->msys.exe. )
     
    4.Navigate to the wxWidgets folder (usually wxWidgets-x.x.x (with x.x.x Being the version number)) by typing cd /wxWidgets* (The asterisk lets you skip the version numbers).
     
    5.Create a new folder by typing mkdir [folder name]. For example, I used the folder name build-static-debug. (So I typed mkdir build-static-debug).
     
    6.Navigate to the new folder by typing cd ./[folder name]. I typed cd ./build-static-debug.
     
    7.Configure wxWidgets by using the configure script in the folder below by typing 
    ../configure. I recommend using the following configuration: debug, shared-disabled and unicode enabled. You can configure this configuration by typing 
    ../configure --enable-debug --disable-shared --enable-unicode
     
    8.Compile using the make command: make
     
    9.When make is finished run make install: make install
     
    10.Type rm *.o to remove unneeded files
     
     
    Set up a Netbeans Project with wxWidgets
    1.Open Netbeans.
     
    2.If you are creating a new project, select C/C++ Application, under the C/C++ catagory, name the project whatever you like, and leave all the other options at their defaults. Press Finish.
     
    3.Under the Projects pane, select your project. Right-click, and go to Properties under the menu that pops up.
     
    4.Go back to Msys. Navigate to your compiled wxWidgets folder.
    For me: cd /c/wxWidgets*/build-static-debug/
     
    5.Type the wx-config command, with the cxxflags flag.
    wx-config --cxxflags
     
    6.In the Project Properties dialog in Netbeans, under C/C++ -> C++ Compiler -> General, enter in the paths that have -I preceeding them (e.g. -I/c/wxWidgets-2.8.7/build-static-debug/lib/wx/include/msw-unicode-debug-static-2.8), by clicking the elipsis (...) button by Include Directories. Navigate to that directory (/c/ is the same as C:\) click on that folder, and click select. Repeat until all the listed directories are entered into Netbeans. Then click OK in the Include Directories dialog. Keep the msys window open.
     
    7.Go to Command Line, under C++ Compiler, and copy the additional output on the msys window by selecting the remaining flags, and pressing Ctrl+C. Go into the Additional Options dialog by pressing the elipsis (...) button next to Additional Options (under C/C++ -> C++ Compiler -> Command Line). In the text box, paste the flags by pressing Ctrl+V.
     
    8.Repeat the process from step 22, with the libs flag.
    wx-config --libs
     
    9.Copy the output from msys to Addional Options -> Linker -> Librarys, by selecting the elipsis (...), selecting Add Option, selecting Other Option, and Pasting the flags.
     
    10.Close msys and the Project Properties windows, and you're done.
     
    The project configuration steps also apply to Linux.

  2. #2
    Membre éclairé Avatar de grabriel
    Inscrit en
    Septembre 2006
    Messages
    946
    Détails du profil
    Informations forums :
    Inscription : Septembre 2006
    Messages : 946
    Points : 730
    Points
    730
    Par défaut
    Up,

    Personne ne peux me filer un coup de main?

  3. #3
    Membre du Club
    Profil pro
    Inscrit en
    Avril 2008
    Messages
    38
    Détails du profil
    Informations personnelles :
    Âge : 48
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Avril 2008
    Messages : 38
    Points : 42
    Points
    42
    Par défaut wxWidgets Eclipse
    Désolé Grabriel, je ne peux pas t'aider : je ne développe pas sous Eclipse.

    Franchement, utilise plutôt Code::Blocks : c'est un outil écrit en C++ / wxWidgets fait pour... C++ / wxWidgets. Il comprend un outil RAD wxWidgets, dont Eclipse n'est pas pourvu et fourmille de fonctionnalités sans être lourd.

    Le debuggeur d'Eclipse est un peu mieux que celui de Code::Blocks, mais c'est là son seul avantage. Autrement, il est lourd, lent et très chargé. Il est écrit en Java et d'abord adapté au développement en Java.

  4. #4
    Membre éclairé Avatar de grabriel
    Inscrit en
    Septembre 2006
    Messages
    946
    Détails du profil
    Informations forums :
    Inscription : Septembre 2006
    Messages : 946
    Points : 730
    Points
    730
    Par défaut
    J'ai fini par installer codeblocks, c'est vrai c'est mieux d'utiliser les outils les plus adaptés à ce qu'on veux faire!!!

    --------------EDIT---------------

    Vous n'auriez pas un lien vers un tuto simple pour faire un hello world avec code blocks avec wxwidget???

    Merci

  5. #5
    Membre du Club
    Profil pro
    Inscrit en
    Avril 2008
    Messages
    38
    Détails du profil
    Informations personnelles :
    Âge : 48
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Avril 2008
    Messages : 38
    Points : 42
    Points
    42
    Par défaut Assistant CB
    Citation Envoyé par grabriel Voir le message
    Vous n'auriez pas un lien vers un tuto simple pour faire un hello world avec code blocks avec wxwidget???
    Merci
    Le mieux est de générer le squelette d'une application avec l'assistant de Code::Blocks. Vous verrez alors à quoi ressemble le code d'une appli basique en wxWidgets. Pour cela : menu File, puis New, choisissez la sous-option Project.... La boîte de dialogue des templates s'ouvre alors. Allez tout en bas de la liste des icônes, et choisissez wxWidgets project. Puis laissez vous guider par l'assistant.

    Evidemment, il faut avoir compilé wxWidgets au préalable. Dans un premier temps, c'est sans doute plus simple avec Mingw. Le wiki de CB explique tout ça.

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

Discussions similaires

  1. Installation de wxWidgets sur Windows
    Par 3DArchi dans le forum wxWidgets
    Réponses: 8
    Dernier message: 14/11/2012, 15h11
  2. Installation de wxWidgets sur Windows
    Par 3DArchi dans le forum Contribuez
    Réponses: 0
    Dernier message: 13/05/2009, 18h10
  3. installation d' Eclipse sous Windows XP 64 bit
    Par scalande dans le forum Eclipse Java
    Réponses: 1
    Dernier message: 27/10/2008, 15h48
  4. Réponses: 1
    Dernier message: 28/08/2007, 10h20

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