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.
Hi all. Im using NetBeans 6.5 to do some C/C++ programs. The error is that in FreeBSD cant make the make works fine, i have tried changing it for gmake but it didnt work. Here is the output Running "/usr/bin/make -f Makefile CONF=Debug" in /root/NetBeansProjects/Application_1 /usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf Error expanding embedded variable. *** Error code 2 Stop in /root/NetBeansProjects/Application_1. Build failed. Exit value 1. I have probed the netbeans 6.5 from the freebsd ports systems and netbeans plattforfm independent from the downloads page obtaining the same result.
What result do you get if you try building from command line? I believe Mac OS is derived from FreeBSD so it is a bit of surprise if it doesn't work on FreeBSD. It works fine on Macs. I'm looking for a system I can test on......
From Leonardo The point is: If i change from the config make (/usr/bin/make) by /usr/local/bin/gmake all works fine. But this changes i cant do make it permanent. (at least in freebsd) with linux there is no problem becouse make works pretty.
Here is what I understand so far: Doesn't work with /usr/bin/make Does work with /usr/local/bin/gmake It looks like /usr/bin/make doesn't work with our generated makefiles. From searching the web it seems standard make on FreeBSD is not compatible with GNU make and that is causing the problems and is also the reason why gmake is available on FreeBSD. The fix is to change the tool-chain to use gmake instead of standard make. Go to Options->C/C++ and type /usr/local/bin/gmake into the Make command. Then gmake will be used instead of make.
Actually the issue is that netbeans does not save settings. Just change /usr/bin/make to /usr/local/bin/gmake and restart netbearns. You'll see settings changed back to /usr/bin/make. As a workaround for FreeBSD users, create a link to gmake from /usr/bin as follows: cd /usr/bin && ln -s /usr/local/bin/gmake gmake Then netbeans will find and use /usr/bin/gmake. Not a clean fix, yet seems working fine. (And looking at internet forums, it seems I'm not the only one using it.)