wx、setup.h 的问题
我尝试从 opalvoip 库编译 openphone 示例,但没有成功并收到以下错误:
/usr/include/wx/platform.h|190|error: wx/setup.h: Datei oder Verzeichnis nicht gefunden|
/usr/include/wx/chkconf.h|84|error: #error "wxUSE_DYNLIB_CLASS must be defined."|
/usr/include/wx/chkconf.h|92|error: #error "wxUSE_EXCEPTIONS must be defined."|
/usr/include/wx/chkconf.h|100|error: #error "wxUSE_FILESYSTEM must be defined."|
/usr/include/wx/chkconf.h|113|error: #error "wxUSE_DYNAMIC_LOADER must be defined."|
/usr/include/wx/chkconf.h|121|error: #error "wxUSE_LOG must be defined."|
/usr/include/wx/chkconf.h|129|error: #error "wxUSE_LONGLONG must be defined."|
/usr/include/wx/chkconf.h|137|error: #error "wxUSE_MIMETYPE must be defined."|
/usr/include/wx/chkconf.h|145|error: #error "wxUSE_ON_FATAL_EXCEPTION must be defined."|
/usr/include/wx/chkconf.h|153|error: #error "wxUSE_PROTOCOL must be defined."|
/usr/include/wx/chkconf.h|195|error: #error "wxUSE_REGEX must be defined."|
/usr/include/wx/chkconf.h|203|error: #error "wxUSE_STDPATHS must be defined."|
/usr/include/wx/chkconf.h|211|error: #error "wxUSE_XML must be defined."|
/usr/include/wx/chkconf.h|219|error: #error "wxUSE_SOCKETS must be defined."|
/usr/include/wx/chkconf.h|227|error: #error "wxUSE_STREAMS must be defined."|
/usr/include/wx/chkconf.h|235|error: #error "wxUSE_STOPWATCH must be defined."|
/usr/include/wx/chkconf.h|243|error: #error "wxUSE_TEXTBUFFER must be defined."|
/usr/include/wx/chkconf.h|251|error: #error "wxUSE_TEXTFILE must be defined."|
/usr/include/wx/chkconf.h|267|error: #error "wxUSE_URL must be defined."|
/usr/include/wx/chkconf.h|285|error: #error "wxUSE_ACCEL must be defined."|
/usr/include/wx/chkconf.h|293|error: #error "wxUSE_BMPBUTTON must be defined."|
/usr/include/wx/chkconf.h|301|error: #error "wxUSE_BUTTON must be defined."|
/usr/include/wx/chkconf.h|309|error: #error "wxUSE_CALENDARCTRL must be defined."|
/usr/include/wx/chkconf.h|317|error: #error "wxUSE_CARET must be defined."|
/usr/include/wx/chkconf.h|325|error: #error "wxUSE_CHECKBOX must be defined."|
/usr/include/wx/chkconf.h|333|error: #error "wxUSE_CHECKLISTBOX must be defined."|
/usr/include/wx/chkconf.h|341|error: #error "wxUSE_CHOICE must be defined."|
/usr/include/wx/chkconf.h|349|error: #error "wxUSE_CHOICEBOOK must be defined."|
/usr/include/wx/chkconf.h|357|error: #error "wxUSE_CHOICEDLG must be defined."|
/usr/include/wx/chkconf.h|365|error: #error "wxUSE_CLIPBOARD must be defined."|
/usr/include/wx/chkconf.h|373|error: #error "wxUSE_COLOURDLG must be defined."|
/usr/include/wx/chkconf.h|381|error: #error "wxUSE_COMBOBOX must be defined."|
/usr/include/wx/chkconf.h|389|error: #error "wxUSE_DATAOBJ must be defined."|
/usr/include/wx/chkconf.h|397|error: #error "wxUSE_DATEPICKCTRL must be defined."|
/usr/include/wx/chkconf.h|405|error: #error "wxUSE_DISPLAY must be defined."|
/usr/include/wx/chkconf.h|413|error: #error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."|
/usr/include/wx/chkconf.h|421|error: #error "wxUSE_FILEDLG must be defined."|
/usr/include/wx/chkconf.h|429|error: #error "wxUSE_FONTDLG must be defined."|
/usr/include/wx/chkconf.h|437|error: #error "wxUSE_FONTMAP must be defined."|
/usr/include/wx/chkconf.h|445|error: #error "wxUSE_GAUGE must be defined."|
/usr/include/wx/chkconf.h|453|error: #error "wxUSE_GRID must be defined."|
/usr/include/wx/chkconf.h|461|error: #error "wxUSE_HELP must be defined."|
/usr/include/wx/chkconf.h|469|error: #error "wxUSE_HTML must be defined."|
/usr/include/wx/chkconf.h|477|error: #error "wxUSE_XRC must be defined."|
/usr/include/wx/chkconf.h|498|error: #error "wxUSE_ICO_CUR must be defined."|
/usr/include/wx/chkconf.h|506|error: #error "wxUSE_IFF must be defined."|
/usr/include/wx/chkconf.h|514|error: #error "wxUSE_IMAGLIST must be defined."|
/usr/include/wx/chkconf.h|522|error: #error "wxUSE_JOYSTICK must be defined."|
/usr/include/wx/chkconf.h|530|error: #error "wxUSE_LISTBOOK must be defined."|
/usr/include/wx/chkconf.h|538|error: #error "wxUSE_LISTBOX must be defined."|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|
我向 google 询问错误,并找到了一些提示,但它们没有帮助我。 我在 Ubuntu 10.04 操作系统上使用 Code::Blocks。 我
`wx-config --cxxflags`
`wx-config --libs`
在编译器选项中使用了额外的内容。
I try to compile the openphone example from the opalvoip library, but I have no success and get the following errors:
/usr/include/wx/platform.h|190|error: wx/setup.h: Datei oder Verzeichnis nicht gefunden|
/usr/include/wx/chkconf.h|84|error: #error "wxUSE_DYNLIB_CLASS must be defined."|
/usr/include/wx/chkconf.h|92|error: #error "wxUSE_EXCEPTIONS must be defined."|
/usr/include/wx/chkconf.h|100|error: #error "wxUSE_FILESYSTEM must be defined."|
/usr/include/wx/chkconf.h|113|error: #error "wxUSE_DYNAMIC_LOADER must be defined."|
/usr/include/wx/chkconf.h|121|error: #error "wxUSE_LOG must be defined."|
/usr/include/wx/chkconf.h|129|error: #error "wxUSE_LONGLONG must be defined."|
/usr/include/wx/chkconf.h|137|error: #error "wxUSE_MIMETYPE must be defined."|
/usr/include/wx/chkconf.h|145|error: #error "wxUSE_ON_FATAL_EXCEPTION must be defined."|
/usr/include/wx/chkconf.h|153|error: #error "wxUSE_PROTOCOL must be defined."|
/usr/include/wx/chkconf.h|195|error: #error "wxUSE_REGEX must be defined."|
/usr/include/wx/chkconf.h|203|error: #error "wxUSE_STDPATHS must be defined."|
/usr/include/wx/chkconf.h|211|error: #error "wxUSE_XML must be defined."|
/usr/include/wx/chkconf.h|219|error: #error "wxUSE_SOCKETS must be defined."|
/usr/include/wx/chkconf.h|227|error: #error "wxUSE_STREAMS must be defined."|
/usr/include/wx/chkconf.h|235|error: #error "wxUSE_STOPWATCH must be defined."|
/usr/include/wx/chkconf.h|243|error: #error "wxUSE_TEXTBUFFER must be defined."|
/usr/include/wx/chkconf.h|251|error: #error "wxUSE_TEXTFILE must be defined."|
/usr/include/wx/chkconf.h|267|error: #error "wxUSE_URL must be defined."|
/usr/include/wx/chkconf.h|285|error: #error "wxUSE_ACCEL must be defined."|
/usr/include/wx/chkconf.h|293|error: #error "wxUSE_BMPBUTTON must be defined."|
/usr/include/wx/chkconf.h|301|error: #error "wxUSE_BUTTON must be defined."|
/usr/include/wx/chkconf.h|309|error: #error "wxUSE_CALENDARCTRL must be defined."|
/usr/include/wx/chkconf.h|317|error: #error "wxUSE_CARET must be defined."|
/usr/include/wx/chkconf.h|325|error: #error "wxUSE_CHECKBOX must be defined."|
/usr/include/wx/chkconf.h|333|error: #error "wxUSE_CHECKLISTBOX must be defined."|
/usr/include/wx/chkconf.h|341|error: #error "wxUSE_CHOICE must be defined."|
/usr/include/wx/chkconf.h|349|error: #error "wxUSE_CHOICEBOOK must be defined."|
/usr/include/wx/chkconf.h|357|error: #error "wxUSE_CHOICEDLG must be defined."|
/usr/include/wx/chkconf.h|365|error: #error "wxUSE_CLIPBOARD must be defined."|
/usr/include/wx/chkconf.h|373|error: #error "wxUSE_COLOURDLG must be defined."|
/usr/include/wx/chkconf.h|381|error: #error "wxUSE_COMBOBOX must be defined."|
/usr/include/wx/chkconf.h|389|error: #error "wxUSE_DATAOBJ must be defined."|
/usr/include/wx/chkconf.h|397|error: #error "wxUSE_DATEPICKCTRL must be defined."|
/usr/include/wx/chkconf.h|405|error: #error "wxUSE_DISPLAY must be defined."|
/usr/include/wx/chkconf.h|413|error: #error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."|
/usr/include/wx/chkconf.h|421|error: #error "wxUSE_FILEDLG must be defined."|
/usr/include/wx/chkconf.h|429|error: #error "wxUSE_FONTDLG must be defined."|
/usr/include/wx/chkconf.h|437|error: #error "wxUSE_FONTMAP must be defined."|
/usr/include/wx/chkconf.h|445|error: #error "wxUSE_GAUGE must be defined."|
/usr/include/wx/chkconf.h|453|error: #error "wxUSE_GRID must be defined."|
/usr/include/wx/chkconf.h|461|error: #error "wxUSE_HELP must be defined."|
/usr/include/wx/chkconf.h|469|error: #error "wxUSE_HTML must be defined."|
/usr/include/wx/chkconf.h|477|error: #error "wxUSE_XRC must be defined."|
/usr/include/wx/chkconf.h|498|error: #error "wxUSE_ICO_CUR must be defined."|
/usr/include/wx/chkconf.h|506|error: #error "wxUSE_IFF must be defined."|
/usr/include/wx/chkconf.h|514|error: #error "wxUSE_IMAGLIST must be defined."|
/usr/include/wx/chkconf.h|522|error: #error "wxUSE_JOYSTICK must be defined."|
/usr/include/wx/chkconf.h|530|error: #error "wxUSE_LISTBOOK must be defined."|
/usr/include/wx/chkconf.h|538|error: #error "wxUSE_LISTBOX must be defined."|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|
I ask google about the errors and I found some hints, but they didn't help me.
I use Code::Blocks on an Ubuntu 10.04 Operating System.
Additional I use
`wx-config --cxxflags`
`wx-config --libs`
in my Compiler Options.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
再看一遍,我认为您正在尝试将 ANSI 编译的 wx 与 UNICODE Code::Blocks 项目一起使用。所以:获取 UNICODE WX
On a second look, I think you're trying to use an ANSI compiled wx with UNICODE Code::Blocks project. So: Get UNICODE WX