glob3mobile / g3m

The multiplatform advanced visualization framework
http://www.glob3mobile.com/
Other
116 stars 56 forks source link

"G3MWidget_iOS.h" file not found. #112

Closed WuhanMonkey closed 9 years ago

WuhanMonkey commented 9 years ago

Hello All,

I am new to g3m so I am trying to follow the Hello World project for iOS. After following all the steps, the xcode told me that "G3MWidget_iOS.h" file not found in my ViewController.mm. But I can see it in the SDK which should be linked as library.

This might be a simple question but I haven't figure it out. Can anyone give me some suggestions?

Also another issue I have is that, when I compile the sample Hello World project I cloned from git, the build is successful but the simulator and the real device only should a spinning white star in the app. Shouldn't it be an animated Earth?

Thank you very mcuh

DiegoGomezDeck commented 9 years ago

Hi @WuhanMonkey

I think the wiki was a quiet old (I already updated it). May be the problem is the syntax used for #import, it has to be:

#import <G3MiOSSDK/G3MWidget_iOS.h>
#import <G3MiOSSDK/G3MBuilder_iOS.hpp>

Basically the pattern is:

#import <G3MiOSSDK/AnyG3MHeader.h>

Related to the busy-wheel, I guess the app is having problem downloading the bitmaps for the tiles. The intended behavior is to wait for this data (while rendering the busy wheel) before rendering the planet. Please check the application log looking for download errors.

WuhanMonkey commented 9 years ago

Thank you very much @DiegoGomezDeck, it is very helpful.