fersanmed / tonatiuh

Automatically exported from code.google.com/p/tonatiuh
0 stars 0 forks source link

Building under Eclipse for Mac - Problems with include .h files #23

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello Amaia,

thank you very much for your help with issue 15! Following the instructions
you provided in the wiki page, I was able to begin "making all".

Now that issue 15 is Done, I am opening a new one...

The problem is that I cannot find/include/link the .h files corresponding
to Marble, and therefore get errors like "'GeoDataCoordinates' has not been
declared" at MapDialog.cpp... and the thing is that my brother is now
facing a similar problem under Windows.

I tried to solve the problem by adding the path to Marble *.h files
--located under my user directory-- to TonatiuhProject -> Properties ->
C/C++ General -> Paths and Symbols -> Includes, as this is the way I solved
the a similar issue with Qt-4.5.1. But it did not work in this case.

A second try was performed by moving the Marble .h files to
/Applications/eclipse/workspace/marble/src/lib and including this directory
in the Paths and Symbols list, but it did not work.

I also tried to manually move the Marble .h files to an already known
directory, and it also did not work.

I feel somehow embarrassed because I feel that am asking you too many
questions along the process. Please, do not get discouraged for this, I
think you are building a great piece of software... in this case, it is
clearly user's fault. But anyway, I am sure than even this feedback will be
eventually useful for you.

Thank you in advance for your support,
Emilio

Original issue reported on code.google.com by emmur...@gmail.com on 15 Jul 2009 at 6:02

GoogleCodeExporter commented 8 years ago
Hello,

I have checked the mac environment installation and I think that one of the 
following solutions can solve your problem.

First, check that your TDE_ROOT variable is correctly defined. To define this 
environment variable read 
http://code.google.com/p/tonatiuh/wiki/BuildingTonatiuhOnMac.

If this variable is ok, the problems could be that the marble headers are not 
in the 
path that we need. To check open a shell and type:

cd /usr/local/include/marble
ls

If the files are not there go to the marble download and build directory and 
type 
mkdir /usr/local/include/marble  
cp src/lib/*.h /usr/local/include/marble  
cp src/lib/AbstractLayer/*.h /usr/local/include/marble  
cp src/lib/geodata/*.h /usr/local/include/marble  
cp src/lib/geodata/data/*.h /usr/local/include/marble  
cp src/lib/geodata/handlers/dgml/*.h /usr/local/include/marble  
cp src/lib/geodata/handlers/gpx/*.h /usr/local/include/marble  
cp src/lib/geodata/handlers/kml/*.h /usr/local/include/marble  
cp src/lib/geodata/parser/*.h /usr/local/include/marble  
cp src/lib/geodata/scene/*.h /usr/local/include/marble  
cp src/lib/gps/*.h /usr/local/include/marble  
cp src/lib/Projections/*.h /usr/local/include/marble  
cp src/lib/libmarblewidget.* /usr/local/lib

I hope this helped you,
Amaia

Original comment by amaiamut...@gmail.com on 24 Jul 2009 at 10:43

GoogleCodeExporter commented 8 years ago
Hello,

copying all of these files, and also those in src/lib/geodata/data/*.h, and 
adding

/usr/local/include/marble
/usr/local/lib

to the "Paths and Symbols" list helped me to go one step closer. Thank you.

However, now I get errors like these when building MapDialog.h:

src/MapDialog.h:79: error: using-declaration for non-member at class scope
src/MapDialog.h:79: error: expected ';' before '*' token
src/MapDialog.h:80: error: using-declaration for non-member at class scope
src/MapDialog.h:80: error: expected ';' before '*' token
src/MapDialog.h:81: error: using-declaration for non-member at class scope
src/MapDialog.h:81: error: expected ';' before '*' token
src/MapDialog.cpp: In constructor 'MapDialog::MapDialog(QWidget*)':
src/MapDialog.cpp:64: error: class 'MapDialog' does not have any field named
'm_marbleWidget'
src/MapDialog.cpp:64: error: class 'MapDialog' does not have any field named 
'm_control'
... (a long list of errors follow)

and compilation stops.

The relevant lines at MapDialog.h are:

78:   private:
79:       Marble::MarbleWidget*     m_marbleWidget;
80:       Marble::MarbleControlBox* m_control;
81:       Marble::MapThemeManager*  m_mapThemeManager;
82:       QSplitter*            m_splitter;

########

Have you considered making available a precompiled binary version, just for 
clumsy
users like me?

Thank you very much for your help.

Best regards,
Emilio

Original comment by emmur...@gmail.com on 24 Jul 2009 at 6:11

GoogleCodeExporter commented 8 years ago
Hi Emilio,

I have created a setup for Tonatiuh for Mac and Windows binaries. You can 
download 
them from downloads site.

Thank you very much for your inputs.  If you have more problems with the 
Tonatiuh 
installation, write them at “Tonatiuh discussion forum”. From now, we like 
to 
reserve the Issue site for the Tonatiuh bugs. We hope to solve them quickly.

For the wiki errors add a comment to the page.

Thank you,

Amaia

Original comment by amaiamut...@gmail.com on 31 Jul 2009 at 10:25