Tag: robovm

RoboVM应用程序在ptr.get()上崩溃

是否有一些需要获得ptr.get()工作的魔法? 出于某种原因,下面的代码总是崩溃我的应用程序: AudioStreamBasicDescription asbd = new AudioStreamBasicDescription(mSampleRate, mFormatID, mFormatFlags, mBytesPerPacket, mFramesPerPacket, mBytesPerFrame, mChannelsPerFrame, mBitsPerChannel, 0); AudioFilePtr outAudioFile = new AudioFilePtr(); File f = File.createTempFile("ptt", ".caf"); AudioFileError afe = AudioFile.createWithURL(new NSURL(f), 1667327590, asbd, 1, outAudioFile); System.out.println(afe.name()); System.out.println(outAudioFile.get()); 它成功返回从AudioFile.createWithURL没有错误(错误代码:否),但一旦我尝试获取Java实例崩溃。 在另一段代码中,我也遇到了同样types的崩溃,我将一个AudioQueuePtr实例化为queueptr ,并将其传递给AudioQueue.newInput并尝试调用queueptr.get() 。 有什么我在这里失踪? java中没有堆栈跟踪,但这里是XCode Organizer设备日志: Incident Identifier: 2EEFF4F0-9031-4798-80E7-69F55BB70576 CrashReporter Key: 08d7c27d21cb15553295bbae1b2aa2040e94b517 Hardware Model: iPhone3,1 Process: iOS_RVM_NN [1972] […]

iOS模拟器:不能硬链接复制。 我的文件系统有错误的path?

我正在使用Xcode版本6.1(6A1052d) 我正试图在模拟器上启动一个应用程序。 第一次它总是正常工作。 如果我想再次启动,则出现错误(请参阅下面的日志)。 然后在iOS模拟器我“重置内容和设置”,我可以再次成功启动。 鉴于错误日志,我认为它必须有一个错误的path。 问题是我与Mac文件系统和path链接不好,所以你的帮助将不胜感激。 编辑 :这是info.plist.xml(由LibGDX生成,如果它很重要) <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>CFBundleDevelopmentRegion</key> <string>en</string> <key>CFBundleDisplayName</key> <string>${app.name}</string> <key>CFBundleExecutable</key> <string>${app.executable}</string> <key>CFBundleIdentifier</key> <string>${app.id}</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>${app.name}</string> <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> <string>${app.version}</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> <string>${app.build}</string> <key>LSRequiresIPhoneOS</key> <true/> <key>UIViewControllerBasedStatusBarAppearance</key> <false/> <key>UIStatusBarHidden</key> <true/> <key>UIDeviceFamily</key> <array> <integer>1</integer> <integer>2</integer> </array> <key>UIRequiredDeviceCapabilities</key> <array> […]

libgdx iOS的robovm没有声音未知的extaudio

把我的头发撕掉试图让我的99%完成游戏的声音工作。 我正在使用libgdx 1.6.1 eclipse juno和eclipse的最新robovm插件,我正在testing我的iPhone 4s(我有苹果开发状态)。 我正在使用MP3,但已转换为ogg来testing我的问题。 不幸的是,同样的问题回来了,所以我切换回MP3的。 声音在基于相同核心代码的桌面和Android版本中运行良好。 我得到的错误是以下内容: 2015-08-03 20:24:51.953 IOSLauncher [2219:286610] OAL错误: – [OALAudioFile initWithUrl:reduceToMono:]:无法打开url文件:/// private / var / mobile / Containers / Bundle / Application / AEB5D1A2 -B3C7-41A6-9414-351CE311EE47 / IOSLauncher.app / sounds / g1.mp3(错误代码0x7768743f:未知的extaudio错误)2015-08-03 20:24:51.955 IOSLauncher [2219:286610] OAL错误: – [OALSimpleAudio internalPreloadEffect:reduceToMono:]:无法加载效果/private/var/mobile/Containers/Bundle/Application/AEB5D1A2-B3C7-41A6-9414-351CE311EE47/IOSLauncher.app/sounds/g1.mp3 任何帮助将不胜感激,我可以提供更多的信息,如果需要! 谢谢 菲尔

是否可以从RoboVM访问OpenGL ES而不使用LibGDX?

不使用LibGDX ,可以从RoboVM访问iOS上的OpenGL ES吗? 如果是这样,有没有有用的参考? 我能find的唯一的事情就是2年前的这个超级简单的演示: http://robovm.com/ios-opengles-in-java-on-robovm/ 但是除了glClearColor和glClear之外,它不提供任何函数。 虽然,苹果GLKit框架似乎已经实施。 我只是无法find所有的实际glWhatever(…)function…

带有RoboVM的iOS的Libgdx – 在IOSGLES20.init处出现不满意的链接错误

尝试使用RoboVM将我的LibGDX游戏移植到iOS。 运行模拟器的应用程序时,我得到这个错误: Exception in thread "main" java.lang.UnsatisfiedLinkError: at com.badlogic.gdx.backends.iosrobovm.IOSGLES20.init(Native Method) at com.badlogic.gdx.backends.iosrobovm.IOSGLES20.<init>(IOSGLES20.java) at com.badlogic.gdx.backends.iosrobovm.IOSApplication.didFinishLaunching(IOSApplication.java) at com.badlogic.gdx.backends.iosrobovm.IOSApplication$Delegate.didFinishLaunching(IOSApplication.java) at org.robovm.cocoatouch.uikit.UIApplicationDelegate$Callbacks.didFinishLaunching(UIApplicationDelegate.java) at org.robovm.cocoatouch.uikit.UIApplication.UIApplicationMain(Native Method) at org.robovm.cocoatouch.uikit.UIApplication.main(UIApplication.java) at ***********

用libgdx为iOS(robovm)使用sqlite数据库

我有一个libgdx项目(Android),我在哪里使用SQLite数据库 。 我正在开发在iOS版本(robovm)相同的项目,我找不到任何关于iOS版本的SQLite或数据库。 是否有可能使用相同的SQLite数据库? 谢谢。