Author Topic: Writing wxWidgets programms  (Read 4310 times)

Offline dedalus

  • Single posting newcomer
  • *
  • Posts: 3
Writing wxWidgets programms
« on: May 11, 2008, 01:25:59 am »
Hello!
I have been using CodeBlocks for console applications only so far.
Now I want to write wxWidgets applications, but I don't get the it set up correctly. I am using Ubuntu 8.04, I think I have installed all required packages. But when I want to compile the project, I get the following errors:

Code
/usr/include/wx/platform.h|85|Fehler: wx/setup.h: No such file or directory|
/usr/include/wx/chkconf.h|47|Fehler: #error "wxUSE_DYNLIB_CLASS must be defined."|
/usr/include/wx/chkconf.h|55|Fehler: #error "wxUSE_FILESYSTEM must be defined."|
/usr/include/wx/chkconf.h|68|Fehler: #error "wxUSE_DYNAMIC_LOADER must be defined."|
/usr/include/wx/chkconf.h|76|Fehler: #error "wxUSE_LOG must be defined."|
/usr/include/wx/chkconf.h|84|Fehler: #error "wxUSE_LONGLONG must be defined."|
/usr/include/wx/chkconf.h|92|Fehler: #error "wxUSE_MIMETYPE must be defined."|
/usr/include/wx/chkconf.h|100|Fehler: #error "wxUSE_PROLOGIO must be defined."|
/usr/include/wx/chkconf.h|108|Fehler: #error "wxUSE_PROTOCOL must be defined."|
/usr/include/wx/chkconf.h|150|Fehler: #error "wxUSE_REGEX must be defined."|
/usr/include/wx/chkconf.h|158|Fehler: #error "wxUSE_SOCKETS must be defined."|
/usr/include/wx/chkconf.h|166|Fehler: #error "wxUSE_STREAMS must be defined."|
/usr/include/wx/chkconf.h|174|Fehler: #error "wxUSE_STOPWATCH must be defined."|
/usr/include/wx/chkconf.h|182|Fehler: #error "wxUSE_TEXTBUFFER must be defined."|
/usr/include/wx/chkconf.h|190|Fehler: #error "wxUSE_TEXTFILE must be defined."|
/usr/include/wx/chkconf.h|198|Fehler: #error "wxUSE_UNICODE must be defined."|
/usr/include/wx/chkconf.h|206|Fehler: #error "wxUSE_URL must be defined."|
/usr/include/wx/chkconf.h|224|Fehler: #error "wxUSE_ACCEL must be defined."|
/usr/include/wx/chkconf.h|232|Fehler: #error "wxUSE_BMPBUTTON must be defined."|
/usr/include/wx/chkconf.h|240|Fehler: #error "wxUSE_BUTTON must be defined."|
/usr/include/wx/chkconf.h|248|Fehler: #error "wxUSE_CALENDARCTRL must be defined."|
/usr/include/wx/chkconf.h|256|Fehler: #error "wxUSE_CARET must be defined."|
/usr/include/wx/chkconf.h|264|Fehler: #error "wxUSE_CHECKBOX must be defined."|
/usr/include/wx/chkconf.h|272|Fehler: #error "wxUSE_CHECKLISTBOX must be defined."|
/usr/include/wx/chkconf.h|280|Fehler: #error "wxUSE_CHOICE must be defined."|
/usr/include/wx/chkconf.h|288|Fehler: #error "wxUSE_CHOICEDLG must be defined."|
/usr/include/wx/chkconf.h|296|Fehler: #error "wxUSE_CLIPBOARD must be defined."|
/usr/include/wx/chkconf.h|304|Fehler: #error "wxUSE_COLOURDLG must be defined."|
/usr/include/wx/chkconf.h|312|Fehler: #error "wxUSE_COMBOBOX must be defined."|
/usr/include/wx/chkconf.h|320|Fehler: #error "wxUSE_DATAOBJ must be defined."|
/usr/include/wx/chkconf.h|328|Fehler: #error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."|
/usr/include/wx/chkconf.h|336|Fehler: #error "wxUSE_FILEDLG must be defined."|
/usr/include/wx/chkconf.h|344|Fehler: #error "wxUSE_FONTDLG must be defined."|
/usr/include/wx/chkconf.h|352|Fehler: #error "wxUSE_FONTMAP must be defined."|
/usr/include/wx/chkconf.h|360|Fehler: #error "wxUSE_GAUGE must be defined."|
/usr/include/wx/chkconf.h|368|Fehler: #error "wxUSE_GRID must be defined."|
/usr/include/wx/chkconf.h|376|Fehler: #error "wxUSE_HELP must be defined."|
/usr/include/wx/chkconf.h|384|Fehler: #error "wxUSE_HTML must be defined."|
/usr/include/wx/chkconf.h|392|Fehler: #error "wxUSE_ICO_CUR must be defined."|
/usr/include/wx/chkconf.h|400|Fehler: #error "wxUSE_IFF must be defined."|
/usr/include/wx/chkconf.h|408|Fehler: #error "wxUSE_IMAGLIST must be defined."|
/usr/include/wx/chkconf.h|416|Fehler: #error "wxUSE_JOYSTICK must be defined."|
/usr/include/wx/chkconf.h|424|Fehler: #error "wxUSE_LISTBOX must be defined."|
/usr/include/wx/chkconf.h|432|Fehler: #error "wxUSE_LISTCTRL must be defined."|
/usr/include/wx/chkconf.h|440|Fehler: #error "wxUSE_LOGGUI must be defined."|
/usr/include/wx/chkconf.h|448|Fehler: #error "wxUSE_LOGWINDOW must be defined."|
/usr/include/wx/chkconf.h|456|Fehler: #error "wxUSE_LOG_DIALOG must be defined."|
/usr/include/wx/chkconf.h|464|Fehler: #error "wxUSE_MDI_ARCHITECTURE must be defined."|
/usr/include/wx/chkconf.h|472|Fehler: #error "wxUSE_MENUS must be defined."|
/usr/include/wx/chkconf.h|480|Fehler: #error "wxUSE_MSGDLG must be defined."|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|

What do I have to do to make it work?

Thank you very much,
best greetings,

Sebastian

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Writing wxWidgets programms
« Reply #1 on: May 11, 2008, 01:41:02 am »
Did you compile wxWidgets or install the devel package for wxWidgets/wxGTK (libwxgtk2.8-dev) ?

Tim S
« Last Edit: May 11, 2008, 01:43:14 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline dedalus

  • Single posting newcomer
  • *
  • Posts: 3
Re: Writing wxWidgets programms
« Reply #2 on: May 11, 2008, 10:39:41 am »
Quote
Did you compile wxWidgets or install the devel package for wxWidgets/wxGTK (libwxgtk2.8-dev) ?

I did install libwxgtk2.8-dev, however I did not compile anything. What exactly do I have to compile?

Best greetings,
Sebastian

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Writing wxWidgets programms
« Reply #3 on: May 11, 2008, 11:50:35 am »
Do you have the correct minor-version of wxWidgets installed, there are afaik packages that use 2.8.4 and packages that use 2.8.7.

If the last is not included in ubuntu 8.04 you can try downnloading it from wxwidgets.org (look here).

I'm not sure if the wxWidgets-packages build for older ubuntu-versions work with 8.04, but you can try that.

Offline dedalus

  • Single posting newcomer
  • *
  • Posts: 3
Re: Writing wxWidgets programms
« Reply #4 on: May 11, 2008, 11:43:56 pm »
Works!
I don't why (I don't know what I changed) - but well I don't want to be fussy about that :-)

Thank you and bye bye!
Sebastian

nabito

  • Guest
Re: Writing wxWidgets programms
« Reply #5 on: May 12, 2008, 05:37:08 pm »
Seems like ide just can't find include file. I'd faced this problem before and solved it by pointing Compiler Search Directory to something like $wx.lib\gcc_dll\mswu and gotcha!