LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-28-2009, 12:08 PM   #1
windows22
LQ Newbie
 
Registered: Mar 2009
Posts: 26

Rep: Reputation: 15
Compiling wxWidgets on Ubuntu 9.04


Hi I did fine with Ubuntu 9.04 for a month and then things went wrong and I could no longer compile programs though others on the same distro could so I reinstalled Ubuntu 9.04. First step is to compile wxWidgets. Before this was automatic sudo make install libgtk2.0-dev, download wxGTK from wxWidgets then compile and make wxWidgets. Now I can't even do that, I get make errors every time and as soon as I resolve one. another shows. Widgets version 2-8-10 is the same as before. Does anyone know a current address for a tutorial getting widgets to compile with Ubuntu, I don't know whether to ask you, Ubuntu or Widgets (or understand what went wrong with Ubuntu in the first place.

Thanks
 
Old 07-28-2009, 12:32 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
Might be easier to help if you posted the error message. It's likely something simple like a missing dev package on your system.
 
Old 07-29-2009, 03:55 AM   #3
windows22
LQ Newbie
 
Registered: Mar 2009
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by weibullguy View Post
Might be easier to help if you posted the error message. It's likely something simple like a missing dev package on your system.
Thanks "libwx_baseu_xml-2.8" "undefined reference" appears many times. But only the wxGTK-dev package was needed first time I built on Widgets on Linux.
 
Old 07-29-2009, 05:40 AM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
Well, that's not usually much information to go on. Generally, when you post the output of failed makes, its a good idea to post the last 20-30 lines of output. Sometimes even more depending on where the actual error occurs. In this case, you could have gone to this page and found that libwx_baseu_xml-2.8 is provided by the libwxbase package. Do you have that package and its associated -dev package installed?
 
Old 07-29-2009, 06:07 AM   #5
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Well in Ubuntu you usually need to install build-essential package to compile packages from source. Did you install that?
Just a thought though.
 
Old 07-31-2009, 12:46 AM   #6
windows22
LQ Newbie
 
Registered: Mar 2009
Posts: 26

Original Poster
Rep: Reputation: 15
Hi

some make output below. Yes had libwxbase and dev package already.... running this from the directory I unpacked wxGTK to Desktop/wxGTK-2.8.10 (what I did before)

Thanks
Code:
make[1]: Entering directory `/home/gale/Desktop/wxGTK-2.8.10/utils/wxrc'
unsigned int)'
wxrc.cpp:(.text._ZN15XRCWndClassDataC1ERK8wxStringS2_PK9wxXmlNode[XRCWndClassData::XRCWndClassData(wxString const&, wxString const&, wxXmlNode const*)]+0x53e): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
wxrc.cpp:(.text._ZN15XRCWndClassDataC1ERK8wxStringS2_PK9wxXmlNode[XRCWndClassData::XRCWndClassData(wxString const&, wxString const&, wxXmlNode const*)]+0x5a5): undefined reference to `wxString::Cmp(char const*) const'
wxrc.cpp:(.text._ZN15XRCWndClassDataC1ERK8wxStringS2_PK9wxXmlNode[XRCWndClassData::XRCWndClassData(wxString const&, wxString const&, wxXmlNode const*)]+0x5dd): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
wxrc.cpp:(.text._ZN15XRCWndClassDataC1ERK8wxStringS2_PK9wxXmlNode[XRCWndClassData::XRCWndClassData(wxString const&, wxString const&, wxXmlNode const*)]+0x5f1): undefined reference to `wxStringHash::wxCharStringHash(char const*)'
wxrc.cpp:(.text._ZN15XRCWndClassDataC1ERK8wxStringS2_PK9wxXmlNode[XRCWndClassData::XRCWndClassData(wxString const&, wxString const&, wxXmlNode const*)]+0x771): undefined reference to `wxString::Cmp(char const*) const'
wxrc.cpp:(.text._ZN15XRCWndClassDataC1ERK8wxStringS2_PK9wxXmlNode[XRCWndClassData::XRCWndClassData(wxString const&, wxString const&, wxXmlNode const*)]+0x7aa): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
wxrc.cpp:(.text._ZN15XRCWndClassDataC1ERK8wxStringS2_PK9wxXmlNode[XRCWndClassData::XRCWndClassData(wxString const&, wxString const&, wxXmlNode const*)]+0x7be): undefined reference to `wxStringHash::wxCharStringHash(char const*)'
wxrc.cpp:(.text._ZN15XRCWndClassDataC1ERK8wxStringS2_PK9wxXmlNode[XRCWndClassData::XRCWndClassData(wxString const&, wxString const&, wxXmlNode const*)]+0x8ae): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
wxrc.cpp:(.text._ZN15XRCWndClassDataC1ERK8wxStringS2_PK9wxXmlNode[XRCWndClassData::XRCWndClassData(wxString const&, wxString const&, wxXmlNode const*)]+0x8c2): undefined reference to `wxStringHash::wxCharStringHash(char const*)'
wxrc_wxrc.o:(.rodata._ZTV9XmlResApp[vtable for XmlResApp]+0x44): undefined reference to `wxAppConsole::Initialize(int&, char**)'
/home/gale/Desktop/wxGTK-2.8.10/lib/libwx_base_xml-2.8.so: undefined reference to `wxString::CmpNoCase(char const*) const'
/home/gale/Desktop/wxGTK-2.8.10/lib/libwx_base_xml-2.8.so: undefined reference to `wxString::wxString(wchar_t const*, wxMBConv const&, unsigned int)'
/home/gale/Desktop/wxGTK-2.8.10/lib/libwx_base-2.8.so: undefined reference to `wx_regfree'
/home/gale/Desktop/wxGTK-2.8.10/lib/libwx_base-2.8.so: undefined reference to `wx_re_exec'
/home/gale/Desktop/wxGTK-2.8.10/lib/libwx_base_xml-2.8.so: undefined reference to `wxString::Find(char const*) const'
/home/gale/Desktop/wxGTK-2.8.10/lib/libwx_base_xml-2.8.so: undefined reference to `wxCSConv::wxCSConv(char const*)'
/home/gale/Desktop/wxGTK-2.8.10/lib/libwx_base-2.8.so: undefined reference to `wx_re_comp'
/home/gale/Desktop/wxGTK-2.8.10/lib/libwx_base-2.8.so: undefined reference to `wx_regerror'
/home/gale/Desktop/wxGTK-2.8.10/lib/libwx_base_xml-2.8.so: undefined reference to `wxString::BeforeFirst(char) const'
/home/gale/Desktop/wxGTK-2.8.10/lib/libwx_base_xml-2.8.so: undefined reference to `wxString::wc_str(wxMBConv const&) const'
collect2: ld returned 1 exit status
make[1]: *** [wxrc] Error 1
make[1]: Leaving directory `/home/gale/Desktop/wxGTK-2.8.10/utils/wxrc'
make: *** [wxrc] Error 2
gale@gale-desktop:~/Desktop/wxGTK-2.8.10$
 
Old 07-31-2009, 02:54 AM   #7
windows22
LQ Newbie
 
Registered: Mar 2009
Posts: 26

Original Poster
Rep: Reputation: 15
It appears now the problem may have been that I had done sudo apt-get build-dep for the app I was wanting to build which depends on wxWidgets. When I compiled the app (after installing various libwx dev and dbg packages) it compiled without my having compiled wxWidgets. Does this make any sense, and what are dbg packages? I noticed the app was built with widgets 2.8.9 not the 2.8.10 I was trying to build. What would I do now to build the app with 2.8.10? I have almost no clue about paths on Linux as I know windows (as per username).


Thanks
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling WXWidgets so Audacity .configure will work - how? rylan76 Linux - Software 15 05-28-2009 12:00 PM
problem in configuring wxwidgets for cross compiling ra2000 Programming 5 12-13-2006 10:35 AM
Compiling Programs with wxWidgets Mezzanine Programming 18 01-20-2006 04:56 PM
wxWidgets kornerr Programming 2 10-13-2005 11:05 AM
How to install wxWidgets on linux (e.g. Ubuntu) openfun Ubuntu 1 07-12-2005 11:50 AM


All times are GMT -5. The time now is 05:10 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration