google-code-export / gesture-recognition-toolkit

Automatically exported from code.google.com/p/gesture-recognition-toolkit
0 stars 0 forks source link

Hello World tutorial #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile in Xcode 4.6
2.
3.

What is the expected output? What do you see instead?
ERROR: Failed to load training data from file

What version of the product are you using? On what operating system?
OSX

Please provide any additional information below.
Probably a novice error since I'm new to C++ and Xcode, but when simply trying 
to compile the Hello world example, it builds correctly but get the error 
message in Xcode '[ERROR LCD]: loadDatasetFromFile(string filename) - could not 
open file!
ERROR: Failed to load training data from file'

Original issue reported on code.google.com by bac...@gmail.com on 9 Feb 2013 at 11:00

GoogleCodeExporter commented 9 years ago
You need to make sure you have the training dataset that accompanies the 
HelloWorld.cpp file (HelloWorldTrainingData.txt) in the Xcode build folder.  
This will be wherever Xcode places your application after it builds it, in my 
version of Xcode this is normally in:
ProjectFolder/DerivedData/NameOfProject/Build/Products/Debug

If you are having problems finding the folder that Xcode places your 
application in then you could simply place the HelloWorldTrainingData.txt file 
on your desktop and change the filepath of the file in the example code.  For 
example, on line 28 in HelloWorld.cpp where it says:

if( !trainingData.loadDatasetFromFile("HelloWorldTrainingData.txt") ){

change the file string to: "/Users/USERNAME/Desktop/HelloWorldTrainingData.txt"

This should fix this issue for you.

- Nick

Original comment by nickgill...@gmail.com on 11 Feb 2013 at 4:46