This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Lets assume the next example: 1. mkdir /export/home/tester/1 2. cd /export/home/tester/1 3. vi args.c ----------------------------------------- #include <stdio.h> #include <string.h> #include <stdlib.h> int main(int argc, char**argv) { int i; // Prints arguments printf("Arguments:\n"); for (i = 0; i < argc; i++) { printf("%i: %s\n", i, argv[i]); } return 0; } ----------------------------------------- 4. vi Makefile --------------------------------- args: args.c gcc -g -o args args.c ---------------------------------- 5. Start Netbeans 6. New project with existing Makefile 6.1 Project Name and Location set default(project location is ~/MakefileProject1) 6.2 Build actions: choose Working directory: /export/home/tester/1 Build command: make Output file: args 6.3 On "Source File Folders" add /export/home/tester/1 Click Finish. 7. Build project 8. Find executable file 'args'. It is placed in working dir(/export/home/tester/1/) not in project dir(~/MakefileProject1/). You can't run or debug the project because in all cases executable file is sought in project dir
The behavior is correct. Output file is correctly built in .../tester/l so you should type ...tester/l/out in the 'Output' field. Then it works.
Thomas, behaivor is correct from your point of view, not from user point of view. What user thinks: I am input working directory at this panel as first step, and it means all other fields I am filling here is connected with this working directory. It means Makefile used in Make command should be placed in working directory and Output file should be placed in working directory too. I still insist it is a bug and reopen it
We agreed to leave it as is and possible fix it in the future. I will add a bit more explanatory text to the panel and downgrade the bug. Added the following to the explanatory text: ...ct Folder (see previous panel). If Output is specified as a relative path, it is relative to the Project Folder (see previous panel).
The wizard has been totally redesigned and hopefully this is not an issue anymore. To minimize confusion the Build Result (former Output) now only accepts an absolute path.