error:in m/Developer/SDKs/iPhoneOS6.0.sdk/usr/lib/crt1.3.1.o, file is universal but does not contain a(n) armv6 slice for architecture armv6 - ios4

I am getting above error in xcode. The detail error is
ld: in
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/lib/crt1.3.1.o,
file is universal but does not contain a(n) armv6 slice for
architecture armv6 collect2: ld returned 1 exit status Command
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2
failed with exit code 1
But there is a situation which i want to explain. My iphone device which was 3GS, by mistake we upgraded it to 6.0. Previously it was iOS 4.3. Now we are trying to downgrade but unable to that. We have a application which we need to run on this device. So i downloaded latest xcode 4.5. and i copied iOS 6 sdk in my current sdk. Xocde version is 4.0. After that i tried to compile the application for device, and i am getting above error. I know the problem is coming because of iOS sdk 6.0. But i don't getting solution. Anybody can help please.This link which i have used to copy iOS 6 sdk in current xcode is this
http://iphonedevsdk.com/forum/iphone-sdk-development/100229-snow-leopard-sdk-5-1-a.html

setting YES to architecture->Build active architecture only in build setting has solved my problem. :)
I hope this will not create a new issue.

Related

Building OpenH264 library with android NDK19 fails

I need to build openh264 library for android. I downloaded from official webpage(https://github.com/cisco/openh264).
I'm following the same steps. It's working with android ndk15, not working with latest ndk19. Because they have removed the stlport from new ndk19. using ndk15 build library is not working for latest android OS. so I need to build with ndk19.
while building with ndk19, its giving the error like,
Android NDK: APP_STL stlport_shared is no longer supported. Please
switch to either c++_static or c++_shared. See
https://developer.android.com/ndk/guides/cpp-support.html for more
information. . Stop. build/platform-android.mk:51: *** Compiler
not found, bad NDKROOT or ARCH?. Stop.
can anyone please help me out of this issue?

fatal error LNK1103: debugging information corrupt; recompile module

I am using VS 2017 with version 15.3.0. I have a project with C++ source codes that can be built successfully in VS version 15.2 but failed in 15.3 with the following error:
msxml2.lib(msxml2_i.obj) : fatal error LNK1103: debugging information corrupt; recompile module
Does anyone have suggestions about this?
I have filed a bug report to Microsoft including a sample application which reproduces the bug:
https://developercommunity.visualstudio.com/content/problem/99785/mfcs140libstdafxobj-fatal-error-lnk1103-debugging.html
Hopefully this will be fixed in a subsequent 15.3.x update.
I met the same problem when my project use an external lib(CyAPI.lib).
I tried delete the Debug folder, and recompiled, but the problem still exist.
I resolved the problem by changed to CyAPI.lib to the newest version.

Unsuccessful ndk build of my 2.6.7 Vuforia project in new Vuforia 3.0 SDK

I tried to run my ImageTargets 2.6.7 version in a new computer which runs new Vuforia SDK 3.0, android ndk 10 and all updated software according to Vuforia's Development Guide that I installed now, but I can't build successfully my C++ libraries, having the following error in Cygwin:
Android NDK: ERROR:jni/Android.mk:QCAR-prebuilt: LOCAL_SRC_FILES points to a missing file
Android NDK: Check that jni/../../../build/lib/armeabi/libVuforia.so exists or that its path is correct
/cygdrive/c/Development/Android/android-ndk-r10c/build/core/prebuilt-library.mk:45: *** Android NDK: Aborting . Stop.
I updated all system paths in Environment variables, I made all alterations according to this link (https://developer.vuforia.com/resources/dev-guide/migrating-your-android-sdk-project) in my project, but the problem still remains.
What can I do please?
Your response is really important for me
Looks like the path of the libVuforia.so file is not correct. To eliminate the doubt - use a full path to the file (not ../../../). That can be configured in your jni/Android.mk file.

Cygwin + Linux NDK on Windows

I think this sounds strange but it's my situation now.
I have an Android JNI project on Eclipse (Windows), but after my friend 's configuration in his Eclipse on Ubuntu, now the auto-build plugin on my Eclipse couldn't work (It raise the error: ...ld.exe: can not find -l):
**** Build of configuration Default for project TachoPro ****
ndk-build.cmd all
SharedLibrary : libtachometer_core.so
E:/Android/android-ndk-r8b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: cannot find -ltachometer_core_armv7_a_cortex_a9
collect2: ld returned 1 exit status
make: *** [obj/local/armeabi-v7a/libtachometer_core.so] Error 1
**** Build Finished ****
He said that I must download the NDK for Linux then use Cygwin to build. But another error (seems more complex than before) arrives:
http://www.mediafire.com/view/?o0nthcn3hn0b0ix
If you has been through this, please give me some advices... >"<
If you're working on Windows, you have to use the Windows version of the Android NDK, not the Linux.
If you took a configuration file from your friend which points to a linux executable, you need to fix that. only that.
can you post the configuration file he gave you ?
read about how to develop with Android and with the NDK, you don't need Cygwin to develop with the NDK under Windows, also Cygwin it's not meant to be an environment for developers ( it's written crystal clear in the project homepage ! ).
I don't know what you 2 are doing but surely it's not Android related or a good use of both Cygwin or Android tools.

No architectures to compile iphone sdk

I'm trying to compile a project from github - https://github.com/JaredCrawford/iWVU/blob/61448d679192a574a9cc1aa1ee671ffa08e93a6c/Libraries/ARKit/ARViewController.m . When i run it i get
'No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=armv6, VALID_ARCHS=i386 ppc ppc64 ppc7400 ppc970 x86_64).'
and above this in gray its 'Build Three20'. Any ideas on how to fix this?
Also - if i remove the'build tree20' dependancie i get error: There is no SDK with the name or path 'iphonesimulator3.0'.
The error There is no SDK with the name or path is usually due to a project referencing a version of the SDK which you don't have. Check "Base SDK" in Build Settings; you usually want to set it to "Latest iOS".
Are you sure you have the latest version of iWVU? I just downloaded it and it builds fine for me...

Resources