LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How to install wxWidget on slackware 13 (https://www.linuxquestions.org/questions/slackware-14/how-to-install-wxwidget-on-slackware-13-a-776805/)

cola 12-18-2009 11:21 PM

How to install wxWidget on slackware 13
 
./xchm.SlackBuild
Code:

checking where the gettext function comes from... libc
checking for wx-config... no
configure: error:
          wxWidgets must be installed on your system
          but the wx-config script couldn't be found.

          Please check that wx-config is in path, the directory
          where wxWidgets libraries are installed (returned by
          'wx-config --libs' command) is in LD_LIBRARY_PATH or
          equivalent variable and wxWidgets version is 2.3.4 or above.

slackpkg install wxWidget ,
Code:

No packages match the pattern for install. Try:

        /usr/sbin/slackpkg reinstall|upgrade


Hendronicus 12-18-2009 11:47 PM

You could try to build it from source. Search Google for wxWidgets, get the tarball from there and then build it on your system. It's not hard to build things. People just think that it is.

rworkman 12-19-2009 12:23 AM

http://slackbuilds.org/repository/13...ries/wxPython/

Hendronicus 12-19-2009 12:36 AM

I already know that conflicts with wxGTK, but does it actually contain the widgets or just the python bindings? I usually go with the GTK+ version when I build wxWidgets is why I'm asking. What's the difference?

cola 12-19-2009 12:56 AM

Downloaded wxWidget from official site and did:
Code:

tar vxjf file.bz2
./configure
su
password:
make
make install
ldconfig
exit

It's done.

knudfl 12-19-2009 01:03 AM

@ rworkman .. No wxPython is not wxwidgets
.. wxPython provides a Python binding to the wxGTK library.

The package providing /usr/bin/wx-config is wxgtk :
http://slackbuilds.org/repository/13.0/libraries/wxGTK/
.. which is the wxWidget library for Linux.

A ready to install package is available from
http://connie.slackware.com/~alien/slackbuilds/
> > http://connie.slackware.com/~alien/s...xGTK/pkg/13.0/
> wxGTK-2.8.10-i486-1alien.tgz .
.....

cola 12-19-2009 01:08 AM

Quote:

Originally Posted by knudfl (Post 3797573)
@ rworkman .. No wxPython is not wxwidgets
.. wxPython provides a Python binding to the wxGTK library.

The package providing /usr/bin/wx-config is wxgtk :
http://slackbuilds.org/repository/13.0/libraries/wxGTK/
.. which is the wxWidget library for Linux.

A ready to install package is available from
http://connie.slackware.com/~alien/slackbuilds/
> > http://connie.slackware.com/~alien/s...xGTK/pkg/13.0/
> wxGTK-2.8.10-i486-1alien.tgz .
.....

Though i installed wxWidget from source,would wxgtk serve for wxWidget-need?

jedi_sith_fears 12-19-2009 01:36 AM

Like WxPython, WxGtk serves Gtk bindings for WxWidgets,
WxWidgets should be installed before you can compile and use WxPython or WxGtk.

you can get all of them from www.slackbuilds.org if you want to compile them from source as well as make packages.

see here and follow the instructions

http://slackbuilds.org/result/?search=wx&sv=13.0


rworkman 12-19-2009 01:44 AM

eek, I can't ever keep the wx* family straight with regards to which one contains what and which one conflicts with which other one and why.

cola 12-19-2009 02:01 AM

Now if i want to remove wxWidget from system,how would i do that?
slackpkg remove wxWidget doesn't work

knudfl 12-19-2009 02:36 AM

No, you don't have to remove your wxGTK install,
which is what you got from installing wxWidgets.

I can repeat : wxGTK is the wxWidgets library for Linux.

A genuine slack package may look nicer, but anyway,
you have the required files, no difference in functions.
Conclusion : No need to uninstall, you can always
change it later. ( There may be a # 'make uninstall'
in the wx source.)
.....

Alien Bob 12-19-2009 07:06 AM

Quote:

Originally Posted by cola (Post 3797612)
Now if i want to remove wxWidget from system,how would i do that?
slackpkg remove wxWidget doesn't work

Please try to understand that "slackpkg" commands only work for official Slackware packages. If you want to remove a random package from your system use "removepkg" instead, like in:
Code:

removepkg wxWidgets
A 32-bit wxGTK package for Slackware 13.0 is here by the way: http://slackware.com/~alien/slackbuilds/wxGTK/pkg/13.0/

Eric

titopoquito 12-19-2009 10:14 AM

Quote:

Originally Posted by knudfl (Post 3797573)
@ rworkman .. No wxPython is not wxwidgets
.. wxPython provides a Python binding to the wxGTK library.

The package providing /usr/bin/wx-config is wxgtk :
http://slackbuilds.org/repository/13.0/libraries/wxGTK/
.. which is the wxWidget library for Linux.

I'm not sure you are right. Slackware64 13.0 with wxPython but not wxGTK
Code:

tito@pandora:~$ grep wx-config /var/log/scripts/*
/var/log/scripts/wxPython-2.8.10.1-x86_64-1:( cd usr/bin ; rm -rf wx-config )
/var/log/scripts/wxPython-2.8.10.1-x86_64-1:( cd usr/bin ; ln -sf /usr/lib64/wx/config/gtk2-unicode-release-2.8 wx-config )
tito@pandora:~$ ls /var/log/packages/wx*
/var/log/packages/wxPython-2.8.10.1-x86_64-1
/usr/bin/wx-config

Audacity for example, which requires wxWidgets, i. e. wxGTK, runs fine here with wxPython only. And a quote from the wxPython webpage:
Quote:

Here are the wxPython sources and all you'll need (besides the prerequisites outlined above) to build wxPython on Win32, Unix or OS X systems, including the sources for wxWidgets (Win32, GTK or OS X.)
Looks to me like wxPython is probably enough.

Old_Fogie 12-19-2009 12:27 PM

fwiw, I've never successfuly got wxwidgets to even build, wxGtk has usually been the better route for me.

ambitious 02-18-2010 08:49 AM

Hi every body,
I'm a new to code block and i wanna use it to develope a GUI application using the wxwidgets library,
I'm using Ubuntu 9.4 running on VirtualBox (as Virtual machine )

I installed the Wxwidgets successfully.

# tar -xzvf wxwidgets-2.8.10.tar.gz
# cd wxwidgets-2.8.10
# mkdir build-x11
# cd build-x11
# ../configure --with-x11 --without-gtk --enable-no_rtti --enable-no_exceptions --disable-threads --disable-sockets --disable-joystick --disable-mdi --disable-printarch --disable-postscript --disable-resources --disable-prologio --with-zlib=builtin --with-libpng=builtin --with-libjpeg=builtin --with-libtiff=builtin
# make
#make install
#ldconfig
I installed the Code::Block successfully too.


#apt-get install codeblocks
I create a new Wxwidget projects.
file -> new project -> wxwidgets project -> ...
I compiled this project and every thing gonna good.
Run the project in Linux and the project run successfully
After that i install the Arm-Linux cross compilation tool-chain to the linux as follow:

# cd /opt/FriendlyArm/mini2440/source/
# tar -xzvf arm-linux-gcc-4.3.2.tgz
after unpacking the ziped file it gives me usr directory
I added the path to path enviroment

export PATH=/opt/FriendlyArm/mini2440/source/usr/local/arm/4.3.2:$PATH

After that i gone to the my code::block
Setting -> compiler and debugger -> choose the GNU ARM GCC compiler -> and under the toolchain executables change this configuration
c compiler --> arm-linux-gcc
c++ compiler --> arm-linux-g++
Linker for dynamic library --> arm-linux-g++
Linker for static library --> arm-linux-ar
Debugger --> arm-linux-qdb
compiler installation directory --> /opt/FriendlyArm/mini2440/source/usr/local/arm/4.3.2

project -> properties -> build option
Choose release tap -> duplicated ->and choose ArmRelease as new name
Choose the compiler as GNU ARM GCC compiler
OK

and when i compiled ARMRelease it gives me this error

cannot find -lwx_gtk2u_richtext-2.8

I googled in the internet and find that i should add this lines to the configuration
'wx-config --cflags' to the compiler option and
'wx-config --libs' to the linker option

I successfully add this lines to the compiler and linker as follow:

project -> properties -> build-option ->choose ARMRelease -> compiler -> other option
project -> properties -> build-option ->choose ARMRelease -> linker -> other option

After that i got more errors :
this some of all because it is more that 2000 char and it got refused by the forumas follow:


obj/ARMRelease/GUIFrame.o||In function `__static_initialization_and_destruction_0(int, int)':|
GUIFrame.cpp:(.text+0x48)||undefined reference to `std::ios_base::Init::Init()'|
GUIFrame.cpp:(.text+0x64)||undefined reference to `wxEventHashTable::wxEventHashTable(wxEventTable const&)'|
GUIFrame.cpp:(.text+0x174)||undefined reference to `std::ios_base::Init::~Init()'|
GUIFrame.cpp:(.text+0x180)||undefined reference to `wxEventHashTable::~wxEventHashTable()'|
GUIFrame.cpp:(.text+0x18c)||undefined reference to `wxEVT_CLOSE_WINDOW'|
GUIFrame.cpp:(.text+0x190)||undefined reference to `wxEVT_COMMAND_MENU_SELECTED'|
GUIFrame.cpp:(.text+0x194)||undefined reference to `wxEVT_NULL'|
obj/ARMRelease/GUIFrame.o||In function `GUIFrame::GUIFrame(wxWindow*, int, wxString, wxPoint, wxSize, int)':|
GUIFrame.cpp:(.text+0x1dc)||undefined reference to `wxStringBase::InitWith(wchar_t const*, unsigned int, unsigned int)'|
GUIFrame.cpp:(.text+0x1e4)||undefined reference to `wxFrameBase::wxFrameBase()'|
GUIFrame.cpp:(.text+0x1f4)||undefined reference to `wxFrame::Init()'|
GUIFrame.cpp:(.text+0x224)||undefined reference to `wxFrame::Create(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, long, wxString const&)'|

||=== Build finished: 534 errors, 0 warnings ===|


Could any body help me please
I don't know what can i do.


All times are GMT -5. The time now is 02:29 PM.