Cant make work

54 views
Skip to first unread message

Joao Paulo Dias de Jesus

unread,
Oct 13, 2013, 4:43:39 PM10/13/13
to 3d...@googlegroups.com
Hello, thanks by let us use your library, and I have some problems, so I go send my code, and errors, if you could help, is very appreciate.

errors:

2013-10-13 17:08:46.608 Contagem[8931:907] Unknown class SM3DARMapView in Interface Builder file.

Undefined symbols for architecture armv7:

  "_CATransform3DMakeTranslation", referenced from:

      -[SM3DARPointOfInterest objectTransform] in lib3DAR_v23_2012_12_06.a(SM3DARPointOfInterest.o)

  "_OBJC_CLASS_$_CAEAGLLayer", referenced from:

      objc-class-ref in lib3DAR_v23_2012_12_06.a(SM3DAREAGLView.o)

  "_OBJC_CLASS_$_CAGradientLayer", referenced from:

      objc-class-ref in lib3DAR_v23_2012_12_06.a(SM3DARDetailCalloutView.o)

      objc-class-ref in lib3DAR_v23_2012_12_06.a(SM3DARMorphingCalloutView.o)

ld: symbol(s) not found for architecture armv7

clang: error: linker command failed with exit code 1 (use -v to see invocation)



My code:



.h file


#import <UIKit/UIKit.h>

#import <MapKit/MapKit.h>

#import "SM3DAR.h"


@class DisplayMap;


@interface MapaSaoGoncaloViewController : UIViewController <SM3DARDelegate>

{

IBOutlet SM3DARMapView *mapView;

}

@property (nonatomic, retain) IBOutlet SM3DARMapView *mapView;


@property (strong, nonatomic) UIButton *menuBtn;


@end






.m file



#import "SM3DAR.h"

@interface xxxx ()

@end

@implementation xxxxxx

@synthesize mapView;

-(void)viewDidAppear:(BOOL)animated{

    [mapView setMapType:MKMapTypeStandard];

[mapView setZoomEnabled:YES];

    mapView.showsUserLocation = YES;

    mapView.userLocation.title = @"Sua localização atual";

    mapView.userLocation.subtitle=@"xxxx";

[mapView setScrollEnabled:YES];

MKCoordinateRegion region = { {0.0, 0.0 }, { 0.0, 0.0 } };

region.center.latitude = xxxx;

region.center.longitude = xxxxxx;

region.span.longitudeDelta = 0.2f;

region.span.latitudeDelta = 0.2f;

    

[mapView setRegion:region animated:YES];

[mapView setDelegate:self];

DisplayMap *ann = [[DisplayMap alloc] init];

ann.title = @"IGREJA MATRIZ DE SÃO GONÇALO";

ann.subtitle = @"Bairro Centro";

ann.coordinate = region.center;

[mapView addAnnotation:ann];

}

- (void)viewDidLoad

{

    [super viewDidLoad];

// Do any additional setup after loading the view.

    self.view.layer.shadowOpacity = 0.75f;

    self.view.layer.shadowRadius = 10.0f;

    self.view.layer.shadowColor = [UIColor blackColor].CGColor;

    if (![self.slidingViewController.underLeftViewController isKindOfClass:[MenuViewController class]]) {

        self.slidingViewController.underLeftViewController  = [self.storyboard instantiateViewControllerWithIdentifier:@"Menu"];

    }

    [self.view addGestureRecognizer:self.slidingViewController.panGesture];

}

-(MKAnnotationView *)mapView:(MKMapView *)mV viewForAnnotation:

(id <MKAnnotation>)annotation {

MKPinAnnotationView *pinView = nil;

if(annotation != mapView.userLocation)

{

static NSString *defaultPinID = @"com.invasivecode.pin";

pinView = (MKPinAnnotationView *)[mapView dequeueReusableAnnotationViewWithIdentifier:defaultPinID];

pinView.pinColor = MKPinAnnotationColorRed;

pinView.canShowCallout = YES;

pinView.animatesDrop = YES;

    }

return pinView;

}

- (void)didReceiveMemoryWarning

{

    [super didReceiveMemoryWarning];

    // Dispose of any resources that can be recreated.

}

@end





P. Mark Anderson

unread,
Oct 18, 2013, 9:06:22 PM10/18/13
to 3DAR
Hello,

This might be one of the issues listed on the troubleshooting page 

Try adding this somewhere early in the app launch routine:

    [SM3DARMapView class];

Mark



--
You received this message because you are subscribed to the Google Groups "3DAR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 3dar+uns...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages