gkaindl / ambi-tv

a flexible ambilight clone for embedded linux
296 stars 85 forks source link

Need help with executing the code #3

Closed cox181 closed 10 years ago

cox181 commented 10 years ago

Ok, so I have used the make command and I believe everything worked. But when I go into bin in the command line and then do ./ambi-tv to execute the file, it says failed to open configuration file '/etc/ambi-tv.conf'....and I noticed that there is no etc folder anywhere, so do I have to create it and then rename the sample.conf to ambi-tv.conf? Where should this file be located. Also, I cannot figure out how to run the executable file with the options.. So you have an option of -b/--button-gpio [i] but what do I actually type after ./ambi-tv to get the options to run? So pretty much what is the exact format for typing in the options? And do we need to make sure the selector switch is on the PAL setting?

gkaindl commented 10 years ago

You can either use the -f option to specify a different path for your config file (such as by pointing it to the included sample.conf) or copy the sample.conf to /etc/ambi-tv.conf.

The format for passing command line arguments is exactly the same as with any other program. As an example, run it as "bin/ambi-tv -f sample.conf -b 3". The arguments are all explained in the REAMDE doc.