help installing wxWidgets

Discussion in 'Linux' started by jape, Nov 19, 2008.

  1. jape

    jape

    Joined:
    Sep 20, 2008
    Messages:
    27
    Likes Received:
    0
    I have installed Code::Blocks v8.02, gcc v4.1.2 and gcc-c++ v4.1.2. Code::Blocks runs and I can compile Hello World. So far so good.

    Now I would like to try wxWidgets with Code::Blocks for GUI building, so i need some advice on installing wxWidgets. Has anyone done this ?

    I'm not sure what components should be installed, if the correct ones are available via the Package Manager or not, and what dependency problems might exist.

    Any advice or pointers appreciated.

    Regards, Jape
     
    jape, Nov 19, 2008
    #1
  2. jape

    Duncan_Rowland

    Joined:
    Aug 25, 2008
    Messages:
    246
    Likes Received:
    0
    Hiya,
    I just downloaded wxWidgets-2.8.9.tar.gz (the wxAll) from here http://www.wxwidgets.org/downloads/

    I untar'd it and ran "./configure", this will tell you what is missing, if anything...
    (not much for me, but I have installed stuff before, but nearly always from the repositories,
    so should be commonly available - gtk2-devel was the only thing that has loads of dependencies)

    I did "make", which took ages and takes quite a bit of disk space, but finished fine.

    There are more instruction about installing in the tar (make install), but since I didn't want to install, I just did
    $ cd samples/popup
    $ make
    $ ./popup

    Worked fine. Not sure how to integrate with Code::Blocks... (though from the looks of the GUI it will probably be pretty cluttered on the One, have you considered developing on a system other than your target platform - if that's what the One is?)
     
    Duncan_Rowland, Nov 19, 2008
    #2
  3. jape

    jape

    Joined:
    Sep 20, 2008
    Messages:
    27
    Likes Received:
    0
    Hi Duncan

    Thanks for the feedback.

    I had already downloaded wxWidgets-2.8.9.tar.gz but was frightened off by not understanding the dependencies, I didn't know about ./configure.

    I've now run the ./configure and installed one missing package, but I have not been able to install gtk2-devel 2.12.8-2.fc8.i386 as it threw up a number of unresolvable dependencies. Did you manage to install gtk2-devel ?

    I want to use wxWidgets to write some simple form based GUI's on the AAO. A few buttons, some data entry boxes and draw some graphs. I usually do this on Windows with Visual Studio, C++ and MFC. Although the AAO is a small machine it should be capable and I don't want to be using another platform. I've certainly used less capable machines for GUI development in the past.

    I'd be interested to know how much disk space you say was used.

    Regards, Jape
     
    jape, Nov 19, 2008
    #3
  4. jape

    Duncan_Rowland

    Joined:
    Aug 25, 2008
    Messages:
    246
    Likes Received:
    0
    Yes, it's odd, first time I ran Add/Remove Software it did moan about some dependencies, second time I ran it it just brought up a list (maybe 7 or so) of things it needed and just worked... Maybe try installing gtk2-devel again?
    I've deleted wx now, but 5 or 6% maybe while it was compiling, not sure how much is needed at the end.
     
    Duncan_Rowland, Nov 19, 2008
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.