From: Rui A. <co...@ph...> - 2002-06-18 15:00:07
|
Hello, I've been trying to get freenomad to work (command line tool, linux) but I have a problem I can't solve: If I keep a connection to /dev/parport0 in ecp_linux .cpp file, the program just doesn't work because I don't have such a device in /dev. I do have a /dev/parport though and if I change ecp_linux.cpp replacing "open("/dev/parport0", O_RDWR);" for open("/dev/parport", O_RDWR) and then compile, the program does run a bit further. The messages I get after this change are the following: =========================================== >i Initializing player... open parallel port: ok claim access #100 ERROR strerror says: "Invalid argument" close parport #100 ERROR strerror says: "Invalid argument" failed to initialize, try again? >i open parallel port #100 ERROR strerror says: "Device or resource busy" close parport failed to initialize, try again? > =================================== And it repeats "device or resource busy" from then on until I restart the program. Does anyone have any idea of what I'm doing wrong? (FYI, I downloaded the file freenomad-0.2-src.tar.gz, I'm using mandrake linux 8.2 on a compaq aramada 110 laptop). Thanks a lot for all the help in advance. -- Rui Alves [ | webmaster | php-db.com | ] |