Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-06-2012, 14:36   #1
Registered User

Join Date: Jan 2011
Location: Martigues, FRANCE
Boat: GibSea 28Q
Posts: 40
Error on TinyXML while compiling 2.5.0 (undefined reference to `TiXmlString..etc)

Hello all,

This days I try to modify 2.5.0 source.
I had no problem to compile, untill today...

Here what I have :

Code:
manu@manu:~/Téléchargements/OpenCPN-2.5.0-Source/build$ make
[  7%] Built target GARMINHOST
[ 17%] Built target NMEA0183
[ 39%] Built target S57ENC
[ 39%] i18n: Done.
[ 48%] Built target i18n
Linking CXX executable opencpn
CMakeFiles/opencpn.dir/src/gpxdocument.cpp.o: In function `GpxDocument::~GpxDocument()':
gpxdocument.cpp:(.text+0x1e2): undefined reference to `TiXmlString::nullrep_'
CMakeFiles/opencpn.dir/src/gpxdocument.cpp.o: In function `GpxDocument::~GpxDocument()':
gpxdocument.cpp:(.text+0x222): undefined reference to `TiXmlString::nullrep_'
CMakeFiles/opencpn.dir/src/gpxdocument.cpp.o: In function `GpxSimpleElement::GpxSimpleElement(wxString const&, wxString const&)':
gpxdocument.cpp:(.text+0x1967): undefined reference to `TiXmlString::assign(char const*, unsigned int)'
CMakeFiles/opencpn.dir/src/gpxdocument.cpp.o: In function `TiXmlDocument::~TiXmlDocument()':
gpxdocument.cpp:(.text._ZN13TiXmlDocumentD2Ev[_ZN13TiXmlDocumentD5Ev]+0x12): undefined reference to `TiXmlString::nullrep_'
CMakeFiles/opencpn.dir/src/gpxdocument.cpp.o: In function `TiXmlDocument::~TiXmlDocument()':
gpxdocument.cpp:(.text._ZN13TiXmlDocumentD0Ev[_ZN13TiXmlDocumentD5Ev]+0x12): undefined reference to `TiXmlString::nullrep_'
collect2: ld a retourné 1 code d'état d'exécution
make[2]: *** [opencpn] Erreur 1
make[1]: *** [CMakeFiles/opencpn.dir/all] Erreur 2
make: *** [all] Erreur 2
manu@manu:~/Téléchargements/OpenCPN-2.5.0-Source/build$
I was first thinking made bad things on the code so I use original source and I have same problem!

The only things I did yesterday is to update VirtualBox! (I use it to compile a release version under (Ubuntu 10.04).

I am under Ubuntu 11.10.

I am very disappointed...
Thanks for your help..

Emmanuel
__________________

__________________
manuprenlair is offline   Reply With Quote
Old 06-06-2012, 15:30   #2
Registered User

Join Date: May 2012
Location: Live aboard 19 years
Boat: Norsea, center cockpit/aft cabin, 27'0"
Posts: 354
Re: Error on TinyXML while compiling 2.5.0 (undefined reference to `TiXmlString..etc)

Emmanuel,

See: OpenCPN 3.0 won't install

armido
__________________

__________________
armido is offline   Reply With Quote
Old 06-06-2012, 23:39   #3
Registered User

Join Date: Jan 2011
Location: Martigues, FRANCE
Boat: GibSea 28Q
Posts: 40
Re: Error on TinyXML while compiling 2.5.0 (undefined reference to `TiXmlString..etc)

Armido,

My problem is not a problem with bin but a problem when I compile source.
Untill now I hadent any problem to compile on my system.
Just yesterday I have errors I explained, even with original source!

And the only things I made before is to update VirtualBox to the last realease!

I already try to remove all library, like that:

Code:
sudo apt-get remove libgtk2.0-dev gettext git-core cmake gpsd gpsd-clients  libgps-dev build-essential wx-common libwxgtk2.8-dev  
ibglu1-mesa-dev libgtk2.0-dev wx2.8-headers libbz2-dev libtinyxml-dev libsdl1.2debian
and install it again.
I made same things on gcc.

No change after that!

I will try to compile source for 3.0
But I need to understand what was happened !

Thanks for your help
__________________
manuprenlair is offline   Reply With Quote
Old 06-06-2012, 23:41   #4
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: Error on TinyXML while compiling 2.5.0 (undefined reference to `TiXmlString..etc)

Emmanuel...
Clean up your build directory. And update your source to 3.0

Pavel
__________________
nohal is offline   Reply With Quote
Old 06-06-2012, 23:59   #5
Registered User

Join Date: Jan 2011
Location: Martigues, FRANCE
Boat: GibSea 28Q
Posts: 40
Re: Error on TinyXML while compiling 2.5.0 (undefined reference to `TiXmlString..etc)

Hello Pavel,

I am just compiling version 3.0.0

But I would like to understand for what happened...

Now I need to port my modification to 3.0.0. ... I know whatever it will be done ... but I really really dislike when the machine win !!

Emmanuel
__________________
manuprenlair is offline   Reply With Quote
Old 07-06-2012, 06:16   #6
Registered User

Join Date: May 2012
Location: Live aboard 19 years
Boat: Norsea, center cockpit/aft cabin, 27'0"
Posts: 354
Re: Error on TinyXML while compiling 2.5.0 (undefined reference to `TiXmlString..etc)

Emmanuel,

I was having a similar problem. Resolution was downloading source code for wxWidgets git clone git://gitorious.org/wxwidgets/wxwidgets.git" then press <enter>

Wait until the download stops then type at the prompt: "cd wxwidgets" <enter>

Copy and paste this command at the prompt;
"./configure --enable-plugins --enable-menus --enable-tooltips --enable-gif --enable-xpm --with-gtk=2 --with-libpng --with-libjpeg --with-libtiff --with-opengl --with-sdl --with-regex --with-zlib" <enter> (Note that the period before "/" must be included!)

When the configuration process stops type at the terminal prompt: "make debian-dist" <enter>

If the make debian dist process stops without errors, type at the terminal prompt: "cd _dist_dir" <enter>
Then "cd wxGTK-2.9.2" <enter>

"./configure" <enter>
"make" <enter>
"make install" <enter>

At the terminal prompt copy and paste: "update-alternatives --install /usr/local/bin/wx.config wx.config /usr/local/lib/wx/config/gtk2-ansi-release-2.8 2" <enter>

At the terminal prompt copy and paste: "update-alternatives --install /usr/local/lib/wx.pth wx.pth /usr/local/lib/ 2" <enter>

Same as above: "update-alternatives --list wx.config" <enter>
This step should confirm wx.config path is as above
Samo: "update-alternatives --list wx.pth" <enter>
Should confirm wx.pth as above.

armido
__________________

__________________
armido is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 10:51.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.