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 180528 - 通过向导生成的C++项目无法正常编译
Summary: 通过向导生成的C++项目无法正常编译
Status: RESOLVED INVALID
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-10 01:40 UTC by ajunle
Modified: 2010-02-10 01:59 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 ajunle 2010-02-10 01:40:53 UTC
1、采用的是远程开发主机,文件系统共享模式,建立了远程路径和本地路径的映射。
2、C++工程是在已有代码和Makefile文件的基础上使用IDE向导生成的。

问题1、生成的项目可以使用重要文件下面的Makefile成功进行编译,但是使用*-Makefile.mk提示路径错误,发现编译的时候使用了一个本地路径,将项目属性的make工作目录改为远程的相对路径后可以正常编译,但是这个路径在向导中无法被指定为远程路径。
修改路径前失败:
/usr/bin/gmake -f nbproject/Makefile-Default.mk SUBPROJECTS= .build-conf
gmake[1]: Entering directory `/home/lijun/netbeans/Proparse'
cd Z\:/linuxwork/terminal/nproparse/build && /usr/bin/gmake -f Makefile
/bin/sh: line 0: cd: Z:/linuxwork/terminal/nproparse/build: No such file or directory
gmake[1]: *** [.build-conf] Error 1
gmake[1]: Leaving directory `/home/lijun/netbeans/Proparse'
gmake: *** [.build-impl] Error 2

修改路径后成功:
/usr/bin/gmake -f nbproject/Makefile-Default.mk SUBPROJECTS= .build-conf
gmake[1]: Entering directory `/home/lijun/netbeans/Proparse'
cd /home/lijun/linuxwork/terminal/nproparse/build && /usr/bin/gmake -f Makefile
gmake[2]: Entering directory `/home/lijun/linuxwork/terminal/nproparse/build'
/usr/bin/gmake  all-am
gmake[3]: Entering directory `/home/lijun/linuxwork/terminal/nproparse/build'
gmake[3]: Nothing to be done for `all-am'.
gmake[3]: Leaving directory `/home/lijun/linuxwork/terminal/nproparse/build'
gmake[2]: Leaving directory `/home/lijun/linuxwork/terminal/nproparse/build'
gmake[1]: Leaving directory `/home/lijun/netbeans/Proparse'
生成 成功 (总计时间: 1s)

问题2、使用重要文件下面的Makefile进行编译产生的代码异常提示会呈现蓝色下划线字体提示,并且可以通过鼠标单击直接链接到相关中,而使用*-Makefile.mk进行编译产生的代码异常提示和其他信息颜色相同,也无法通过鼠标单击链接到相关代码
Comment 1 Vladimir Voskresensky 2010-02-10 01:59:39 UTC
Please, open another issue using English to describe the problem
Thanks,
Vladimir.