[问题]Wxwidgets程序编译成功,不能运行。(已经解决)
发表于 : 2007-03-17 18:57
我在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时,设为静态连接就可以了!!
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时,设为静态连接就可以了!!