Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 02-10-2013, 09:54   #1
Registered User

Join Date: Aug 2012
Location: Brazil
Posts: 4
tinyxml.h not found

I am using windows 7 opencpn stable version.

When I compile opencpn I get: tinyxml library not found.

When I try to compile route_pi, gecomapi plugins that need tinyxml.h I get: fatal error cannot include file tinyxml.h called from tinyxmlparser, tinyxmlerror,tinyxml.cpp.

What I am doing wrong ?
tinyxml is static or dinamic ?
opencpn build ou use it?

Thank´s for any suggestion.
ailton is offline   Reply With Quote
Old 02-10-2013, 10:05   #2
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,278
Re: tinyxml.h not found

ailton...
You are not doing anything wrong, the code structure in the current master is changing and all these plugins have to be modified to include it's own copy of tinyxml library (trivial, just hasn't been done yet - feel free to do it and send patches).
Tinyxml is statically linked in the windows build.

Pavel
nohal is offline   Reply With Quote
Old 03-10-2013, 06:29   #3
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,996
Images: 2
Re: tinyxml.h not found

It would be really nice to have some clues about how plugins are being "broken" as the beta progresses. Maybe just a list of items to look for. What would the best way to do that be, without trying to compile all plugins?

-Look at github changes?
- Collect posts like this one?
-Some other technique?

Where should this "Plugin Break List" be kept and added to?
Tracker?
Forum?
Development Manual?
rgleason is offline   Reply With Quote
Old 03-10-2013, 06:43   #4
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,278
Re: tinyxml.h not found

Rick...
I personally consider it a bit a waste of time, which can be invested into learning C++ and actually fixing the problems... You really don't have to be any programming guru to understand the errors reported by the compiler and they come for free. If not able to fix yourself, you can always report it in the plugin's respective tracker. But I would really not do it if it's a simple "Does not compile", the author will see it himself next time he touches the code. And if he doesn't, the plugin needs a new maintainer anyway.

Pavel
nohal is offline   Reply With Quote
Old 03-10-2013, 06:56   #5
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,996
Images: 2
Re: tinyxml.h not found

Ok Pavel, I guess I have to crack that nut of programming in C++ which I've been trying to do, in bits and pieces. I'm envious because so many seem to be so proficient.

Learning the proper way to use git with the Opencpn structure and program in C++ is proving to be a bit overwhelming, so I'll have to apply myself.
rgleason is offline   Reply With Quote
Old 03-10-2013, 07:25   #6
Registered User

Join Date: Aug 2012
Location: Brazil
Posts: 4
Re: tinyxml.h not found

Hi, first I would like to thank the posts.

I am a beginner so I hope patience with me.

I have maintained constant attention with github changes, and posts, and nohal posts was not clear for me.

I am working with MVS 9 2008, windows 7 and Cmake 2.8.

My problems are:
When I trying to compile OpenCPN I get:"tinyxml library not found" .
But despite this, I have achieved OpenCPN.exe without errors msgs.

When I trying to compile (cmake ..command line) others plugins that needs tinyxml.h separately, as route_pi, gecomapi_pi, weather_routing_pi, I have the same problems (of course),"cannot open include file: tinyxml.h" in all files tinyxmlerror.cpp, tinyxmlparser.cpp, tinyxml.cpp that require tinyxml.h

I think there's something more that paths (cmakelists.txt and environmental variables).

I have been installed tinyxml for windows, compiled from cmakelists.txt and dll and lib and were properly placed in the path.

I believe that plugins compiling are perfect, but not mine.

thank yours very much for attention
Ailton
ailton is offline   Reply With Quote
Old 03-10-2013, 08:16   #7
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,278
Re: tinyxml.h not found

Ailton...
tinyxml is linked inside the plugins on Windows - you have to copy it's source into each plugin's source tree and modify it's CMakeLists.txt accordingly, namely the part (this one is from route_pi):
Code:
SET(SRC_TINYXML
        ../../../include/tinyxml.h
        ../../../src/tinyxml.cpp
        ../../../src/tinyxmlparser.cpp
        ../../../src/tinyxmlerror.cpp
        )
to point to the plugin-local files instead of the files from the core tree that are not available anymore.

Pavel
nohal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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


Advertise Here


All times are GMT -7. The time now is 13:43.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.