LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 12-18-2009, 11:21 PM   #1
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Slackware 13.0
Posts: 1,017

Rep: Reputation: 63
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
 
Old 12-18-2009, 11:47 PM   #2
Hendronicus
Member
 
Registered: Feb 2006
Location: Oldsmar, Fl. USA
Distribution: Slackware, Ubuntu
Posts: 170

Rep: Reputation: 36
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.
 
Old 12-19-2009, 12:23 AM   #3
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,857

Rep: Reputation: Disabled
http://slackbuilds.org/repository/13...ries/wxPython/
 
Old 12-19-2009, 12:36 AM   #4
Hendronicus
Member
 
Registered: Feb 2006
Location: Oldsmar, Fl. USA
Distribution: Slackware, Ubuntu
Posts: 170

Rep: Reputation: 36
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?
 
Old 12-19-2009, 12:56 AM   #5
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Slackware 13.0
Posts: 1,017

Original Poster
Rep: Reputation: 63
Downloaded wxWidget from official site and did:
Code:
tar vxjf file.bz2
./configure
su
password:
make
make install
ldconfig
exit
It's done.
 
Old 12-19-2009, 01:03 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,313

Rep: Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353
@ 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 .
.....
 
Old 12-19-2009, 01:08 AM   #7
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Slackware 13.0
Posts: 1,017

Original Poster
Rep: Reputation: 63
Quote:
Originally Posted by knudfl View Post
@ 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?
 
Old 12-19-2009, 01:36 AM   #8
jedi_sith_fears
Member
 
Registered: Jan 2008
Location: Kolkata
Distribution: Slackware(64)-current, Fedora 14, FreeBSD
Posts: 136
Blog Entries: 1

Rep: Reputation: 29
Smile

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

 
Old 12-19-2009, 01:44 AM   #9
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,857

Rep: Reputation: Disabled
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.
 
Old 12-19-2009, 02:01 AM   #10
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Slackware 13.0
Posts: 1,017

Original Poster
Rep: Reputation: 63
Now if i want to remove wxWidget from system,how would i do that?
slackpkg remove wxWidget doesn't work
 
Old 12-19-2009, 02:36 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,313

Rep: Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353
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.)
.....
 
Old 12-19-2009, 07:06 AM   #12
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 4,035

Rep: Reputation: Disabled
Quote:
Originally Posted by cola View Post
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
 
Old 12-19-2009, 10:14 AM   #13
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware 13.1
Posts: 1,445

Rep: Reputation: 74
Quote:
Originally Posted by knudfl View Post
@ 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 12-19-2009, 12:27 PM   #14
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,486

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

Last edited by Old_Fogie; 12-19-2009 at 12:28 PM. Reason: changed wxpythong to wxwidget
 
Old 02-18-2010, 08:49 AM   #15
ambitious
LQ Newbie
 
Registered: Feb 2010
Posts: 7

Rep: Reputation: 0
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.
 
  


Reply

Tags
wxgtk


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
wxWidget anjuta not compiled ubuntu7.10 queency Programming 4 11-26-2007 10:22 AM
wxwidget prob lendlice Slackware 5 08-14-2007 05:59 AM
can't install wxWidget yonderstar Linux - Software 3 04-13-2004 04:25 PM


All times are GMT -5. The time now is 06:01 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration