As I run a command line tool from my Carbon application, I always have this message in (console) logs: "No such file or directory".
The cli application actually runs and does what it's supposed to do, but I still don't know why I'm getting "No such file or directory".
Carbon app is universial, ppc and i386, SDK 10.4 in Xcode 3.2.6. The command line tool is intel only. It is a Foundation tool and it's a ObjC/C combo, SDK 10.6 and has dependencies on few MacPorts libraries. If those libraries/frameworks are not present on the machine, in opt/local then in fact the tool failes to run.
How can I avoid this message and how can I test if the tool did run?
The cli application actually runs and does what it's supposed to do, but I still don't know why I'm getting "No such file or directory".
Carbon app is universial, ppc and i386, SDK 10.4 in Xcode 3.2.6. The command line tool is intel only. It is a Foundation tool and it's a ObjC/C combo, SDK 10.6 and has dependencies on few MacPorts libraries. If those libraries/frameworks are not present on the machine, in opt/local then in fact the tool failes to run.
How can I avoid this message and how can I test if the tool did run?
Code:
if ((processId = fork()) == 0) {
char *argv[paramCnt+2];
argv[0] = appPathName;
for (i=0; allParams[i] && i<paramCnt; i++) {
argv[i+1] = allParams[i];
}
argv[i+1] = NULL;
if (execv(appPathName, argv) < 0) {
perror ("execv error");
}
}
else if (processId < 0) {
perror("fork error");
}
else {
return (0);
}
Last edited: