I've tried to build the module by importing both WikitudeIOSModule and WikitudeAndroidModule into titanium. For iPhone, after copying the WikitudeSDK into the Framework folder, when i try to package it, this error appear:
~~~
Build settings from command line:
SDKROOT = iphoneos6.1
=== BUILD NATIVE TARGET WikitudeIOS OF PROJECT WikitudeIOS WITH CONFIGURATION Release ===
Check dependencies
CompileC build/WikitudeIOS.build/Release-iphoneos/WikitudeIOS.build/Objects-normal/armv7/ComWikitudeTiModuleAssets.o Classes/ComWikitudeTiModuleAssets.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/yeehunshin/Desktop/wikitude-titanium-master/WikitudeIOSModule
error: PCH file built from a different branch ((clang-425.0.27)) than the compiler ((clang-425.0.28))
1 error generated.
** BUILD FAILED **
The following build commands failed:
CompileC build/WikitudeIOS.build/Release-iphoneos/WikitudeIOS.build/Objects-normal/armv7/ComWikitudeTiModuleAssets.o Classes/ComWikitudeTiModuleAssets.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/WikitudeIOS.build/Release-iphoneos/WikitudeIOS.build/Objects-normal/armv7/ComWikitudeTiWikitudeView.o Classes/ComWikitudeTiWikitudeView.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/WikitudeIOS.build/Release-iphoneos/WikitudeIOS.build/Objects-normal/armv7/ComWikitudeTiWikitudeViewProxy.o Classes/ComWikitudeTiWikitudeViewProxy.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/WikitudeIOS.build/Release-iphoneos/WikitudeIOS.build/Objects-normal/armv7/ComWikitudeTiModule.o Classes/ComWikitudeTiModule.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(4 failures)
xcodebuild failed
~~~
As for Android, this error appear:
~~~
Executing build.xml...
/Users/yeehunshin/Library/Application Support/Titanium/mobilesdk/osx/3.1.1.GA/module/android/build.xml:228: Compile failed; see the compiler error output for details. You may need to install the Command Line Tools package through XCode, in case you haven't done so yet.
~~~
C
Chung Farn Kien
said
almost 11 years ago
I've checked the documentation and still failed.
Steps I've taken after downloading the github as well as the SDK:
1) Import the sample application into Titanium.
2) Instead of building the module from the WIKITUDEIOS module, I copy the module which is in WikitudeTitaniumSample/modules/iphone into my Titanium modules folder. (If i tried to build the module from the WikitideIOS module, after copying the framework from the SDK into Framework folder, when i try to run using ./build.py, this error appeared:
~~~
The following build commands failed:
CompileC build/WikitudeIOS.build/Release-iphoneos/WikitudeIOS.build/Objects-normal/armv7/ComWikitudeTiWikitudeView.o Classes/ComWikitudeTiWikitudeView.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/WikitudeIOS.build/Release-iphoneos/WikitudeIOS.build/Objects-normal/armv7/ComWikitudeTiModuleAssets.o Classes/ComWikitudeTiModuleAssets.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/WikitudeIOS.build/Release-iphoneos/WikitudeIOS.build/Objects-normal/armv7/ComWikitudeTiWikitudeViewProxy.o Classes/ComWikitudeTiWikitudeViewProxy.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/WikitudeIOS.build/Release-iphoneos/WikitudeIOS.build/Objects-normal/armv7/ComWikitudeTiModule.o Classes/ComWikitudeTiModule.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(4 failures)
xcodebuild failed
~~~
3) Since the sample application which I import the project is on the Desktop, so I created the folder WikitudeSDK in desktop and copy the WikitudeSDK.framework into it.
4) Then I run the sample application using simulator and got this error:
~~~
: ld: warning: directory not found for option '-F/Users/yeehunshin/Desktop/WikitudeTitaniumSample/build/iphone/../../../WikitudeIOSModule/Framework'
: ld: warning: directory not found for option '-F/Users/yeehunshin/Desktop/WikitudeTitaniumSample/build/iphone/../../../WikitudeIOSModule/Framework'
: ld: framework not found WikitudeSDK
: clang: error: linker command failed with exit code 1 (use -v to see invocation)
: ** BUILD FAILED **
: The following build commands failed:
: Ld build/Debug-iphonesimulator/ModuleSamples.app/ModuleSamples normal i386
: (1 failure)
~~~
Thats for iphone. As for Android:
1) I paste the file wikitudesdk.jar in the folder Library of the Wikitude SDK into your project's modules/android/com.wikitude.ti/3.x/lib directory.
2) copy modules/android/ directory into Titanium modules folder.
3) I'm using the Sample application that is included into the github and try running it on my Samsung Galaxy S3. Although it can run, but when I try to open specific function such as image recognition, i got this error:
have you checked the updated Titanium documentation, which we released Wednesday last week ? If you set up your app according to this and still are encounting problems, please describe them in more detail (step-by-step to reproduce error, building environment, device you are using) so we can check on our end.
Kind regards - Philipp
C
Chung Farn Kien
said
almost 11 years ago
Hi,
So far, I can't manage to include wikitude into my app. So, anyone who has successfully include wikitude into app for iphone and android, please give me a hand to make it work for me. I've seen and followed the documentation but still failed.
Chung Farn Kien