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.

Bug 86064 - makefile-based projects output file is located in wrong place
Summary: makefile-based projects output file is located in wrong place
Status: RESOLVED INVALID
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Thomas Preisler
URL:
Keywords: USABILITY
Depends on:
Blocks:
 
Reported: 2006-09-28 15:42 UTC by alexandrov
Modified: 2006-11-11 03:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alexandrov 2006-09-28 15:42:38 UTC
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
Comment 1 Thomas Preisler 2006-09-28 17:46:10 UTC
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. 
Comment 2 Maria Tishkova 2006-09-29 07:38:10 UTC
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
Comment 3 Thomas Preisler 2006-10-03 20:44:28 UTC
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).
Comment 4 Thomas Preisler 2006-11-11 03:41:42 UTC
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.