Problem Building wxPython

Hi all,
i'm new to this list. I subscribed it because i have a problem building wxPython.
I downloaded the sources, and followed instruction in http://wxpython.org/BUILD.html
It's all ok but when i'm at the step:

root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython# python setup.py build_ext

I have this output

Found wx-config: /usr/local/bin/wx-config
    Using flags: --toolkit=gtk2 --unicode=no --version=2.5
Preparing CORE...
Preparing STC...
Preparing XRC...
Preparing GIZMOS...
running build_ext
building '_stc' extension
c++ -pthread -shared build-gtk2/temp.linux-i686-2.3/contrib/stc/gtk/stc_wrap.o -L/usr/X11R6/lib -L/usr/local/lib -L/usr/X11R6/lib -lwx_gtk2_html-2.5 -lwx_gtk2_adv-2.5 -lwx_gtk2_core-2.5 -lwx_base_xml-2.5 -lwx_base_net-2.5 -lwx_base-2.5 -lwx_gtk2_stc-2.5 -o build-gtk2/lib.linux-i686-2.3/wx/_stc.so -pthread
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../i486-slackware-linux/bin/ld: *cannot find -lwx_gtk2_stc-2.5*
collect2: ld returned 1 exit status

I'm looking for this library and....

root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython# locate stc-2
/usr/local/lib/libwx_gtk2ud_stc-2.5.so
/usr/local/lib/libwx_gtk2ud_stc-2.5.so.2.0.0
/usr/local/lib/libwx_gtk2ud_stc-2.5.so.2
/usr/install/wxPythonSrc-2.5.2.8/lib/libwx_gtk2ud_stc-2.5.so.2.0.0
/usr/install/wxPythonSrc-2.5.2.8/lib/libwx_gtk2ud_stc-2.5.so.2
/usr/install/wxPythonSrc-2.5.2.8/lib/libwx_gtk2ud_stc-2.5.so

I ran ldconfig...

root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython# ldconfig -v | grep stc
        libwx_gtk2ud_stc-2.5.so.2 -> libwx_gtk2ud_stc-2.5.so.2.0.0

I have no idea why ld cannot find that library.
Could someone help me?
I'm running slackware 10.0, and i have just installed wxBase and wxGTK (for aMule)
Thanks all!

I can't tell you the exact cause, but the error refers to
libwx_gtk2_stc-2.5, not to libwx_gtk2ud_stc-2.5.so.2.0.0

I don't know what the "ud" stands for, but I'd guess something with unicode?

Hi all,
i'm new to this list. I subscribed it because i have a problem building
wxPython.
I downloaded the sources, and followed instruction in
Phoenix/README.rst at master · wxWidgets/Phoenix · GitHub
It's all ok but when i'm at the step:

root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython# python setup.py
build_ext

I have this output

Found wx-config: /usr/local/bin/wx-config
    Using flags: --toolkit=gtk2 --unicode=no --version=2.5
Preparing CORE...
Preparing STC...
Preparing XRC...
Preparing GIZMOS...
running build_ext
building '_stc' extension
c++ -pthread -shared
build-gtk2/temp.linux-i686-2.3/contrib/stc/gtk/stc_wrap.o
-L/usr/X11R6/lib -L/usr/local/lib -L/usr/X11R6/lib -lwx_gtk2_html-2.5
-lwx_gtk2_adv-2.5 -lwx_gtk2_core-2.5 -lwx_base_xml-2.5 -lwx_base_net-2.5
-lwx_base-2.5 -lwx_gtk2_stc-2.5 -o
build-gtk2/lib.linux-i686-2.3/wx/_stc.so -pthread
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../i486-slackware-linu
x/bin/ld: *cannot find -lwx_gtk2_stc-2.5*
collect2: ld returned 1 exit status

I'm looking for this library and....

root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython# locate stc-2
/usr/local/lib/libwx_gtk2ud_stc-2.5.so
/usr/local/lib/libwx_gtk2ud_stc-2.5.so.2.0.0
/usr/local/lib/libwx_gtk2ud_stc-2.5.so.2
/usr/install/wxPythonSrc-2.5.2.8/lib/libwx_gtk2ud_stc-2.5.so.2.0.0
/usr/install/wxPythonSrc-2.5.2.8/lib/libwx_gtk2ud_stc-2.5.so.2
/usr/install/wxPythonSrc-2.5.2.8/lib/libwx_gtk2ud_stc-2.5.so

I ran ldconfig...

root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython# ldconfig -v |
grep stc
        libwx_gtk2ud_stc-2.5.so.2 -> libwx_gtk2ud_stc-2.5.so.2.0.0

I have no idea why ld cannot find that library.
Could someone help me?
I'm running slackware 10.0, and i have just installed wxBase and wxGTK
(for aMule)
Thanks all!

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

- --
  UC

- --
Open Source Solutions 4U, LLC 2570 Fleetwood Drive
Phone: +1 650 872 2425 San Bruno, CA 94066
Cell: +1 650 302 2405 United States
Fax: +1 650 872 2417

···

On Friday 22 October 2004 06:01 am, Leonardo Rossi wrote:

Leonardo Rossi wrote:

Hi all,
i'm new to this list. I subscribed it because i have a problem building wxPython.
I downloaded the sources, and followed instruction in Phoenix/README.rst at master · wxWidgets/Phoenix · GitHub
It's all ok but when i'm at the step:

root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython# python setup.py build_ext

I have this output

Found wx-config: /usr/local/bin/wx-config
   Using flags: --toolkit=gtk2 --unicode=no --version=2.5
Preparing CORE...
Preparing STC...
Preparing XRC...
Preparing GIZMOS...
running build_ext
building '_stc' extension
c++ -pthread -shared build-gtk2/temp.linux-i686-2.3/contrib/stc/gtk/stc_wrap.o -L/usr/X11R6/lib -L/usr/local/lib -L/usr/X11R6/lib -lwx_gtk2_html-2.5 -lwx_gtk2_adv-2.5 -lwx_gtk2_core-2.5 -lwx_base_xml-2.5 -lwx_base_net-2.5 -lwx_base-2.5 -lwx_gtk2_stc-2.5 -o build-gtk2/lib.linux-i686-2.3/wx/_stc.so -pthread
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../i486-slackware-linux/bin/ld: *cannot find -lwx_gtk2_stc-2.5*

It's looking for the ansi version of the lib...

collect2: ld returned 1 exit status

I'm looking for this library and....

root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython# locate stc-2
/usr/local/lib/libwx_gtk2ud_stc-2.5.so
/usr/local/lib/libwx_gtk2ud_stc-2.5.so.2.0.0
/usr/local/lib/libwx_gtk2ud_stc-2.5.so.2

...but the unicode version is what is installed. You need to add UNICODE=1 to the setup.py command line.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Uwe C. Schroeder wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I can't tell you the exact cause, but the error refers to
libwx_gtk2_stc-2.5, not to libwx_gtk2ud_stc-2.5.so.2.0.0

I don't know what the "ud" stands for, but I'd guess something with unicode?

Hi all,
i'm new to this list. I subscribed it because i have a problem building
wxPython.
I downloaded the sources, and followed instruction in
Phoenix/README.rst at master · wxWidgets/Phoenix · GitHub
It's all ok but when i'm at the step:

root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython# python setup.py
build_ext

I have this output

Found wx-config: /usr/local/bin/wx-config
   Using flags: --toolkit=gtk2 --unicode=no --version=2.5
Preparing CORE...
Preparing STC...
Preparing XRC...
Preparing GIZMOS...
running build_ext
building '_stc' extension
c++ -pthread -shared
build-gtk2/temp.linux-i686-2.3/contrib/stc/gtk/stc_wrap.o
-L/usr/X11R6/lib -L/usr/local/lib -L/usr/X11R6/lib -lwx_gtk2_html-2.5
-lwx_gtk2_adv-2.5 -lwx_gtk2_core-2.5 -lwx_base_xml-2.5 -lwx_base_net-2.5
-lwx_base-2.5 -lwx_gtk2_stc-2.5 -o
build-gtk2/lib.linux-i686-2.3/wx/_stc.so -pthread
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../i486-slackware-linu
x/bin/ld: *cannot find -lwx_gtk2_stc-2.5*
collect2: ld returned 1 exit status

I'm looking for this library and....

root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython# locate stc-2
/usr/local/lib/libwx_gtk2ud_stc-2.5.so
/usr/local/lib/libwx_gtk2ud_stc-2.5.so.2.0.0
/usr/local/lib/libwx_gtk2ud_stc-2.5.so.2
/usr/install/wxPythonSrc-2.5.2.8/lib/libwx_gtk2ud_stc-2.5.so.2.0.0
/usr/install/wxPythonSrc-2.5.2.8/lib/libwx_gtk2ud_stc-2.5.so.2
/usr/install/wxPythonSrc-2.5.2.8/lib/libwx_gtk2ud_stc-2.5.so

I ran ldconfig...

root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython# ldconfig -v |
grep stc
       libwx_gtk2ud_stc-2.5.so.2 -> libwx_gtk2ud_stc-2.5.so.2.0.0

I have no idea why ld cannot find that library.
Could someone help me?
I'm running slackware 10.0, and i have just installed wxBase and wxGTK
(for aMule)
Thanks all!

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
   
- -- UC

- --
Open Source Solutions 4U, LLC 2570 Fleetwood Drive
Phone: +1 650 872 2425 San Bruno, CA 94066
Cell: +1 650 302 2405 United States
Fax: +1 650 872 2417
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFBeT7YjqGXBvRToM4RApmZAKCujplVVYBgPgi426qBlk9Otd9toACgnK5y
kAQE5KBcz18aqmZaTIuIM9I=
=I6j9
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

i have lost another message, referring to edit setup.py and add SOMETHING that i don't remember.
I tried to ./configure make and make install without options but i receive the same error.
I don't have that file libwx_gtk2_Stc, but I have the libwx_gtk2ud_stc
Could anyone help me?
Thanks,
LR

···

On Friday 22 October 2004 06:01 am, Leonardo Rossi wrote:

Leonardo Rossi wrote:

i have lost another message, referring to edit setup.py and add SOMETHING that i don't remember.
I tried to ./configure make and make install without options but i receive the same error.
I don't have that file libwx_gtk2_Stc, but I have the libwx_gtk2ud_stc
Could anyone help me?

The list archive can:

http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi?11:msp:33202:mecmbjfmnkiaambhaejf

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robin Dunn wrote:

Leonardo Rossi wrote:

i have lost another message, referring to edit setup.py and add SOMETHING that i don't remember.
I tried to ./configure make and make install without options but i receive the same error.
I don't have that file libwx_gtk2_Stc, but I have the libwx_gtk2ud_stc
Could anyone help me?

The list archive can:

http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi?11:msp:33202:mecmbjfmnkiaambhaejf

Thanks!

I tried to put UINICODE=1 in setup.py, but the error is the same.
Since the problem is on the STC module, i tried to put BUILD_STC=0 in setup.py, ok the next module is the XRC. Same problem (looking for libwx_gtk2_something and i have libwx_gtk2ud_samething).
What will I have to do?
Why i have the unicoded libraries, and setup.py is looking for the UN-unicoded ones?

Maybe I must use ./configure --enable-unicode? OR something similar?
THank you in advance..

LR

Leonardo Rossi wrote:

Robin Dunn wrote:

Leonardo Rossi wrote:

i have lost another message, referring to edit setup.py and add SOMETHING that i don't remember.
I tried to ./configure make and make install without options but i receive the same error.
I don't have that file libwx_gtk2_Stc, but I have the libwx_gtk2ud_stc
Could anyone help me?

The list archive can:

http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi?11:msp:33202:mecmbjfmnkiaambhaejf

Thanks!

I tried to put UINICODE=1 in setup.py, but the error is the same.

Did you spell it like that or "UNICODE"? :wink:

Since the problem is on the STC module, i tried to put BUILD_STC=0 in setup.py, ok the next module is the XRC. Same problem (looking for libwx_gtk2_something and i have libwx_gtk2ud_samething).
What will I have to do?
Why i have the unicoded libraries, and setup.py is looking for the UN-unicoded ones?

Maybe I must use ./configure --enable-unicode? OR something similar?

If you have the "ud" libs then you did use --enable-unicode.

If you give it "WXPORT=gtk2 UNICODE=1" then setup.py will run "wx-config --toolkit=gtk2 --unicode=yes --version=2.5 --libs" to get the libs and link flags to use. Try running that yourself to see what it outputs.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robin Dunn wrote:

Leonardo Rossi wrote:

Robin Dunn wrote:

Leonardo Rossi wrote:

i have lost another message, referring to edit setup.py and add SOMETHING that i don't remember.
I tried to ./configure make and make install without options but i receive the same error.
I don't have that file libwx_gtk2_Stc, but I have the libwx_gtk2ud_stc
Could anyone help me?

The list archive can:

http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi?11:msp:33202:mecmbjfmnkiaambhaejf

Thanks!

I tried to put UINICODE=1 in setup.py, but the error is the same.

Did you spell it like that or "UNICODE"? :wink:

Since the problem is on the STC module, i tried to put BUILD_STC=0 in setup.py, ok the next module is the XRC. Same problem (looking for libwx_gtk2_something and i have libwx_gtk2ud_samething).
What will I have to do?
Why i have the unicoded libraries, and setup.py is looking for the UN-unicoded ones?

Maybe I must use ./configure --enable-unicode? OR something similar?

If you have the "ud" libs then you did use --enable-unicode.

If you give it "WXPORT=gtk2 UNICODE=1" then setup.py will run "wx-config --toolkit=gtk2 --unicode=yes --version=2.5 --libs" to get the libs and link flags to use. Try running that yourself to see what it outputs.

I tried to export those variables, but anyway:

root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython# WXPORT=gtk2
root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython# export WXPORT
root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython# UNICODE=1
root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython# export UNICODE
root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython# env | grep -i unicode
UNICODE=1
root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython# py
pydoc python python2.3
root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython# python setup.py build_ext --inplace --debug
Found wx-config: /usr/local/bin/wx-config
    Using flags: --toolkit=gtk2 --unicode=no --version=2.5
Preparing CORE...
Preparing STC...
Preparing XRC...
Preparing GIZMOS...
running build_ext
building '_stc' extension
c++ -pthread -shared -g build-gtk2/temp.linux-i686-2.3/contrib/stc/gtk/stc_wrap.o -L/usr/X11R6/lib -L/usr/local/lib -L/usr/X11R6/lib -lwx_gtk2_html-2.5 -lwx_gtk2_adv-2.5 -lwx_gtk2_core-2.5 -lwx_base_xml-2.5 -lwx_base_net-2.5 -lwx_base-2.5 -lwx_gtk2_stc-2.5 -o wx/_stc.so -pthread
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../i486-slackware-linux/bin/ld: cannot find -lwx_gtk2_stc-2.5
collect2: ld returned 1 exit status
error: command 'c++' failed with exit status 1
root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython#

I have already put into setup.py "UNICODE = 1", but i receive the same error.

Leonardo Rossi wrote:

If you have the "ud" libs then you did use --enable-unicode.

If you give it "WXPORT=gtk2 UNICODE=1" then setup.py will run "wx-config --toolkit=gtk2 --unicode=yes --version=2.5 --libs" to get the libs and link flags to use. Try running that yourself to see what it outputs.

I tried to export those variables, but anyway:

root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython# WXPORT=gtk2
root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython# export WXPORT
root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython# UNICODE=1
root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython# export UNICODE
root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython# env | grep -i unicode
UNICODE=1
root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython# py
pydoc python python2.3
root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython# python setup.py build_ext --inplace --debug

You need to put them on the setup.py command line:

     python setup.py WXPORT=gtk2 UNICODE=1 build_ext --inplace --debug

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robin Dunn wrote:

Leonardo Rossi wrote:

If you have the "ud" libs then you did use --enable-unicode.

If you give it "WXPORT=gtk2 UNICODE=1" then setup.py will run "wx-config --toolkit=gtk2 --unicode=yes --version=2.5 --libs" to get the libs and link flags to use. Try running that yourself to see what it outputs.

I tried to export those variables, but anyway:

root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython# WXPORT=gtk2
root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython# export WXPORT
root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython# UNICODE=1
root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython# export UNICODE
root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython# env | grep -i unicode
UNICODE=1
root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython# py
pydoc python python2.3
root@slackbox:/usr/install/wxPythonSrc-2.5.2.8/wxPython# python setup.py build_ext --inplace --debug

You need to put them on the setup.py command line:

    python setup.py WXPORT=gtk2 UNICODE=1 build_ext --inplace --debug

You got it! Thanks very very much!