Please advice me what am I doing wrong. Today I have downloaded SDK version 1_0_5 and tried to run sample project which is WTSimpleARBrowser. It worked well. I then followed instructions(iPhone Technical Details) from PDF file on how to integrate WikitudeSDK into Xcode project but failed. I keep on getting error messages... :(
I have set the Other Linker Flags to : ?lWikitudeSDK, ?lstdc++, ?fobjc?arc but if I build project I get error messages: clang: error: no such file or directory : '?lWikitudeSDK' clang: error: no such file or directory: '?lstdc++' clang: error: no such file or directory: '?fobjc?arc'
in My Xcode project I have created a group called "WikitudeSDK" under that group I have copied all folders from SDK excluding Samples, Documentation and Android.
I have also set Header search path to "Folder where I copied SDK"/WikitudeSDK/SDK/iOS/inc
Are errors that I get common? I have spent more than 3 hours already trying to figure out how to fix this :(... please advise me.
Thank you very much! and I very much hope for your reply.
over 8 years ago
The error message sounds like some project settings are not setup correctly. Please check if the following settings are included in the right spots under build settings:
1) Include SDK header file directory in "User Header Search Paths" and check if displayed location matches the location on your disk 2) Include SDK libary file directory in "Library Search Paths" and check if displayed location matches the location on your disk 3) Add "?lWikitudeSDK ?lstdc++ ?fobjc?arc" to "Other Linker Flags"
Please report back if the problem still persists after these sanity checks.
Best regards, Nicolas
over 8 years ago
Thank you very much for your reply!
I have checked project settings again and here is what I have:
XCode Version 4.3.1 (4E1019)
I downloaded and unzipped latest SDK(1_0_5) to "/Users/angel/Downloads/WikitudeSDK"
So my WTArchitectView.h file is located at "/Users/angel/Downloads/WikitudeSDK/iOS/SDK/inc"
Given this I have set project settings to the following:
Other Linking Flags(Debug and Release) are set to: ?lWikitudeSDK ?lstdc++ ?fobjc?arc
If I do project build it fails :(
clang: error: no such file or directory: '?lWikitudeSDK' clang: error: no such file or directory: '?lstdc++' clang: error: no such file or directory: '?fobjc?arc'
Please advise me what am I doing wrong?
Thank you very much Nicolas!
I hope to hear from you back!
over 8 years ago
It looks like I got it working. The problem was with adding -lWikitudeSDK -lstdc++ -fobjc-arc under Other Linker Flags -> Debug -> Any architecture | Any SDK. I removed this and added -lWikitudeSDK -lstdc++ -fobjc-arc right against Other Linker Flags ->Debug. So now it looks like this Other Linker Flags -> Debug -> -lWikitudeSDK -lstdc++ -fobjc-arc. And now it works. For some very wiered reason it did not work under Other Linker Flags -> Debug -> Any architecture | Any SDK :(
....Moving things back to how it was before when it was not working does not produce an error though... Now it works even when I move "-lWikitudeSDK -lstdc++ -fobjc-arc" to Other Linker Flags -> Debug -> Any architecture | Any SDK
I am confused... well... it works now! Thank you for your time and readiness to help!