Author Topic: cannot create GUI using WXwidget or QT  (Read 5893 times)

Offline joebats72

  • Single posting newcomer
  • *
  • Posts: 2
cannot create GUI using WXwidget or QT
« on: November 15, 2010, 05:30:51 am »
Hi, I just downloaded your software and cannot create a gui project. I have wxwigdet (v2.9) and QT libraries(2010.05) installed, but when I go thru the wizard it returns an error that the path to the libraries are invalid. Bottom line is - I cant get a GUI app to compile with the libraries I have installed. Also I get this error: "A matching debug configuration cannot be found in the wxWidgets directory..."
Can someone please help? :(


Offline xunxun

  • Almost regular
  • **
  • Posts: 187
Re: cannot create GUI using WXwidget or QT
« Reply #1 on: November 15, 2010, 06:06:51 am »
Do you configure the wx Global viariable and do you compile the wxwidgets debug lib&dll?
Regards,
xunxun

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6077
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: cannot create GUI using WXwidget or QT
« Reply #2 on: November 15, 2010, 06:09:51 am »
Hi, I just downloaded your software and cannot create a gui project. I have wxwigdet (v2.9) and QT libraries(2010.05) installed, but when I go thru the wizard it returns an error that the path to the libraries are invalid. Bottom line is - I cant get a GUI app to compile with the libraries I have installed. Also I get this error: "A matching debug configuration cannot be found in the wxWidgets directory..."
Can someone please help? :(



I only use wxWidget 2.8.x, here is my suggestion.

1. did you define the wx variable in the settings->global variables?
2, did you install a debug version library of wxwidget?
from this
Quote
"A matching debug configuration cannot be found in the wxWidgets directory..."
seems you need a debug version wxwidget library.


If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline joebats72

  • Single posting newcomer
  • *
  • Posts: 2
Re: cannot create GUI using WXwidget or QT
« Reply #3 on: November 16, 2010, 12:18:26 pm »
Hi Thanks for your reply. In the Global Variable Editor, I have 2 options: 'wx' and 'qt4'. I changed the variable to 'wx' in the dropdown but its not saving after I close the window. Also, I have the following settings for these fields:Base directory is C:\wxWidgets-2.9.1; Include is C:\wxWidgets-2.9.1\include; lib is C:\wxWidgets-2.9.1\lib; obj is blank - does this need a directory as well? Should I switch to widgets v2.8 and would this enable the GUI designer? Thanks again, please provide some suggestions.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7786
    • My Best Post
Re: cannot create GUI using WXwidget or QT
« Reply #4 on: November 16, 2010, 04:06:21 pm »
Hi Thanks for your reply. In the Global Variable Editor, I have 2 options: 'wx' and 'qt4'. I changed the variable to 'wx' in the dropdown but its not saving after I close the window. Also, I have the following settings for these fields:Base directory is C:\wxWidgets-2.9.1; Include is C:\wxWidgets-2.9.1\include; lib is C:\wxWidgets-2.9.1\lib; obj is blank - does this need a directory as well? Should I switch to widgets v2.8 and would this enable the GUI designer? Thanks again, please provide some suggestions.

For the Global Variable "wx" only the base path needs to be defined.

http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org