How to build timidity for iPhone or how pay midi - iphone

In my project I should use midi file, but iphone can't play them. I found out that Timidity++ library may be portable to iphone. I downloaded source and tried to build it use build_for_iphoneos.sh script, but always have error - "build_for_iphoneos.sh: line 119: ./configure: No such file or directory".
Any one, please help me!

The file ./configure is missing, check if the file really is missing or if it is in another directory.

Related

How to include FFMpeg library in iphone project

I am using iFrameExtractor to extract the frames. But when I clone the project I found that few files from ffmpeg framework was missing.
I tried hard to include the missing file, but was not able to do that..
Can anyone sort out this issue or give me the link of FrameExtractor class which contains all the lib files of FFMpeg.
I downloaded the project from this link
but when i open the project i gets the following missing file in the image.!
This are the missing files
Well you could have a look at the following links
FFMPEG Compiled Libraries And iOS
FFMPEG integration on iphone/ ipad project
And this tutorial
FFMPEG Integration

Compile existing Lua app using XCode for iOS5

We had a freelance developer that went rogue and now I'm left with a Lua-based app with no build files.
I have a degree in computer science, but have no experience with Lua, so I'm wondering how I can compile this (or any Lua app) with XCode for iOS.
It's a fairly simple app. It appears as though it loads in images for navigation and displays other images as content.
How do I tell XCode to compile Lua for iOS though? I have all the files in XCode and it's compiling, but clearly its ignoring the .lua files and compiling the application shell.
I have Lua downloaded by source and also installed it via MacPorts. I read that I need to link lua.h and luac.h but I don't see how to add it as a build target.
Any advise or direction would be much appreciated.
These are the files I have:
Source Code/
build.settings
Clinical_Data/
page4a_2_Anim.lua
page4a_3_Anim.lua
page4a_4_Anim.lua
page4a_5_Anim.lua
page4b_2_Anim.lua
page4b_3_Anim.lua
page4b_4_Anim.lua
page4d_2_Anim.lua
page4d_3_Anim.lua
page4d_4_Anim.lua
config.lua
home.lua
Icon-72.png
images/
<*.png files>
main.lua
manifests/
CaseStudy.manifest.txt
ClinicalData.manifest.txt
Experience.manifest.txt
Home.manifest.txt
NavElements.manifest.txt
Pathology.manifest.txt
References.manifest.txt
Restasis.manifest.txt
menu.lua
page4a_2_Anim.lua
page4a_3_Anim.lua
page4a_4_Anim.lua
page4a_5_Anim.lua
page4b_2_Anim.lua
page4b_3_Anim.lua
page4b_4_Anim.lua
page4d_2_Anim.lua
page4d_3_Anim.lua
page4d_4_Anim.lua
parser.lua
pdfs/
<*.pdf files>
section.lua
slide.lua
slideView.lua
ui.lua
It's probably linking lua from your installed lua code. There'll be a -llua in your link code. Somewhere in your source files there'll be a
luaL_loadfile(L, file);
command. This loads the lua file.
If it's corona it might have a different way to load - haven't used it.
If you need an IDE http://www.eclipse.org/koneki/ldt/ is superb. You can remote debug your app very easily.
It looks like it may be corona from anscamobile.com.
You can download a trial version from their site to see if it compiles.

Where does the iPhone simulator keep it's tmp/ files?

I'm running my iPhone app on the simulator to record my voice. It saves the recording to a .wav file, but I don't know where that is on my machine. Any help?
EDIT 1
Please keep in mind that I'm trying to 'simulate' the experience on a device. So my use of directories is crucial. See my output to the console:
EDIT 2
This is really strange. I just tried to record my voice with the Speak Here example project ('out of the box') and it worked (played back my voice and everything). Yet when I use the finder to try to locate the file... no deals! This is really bizarre. Any ideas?
Try this path /Users/<your_username>/Library/Application Support/iPhone Simulator/. In available dirs there look for /Applications/<your_app>/Documents.
UPDATE (27th Jan, 2013):
If you're OK with Terminal, install awesome ruby gem by Paul Samuels:
http://paul-samuels.com/blog/2012/08/19/ios-simulator-directory-command-line-tool/.
If you're not OK with Terminal, Paul has also created an excellent
workflow for Alfred 2.app: http://paul-samuels.com/blog/2013/01/24/sidir-alfred-workflow/.
If you're having hard time installing Paul's gem, follow this
tutorial: http://pragmaticstudio.com/blog/2010/9/23/install-rails-ruby-mac.
The location of simulator files has changed in Xcode 6. It's now at:
~/Library/Developer/CoreSimulator/Devices
See this answer for details:
https://stackoverflow.com/a/24291087/2410555
The easiest way in my experience is to output the value of NSTemporaryDirectory() somewhere in your code. That gives you the complete path to the /tmp folder for your user and application.

Analysing iPhone crash log

I got a crash log from a customer using my iPhone app and trying to get symbolic information out of, and failing spectacularly ... what I found online as instruction is this (to be executed on a Mac):
symbolicatecrash crash-log-file.crash symbol-file.dSYM > report-with-symbols.crash
crash-log-file.crash is the crash log obtained by the user via iTunes, a text file
symbol-file.dSYM is created by XCode each time you build the application and contains the symbols file (within a series of folders)
Unfortunately my attempts have all failed:
- with a version of symbolicatecrash I have (don't recall where & when I found it), the output is identical to the input file, without symbols
- with another version I found on my disk, I get this error message (note: I tried to point to the symbol file itself within the .dSYM tree - still no help):
/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources/symbolicatecrash failedstart.crash ScanBizCards.app.dSYM/Contents/Resources/DWARF/ScanBizCards > crashwithsymbols
Can't understand the output from otool ( -> '\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/usr\/bin\/otool -arch armv7 -l /Users/patrickq/Projects/icr/OCR/newOCR/build/Debug-iphonesimulator/ScanBizCards.app/ScanBizCards') at /Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources/symbolicatecrash line 301.
Help anyone?
I don't even mind doing the math myself for symbols but don't know how to open the symbols file ...
Patrick
symbolicatecrash is very buggy and try to do smart things to locate your binaries/dsym files using spotlight (mdfind). This line is the clue:
Can't understand the output from otool
( -> '\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/usr\/bin\/otool
-arch armv7 -l
/.../build/Debug-iphonesimulator/ScanBizCards.app/ScanBizCards')
Apparently, it found one of your developement build product (for the simulator) and used it to try to symbolicate a crashreport generated on the device. And it failed miserably, of course.
The exact same problem occurred to two different people at our company. I haven't investigated how the problem happens. I imagine this is quite rare, otherwise, such an enormous bug would have already been fixed. For the moment, I have only this very crude workaround:
Remove all your build folder mentioning this executable name (in your case ScanBizCards.app)
Remove the application from the simulator (I mean, all the incarnations of the application in the various versions of the simulator, like in ~/Library/Application Support/iPhone Simulator/4.3, ~/Library/Application Support/iPhone Simulator/3.2, ...)
This leaves you with the archived applications only. This time, symbolicatecrash can't find a wrong version and eventually find the correct one.
If I ever reproduce the problem, I will take some time to debug this horrible perl script.
I hope that helps.
I have the same issue pointed out by Frederic. To more completely fix the issue, search for sub getSymbolPathFor_dsymUuid in the symbolicatecrash script, and change the following line:
my $cmd = "mdfind \"com_apple_xcode_dsym_uuids == $myuuid\"";
Add this parameter after mdfind:
-onlyin /path/to/your/app/bundles
and use the directory where you are storing your archived bundles. This way, it will always find the correct version of your app. If you want to be extra safe, scroll down a bit to where it says:
my #spotLightSearchForExecutable = `mdfind $executable.app'; # To cover the case where the DSYM's and .app are no located in the same location.
And add the -onlyin /path/to/your/app/bundles as well. This path is only used when, as the comment on the above line states, symbolicatecrash cannot find your .app in the same folder as your .DSYM. Hopefully, if you store them both in the same folder, this should never be run, but if you have any doubts, it's better to be safe and do this too.
It seems that you are running symbolicatecrash for iPhone simulator debug symbols, while you need to pass the path to symbols for iPhone device build
If you use the "Build and Archive" feature from Xcode to distribute the app (to Apple Store or the user), you can drag the crash log to the organizer and let the IDE do symbolication.
Remember, you must have the exact version of the app and .DSYM. Recompiling the app generates a different .DSYM and it will not work.

Unable to get Three20 script working (ttmodule.py problem)

Forgive the newbie, but I have been searching for an answer for this for a week or so and starting to give up all hope.
I wanted to use the Three20 project to learn some more about iphone app dev.
I downloaded all the Three20 files via git and was using the script to place all the files in my latest project.
The following script:
python three20/src/scripts/ttmodule.py -p path/to/myProject.xcodeproj Three20
Keeps giving me the following error:
Ricks-Mac:three20 rickyfarr5$ python src/scripts/ttmodule.py -p ../iphonedev/radviewer/viewer/viewer.xcodeproj Three20
ERROR:root:Unable to open the project file at this path (is it readable?): ../iphonedev/radviewer/viewer/viewer.xcodeproj/project.pbxproj
ERROR:root:Unable to open the project file at this path (is it readable?): ../iphonedev/radviewer/viewer/viewer.xcodeproj/project.pbxproj
ERROR:root:Failed to get dependencies.
The project.pbxproj file does exist and is readable
Where am I going wrong?
Hope someone can help. Cheers. Rick.
(Using xcode 3.2.5, iOS4)
My bad.... Bad file path! D'oh!