LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-09-2010, 06:25 AM   #1
vikasmailsu
LQ Newbie
 
Registered: Mar 2010
Posts: 29

Rep: Reputation: 0
Netbean IDE 6.9


Hi Experts,
I am using Netbean IDE 6.9 to compile C++ code. I am new to this IDE. When I try to copile simple hello world application , I follow the follwoing steps:-

1)Created new sample c++ application whose project type "c++ application"
2) Add a c++ main file in which I just write hello world to be printed on screen.

3) then I click run->build main project, it pop up a window showing "Resolve missing native build tools", in which few field are missing like fortran compiler ,Make command,QMake command and CMake command. Also it disable the ok button.

Kindly help me in compling and running the simplke hello world application created in c++.

Thanks & Regards
Vikas
 
Old 08-10-2010, 12:16 AM   #2
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Which distro are you using?
 
Old 08-10-2010, 12:27 AM   #3
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

If you Google for this Netbeans error, you'll find a lot of different hits ...

... on a lot of different platforms (Linux, MacOS, Windows/Cygwin, etc)

... over a long period of time (at least as far back as 2006) ...

... but no resolution.

At least not that I can find.

Here are two links that might help:
http://www.techienuggets.com/Comments?tx=17672
http://markmail.org/message/7eahijmlqww42gye

Here are some more typical (i.e. "unhelpful") links:
http://markmail.org/message/veojxc7du3xjffew

PS:
If you haven't already done so, carefully review EVERYTHING on this page:
http://netbeans.org/community/releas...tructions.html

PPS:
Q: Have you verified that you can run "gcc" and/or "g++" from the command line?

Q: Did you try these suggestions:
Quote:
http://netbeans.org/community/releas...html#verifying

1. In the IDE, select Tools > Options and click the C/C++ button.

2. In the Build Tools tab, look at the Tool Collection list to see if your tool collection is listed.

3. Select the tool collection if it is listed, and check the paths to the tools. If the Base Directory path is incorrect, you may have made a mistake when setting your Path environment variable. Refer back to the instructions for setting your path in this document, and correct the path if necessary.

4. If the tool collection is not listed, click Restore Defaults. This will cause the IDE to rescan your environment to look for tools and the tool collection should be found if the Path environment variable is correct.

5. If you are still having an issue, you can try adding a new tool collection and specify the path to the tools, as follows:

a) Click Add, below the Tool Collection list.

b) Browse to the directory that contains the executables for the compilers, debugger, and make utility. This is usually a directory named bin.

c) Select the directory and click Open. The IDE should be able to determine the family of the tools and update the other fields in the dialog box appropriately. If not, an error is displayed.

d) If the tools are identified correctly, click OK in the Add Tool Collection dialog box. The new collection should be displayed in the list.

e) Select the new tool collection and click Default to make sure this tool collection is used automatically for new projects.
Q: Have you considered trying the Eclipse IDE instead ?

Last edited by paulsm4; 08-10-2010 at 01:09 AM.
 
Old 08-10-2010, 06:28 AM   #4
vikasmailsu
LQ Newbie
 
Registered: Mar 2010
Posts: 29

Original Poster
Rep: Reputation: 0
C++ plugin is installed. But when I follow the following steps:-

1. In the IDE, select Tools > Options and click the C/C++ button.

2. In the Build Tools tab, look at the Tool Collection list to see if your tool collection is listed.

3. Select the tool collection if it is listed, and check the paths to the tools. If the Base Directory path is incorrect, you may have made a mistake when setting your Path environment variable. Refer back to the instructions for setting your path in this document, and correct the path if necessary.

4. If the tool collection is not listed, click Restore Defaults. This will cause the IDE to rescan your environment to look for tools and the tool collection should be found if the Path environment variable is correct.

5. If you are still having an issue, you can try adding a new tool collection and specify the path to the tools, as follows:

a) Click Add, below the Tool Collection list.

b) Browse to the directory that contains the executables for the compilers, debugger, and make utility. This is usually a directory named bin.

But it display GNU in tools collection and few fields missing like fortran complier,Make command,QMake command and CMake command etc.

When I used step 4 , but it display error like "No complier sets were found in /home/user/netbeans-6.9.1/bin". How I can correct it.

Pleas help me in this regard

Thanks & Regards
Vikas
 
Old 08-10-2010, 10:50 AM   #5
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
From above:
Quote:
Q: Have you verified that you can run "gcc" and/or "g++" from the command line?
Please type these instructions on the command line; cut/paste the results:

Quote:
whereis gcc
Quote:
gcc --version
Quote:
whereis g++
Quote:
g++ --version
 
Old 08-10-2010, 11:05 PM   #6
vikasmailsu
LQ Newbie
 
Registered: Mar 2010
Posts: 29

Original Poster
Rep: Reputation: 0
yeah, I can run the gcc --version and g++ --version command in netbean6.9.1 directory where it is installed i.e at the comand prompt
 
Old 08-11-2010, 01:17 AM   #7
vikasmailsu
LQ Newbie
 
Registered: Mar 2010
Posts: 29

Original Poster
Rep: Reputation: 0
result of commands:-
1)
~/netbeans-6.9.1> gcc --version
gcc (SUSE Linux) 4.4.1 [gcc-4_4-branch revision 150839]
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

2)
~/netbeans-6.9.1> g++ --version
g++ (SUSE Linux) 4.4.1 [gcc-4_4-branch revision 150839]
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
Old 08-12-2010, 12:37 AM   #8
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Cool - thank you. At least we know:
a) you have valid compilers, and
b) Netbeans *should* (at least in theory ) be able to find them

Now...

You've already tried up through Step 4) above.

Please let us know how the rest of these steps go:
Quote:
http://netbeans.org/community/releas...tructions.html

...
5. If you are still having an issue, you can try adding a new tool collection and specify the path to the tools, as follows:

a) Click Add, below the Tool Collection list.

b) Browse to the directory that contains the executables for the compilers, debugger, and make utility. This is usually a directory named bin.

c) Select the directory and click Open. The IDE should be able to determine the family of the tools and update the other fields in the dialog box appropriately. If not, an error is displayed.

d) If the tools are identified correctly, click OK in the Add Tool Collection dialog box. The new collection should be displayed in the list.

e) Select the new tool collection and click Default to make sure this tool collection is used automatically for new projects.
 
Old 08-17-2010, 12:14 AM   #9
vikasmailsu
LQ Newbie
 
Registered: Mar 2010
Posts: 29

Original Poster
Rep: Reputation: 0
thax alot experts

I am able to sort out the problem .
 
Old 08-17-2010, 01:09 AM   #10
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Can you post the cause of the problem and the solution? That might help others in future who encounter the same problem.

Further please mark the thread as solved (if it's solved) using the thread tools just above the first post.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Netbean window opens but remains empty jaymoney Ubuntu 2 10-29-2007 08:32 PM
RH9 &9.0 Benq CDRW 4012a IDE + IDE CDROM - Install - how to cgtueno Linux - Hardware 6 05-30-2004 02:43 PM
netbean or eclipse saavik Programming 8 02-13-2004 07:04 AM
bad dmesg output when using ide-scsi boot parameter for IDE CD/DVD-ROM Locura Slackware 7 09-29-2003 02:36 AM
how2 make the kernel scan both PCI IDE and Mboard IDE channels? carboncopy Slackware 1 07-23-2003 03:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration