Problem with tutorial

Home Forums OpenEars Problem with tutorial

Viewing 15 posts - 1 through 15 (of 15 total)

  • Author
    Posts
  • #1022114
    rkrausse
    Participant

    I am following the ‘Offline speech recognition” tutor. I add the required frameworks to my project but then I add the LanguageModelGenerator.h to the import, I get a compiler error.

    #import <OpenEars/LanguageModelGenerator.h> it returns error: file not found.

    I added the path of the framework to the Framework Search Paths but still nothing. Not sure I have the path correctly set. What should it be pointing to? What are the Unix Executable Files? I know a link but should it be pointing to that? Or the header folder under the ‘Versions/A’ folder?

    Thanks
    Ralph Krausse

    #1022121
    Halle Winkler
    Politepix

    Hi Ralph,

    Thanks for your new topic. Can you copy and paste the full error that is shown in Xcode? You shouldn’t ever add a path to Framework Search Path or for example change recursion settings there. There is an Xcode bug that can result in having to fix an existing Framework Search path, but the most that is ever needed is to look at the path that is already in there and remove any characters from it which could be causing it to be unusable by the project. The underlying cause is described in this tutorial step:

    Inside your downloaded OpenEars distribution there is a folder called “Framework”. Drag that folder into your app project in Xcode. Make absolutely sure that in the add dialog “Create groups for any added folders” is selected and NOT “Create folder references for any added folders” because the wrong setting here will prevent your app from working. If you are using Xcode 5 with a build number of 5A1413 or later, it has a bug which results in frameworks linked by reference being changed to link at incorrect URL paths, so it is necessary for you to also check the box that says “Copy items into destination group’s folder (if needed)”, or you may receive errors that header files can’t be found. If you receive this kind of error with Xcode 5, it means that your Framework Search Path for the added frameworks has been changed to an invalid URL, so you may have to open that Build Setting for your app target and change it back to a correct path.

    I would start fresh and follow the instructions in this path, and start out by not making any changes to any project build settings since it is normally not needed. If you still receive the error under that circumstance, look in Framework Search Path and show me what it says in there.

    #1022122
    rkrausse
    Participant

    Can you send me a email account that I can send you an image that will show my settings?

    In short, I did the above (at least I think I did and double checked it)

    #1022123
    Halle Winkler
    Politepix

    OK, send me a note via the contact form at https://www.politepix.com/contact and I can send you an address to send a screenshot to (we’ll probably keep discussing it here).

    #1022130
    Halle Winkler
    Politepix

    OK, I have the screenshot – go ahead and put the questions from the email here in the support topic so I can answer them for you, thanks.

    #1022132
    rkrausse
    Participant

    Thanks. So my questions. In the directions, you said move the framework folder (your stuff) to the xcode framework folder. That would place a folder called framework under framework so I assume you mean the contents of your framework folder IN the framework folder of XCode. So to exclude other issues, I just moved OpenEars framework over. 2nd question, I just see the Header folders in xcode, see the blue box. If I look at your download in finder, I see there is a Header, OpenEars and Resources which are all Unix Executable Files, I think these are just links to other places. There is also a Version folder with folders underneath that.

    You can see my path of my project called VRTestXCode and what is underneath it.

    Sorry to be a pain.

    thx
    Ralph

    #1022133
    Halle Winkler
    Politepix

    Hi,

    From the tutorial:

    Inside your downloaded OpenEars distribution there is a folder called “Framework”. Drag that folder into your app project in Xcode.

    Is this the line which is causing confusion?

    #1022136
    rkrausse
    Participant

    I sent you another image. I have the Framework (your folder) off of the project root. I still get the same error.

    #1022137
    Halle Winkler
    Politepix

    Hi,

    I still don’t really understand the instructions you have followed in making your app – can you let me know where this statement comes from: “you said move the framework folder (your stuff) to the xcode framework folder. That would place a folder called framework under framework”?

    The instructions don’t really correspond to this statement and I’m pretty sure that the issue is just that something got off track with the tutorial process when you started the first time so that a wrong step was taken that didn’t leave the project set up quite right, and the troubleshooting steps you’ve taken with making changes to Framework Search Path (when that is usually set automatically by the tutorial install process) have left the project in an unclear state.

    I think the best approach here is to start fresh with an app where nothing has been done yet and follow the tutorial very closely, taking plenty of time with the instructions. Here is what it says in the tutorial again about how the framework is moved into the project:

    Inside your downloaded OpenEars distribution there is a folder called “Framework”. Drag that folder into your app project in Xcode.

    This has been known to work for years, so I think it’s just a case for getting a fresh start and taking it a little more slowly with the tutorial, rather than trying to extensively troubleshoot the broken app.

    #1022138
    rkrausse
    Participant

    I agree, it is something I am doing.

    You said – ‘Inside your downloaded OpenEars distribution there is a folder called “Framework”. Drag that folder into your app project in Xcode.’

    I did that as the image I sent you shows. Then I added the import statement and compiled.

    That is ALL I did….

    Is is possible to have a the page have a zip file with a working sample?

    #1022139
    Halle Winkler
    Politepix

    Is is possible to have a the page have a zip file with a working sample?

    Sure, there is a sample app with the main distribution in the folder called OpenEarsSampleApp.

    #1022140
    rkrausse
    Participant

    Thanks. So I brought that up in xcode and did a compile. I get Slt/Slt.h file not found…. Could there be something wrong with XCode. I would assume this would compile and run….

    #1022141
    Halle Winkler
    Politepix

    I think you’ve probably moved the OpenEars framework folder in the process of your troubleshooting. Get rid of the old distribution folder entirely, download a new one from https://www.politepix.com/openears, unzip it, open the sample app, it will run. This is known to compile and run right out of the box without any issues, so be sure to start 100% fresh here.

    #1022142
    rkrausse
    Participant

    Success! I guess I did change something in the old download. The sample worked find and I created a new project, dragged in the folder, added my #import and it compiled.

    Thanks and sorry for being a pain. I appreciate all the help you have given me.

    #1022143
    Halle Winkler
    Politepix

    Super! All’s well that ends well.

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.