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.
Any help is much appreciated.
P
Philipp Nagele
said
about 10 years ago
Hi,
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
about 10 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:
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.
~~~
N
Nicola Radacher
said
about 10 years ago
For your iOS issue: please clean the project and build everything new.
C
Chung Farn Kien
said
about 10 years ago
I've cleaned the project multiple times. I also tried to delete the build folder. BUt all this lead back to the same error.
A
Andreas Schacherbauer
said
about 10 years ago
Hi,
you can't use the module this way. You either have to include the module project into your current application workspace, or you have to open the module in a separate workspace and then build the module and publish to a location and not a mobile project.
Best regards
Andreas
C
Chung Farn Kien
said
about 10 years ago
Using Titanium, I import the WikitudeIOSModule and then publish it. Thats how I got the error. Is this the wrong way? What is the step to take for the correct way then? I'm not really sure on this matter.
A
Andreas Schacherbauer
said
about 10 years ago
Today we uloaded a new, already built module into the git repository. Please download the latest version from GitHub and look carefully at the module.xcconfig if the path to your WikitudeSDK.framework is correctly (its a relative path, starting at the folder where your application Xcode project is located . It should look somethink like this:
Best regards
Andreas
C
Chung Farn Kien
said
about 10 years ago
Ok, for the IOS, I have managed to build the module and run the app.
But for Android, I still am unable to package the module. I did the same thing as in IOS, I import the WikitudeAndroidModule from github into my titanium and followed the instruction in the documentation. When I try to run the app in my Samsung Galaxy S3, it runs ok but when i try to open all the function such as Image On Target, etc etc, it failed with this error:
So, I try to package the module again and set all the paths in the build.properties file. When I package it, this error came out:
~~~
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.
~~~
How can I solve this problem?
G
Gsimone21892
said
over 9 years ago
Hello
I have tried to change the path in module.xcconfig but i don't know what line i need to modify . I have copy the Framework folder in to my workspace folder . but i still get this error when trying to build for ios
: Found Titanium module id=com.wikitude.ti version=3.2.1 platform=iphone deploy-type=development path=/Users/sinergy/Library/Application Support/Titanium/modules/iphone/com.wikitude.ti/3.2.1
: Deploy type: development
: Building for target: simulator
: Building using iOS SDK: 7.0.3
: Building for iOS iPhone Simulator: 7.0.3
: Building for device family: iphone
: Minimum iOS version: 6.1
: Debugging disabled
: Profiler disabled
: Forcing rebuild: /Users/sinergy/Desktop/Ios_appsSimo/titanium_workspace2/WikitudeTitaniumSample/build/iphone/build-manifest.json does not exist
: Ld build/Debug-iphonesimulator/ModuleSamples.app/ModuleSamples normal i386
: (1 failure)
I need some help please .
A
Andreas Schacherbauer
said
over 9 years ago
Hi Simone,
when you download the Titanium module from the appcelerator store, you shouldn't need to change any paths since the Wikitude Framework is contained within the module and the modules search paths are setup correctly.
If you need to configure the paths because you've downloaded the module from our GitHub repository, the modules.xccinfig should look something like this:
I've highlighted the paths that you need to configure. The path root is the Xcode project which is inside your final Titanium project build/iphone folder.
Best regards
Andreas
G
Gsimone21892
said
over 9 years ago
Thank for the answer .
Anyway i have downloaded the Wikitude Module from the Marketplace
I have checked the location of WikitudeSDK.framework and it's in the right place, but i can't compile it with the iosSimulator , it work fine on Android S3 device. I'm using the WikitudeTItaniumSample project .
Can it be a permission problem ? I'm using a Macbook Pro that isn't mine i use it only for work.
A
Andreas Schacherbauer
said
over 9 years ago
Hi,
have you tried to compile your project for the iOS device? You should be able to compile the app for the simulator, but since the simulator is missing a camera, the Wikitude SDK would only show a black view on the simulator.
Chung Farn Kien