如何在Windows上使用Eclipse构建wxWidgets [英] How Can I Build wxWidgets With Eclipse On Windows

查看:421
本文介绍了如何在Windows上使用Eclipse构建wxWidgets的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows XP SP2上安装了wxWidgets 2.8.9,并根据指示构建了图书馆,现在我想获得 Hello World!教程应用程序从Eclipse内部构建,我只是错过了一些明显的东西。任何想法如何得到Cygwin,Eclipse和wxWidgets一起玩?

解决方案

answer 由Lars Uffmann发布到comp.soft-sys.wxwindows新闻组。简而言之:


  1. 将c:/ cygwin / usr / local / bin添加到Eclipse项目配置中的路径


  2. 添加``wx-config --cxxflags`‘到GCC C ++编译器命令


  3. 将$ {FLAGS}变量移动到GCC C ++链接器命令的


  4. 添加wx-config --libs‘到GCC
    C ++链接器标志。

感谢Uffmann先生分享这些信息;这个问题一直给我头痛的天。






编辑:请注意,wx-config字符串的每一端都有一个文字反引号。逃避反引号的方法似乎无法正常工作。有关确切语法的详细信息,请参阅链接的答案。


I installed wxWidgets 2.8.9 on a Windows XP SP2 box and built the library according to the directions and now I'm trying to get the Hello World! tutorial app to build from within Eclipse and I'm just missing something apparently. Any idea how to get Cygwin, Eclipse and wxWidgets to play nice together?

解决方案

This answer was posted by Lars Uffmann to the comp.soft-sys.wxwindows newsgroup. In a nutshell:

  1. Add c:/cygwin/usr/local/bin to the path in the Eclipse project configuration

  2. Add ``wx-config --cxxflags`‘ to the GCC C++ Compiler command

  3. Move the ${FLAGS} variable to the end of the GCC C++ Linker Command Line Pattern

  4. Add ``wx-config --libs`‘ to the GCC C++ Linker flags.

Thank goodness for Mr. Uffmann sharing this information; this problem has been giving me headaches for days.


EDIT: Note that there is a literal backtick at each end of the wx-config strings. The method of escaping the backtick doesn't seem to work correctly. Refer to the linked answer for more details on exact syntax.

这篇关于如何在Windows上使用Eclipse构建wxWidgets的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆