LibGDX - Ads on iOS - libgdx

I'm making an application using LibGDX and RoboVM, and I'm stucked in a problem with the Google Mobile Ads Framework.
I've search everywhere but nothing resolved my error.
If I declare this framework in the robovm.xml like this
<frameworkPaths>
<path>libs</path>
</frameworkPaths>
<frameworks>
<framework>UIKit</framework>
<framework>OpenGLES</framework>
<framework>QuartzCore</framework>
<framework>CoreGraphics</framework>
<framework>OpenAL</framework>
<framework>AudioToolbox</framework>
<framework>AVFoundation</framework>
<framework>GoogleMobileAds</framework>
</frameworks>
When I'm going to create the IPA it gives me this error.
How can I solve this??
[ERROR] Undefined symbols for architecture armv7:
[ERROR] "_OBJC_CLASS_$_GLKView", referenced from:
[ERROR] objc-class-ref in GoogleMobileAds(flat-armv7)
[ERROR] "_kCVPixelBufferPixelFormatTypeKey", referenced from:
[ERROR] l5704 in GoogleMobileAds(flat-armv7)
[ERROR] (maybe you meant: _str_kCVPixelBufferPixelFormatTypeKey_00)
[ERROR] "_kCVImageBufferYCbCrMatrix_ITU_R_601_4", referenced from:
[ERROR] l4155 in GoogleMobileAds(flat-armv7)
[ERROR] "_GLKMatrix4Identity", referenced from:
[ERROR] l4149 in GoogleMobileAds(flat-armv7)
[ERROR] l4160 in GoogleMobileAds(flat-armv7)
[ERROR] (maybe you meant: _str_GLKMatrix4Identity_00)
[ERROR] "_CVOpenGLESTextureGetTarget", referenced from:
[ERROR] l4158 in GoogleMobileAds(flat-armv7)
[ERROR] "_CVOpenGLESTextureCacheCreate", referenced from:
[ERROR] l4157 in GoogleMobileAds(flat-armv7)
[ERROR] "_CFHostStartInfoResolution", referenced from:
[ERROR] l3806 in GoogleMobileAds(flat-armv7)
[ERROR] "_CVBufferGetAttachment", referenced from:
[ERROR] l4155 in GoogleMobileAds(flat-armv7)
[ERROR] (maybe you meant: _str_CVBufferGetAttachment_00, _str_CVBufferGetAttachments_00 )
[ERROR] "_OBJC_CLASS_$_CMMotionManager", referenced from:
[ERROR] objc-class-ref in GoogleMobileAds(flat-armv7)
[ERROR] "_kCVImageBufferYCbCrMatrixKey", referenced from:
[ERROR] l4155 in GoogleMobileAds(flat-armv7)
[ERROR] (maybe you meant: _str_kCVImageBufferYCbCrMatrixKey_00)
[ERROR] "_CVPixelBufferGetWidth", referenced from:
[ERROR] l4155 in GoogleMobileAds(flat-armv7)
[ERROR] (maybe you meant: _str_CVPixelBufferGetWidthOfPlane_00, _str_CVPixelBufferGetWidth_00 )
[ERROR] "_CFHostCreateWithName", referenced from:
[ERROR] l3806 in GoogleMobileAds(flat-armv7)
[ERROR] "_SecCertificateCreateWithData", referenced from:
[ERROR] l778 in GoogleMobileAds(flat-armv7)
[ERROR] "_CVOpenGLESTextureCacheCreateTextureFromImage", referenced from:
[ERROR] l4158 in GoogleMobileAds(flat-armv7)
[ERROR] "_CVOpenGLESTextureGetName", referenced from:
[ERROR] l4158 in GoogleMobileAds(flat-armv7)
[ERROR] "_SecTrustCreateWithCertificates", referenced from:
[ERROR] l778 in GoogleMobileAds(flat-armv7)
[ERROR] "_CVOpenGLESTextureCacheFlush", referenced from:
[ERROR] l4156 in GoogleMobileAds(flat-armv7)
[ERROR] "_CVPixelBufferGetHeight", referenced from:
[ERROR] l4155 in GoogleMobileAds(flat-armv7)
[ERROR] (maybe you meant: _str_CVPixelBufferGetHeight_00, _str_CVPixelBufferGetHeightOfPlane_00 )
[ERROR] "_CFHostGetAddressing", referenced from:
[ERROR] l3806 in GoogleMobileAds(flat-armv7)
[ERROR] "_SecKeyRawVerify", referenced from:
[ERROR] l780 in GoogleMobileAds(flat-armv7)
[ERROR] "_SecTrustEvaluate", referenced from:
[ERROR] l778 in GoogleMobileAds(flat-armv7)
[ERROR] "_SecTrustCopyPublicKey", referenced from:
[ERROR] l778 in GoogleMobileAds(flat-armv7)
[ERROR] ld: symbol(s) not found for architecture armv7
[ERROR] clang: error: linker command failed with exit code 1 (use -v to see invocation)

Related

cannot run mysqld on fedora 36 after enabling the service with systemctl

I am not able to run mysqld, the socket connects without problem but there are some issue creating configurations files:
joy#fedora /]$ mysqld
2022-11-12 12:38:24 0 [Note] mysqld (mysqld 10.5.16-MariaDB) starting as process 4650 ...
2022-11-12 12:38:24 0 [Warning] Can't create test file /var/lib/mysql/fedora.lower-test
mysqld: Can't create file '/var/log/mariadb/mariadb.log' (errno: 13 "Permission denied")
2022-11-12 12:38:24 0 [ERROR] mysqld: File '/var/lib/mysql/aria_log_control' not found (Errcode: 13 "Permission denied")
2022-11-12 12:38:24 0 [ERROR] mysqld: Got error 'Can't open file' when trying to use aria control file '/var/lib/mysql/aria_log_control'
2022-11-12 12:38:24 0 [ERROR] Plugin 'Aria' init function returned error.
2022-11-12 12:38:24 0 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
2022-11-12 12:38:24 0 [ERROR] InnoDB: The innodb_system data file 'ibdata1' must be writable
2022-11-12 12:38:24 0 [ERROR] InnoDB: The innodb_system data file 'ibdata1' must be writable
2022-11-12 12:38:24 0 [ERROR] Plugin 'InnoDB' init function returned error.
2022-11-12 12:38:24 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2022-11-12 12:38:24 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-11-12 12:38:24 0 [ERROR] Could not open mysql.plugin table: "Table 'mysql.plugin' doesn't exist". Some plugins may be not loaded
2022-11-12 12:38:24 0 [ERROR] Failed to initialize plugins.
2022-11-12 12:38:24 0 [ERROR] Aborting
When running with superuser:
[joy#fedora /]$ sudo mysqld
2022-11-12 12:41:13 0 [Note] mysqld (mysqld 10.5.16-MariaDB) starting as process 4679 ...
mysqld: Please consult the Knowledge Base to find out how to run mysqld as root!
2022-11-12 12:41:13 0 [ERROR] Aborting
the problema was solved connecting as root with the command mariadb -u root

java.lang.AssertionError: assertion failed:

[error] (run-main-0) java.lang.AssertionError: assertion failed:
[error] java.lang.AssertionError: assertion failed:
[error] at scala.Predef$.assert(Predef.scala:170)
[error] at chisel3.core.assert$.apply(Assert.scala:76)
[error] at chisel3.iotesters.setupVerilatorBackend$.apply(VerilatorBackend.scala:262)
[error] at chisel3.iotesters.Driver$$anonfun$execute$1$$anonfun$apply$mcZ$sp$1.apply$mcZ$sp(Driver.scala:56)
[error] at chisel3.iotesters.Driver$$anonfun$execute$1$$anonfun$apply$mcZ$sp$1.apply(Driver.scala:39)
[error] at chisel3.iotesters.Driver$$anonfun$execute$1$$anonfun$apply$mcZ$sp$1.apply(Driver.scala:39)
[error] at logger.Logger$$anonfun$makeScope$1.apply(Logger.scala:138)
[error] at scala.util.DynamicVariable.withValue(DynamicVariable.scala:58)
[error] at logger.Logger$.makeScope(Logger.scala:136)
[error] at chisel3.iotesters.Driver$$anonfun$execute$1.apply$mcZ$sp(Driver.scala:39)
[error] at chisel3.iotesters.Driver$$anonfun$execute$1.apply(Driver.scala:39)
[error] at chisel3.iotesters.Driver$$anonfun$execute$1.apply(Driver.scala:39)
[error] at scala.util.DynamicVariable.withValue(DynamicVariable.scala:58)
[error] at chisel3.iotesters.Driver$.execute(Driver.scala:38)
[error] at chisel3.iotesters.Driver$.execute(Driver.scala:100)
[error] at mnist.FC2Main$.delayedEndpoint$mnist$FC2Main$1(FC2Main.scala:8)
[error] at mnist.FC2Main$delayedInit$body.apply(FC2Main.scala:7)
[error] at scala.Function0$class.apply$mcV$sp(Function0.scala:34)
[error] at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
[error] at scala.App$$anonfun$main$1.apply(App.scala:76)
[error] at scala.App$$anonfun$main$1.apply(App.scala:76)
[error] at scala.collection.immutable.List.foreach(List.scala:392)
[error] at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)
[error] at scala.App$class.main(App.scala:76)
[error] at mnist.FC2Main$.main(FC2Main.scala:7)
[error] at mnist.FC2Main.main(FC2Main.scala)
[error] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[error] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[error] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[error] at java.lang.reflect.Method.invoke(Method.java:498)
[error] Nonzero exit code: 1
[error] (Test / runMain) Nonzero exit code: 1
[error] Total time: 20041 s, completed Jan 15, 2019 3:04:24 AM
[error] (run-main-0) java.lang.AssertionError: assertion failed:
This error shows up when I was trying to run a big Chisel program. If the calculation of the program is smaller, it doesn't show up.
Basically, my code calculates the multiplications of a few matrices.
I increased the sbt memory to the most and deleted the temporary files before running the code.
It would be helpful if you could put the stack trace into your original post as an edit like so:
[error] (run-main-0) java.lang.AssertionError: assertion failed:
[error] java.lang.AssertionError: assertion failed:
[error] at scala.Predef$.assert(Predef.scala:170)
[error] at chisel3.core.assert$.apply(Assert.scala:76)
[error] at chisel3.iotesters.setupVerilatorBackend$.apply(VerilatorBackend.scala:262)
[error] at chisel3.iotesters.Driver$$anonfun$execute$1$$anonfun$apply$mcZ$sp$1.apply$mcZ$sp(Driver.scala:56)
In any case, it's pointing to this line: https://github.com/freechipsproject/chisel-testers/blob/8a737012f3c93dd41a3a9e120eebfc07ba541ebf/src/main/scala/chisel3/iotesters/VerilatorBackend.scala#L262
That suggests to me that the Verilator compilation is failing. Do you have other stuff being printed? Perhaps something like:
/bin/sh: 1: verilator: not found
If that is the case, then you don't have verilator installed, here are the instructions for Linux: https://github.com/freechipsproject/chisel3#ubuntu-like-linux

mysql server is getting aborted when trying to start

2017-04-14T13:48:19.151793Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2017-04-14T13:48:19.167419Z 0 [ERROR] InnoDB: Unable to create temporary file; errno: 2
2017-04-14T13:48:19.183044Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2017-04-14T13:48:19.183044Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
2017-04-14T13:48:19.183044Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2017-04-14T13:48:19.183044Z 0 [ERROR] Failed to initialize plugins.
2017-04-14T13:48:19.183044Z 0 [ERROR] Aborting
This is the error shown when i tried to start my MySQL57 server. Tried to fix the error my setting by adding the following in my.ini file:
explicit_defaults_for_timestamp = 1
Still the server gets aborted. Can anyone help me fixing this?

Admob Robovm Eclipse build with error : Undefined symbols for architecture armv7

I'm intergrating admob binding for my robovm-libgdx project at github : https://github.com/BlueRiverInteractive/robovm-ios-bindings/tree/master/admob
by follow this document: https://github.com/libgdx/libgdx/wiki/Admob-in-libgdx#ios-setup-robovm
In debug with devices step, i got an error:
6/20/14 10:02:57 AM: [ERROR] Undefined symbols for architecture armv7:
6/20/14 10:02:57 AM: [ERROR] "_, referenced from:
6/20/14 10:02:57 AM: [ERROR] l001 in libadmob.a(GADGestureUtil.o)
6/20/14 10:02:57 AM: [ERROR] "_SCNetworkReachabilityGetFlags", referenced from:
6/20/14 10:02:57 AM: [ERROR] l001 in libadmob.a(GADGestureUtil.o)
6/20/14 10:02:57 AM: [ERROR] "_OBJC_CLASS_$_MMessageComposeViewController", referenced from:
6/20/14 10:02:57 AM: [ERROR] objc-class-ref in libadmob.a(GADOpener.o)
6/20/14 10:02:57 AM: [ERROR] "_OBJC_CLASS_$_MFMailComposeViewController", referenced from:
6/20/14 10:02:57 AM: [ERROR] objc-class-ref in libadmob.a(GADOpener.o)
6/20/14 10:02:57 AM: [ERROR] "_SCNetworkReachabilityCreateWithName", referenced from:
6/20/14 10:02:57 AM: [ERROR] -[GADNetworkChecker startNetworkChecking] in libadmob.a(GADNetworkChecker.o)
6/20/14 10:02:58 AM: [ERROR] "_OBJC_CLASS_$_CTTelephonyNetworkInfo", referenced from:
6/20/14 10:02:58 AM: [ERROR] objc-class-ref in libadmob.a(GADDevice.o)
6/20/14 10:02:58 AM: [ERROR] "_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:
6/20/14 10:02:58 AM: [ERROR] -[GADNetworkChecker stopNetworkChecking] in libadmob.a(GADNetworkChecker.o)
6/20/14 10:02:58 AM: [ERROR] "_SCNetworkReachabilityScheduleWithRunLoop", referenced from:
6/20/14 10:02:58 AM: [ERROR] -[GADNetworkChecker startNetworkChecking] in libadmob.a(GADNetworkChecker.o)
6/20/14 10:02:58 AM: [ERROR] "_SCNetworkReachabilitySetCallback", referenced from:
6/20/14 10:02:58 AM: [ERROR] -[GADNetworkChecker startNetworkChecking] in libadmob.a(GADNetworkChecker.o)
6/20/14 10:02:59 AM: [ERROR] ld: symbol(s) not found for architecture armv7
6/20/14 10:02:59 AM: [ERROR] clang: error: linker command failed with exit code 1 (use -v to see invocation)
6/20/14 10:02:59 AM: [ERROR] Build fail
I need you help for resolve it. Thank you!
i've solved this problem with adding three more frameworks (MessageUI, SystemConfiguration, CoreTelephony) - for now my frameworks in robovm.xml looks like:
<frameworks>
<framework>UIKit</framework>
<framework>OpenGLES</framework>
<framework>QuartzCore</framework>
<framework>CoreGraphics</framework>
<framework>OpenAL</framework>
<framework>AudioToolbox</framework>
<framework>AVFoundation</framework>
<framework>MessageUI</framework>
<framework>SystemConfiguration</framework>
<framework>CoreTelephony</framework>
</frameworks>

mysql: can't change tmpdir to anything except /tmp

I create /mysqltmp directory as a root user and give it the same permissions as the /tmp directory (chmod 1777 /mysqltmp). But when I start mysql, service fails to start and I get the following error in logs:
/usr/sbin/mysqld: Can't create/write to file '/mysqltmp/ib9AeHFf' (Errcode: 13)
140417 9:46:46 InnoDB: Error: unable to create temporary file; errno: 13
140417 9:46:46 [ERROR] Plugin 'InnoDB' init function returned error.
140417 9:46:46 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
140417 9:46:46 [ERROR] Unknown/unsupported storage engine: InnoDB
140417 9:46:46 [ERROR] Aborting
Error 13 is "Permission denied".
MySQL server version is 5.5.35 and OS is Ubuntu 12.04.4.