0

I am building an iOS, code scanner project using ZBar SDK. I am trying to build my project directly from the source of ZBar, rather than including the libzbar.a static library.

Here are the steps i did

1) Copied the source file to my project.

2) Added the path to the folder containing the source and headers to the Header Search Paths build setting of the project. (eg include/ZBarSdk)

3)Added the following user defined build setting to the project:

EXCLUDE_SOURCE_FILE_NAMES

USE_HEADERMAP

But am not able to compile it, it still gives error at this

#import <ZBarSDK/ZBarReaderView.h> 

Error: no such file or directory

H Bastan
  • 259
  • 1
  • 2
  • 11
  • did you add the ZBarSDK.h import in your prefix.pch file? – Vin Apr 18 '12 at 09:29
  • error: ZBarSymbol.h: No such file or directory am still getting this – H Bastan Apr 18 '12 at 09:46
  • error: ZBarSDK.h: No such file or directory in prefix.pch file – H Bastan Apr 18 '12 at 09:58
  • Did you copy the source files correctly?? See that you include only that files in your project which have been included in the zbarlib project. Although your project folder would contain all source files. – Vin Apr 18 '12 at 10:37
  • hm...vin i solved many error now m not able to find debug.h file that contains timer_now function can you help me with this?? – H Bastan Apr 18 '12 at 11:24
  • open the zbarlib project and find out the debug.h file there. Do a reveal in finder and find out the exact location of the file. Sorry I can't tell you the exact location of this file as I am not near my code – Vin Apr 18 '12 at 11:34
  • Oky thanks i did find the file but now m getting this error ... Undefined symbols: "_OBJC_CLASS_$_ZBarReaderViewImpl", referenced from: objc-class-ref-to-ZBarReaderViewImpl in ZBarReaderView.o – H Bastan Apr 18 '12 at 11:41
  • you need to add user defined build setting of EXCLUDE_SOURCE_FILE_NAMES in your project(and exclude the files that are giving the error) – Vin Apr 18 '12 at 11:42
  • am still getting the same error – H Bastan Apr 18 '12 at 11:48

0 Answers0