I updated my monotouch yesterday to the latest version and updated Xcode to 3.2.5 with the iOS sdk to support iOS SDK 4.2 (to support an ipod touch with 4.2.1).
I am now having problems upon compiling for the device, 'mtouch failed with no output (1)'.
My solution does NOT have any spaces in either the folders or the project name.
I have updated SDKs in the past, and have used the advice for the 'Base SDK Missing' issue successfully.
All of the online advice about 'mtouch failed with no output (1)' deals with spaces in the project/folder names. I have even tried creating a new trivial project with monotouch, and still have this problem.
Any ideas?
Building: TestNewVersion (Release|iPhone)
Building Solution TestNewVersion
Building: TestNewVersion (Release|iPhone)
Detecting signing identity...
Provisioning profile: "Team Provisioning Profile: *" (XXXXXX)
Signing Identity: "iPhone Developer: MyName (XXXXXX)"
App ID: "XXXX.testnewversion"
Performing main compilation...
Updating CodeBehind files
Updated MainWindow.xib.designer.cs
Updated RootViewController.xib.designer.cs
/Developer/MonoTouch/usr/bin/smcs /noconfig "/out:/Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.exe" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll" /nologo /warn:4 /optimize- /codepage:utf8 /t:exe "/Users/MyName/Projects/TestNewVersion/TestNewVersion/Main.cs" "/Users/MyName/Projects/TestNewVersion/TestNewVersion/MainWindow.xib.designer.cs" "/Users/MyName/Projects/TestNewVersion/TestNewVersion/RootViewController.xib.cs" "/Users/MyName/Projects/TestNewVersion/TestNewVersion/RootViewController.xib.designer.cs"
Compilation succeeded - 1 warning(s)
/Users/MyName/Projects/TestNewVersion/TestNewVersion/RootViewController.xib.cs(75,44): warning CS0414: The private field `TestNewVersion.RootViewController.DataSource.controller' is assigned but its value is never used
Build complete -- 0 errors, 1 warning
Compiling to native code
/Developer/MonoTouch/usr/bin/mtouch -v --nomanifest --nosign -dev "/Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.app" -r="/Developer/MonoTouch/usr/lib/mono/2.1/System.dll" -r="/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll" -r="/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll" -r="/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll" -nolink -sdk="4.2" "/Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.exe"
Framework is: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk
Copied /Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.exe to /Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.app/TestNewVersion.exe
MONO_PATH=/Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=full,static,asmonly,nodebug,outfile=/var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/TestNewVersion.exe.s "/Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.app/TestNewVersion.exe"
MONO_PATH=/Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=full,static,asmonly,nodebug,outfile=/var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/mscorlib.dll.s "/Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.app/mscorlib.dll"
MONO_PATH=/Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=full,static,asmonly,nodebug,outfile=/var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/monotouch.dll.s "/Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.app/monotouch.dll"
MONO_PATH=/Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=full,static,asmonly,nodebug,outfile=/var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/System.dll.s "/Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.app/System.dll"
MONO_PATH=/Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=full,static,asmonly,nodebug,outfile=/var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/Mono.Security.dll.s "/Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.app/Mono.Security.dll"
MONO_PATH=/Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=full,static,asmonly,nodebug,outfile=/var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/System.Core.dll.s "/Users/MyName/Projects/TestNewVersion/TestNewVersion/bin/iPhone/Release/TestNewVersion.app/System.Core.dll"
Generated /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/main.m
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -gdwarf-2 -miphoneos-version-min=3.0 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk -c /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/TestNewVersion.exe.s -o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/TestNewVersion.exe.o
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -gdwarf-2 -miphoneos-version-min=3.0 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk -c /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/mscorlib.dll.s -o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/mscorlib.dll.o
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -gdwarf-2 -miphoneos-version-min=3.0 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk -c /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/monotouch.dll.s -o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/monotouch.dll.o
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -gdwarf-2 -miphoneos-version-min=3.0 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk -c /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/System.dll.s -o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/System.dll.o
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -gdwarf-2 -miphoneos-version-min=3.0 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk -c /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/Mono.Security.dll.s -o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/Mono.Security.dll.o
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -gdwarf-2 -miphoneos-version-min=3.0 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk -c /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/System.Core.dll.s -o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/System.Core.dll.o
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -gdwarf-2 -miphoneos-version-min=3.0 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk -c /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/main.m -o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/main.o
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -gdwarf-2 -miphoneos-version-min=3.0 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/TestNewVersion.exe.o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/mscorlib.dll.o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/monotouch.dll.o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/System.dll.o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/Mono.Security.dll.o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/System.Core.dll.o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/registrar.m -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/main.o -o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/TestNewVersion -framework CFNetwork -framework AssetsLibrary -framework CoreTelephony -framework EventKit -framework Foundation -framework CoreMotion -framework GameKit -framework MapKit -framework MediaPlayer -framework MessageUI -framework OpenGLES -framework StoreKit -framework UIKit -framework AddressBookUI -framework iAd -framework SystemConfiguration -framework AddressBook -framework AudioToolbox -framework AudioUnit -framework AVFoundation -framework QuartzCore -framework CoreFoundation -framework CoreGraphics -framework CoreLocation -framework ImageIO -framework Security -framework CoreMedia -framework ExternalAccessory -framework EventKitUI -framework QuickLook -lz -u _catch_exception_raise -u _CreateZStream -u _CloseZStream -u _Flush -u _ReadZStream -u _WriteZStream -liconv -lmono -lmonotouch -L/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/lib -dead_strip
Process exited with code 1, command:
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -gdwarf-2 -miphoneos-version-min=3.0 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/TestNewVersion.exe.o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/mscorlib.dll.o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/monotouch.dll.o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/System.dll.o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/Mono.Security.dll.o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/System.Core.dll.o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/registrar.m -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/main.o -o /var/folders/8P/8PRYWK7LE1yLdY8raiuKPU+++TM/-Tmp-/tmp44336f07.tmp/TestNewVersion -framework CFNetwork -framework AssetsLibrary -framework CoreTelephony -framework EventKit -framework Foundation -framework CoreMotion -framework GameKit -framework MapKit -framework MediaPlayer -framework MessageUI -framework OpenGLES -framework StoreKit -framework UIKit -framework AddressBookUI -framework iAd -framework SystemConfiguration -framework AddressBook -framework AudioToolbox -framework AudioUnit -framework AVFoundation -framework QuartzCore -framework CoreFoundation -framework CoreGraphics -framework CoreLocation -framework ImageIO -framework Security -framework CoreMedia -framework ExternalAccessory -framework EventKitUI -framework QuickLook -lz -u _catch_exception_raise -u _CreateZStream -u _CloseZStream -u _Flush -u _ReadZStream -u _WriteZStream -liconv -lmono -lmonotouch -L/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/lib -dead_strip
---------------------- Done ----------------------
Build: 1 error, 2 warnings
Right-click your project and choose "Options". Under "Build" there is an option called "iPhone Build". Under "SDK Version" make sure you pick a selection that you have installed.
For example, when I upgraded to 4.2, 3.2 was not installed. If I download a sample project from Github that targets 3.2, it won't build until I fix that option.
It seems that there is a problem related to
http://forums.monotouch.net/yaf_postst1323.aspx
The latest version of Monotouch 3.2.2 seems to have a problem with the
gcc_flags -framework AudioUnit
that causes the error
ld: framework not found AudioUnit
The solution that was posted has the link option set to turn the linker on, compile, and then turn the linker off again and compile again.
This worked for a trivial project, but does not work for my much more complex project. I have had to revert to Monotouch 3.1.3 for now. Hopefully this will be fixed in the next version.
Thanks for your help!
Related
Attempting to install node 14 on macOS 10.13 High Sierra, am getting the following error:
$ brew install node#14
Warning: You are using macOS 10.13.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
old version.
==> Downloading https://nodejs.org/dist/v14.17.6/node-v14.17.6.tar.gz
Already downloaded: /Users/matthewoconnell/Library/Caches/Homebrew/downloads/bccca547b2cf70689421ad0cfbec80e2a2713b80d932cafbc5ef3cfdf2379b32--node-v14.17.6.tar.gz
==> python3 configure.py --prefix=/usr/local/Cellar/node#14/14.17.6 --with-intl=system-icu
==> make install
Last 15 lines from /Users/matthewoconnell/Library/Logs/Homebrew/node#14/02.make:
clang -o /private/tmp/nodeA14-20210901-34839-12rf8hx/node-v14.17.6/out/Release/obj.target/openssl/deps/openssl/openssl/crypto/rc2/rc2cfb64.o ../deps/openssl/openssl/crypto/rc2/rc2cfb64.c '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_DARWIN_USE_64_BIT_INODE=1' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DOPENSSL_NO_HW' '-DNDEBUG' '-DL_ENDIAN' '-DOPENSSL_PIC' '-DOPENSSL_CPUID_OBJ' '-DOPENSSL_IA32_SSE2' '-DOPENSSL_BN_ASM_MONT' '-DOPENSSL_BN_ASM_MONT5' '-DOPENSSL_BN_ASM_GF2m' '-DSHA1_ASM' '-DSHA256_ASM' '-DSHA512_ASM' '-DKECCAK1600_ASM' '-DRC4_ASM' '-DMD5_ASM' '-DAESNI_ASM' '-DVPAES_ASM' '-DGHASH_ASM' '-DECP_NISTZ256_ASM' '-DX25519_ASM' '-DPOLY1305_ASM' '-DOPENSSLDIR="/System/Library/OpenSSL/"' '-DENGINESDIR="/dev/null"' -I/usr/local/Cellar/icu4c/69.1/include -I../deps/openssl/openssl -I../deps/openssl/openssl/include -I../deps/openssl/openssl/crypto -I../deps/openssl/openssl/crypto/include -I../deps/openssl/openssl/crypto/modes -I../deps/openssl/openssl/crypto/ec/curve448 -I../deps/openssl/openssl/crypto/ec/curve448/arch_32 -I../deps/openssl/config -I../deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2 -I../deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/include -I../deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto -I../deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/include/internal -O3 -gdwarf-2 -mmacosx-version-min=10.13 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -Wno-missing-field-initializers -fno-strict-aliasing -MMD -MF /private/tmp/nodeA14-20210901-34839-12rf8hx/node-v14.17.6/out/Release/.deps//private/tmp/nodeA14-20210901-34839-12rf8hx/node-v14.17.6/out/Release/obj.target/openssl/deps/openssl/openssl/crypto/rc2/rc2cfb64.o.d.raw -c
clang -o /private/tmp/nodeA14-20210901-34839-12rf8hx/node-v14.17.6/out/Release/obj.target/openssl/deps/openssl/openssl/crypto/rc2/rc2ofb64.o ../deps/openssl/openssl/crypto/rc2/rc2ofb64.c '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_DARWIN_USE_64_BIT_INODE=1' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DOPENSSL_NO_HW' '-DNDEBUG' '-DL_ENDIAN' '-DOPENSSL_PIC' '-DOPENSSL_CPUID_OBJ' '-DOPENSSL_IA32_SSE2' '-DOPENSSL_BN_ASM_MONT' '-DOPENSSL_BN_ASM_MONT5' '-DOPENSSL_BN_ASM_GF2m' '-DSHA1_ASM' '-DSHA256_ASM' '-DSHA512_ASM' '-DKECCAK1600_ASM' '-DRC4_ASM' '-DMD5_ASM' '-DAESNI_ASM' '-DVPAES_ASM' '-DGHASH_ASM' '-DECP_NISTZ256_ASM' '-DX25519_ASM' '-DPOLY1305_ASM' '-DOPENSSLDIR="/System/Library/OpenSSL/"' '-DENGINESDIR="/dev/null"' -I/usr/local/Cellar/icu4c/69.1/include -I../deps/openssl/openssl -I../deps/openssl/openssl/include -I../deps/openssl/openssl/crypto -I../deps/openssl/openssl/crypto/include -I../deps/openssl/openssl/crypto/modes -I../deps/openssl/openssl/crypto/ec/curve448 -I../deps/openssl/openssl/crypto/ec/curve448/arch_32 -I../deps/openssl/config -I../deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2 -I../deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/include -I../deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto -I../deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/include/internal -O3 -gdwarf-2 -mmacosx-version-min=10.13 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -Wno-missing-field-initializers -fno-strict-aliasing -MMD -MF /private/tmp/nodeA14-20210901-34839-12rf8hx/node-v14.17.6/out/Release/.deps//private/tmp/nodeA14-20210901-34839-12rf8hx/node-v14.17.6/out/Release/obj.target/openssl/deps/openssl/openssl/crypto/rc2/rc2ofb64.o.d.raw -c
In file included from ../deps/openssl/openssl/crypto/rand/rand_unix.c:38:
/usr/include/CommonCrypto/CommonRandom.h:35:9: error: unknown type name 'CCCryptorStatus'
typedef CCCryptorStatus CCRNGStatus;
^
../deps/openssl/openssl/crypto/rand/rand_unix.c:385:47: error: use of undeclared identifier 'kCCSuccess'
if (CCRandomGenerateBytes(buf, buflen) == kCCSuccess)
^
2 errors generated.
clang -o /private/tmp/nodeA14-20210901-34839-12rf8hx/node-v14.17.6/out/Release/obj.target/openssl/deps/openssl/openssl/crypto/ripemd/rmd_dgst.o ../deps/openssl/openssl/crypto/ripemd/rmd_dgst.c '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_DARWIN_USE_64_BIT_INODE=1' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DOPENSSL_NO_HW' '-DNDEBUG' '-DL_ENDIAN' '-DOPENSSL_PIC' '-DOPENSSL_CPUID_OBJ' '-DOPENSSL_IA32_SSE2' '-DOPENSSL_BN_ASM_MONT' '-DOPENSSL_BN_ASM_MONT5' '-DOPENSSL_BN_ASM_GF2m' '-DSHA1_ASM' '-DSHA256_ASM' '-DSHA512_ASM' '-DKECCAK1600_ASM' '-DRC4_ASM' '-DMD5_ASM' '-DAESNI_ASM' '-DVPAES_ASM' '-DGHASH_ASM' '-DECP_NISTZ256_ASM' '-DX25519_ASM' '-DPOLY1305_ASM' '-DOPENSSLDIR="/System/Library/OpenSSL/"' '-DENGINESDIR="/dev/null"' -I/usr/local/Cellar/icu4c/69.1/include -I../deps/openssl/openssl -I../deps/openssl/openssl/include -I../deps/openssl/openssl/crypto -I../deps/openssl/openssl/crypto/include -I../deps/openssl/openssl/crypto/modes -I../deps/openssl/openssl/crypto/ec/curve448 -I../deps/openssl/openssl/crypto/ec/curve448/arch_32 -I../deps/openssl/config -I../deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2 -I../deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/include -I../deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto -I../deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/include/internal -O3 -gdwarf-2 -mmacosx-version-min=10.13 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -Wno-missing-field-initializers -fno-strict-aliasing -MMD -MF /private/tmp/nodeA14-20210901-34839-12rf8hx/node-v14.17.6/out/Release/.deps//private/tmp/nodeA14-20210901-34839-12rf8hx/node-v14.17.6/out/Release/obj.target/openssl/deps/openssl/openssl/crypto/ripemd/rmd_dgst.o.d.raw -c
clang -o /private/tmp/nodeA14-20210901-34839-12rf8hx/node-v14.17.6/out/Release/obj.target/openssl/deps/openssl/openssl/crypto/ripemd/rmd_one.o ../deps/openssl/openssl/crypto/ripemd/rmd_one.c '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_DARWIN_USE_64_BIT_INODE=1' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DOPENSSL_NO_HW' '-DNDEBUG' '-DL_ENDIAN' '-DOPENSSL_PIC' '-DOPENSSL_CPUID_OBJ' '-DOPENSSL_IA32_SSE2' '-DOPENSSL_BN_ASM_MONT' '-DOPENSSL_BN_ASM_MONT5' '-DOPENSSL_BN_ASM_GF2m' '-DSHA1_ASM' '-DSHA256_ASM' '-DSHA512_ASM' '-DKECCAK1600_ASM' '-DRC4_ASM' '-DMD5_ASM' '-DAESNI_ASM' '-DVPAES_ASM' '-DGHASH_ASM' '-DECP_NISTZ256_ASM' '-DX25519_ASM' '-DPOLY1305_ASM' '-DOPENSSLDIR="/System/Library/OpenSSL/"' '-DENGINESDIR="/dev/null"' -I/usr/local/Cellar/icu4c/69.1/include -I../deps/openssl/openssl -I../deps/openssl/openssl/include -I../deps/openssl/openssl/crypto -I../deps/openssl/openssl/crypto/include -I../deps/openssl/openssl/crypto/modes -I../deps/openssl/openssl/crypto/ec/curve448 -I../deps/openssl/openssl/crypto/ec/curve448/arch_32 -I../deps/openssl/config -I../deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2 -I../deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/include -I../deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto -I../deps/openssl/config/archs/darwin64-x86_64-cc/asm_avx2/crypto/include/internal -O3 -gdwarf-2 -mmacosx-version-min=10.13 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -Wno-missing-field-initializers -fno-strict-aliasing -MMD -MF /private/tmp/nodeA14-20210901-34839-12rf8hx/node-v14.17.6/out/Release/.deps//private/tmp/nodeA14-20210901-34839-12rf8hx/node-v14.17.6/out/Release/obj.target/openssl/deps/openssl/openssl/crypto/ripemd/rmd_one.o.d.raw -c
make[1]: *** [/private/tmp/nodeA14-20210901-34839-12rf8hx/node-v14.17.6/out/Release/obj.target/openssl/deps/openssl/openssl/crypto/rand/rand_unix.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [node] Error 2
Any ideas? I previously applied this fix to get over the same issue installing the OpenSSL dependency, but am unsure if/how to apply the same fix here.
Since you already installed the modified version openssl in your local, you can do brew edit node#14 and add depends_on "openssl" in line 26, it should fix your --build-from-source issue.
The code change would look like this:
--- a/Formula/node#14.rb
+++ b/Formula/node#14.rb
## -23,6 +23,7 ## class NodeAT14 < Formula
depends_on "pkg-config" => :build
depends_on "python#3.9" => :build
depends_on "icu4c"
+ depends_on "openssl"
on_macos do
depends_on "macos-term-size"
Also I kind of agree with Mike about using nvm to manage the different local node versions.
But for security, it is also highly recommended to upgrade to latest supported macOS version (which Homebrew would have bottles to support it as well).
I am using python 3.6 and opencv 3.4.1 to capture video from a Logitech C920 webcam. I am used to Windows, where I would write my own DirectShow filters to get access to frames and control the camera. I am finding myself out of my depth on Linux.
I know it can run 24fps at least by using GTK UVC video viewer, but I'm only getting 5fps. I suspect that this is due to the format - to get higher rates I need something like x264. It may be that this is impossible for opencv because it means that it can no longer grab a single frame.
I have tried setting the video codec, but I am told that
cap.set(cv2.CAP_PROP_FORMAT, cv2.VideoWriter_fourcc(...
VIDEOIO ERROR: V4L2: setting property #8 is not supported
Other people have asked similar questions, but I haven't been able to see a convincing answer:
(no answer)
Capturing H264 stream with OpenCV
(blames drivers)
http://answers.opencv.org/question/30185/frame-capture-is-needlessly-slow/
(sets camera format in c++)
OpenCV VideoCapture with H264 CODEC
(also done in c++ and OpenCV 2.4)
Capturing 1080p at 30fps from logitech c920 with openCV 2.4.3
I found a link claiming that x264 etc doesn't support frame grabbing, therefore it can't be done, but now I can't find it - this would seem to be contradicted by the answers in c++ and the fact that we can work with x264 file formats.
Any clarity would be appreciated.
EDIT:
As requested, here are the outputs of cv2.getBuildInformation():
General configuration for OpenCV 3.4.1 =====================================
Version control: 3.4.1
Platform:
Timestamp: 2018-05-19T13:51:11Z
Host: Linux 4.4.0-101-generic x86_64
CMake: 3.9.0
CMake generator: Unix Makefiles
CMake build tool: /usr/bin/gmake
Configuration: Release
CPU/HW features:
Baseline: SSE SSE2 SSE3
requested: SSE3
Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2
requested: SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX
SSE4_1 (3 files): + SSSE3 SSE4_1
SSE4_2 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2
FP16 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
AVX (5 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX
AVX2 (9 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2
C/C++:
Built as dynamic libs?: NO
C++ Compiler: /opt/rh/devtoolset-2/root/usr/bin/c++ (ver 4.8.2)
C++ flags (Release): -Wl,-strip-all -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG
C++ flags (Debug): -Wl,-strip-all -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG
C Compiler: /opt/rh/devtoolset-2/root/usr/bin/cc
C flags (Release): -Wl,-strip-all -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG
C flags (Debug): -Wl,-strip-all -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG
Linker flags (Release): -L/root/ffmpeg_build/lib
Linker flags (Debug): -L/root/ffmpeg_build/lib
ccache: NO
Precompiled headers: NO
Extra dependencies: /opt/Qt4.8.7/lib/libQtGui.so /opt/Qt4.8.7/lib/libQtTest.so /opt/Qt4.8.7/lib/libQtCore.so /lib64/libz.so /opt/libjpeg-turbo/lib64/libjpeg.a avcodec avformat avutil swscale dl m pthread rt
3rdparty dependencies: ittnotify libprotobuf libwebp libpng libtiff libjasper IlmImf
OpenCV modules:
To be built: calib3d core dnn features2d flann highgui imgcodecs imgproc java_bindings_generator ml objdetect photo python3 python_bindings_generator shape stitching superres video videoio videostab
Disabled: js world
Disabled by dependency: -
Unavailable: cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev java python2ts viz
Applications: -
Documentation: NO
Non-free algorithms: NO
GUI:
QT: YES (ver 4.8.7 EDITION = OpenSource)
QT OpenGL support: NO
GTK+: NO
VTK support: NO
Media I/O:
ZLib: /lib64/libz.so (ver 1.2.3)
JPEG: /opt/libjpeg-turbo/lib64/libjpeg.a (ver )
WEBP: build (ver encoder: 0x020e)
PNG: build (ver 1.6.34)
TIFF: build (ver 42 - 4.0.9)
JPEG 2000: build (ver 1.900.1)
OpenEXR: build (ver 1.7.1)
Video I/O:
DC1394: NO
FFMPEG: YES
avcodec: YES (ver 58.19.100)
avformat: YES (ver 58.13.100)
avutil: YES (ver 56.18.100)
swscale: YES (ver 5.2.100)
avresample: NO
GStreamer: NO
libv4l/libv4l2: NO
v4l/v4l2: linux/videodev.h linux/videodev2.h
gPhoto2: NO
Parallel framework: pthreads
Trace: YES (with Intel ITT)
Other third-party libraries:
Lapack: NO
Eigen: NO
Custom HAL: NO
Protobuf: build (3.5.1)
NVIDIA CUDA: NO
OpenCL: YES (no extra features)
Include path: /io/opencv/3rdparty/include/opencl/1.2
Link libraries: Dynamic load
Python 3:
Interpreter: /opt/python/cp36-cp36m/bin/python (ver 3.6.5)
Libraries: libpython3.6m.a (ver 3.6.5)
numpy: /opt/python/cp36-cp36m/lib/python3.6/site-packages/numpy/core/include (ver 1.11.3)
packages path: lib/python3.6/site-packages
Python (for build): /opt/python/cp36-cp36m/bin/python
Java:
ant: NO
JNI: NO
Java wrappers: NO
Java tests: NO
Matlab: NO
Install to: /io/_skbuild/cmake-install
-----------------------------------------------------------------
So as zindarod correctly pointed out, the solution is to:
run cv2.getBuildInformation()
Check if libv4l/libv4l2 has NO/NO as the value (if it doesn't you have some other problem)
Compile OpenCV from source.
Compiling OpenCV is tricky, but manageable, even for someone like me who was raised on Windows.
https://docs.opencv.org/3.2.0/d7/d9f/tutorial_linux_install.html
https://docs.opencv.org/3.0-beta/doc/tutorials/introduction/linux_eclipse/linux_eclipse.html
Although those are a little out of date. In eclipse you'll need references to
opencv_videoio
opencv_core
opencv_highgui
opencv_videoio
#include "opencv2/opencv.hpp"
#include "opencv2/videoio.hpp"
using namespace cv;
int main(int, char**)
{
VideoCapture cap(0); // open the default camera
if(!cap.isOpened()) // check if we succeeded
return -1;
cap.set(CV_CAP_PROP_FRAME_WIDTH,1920);
cap.set(CV_CAP_PROP_FRAME_HEIGHT,1080);
Mat edges;
namedWindow("camera",1);
for(;;)
{
Mat frame;
cap >> frame; // get a new frame from camera
imshow("camera", frame);
if(waitKey(30) >= 0) break;
}
return 0;
}
I am trying to convert a PDF to a JPG preview, but certain PDF files are taking a really long time to process on our RH Linux server (+- 35 seconds). The same file & command on my Windows 8 development machine takes only 3 seconds. I am using GraphicsMagick 1.3.18 & GhostScript 8.70-19. I get the same results using ImageMagick. Unfortunately I can't share the PDF file in question, but here are its properties (it is only 399KB compressed & 1.1MB uncompressed):
I tested using a compressed & uncompressed version, and the results are similar. I found that both the gm convert file.pdf output.jpg and gm identify file.pdf commands take a long time.
This is the output of gm identify -version on the Linux server:
GraphicsMagick 1.3.18 2013-03-10 Q8 http://www.GraphicsMagick.org/
Copyright (C) 2002-2013 GraphicsMagick Group.
Additional copyrights and licenses apply to this software.
See http://www.GraphicsMagick.org/www/Copyright.html for details.
Feature Support:
Thread Safe yes
Large Files (> 32 bit) yes
Large Memory (> 32 bit) yes
BZIP yes
DPS no
FlashPix no
FreeType yes
Ghostscript (Library) no
JBIG no
JPEG-2000 yes
JPEG yes
Little CMS yes
Loadable Modules yes
OpenMP yes (200805)
PNG yes
TIFF yes
TRIO no
UMEM no
WMF yes
X11 yes
XML yes
ZLIB yes
Host type: x86_64-redhat-linux-gnu
Configured using the command:
./configure '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--enable-shared' '--disable-static' '--with-lcms' '--with-magick_plus_plus' '--with-modules' '--with-perl' '--with-perl-options=INSTALLDIRS=vendor ' '--with-threads' '--with-wmf' '--with-x' '--with-xml' '--without-dps' '--without-gslib' '--with-gs-font-dir=/usr/share/fonts/default/Type1' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'target_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' 'CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=
Final Build Parameters:
CC = gcc -std=gnu99
CFLAGS = -fopenmp -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -pthread
CPPFLAGS = -I/usr/include/freetype2 -I/usr/include/libxml2
CXX = g++
CXXFLAGS = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -pthread
LDFLAGS = -L/usr/lib -L/usr/lib
LIBS = -llcms -lfreetype -lXext -lSM -lICE -lX11 -lbz2 -lz -lltdl -lm -lgomp -lpthread
I only have this problem for some PDF files, most are processed using the same command quite quickly.
Any ideas regarding what might make this take so long?
I have a simple Android.mk file for building libpng that I took from AOSP and modified slightly to build a shared lib instead of a static one.
LOCAL_PATH:= $(call my-dir)
LOCAL_CFLAGS :=
LOCAL_COPY_HEADERS_TO := libs/include
LOCAL_COPY_HEADERS := \
png.h \
pngconf.h \
pngusr.h
LOCAL_SRC_FILES := \
png.c \
pngerror.c \
pnggccrd.c \
pngget.c \
pngmem.c \
pngpread.c \
pngread.c \
pngrio.c \
pngrtran.c \
pngrutil.c \
pngset.c \
pngtrans.c \
pngvcrd.c \
pngwio.c \
pngwrite.c \
pngwtran.c \
pngwutil.c
LOCAL_LDLIBS := -lz
LOCAL_MODULE := png
LOCAL_MODULE_FILENAME := libpng
include $(BUILD_SHARED_LIBRARY)
The LOCAL_COPY_HEADERS_TO and LOCAL_COPY_HEADERS options seem like they should copy the specified headers to the libs/include directory... but they don't do anything. The library itself seems to build correctly. I'm using verbose output for ndk-build and there are no errors. Here's the command I use (I just added escapes so the command would be easier to read):
ndk-build \
NDK_PROJECT_PATH=. \
APP_BUILD_SCRIPT=Android.mk \
TARGET_ARCH_ABI=armeabi-v7a \
TARGET_PLATFORM=android-9 \
V=1 NDK_LOG=1 -B
And here's the build output. Note that at the end install is only called on the lib binaries.
HOST_OS=linux
HOST_ARCH=x86_64
HOST_TAG=linux-x86_64
GNUMAKE=/home/preet/Dev/env/sys/android-ndk-r8e/prebuilt/linux-x86_64/bin/make (NDK prebuilt)
Android NDK: NDK installation path auto-detected: '/home/preet/Dev/env/sys/android-ndk-r8e'
Android NDK: GNU Make version 3.81 detected
Android NDK: Host OS was auto-detected: linux
Android NDK: Host operating system detected: linux
Android NDK: Host CPU was auto-detected: x86
Android NDK: HOST_TAG set to linux-x86
Android NDK: Host tools prebuilt directory: /home/preet/Dev/env/sys/android-ndk-r8e/prebuilt/linux-x86_64/bin
Android NDK: Host 'echo' tool: echo
Android NDK: Host 'echo -n' tool: printf %s
Android NDK: Host 'cmp' tool: cmp
Android NDK: Host 'awk' tool: /home/preet/Dev/env/sys/android-ndk-r8e/prebuilt/linux-x86_64/bin/awk
Android NDK: Host 'awk' test returned: Pass
Android NDK: Found platform root directory: /home/preet/Dev/env/sys/android-ndk-r8e/platforms
Android NDK: Found supported platforms: android-14 android-3 android-4 android-5 android-8 android-9
Android NDK: PLATFORM android-14 supports: arm mips x86
Android NDK: ABI arm sysroot is: /home/preet/Dev/env/sys/android-ndk-r8e/platforms/android-14/arch-arm
Android NDK: ABI mips sysroot is: /home/preet/Dev/env/sys/android-ndk-r8e/platforms/android-14/arch-mips
Android NDK: ABI x86 sysroot is: /home/preet/Dev/env/sys/android-ndk-r8e/platforms/android-14/arch-x86
Android NDK: PLATFORM android-3 supports: arm
Android NDK: ABI arm sysroot is: /home/preet/Dev/env/sys/android-ndk-r8e/platforms/android-3/arch-arm
Android NDK: PLATFORM android-4 supports: arm
Android NDK: ABI arm sysroot is: /home/preet/Dev/env/sys/android-ndk-r8e/platforms/android-4/arch-arm
Android NDK: PLATFORM android-5 supports: arm
Android NDK: ABI arm sysroot is: /home/preet/Dev/env/sys/android-ndk-r8e/platforms/android-5/arch-arm
Android NDK: PLATFORM android-8 supports: arm
Android NDK: ABI arm sysroot is: /home/preet/Dev/env/sys/android-ndk-r8e/platforms/android-8/arch-arm
Android NDK: PLATFORM android-9 supports: arm mips x86
Android NDK: ABI arm sysroot is: /home/preet/Dev/env/sys/android-ndk-r8e/platforms/android-9/arch-arm
Android NDK: ABI mips sysroot is: /home/preet/Dev/env/sys/android-ndk-r8e/platforms/android-9/arch-mips
Android NDK: ABI x86 sysroot is: /home/preet/Dev/env/sys/android-ndk-r8e/platforms/android-9/arch-x86
Android NDK: Found stable platform levels: 14 3 4 5 8 9
Android NDK: Found max platform level: 14
Android NDK: This NDK supports the following target architectures and ABIS:
Android NDK: arm: armeabi armeabi-v7a
Android NDK: mips: mips
Android NDK: x86: x86
Android NDK: This NDK supports the following toolchains and target ABIs:
Android NDK: arm-linux-androideabi-4.4.3: armeabi armeabi-v7a
Android NDK: arm-linux-androideabi-4.6: armeabi armeabi-v7a
Android NDK: arm-linux-androideabi-4.7: armeabi armeabi-v7a
Android NDK: arm-linux-androideabi-clang3.1: armeabi armeabi-v7a
Android NDK: arm-linux-androideabi-clang3.2: armeabi armeabi-v7a
Android NDK: mipsel-linux-android-4.4.3: mips
Android NDK: mipsel-linux-android-4.6: mips
Android NDK: mipsel-linux-android-4.7: mips
Android NDK: mipsel-linux-android-clang3.1: mips
Android NDK: mipsel-linux-android-clang3.2: mips
Android NDK: x86-4.4.3: x86
Android NDK: x86-4.6: x86
Android NDK: x86-4.7: x86
Android NDK: x86-clang3.1: x86
Android NDK: x86-clang3.2: x86
Android NDK: Found project path: .
Android NDK: Ouput path: ./obj
Android NDK: Parsing /home/preet/Dev/env/sys/android-ndk-r8e/build/core/default-application.mk
Android NDK: Defaulted to APP_PLATFORM=android-3
Android NDK: APP_PIE is
Android NDK: Using build script Android.mk
Android NDK: Application 'local' is not debuggable
Android NDK: Selecting release optimization mode (app is not debuggable)
Android NDK: Adding import directory: /home/preet/Dev/env/sys/android-ndk-r8e/sources
Android NDK: Building application 'local' for ABI 'armeabi-v7a'
Android NDK: Using target toolchain 'arm-linux-androideabi-4.6' for 'armeabi-v7a' ABI
Android NDK: Looking for imported module with tag 'cxx-stl/system'
Android NDK: Probing /home/preet/Dev/env/sys/android-ndk-r8e/sources/cxx-stl/system/Android.mk
Android NDK: Found in /home/preet/Dev/env/sys/android-ndk-r8e/sources/cxx-stl/system
rm -f ./libs/armeabi/lib*.so ./libs/armeabi-v7a/lib*.so ./libs/mips/lib*.so ./libs/x86/lib*.so
rm -f ./libs/armeabi/gdbserver ./libs/armeabi-v7a/gdbserver ./libs/mips/gdbserver ./libs/x86/gdbserver
rm -f ./libs/armeabi/gdb.setup ./libs/armeabi-v7a/gdb.setup ./libs/mips/gdb.setup ./libs/x86/gdb.setup
Compile thumb : png <= png.c
/home/preet/Dev/env/sys/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -MMD -MP -MF ./obj/local/armeabi-v7a/objs/png/png.o.d -fpic -ffunction-sections -funwind-tables -fstack-protector -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Os -g -DNDEBUG -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -I. -DANDROID -Wa,--noexecstack -I/home/preet/Dev/env/sys/android-ndk-r8e/platforms/android-9/arch-arm/usr/include -c ./png.c -o ./obj/local/armeabi-v7a/objs/png/png.o
Compile thumb : png <= pngerror.c
/home/preet/Dev/env/sys/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -MMD -MP -MF ./obj/local/armeabi-v7a/objs/png/pngerror.o.d -fpic -ffunction-sections -funwind-tables -fstack-protector -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Os -g -DNDEBUG -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -I. -DANDROID -Wa,--noexecstack -I/home/preet/Dev/env/sys/android-ndk-r8e/platforms/android-9/arch-arm/usr/include -c ./pngerror.c -o ./obj/local/armeabi-v7a/objs/png/pngerror.o
Compile thumb : png <= pnggccrd.c
/home/preet/Dev/env/sys/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -MMD -MP -MF ./obj/local/armeabi-v7a/objs/png/pnggccrd.o.d -fpic -ffunction-sections -funwind-tables -fstack-protector -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Os -g -DNDEBUG -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -I. -DANDROID -Wa,--noexecstack -I/home/preet/Dev/env/sys/android-ndk-r8e/platforms/android-9/arch-arm/usr/include -c ./pnggccrd.c -o ./obj/local/armeabi-v7a/objs/png/pnggccrd.o
Compile thumb : png <= pngget.c
/home/preet/Dev/env/sys/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -MMD -MP -MF ./obj/local/armeabi-v7a/objs/png/pngget.o.d -fpic -ffunction-sections -funwind-tables -fstack-protector -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Os -g -DNDEBUG -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -I. -DANDROID -Wa,--noexecstack -I/home/preet/Dev/env/sys/android-ndk-r8e/platforms/android-9/arch-arm/usr/include -c ./pngget.c -o ./obj/local/armeabi-v7a/objs/png/pngget.o
Compile thumb : png <= pngmem.c
/home/preet/Dev/env/sys/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -MMD -MP -MF ./obj/local/armeabi-v7a/objs/png/pngmem.o.d -fpic -ffunction-sections -funwind-tables -fstack-protector -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Os -g -DNDEBUG -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -I. -DANDROID -Wa,--noexecstack -I/home/preet/Dev/env/sys/android-ndk-r8e/platforms/android-9/arch-arm/usr/include -c ./pngmem.c -o ./obj/local/armeabi-v7a/objs/png/pngmem.o
Compile thumb : png <= pngpread.c
/home/preet/Dev/env/sys/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -MMD -MP -MF ./obj/local/armeabi-v7a/objs/png/pngpread.o.d -fpic -ffunction-sections -funwind-tables -fstack-protector -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Os -g -DNDEBUG -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -I. -DANDROID -Wa,--noexecstack -I/home/preet/Dev/env/sys/android-ndk-r8e/platforms/android-9/arch-arm/usr/include -c ./pngpread.c -o ./obj/local/armeabi-v7a/objs/png/pngpread.o
Compile thumb : png <= pngread.c
/home/preet/Dev/env/sys/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -MMD -MP -MF ./obj/local/armeabi-v7a/objs/png/pngread.o.d -fpic -ffunction-sections -funwind-tables -fstack-protector -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Os -g -DNDEBUG -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -I. -DANDROID -Wa,--noexecstack -I/home/preet/Dev/env/sys/android-ndk-r8e/platforms/android-9/arch-arm/usr/include -c ./pngread.c -o ./obj/local/armeabi-v7a/objs/png/pngread.o
Compile thumb : png <= pngrio.c
/home/preet/Dev/env/sys/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -MMD -MP -MF ./obj/local/armeabi-v7a/objs/png/pngrio.o.d -fpic -ffunction-sections -funwind-tables -fstack-protector -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Os -g -DNDEBUG -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -I. -DANDROID -Wa,--noexecstack -I/home/preet/Dev/env/sys/android-ndk-r8e/platforms/android-9/arch-arm/usr/include -c ./pngrio.c -o ./obj/local/armeabi-v7a/objs/png/pngrio.o
Compile thumb : png <= pngrtran.c
/home/preet/Dev/env/sys/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -MMD -MP -MF ./obj/local/armeabi-v7a/objs/png/pngrtran.o.d -fpic -ffunction-sections -funwind-tables -fstack-protector -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Os -g -DNDEBUG -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -I. -DANDROID -Wa,--noexecstack -I/home/preet/Dev/env/sys/android-ndk-r8e/platforms/android-9/arch-arm/usr/include -c ./pngrtran.c -o ./obj/local/armeabi-v7a/objs/png/pngrtran.o
Compile thumb : png <= pngrutil.c
/home/preet/Dev/env/sys/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -MMD -MP -MF ./obj/local/armeabi-v7a/objs/png/pngrutil.o.d -fpic -ffunction-sections -funwind-tables -fstack-protector -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Os -g -DNDEBUG -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -I. -DANDROID -Wa,--noexecstack -I/home/preet/Dev/env/sys/android-ndk-r8e/platforms/android-9/arch-arm/usr/include -c ./pngrutil.c -o ./obj/local/armeabi-v7a/objs/png/pngrutil.o
Compile thumb : png <= pngset.c
/home/preet/Dev/env/sys/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -MMD -MP -MF ./obj/local/armeabi-v7a/objs/png/pngset.o.d -fpic -ffunction-sections -funwind-tables -fstack-protector -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Os -g -DNDEBUG -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -I. -DANDROID -Wa,--noexecstack -I/home/preet/Dev/env/sys/android-ndk-r8e/platforms/android-9/arch-arm/usr/include -c ./pngset.c -o ./obj/local/armeabi-v7a/objs/png/pngset.o
Compile thumb : png <= pngtrans.c
/home/preet/Dev/env/sys/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -MMD -MP -MF ./obj/local/armeabi-v7a/objs/png/pngtrans.o.d -fpic -ffunction-sections -funwind-tables -fstack-protector -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Os -g -DNDEBUG -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -I. -DANDROID -Wa,--noexecstack -I/home/preet/Dev/env/sys/android-ndk-r8e/platforms/android-9/arch-arm/usr/include -c ./pngtrans.c -o ./obj/local/armeabi-v7a/objs/png/pngtrans.o
Compile thumb : png <= pngvcrd.c
/home/preet/Dev/env/sys/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -MMD -MP -MF ./obj/local/armeabi-v7a/objs/png/pngvcrd.o.d -fpic -ffunction-sections -funwind-tables -fstack-protector -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Os -g -DNDEBUG -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -I. -DANDROID -Wa,--noexecstack -I/home/preet/Dev/env/sys/android-ndk-r8e/platforms/android-9/arch-arm/usr/include -c ./pngvcrd.c -o ./obj/local/armeabi-v7a/objs/png/pngvcrd.o
Compile thumb : png <= pngwio.c
/home/preet/Dev/env/sys/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -MMD -MP -MF ./obj/local/armeabi-v7a/objs/png/pngwio.o.d -fpic -ffunction-sections -funwind-tables -fstack-protector -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Os -g -DNDEBUG -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -I. -DANDROID -Wa,--noexecstack -I/home/preet/Dev/env/sys/android-ndk-r8e/platforms/android-9/arch-arm/usr/include -c ./pngwio.c -o ./obj/local/armeabi-v7a/objs/png/pngwio.o
Compile thumb : png <= pngwrite.c
/home/preet/Dev/env/sys/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -MMD -MP -MF ./obj/local/armeabi-v7a/objs/png/pngwrite.o.d -fpic -ffunction-sections -funwind-tables -fstack-protector -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Os -g -DNDEBUG -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -I. -DANDROID -Wa,--noexecstack -I/home/preet/Dev/env/sys/android-ndk-r8e/platforms/android-9/arch-arm/usr/include -c ./pngwrite.c -o ./obj/local/armeabi-v7a/objs/png/pngwrite.o
Compile thumb : png <= pngwtran.c
/home/preet/Dev/env/sys/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -MMD -MP -MF ./obj/local/armeabi-v7a/objs/png/pngwtran.o.d -fpic -ffunction-sections -funwind-tables -fstack-protector -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Os -g -DNDEBUG -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -I. -DANDROID -Wa,--noexecstack -I/home/preet/Dev/env/sys/android-ndk-r8e/platforms/android-9/arch-arm/usr/include -c ./pngwtran.c -o ./obj/local/armeabi-v7a/objs/png/pngwtran.o
Compile thumb : png <= pngwutil.c
/home/preet/Dev/env/sys/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -MMD -MP -MF ./obj/local/armeabi-v7a/objs/png/pngwutil.o.d -fpic -ffunction-sections -funwind-tables -fstack-protector -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Os -g -DNDEBUG -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -I. -DANDROID -Wa,--noexecstack -I/home/preet/Dev/env/sys/android-ndk-r8e/platforms/android-9/arch-arm/usr/include -c ./pngwutil.c -o ./obj/local/armeabi-v7a/objs/png/pngwutil.o
SharedLibrary : libpng.so
/home/preet/Dev/env/sys/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -Wl,-soname,libpng.so -shared --sysroot=/home/preet/Dev/env/sys/android-ndk-r8e/platforms/android-9/arch-arm ./obj/local/armeabi-v7a/objs/png/png.o ./obj/local/armeabi-v7a/objs/png/pngerror.o ./obj/local/armeabi-v7a/objs/png/pnggccrd.o ./obj/local/armeabi-v7a/objs/png/pngget.o ./obj/local/armeabi-v7a/objs/png/pngmem.o ./obj/local/armeabi-v7a/objs/png/pngpread.o ./obj/local/armeabi-v7a/objs/png/pngread.o ./obj/local/armeabi-v7a/objs/png/pngrio.o ./obj/local/armeabi-v7a/objs/png/pngrtran.o ./obj/local/armeabi-v7a/objs/png/pngrutil.o ./obj/local/armeabi-v7a/objs/png/pngset.o ./obj/local/armeabi-v7a/objs/png/pngtrans.o ./obj/local/armeabi-v7a/objs/png/pngvcrd.o ./obj/local/armeabi-v7a/objs/png/pngwio.o ./obj/local/armeabi-v7a/objs/png/pngwrite.o ./obj/local/armeabi-v7a/objs/png/pngwtran.o ./obj/local/armeabi-v7a/objs/png/pngwutil.o -lgcc -no-canonical-prefixes -march=armv7-a -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -L/home/preet/Dev/env/sys/android-ndk-r8e/platforms/android-9/arch-arm/usr/lib -lz -lc -lm -o ./obj/local/armeabi-v7a/libpng.so
Install : libpng.so => libs/armeabi-v7a/libpng.so
install -p ./obj/local/armeabi-v7a/libpng.so ./libs/armeabi-v7a/libpng.so
/home/preet/Dev/env/sys/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi-strip --strip-unneeded ./libs/armeabi-v7a/libpng.so
You messed up your order. You should have:
LOCAL_COPY_HEADERS := \
png.h \
pngconf.h \
pngusr.h
followed by:
LOCAL_COPY_HEADERS_TO := libs/include
(You must dictate your headers, then tell the system where to copy them to.) It could also have been deprecated on your current sdk too.
I use Mobclix for ads in my app and I've created mono bindings using btouch that I've been using successfully for a while. I've also added extra GCC flags to my project in order to link to the Mobclix .a library.
Unfortunately, after updating to iOS SDK 4.3, MonoTouch 3.2.5 and MonoDevelop 2.4.2, I'm no longer able to link my application when building for the iOS simulator. I get the following error message:
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -gdwarf-2 -fobjc-legacy-dispatch -fobjc-abi-version=2 -miphoneos-version-min=4.3 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk /var/folders/JD/JDES4LivFwqM8x7qnFUdg++++TI/-Tmp-/tmp4041c9f3.tmp/main.o -o /var/folders/JD/JDES4LivFwqM8x7qnFUdg++++TI/-Tmp-/tmp4041c9f3.tmp/WordfeudFree -framework CFNetwork -framework AssetsLibrary -framework CoreTelephony -framework EventKit -framework Foundation -framework CoreMotion -framework GameKit -framework MapKit -framework MediaPlayer -framework MessageUI -framework OpenGLES -framework StoreKit -framework UIKit -framework AddressBookUI -framework iAd -framework SystemConfiguration -framework AddressBook -framework AudioToolbox -framework AVFoundation -framework QuartzCore -framework CoreFoundation -framework CoreGraphics -framework CoreLocation -framework ImageIO -framework Security -framework CoreMedia -framework ExternalAccessory -framework EventKitUI -framework QuickLook -lz -u _catch_exception_raise -u _CreateZStream -u _CloseZStream -u _Flush -u _ReadZStream -u _WriteZStream -liconv -lmono -lmonotouch -L/Developer/MonoTouch/SDKs/MonoTouch.iphonesimulator.sdk/usr/lib -framework AddressBook -framework AddressBookUI -framework AudioToolbox -framework AVFoundation -framework CoreGraphics -weak_framework CoreMotion -weak_framework EventKit -framework MediaPlayer -framework MessageUI -framework QuartzCore -framework SystemConfiguration -L/Users/haakon/Code/wordfeud-work/iOS/Wordfeud.Free/Wordfeud.Free/lib -lMobclix_nonthumb -force_load /Users/haakon/Code/wordfeud-work/iOS/Wordfeud.Free/Wordfeud.Free/lib/libMobclix_nonthumb.a
Undefined symbols:
"__Unwind_Resume", referenced from:
+[MobclixFeedback sharedInstance] in libMobclix_nonthumb.a(MobclixFeedback.o)
-[MobclixFeedback sendComment:] in libMobclix_nonthumb.a(MobclixFeedback.o)
-[MobclixAdViewInternal finishInstrumentation] in libMobclix_nonthumb.a(MobclixAdViewInternal.o)
-[MobclixTextAdView finishedLoadingIconURL:withImageData:] in libMobclix_nonthumb.a(MobclixTextAdView.o)
-[MobclixInteractiveVideoView finishedLoadingImageURL:withImageData:] in libMobclix_nonthumb.a(MobclixInteractiveVideoView.o)
-[MobclixBannerAdView finishedLoadingImageURL:withImageData:] in libMobclix_nonthumb.a(MobclixBannerAdView.o)
-[MCResourcesController playVideoImage] in libMobclix_nonthumb.a(MCResourcesController.o)
-[MCResourcesController closeIconImage] in libMobclix_nonthumb.a(MCResourcesController.o)
-[MCResourcesController closeBlankImage] in libMobclix_nonthumb.a(MCResourcesController.o)
-[MCResourcesController closeBoxImage] in libMobclix_nonthumb.a(MCResourcesController.o)
-[MCResourcesController backImage] in libMobclix_nonthumb.a(MCResourcesController.o)
-[MCResourcesController forwardImage] in libMobclix_nonthumb.a(MCResourcesController.o)
+[MCResourcesController sharedResources] in libMobclix_nonthumb.a(MCResourcesController.o)
-[NSDictionary(MobclixHelper) stringForKeyPath:] in libMobclix_nonthumb.a(MobclixController.o)
-[NSDictionary(MobclixHelper) urlForKeyPath:] in libMobclix_nonthumb.a(MobclixController.o)
-[NSDictionary(MobclixHelper) integerForKeyPath:] in libMobclix_nonthumb.a(MobclixController.o)
-[NSDictionary(MobclixHelper) floatForKeyPath:] in libMobclix_nonthumb.a(MobclixController.o)
+[MobclixController sharedInstanceWithApplicationId:] in libMobclix_nonthumb.a(MobclixController.o)
+[NSCharacterSet(MCNSCharacterSet_Extensions) mcLinebreaksCharacterSet] in libMobclix_nonthumb.a(MobclixController.o)
+[MCSession currentSession] in libMobclix_nonthumb.a(MCSession.o)
-[MCConfig loadConfiguration:] in libMobclix_nonthumb.a(MCConfig.o)
+[MCConfig currentConfig] in libMobclix_nonthumb.a(MCConfig.o)
+[MCEnvironment platformName] in libMobclix_nonthumb.a(MCEnvironment.o)
+[MCEGOHTTPRequest _requestsLock] in libMobclix_nonthumb.a(MCEGOHTTPRequest.o)
+[MCEGOHTTPRequest currentRequests] in libMobclix_nonthumb.a(MCEGOHTTPRequest.o)
-[MobclixAdEvents initWithEvents:] in libMobclix_nonthumb.a(MobclixAdEvents.o)
+[MobclixInstrumentation currentInstrumentation] in libMobclix_nonthumb.a(MobclixInstrumentation.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
As I understand it, the problem is that the Mobclix library uses C++ (notably C++ exceptions), while the linker step in MonoTouch/MonoDevelop does not link with the C++ standard library, or enable C++ exceptions. I don't understand why this only occurs when building for the simulator, or why it didn't happen before I updated MonoTouch and the iOS SDK.
Anyone know how to fix this?
I've tried adding -fexceptions and -lstdc++ to my -gcc_flags, but it didn't help at all.
The new MonoTouch Alpha 2 has a new "Extra Arguments" flag, "-cxx" which will force linking with g++. Try that.