我在ubuntu6.06上用CodeBlock+Wxwidgets2.8搭建了开发环境,新建了一个wxwidgets程序,编译过程非常顺利,没有任何错误提示,但是运行时提示:
error while loading shared libraries: libwx_gtk2u-2.8.so.0: cannot open shared object file: No such file or directory
我已经将libwx_gtk2u-2.8.so.0复制到了程序目录还是不行。
请问各位大侠是怎么回事???
另外,有好点的学习wxwidgets的书吗(最好是电子版的)??
经过google,发现将wxwidgets的lib路径加入/etc/ld.so.conf文件就不会出现上述错误了,但是又出现了下列的问题:Fatal Error: Mismatch between the program and library build versions detected.
The library used 2.6 (no debug,Unicode,compiler with C++ ABI 1002,wx containers,compatible with 2.4),
and your program used 2.8 (no debug,Unicode,compiler with C++ ABI 1002,wx containers,compatible with 2.6).
看样子是有两个(2.6和2.8)版本的wxgtk库冲突造成的,该怎样解决呀?难道要用回2.6版的吗?
原来编译wxwidgets时,设为静态连接就可以了!!
[问题]Wxwidgets程序编译成功,不能运行。(已经解决)
-
- 帖子: 104
- 注册时间: 2006-12-10 12:35
- 来自: ChongQing China
[问题]Wxwidgets程序编译成功,不能运行。(已经解决)
上次由 laimama 在 2007-03-17 21:25,总共编辑 1 次。
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
-
- 帖子: 104
- 注册时间: 2006-12-10 12:35
- 来自: ChongQing China
-
- 帖子: 104
- 注册时间: 2006-12-10 12:35
- 来自: ChongQing China
公社下的,自己去看看吧,很不错的:http://www.linuxfans.org/nuke/modules.p ... o&did=4653titainium 写了:什么书?不错的话就共享出来吧。
学习的话,其实无所谓哪个版本啦。
- xport
- 帖子: 1277
- 注册时间: 2006-05-19 21:23
- 联系: