wxPython 2.6.0.1 massive errors
I'm trying to install pysoulseek and thus need to install wxPython. I first untar/uncompress the source, configure config.py, then use "python setup.py build" (which is essentially what their wiki says to do).. with this, I get a bunch of errors, much of which the terminal cuts off. Here's some of it.
Code:
src/helpers.cpp:1924: error: conflicting types for `int pyList' |
we generally need the very first line of error and a few after
the rest of it just follows from the first thing to go wrong might be you need to install wxWidgets and it's developement files if you use binaries |
Okay, I installed wxGTK/wxWidgets. Everything seemed to go fine. But I'm still getting errors with trying to build wxPython.
Here's the first few errors: Code:
contrib/stc/gtk/stc_wrap.cpp:1384:24: wx/stc/stc.h: No such file or directory |
*bump*
i've got the same problem, been trying to figure it out for weeks now and i'm about to just give up
the whole reason i'm installing it is so that i can use some python IDE's and learn python, but if it's this much trouble i don't think i want to learn python, nothing should be this much of a headache, there're posts all over the place about this problem but noone seeme to know how to solve it if anyone knows of anything that could help, that'd be cool, thanks |
Yeah,I encountered the same problem just now. Really crazy, that there is no answer to this, besides that this seems to be an old problem, it looks like it's just a matter of "typing accidents", as it seems to me. Whatever, I didn't yet try using it, but now it compiles nicely.
To solve this problem (my way ^^), you'd have to open the $WXDIR/wxPython/contrib/stc/gtk/stc_wrap.cpp and got to line 1384. Since somehow the stc.h is expected in one of the default include paths it isn't included (it isn't even in /opt/wx/2.6/include ...). The only stc.h I could find is in $WXDIR/contrib/include/wx/stc/stc.h . So just change the line 1384 (since this time of writing. It should look like: #include <wx/stc/stc.h> ) to #include "../../../../contrib/include/wx/stc/stc.h" . Now it should compile, but again it doesn't link, since the needed objects aren't in place (which is, in my opinion, quite odd, since they're in $WXDIR/bld/lib [if you followed the BUILD.txt]) so just copy them to /opt/wx/2.6/lib (just go into $WXDIR/bld/lib and do cp *stc* /opt/wx/2.6/lib ) and then everything should compile fine. Hope that helps. |
Still having problems
I did all you wrote but still got yet another error message:
"cannot find -lwx_gtk2_stc-2.6" Do you have any idea how to resolve this issue? Thanks, Amit. |
Well, first look if it's (it = libwx_gtk2_stc-2.6.so) in /opt/wx/2.6/lib , or even somewhere else. If not you probably forgot to copy those libs as written at the end of my instruction ("cp *std* /opt/wx/2.6/lib" in $WXDIR/bld/lib). Though I suppose the directory for the libs is taken from the config, you could also add it to your LD_LIBRARY_PATH : "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/wx/2.6/lib" .
|
Quote:
Thanks, Amit. |
Quote:
"su" (if you aren't already root, and don't have the privileges to write into: ) "cd /opt/wx/2.6/lib" "ln -s libwx_gtk2d_stc-2.6.so libwx_gtk2_stc-2.6.so" (should create a symlink to the "correct" file) If the "d" was the problem, this should solve it.... |
Quote:
/usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld: cannot find -lwx_gtk2_stc-2.6 Hope this helps you to help me, Amit. |
Umm, well, this error message suggests two things (as I already mentioned beforehand):
1.) the libwx_gtk2_stc-2.6.so is really non-existing, or 2.) the directory of this file isn't in LD_LIBRARY_PATH So, now that you created the link, the libwx_gtk2_stc-2.6.so should reside in /opt/wx/2.6/lib, no? You first do "echo $LD_LIBRARY_PATH" and search for the directory, if you can't find it, do "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/wx/2.6/lib" (without the quotationmarks, of course ;) ). (without closing the terminal after that, you, hopefully, should be able to compile fine, otherwise I'm running out of Ideas....) |
Fixed
I just ran into the same thing while trying to build wxPython 2.6.3.0 from source. In the wxPython directory I tried running setup.py build install and got this error (it was the first at the top of about 5000 lines of errors).
Code:
contrib/stc/gtk/stc_wrap.cpp:1384:24: wx/stc/stc.h: No such file or directory When I got stuck, I did a search and ran into someone who mentioned a Build.txt document. I went hunting and found the file Code:
wxPython-src-2.6.3.0/wxPython/docs/BUILD.html Quote:
After doing this './.make install', my command to build wxPython worked: /opt/python-2.4/bin/python setup.py \ WX_CONFIG=/opt/python-2.4/wxPython/bin/wx-config \ build install I hope this helps someone who runs into this problem. |
All times are GMT -5. The time now is 07:28 AM. |