yichunk / JLaTeXMath-iOS

JLaTeXMath for iOS
8 stars 3 forks source link

libcucore.dylib #3

Open kwangkim opened 9 years ago

kwangkim commented 9 years ago

Is this libicucore.dylib?

And Xcode 7 only has libicucore.tbd.

yichunk commented 9 years ago

No, it is not .dylib. This project is a just a pack of class. Take it as a library.

kwangkim commented 9 years ago

Thanks for your response. I have a couple of errors.

Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_FactoryProvideriOS", referenced from:
      objc-class-ref in ViewController.o
  "_OBJC_CLASS_$_ImageI", referenced from:
      objc-class-ref in ViewController.o
  "_OBJC_CLASS_$_OrgScilabForgeJlatexmathPlatformGraphicsInsets", referenced from:
      objc-class-ref in ViewController.o
  "_OBJC_CLASS_$_OrgScilabForgeJlatexmathTeXFormula", referenced from:
      objc-class-ref in ViewController.o
  "_OrgScilabForgeJlatexmathColorUtil_BLACK_", referenced from:
      -[ViewController viewDidLoad] in ViewController.o
  "_OrgScilabForgeJlatexmathColorUtil_WHITE_", referenced from:
      -[ViewController viewDidLoad] in ViewController.o
  "_OrgScilabForgeJlatexmathPlatformFactoryProvider_INSTANCE_", referenced from:
      -[ViewController viewDidLoad] in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I just selected a single page project when I made a new project.

I do not understand

Drag this project into your main app project.

Should I drag JlatexMath-iOS folder into my project in xcode? Or just drag Jlatexmath-iOS project file into my project in xcode?

yichunk commented 9 years ago

Drag JlatexMath-iOS folder into your project. Besides, ViewController is the class I use to demonstrate the usage.

kwangkim commented 9 years ago

I just copied your ViewController.m and ViewController.h.

I realized that I did not do

set the platform dependent factory instance OrgScilabForgeJlatexmathPlatformFactoryProvider_setINSTANCE([[FactoryProvideriOS alloc] init]);

Could you advise me how to set it?

yichunk commented 9 years ago

Before using the library, type this code. It's simple. As ViewController.m line 31 does. https://github.com/jacky841102/JLaTeXMath-iOS/blob/master/JLaTeXMath-iOS/ViewController.m