Re: tutorial for netbeans and code-blocks



Murray Cumming escribió:
On Tue, 2008-10-21 at 18:47 +0200, Martin (OpenGeoMap) wrote:
Germán Diago escribió:
I read the netbeans tutorial and made a script to get the cflags from
gtkmm with the intention to
fill in the code assistance directories. It seems that with that
format does not work. I don't know if
I'm doing anything wrong. Could anyone tell me if there is a simpler
way than doing  every thing by
hand? Thanks in advance.


take care of the last space.

path;path2

after path2 we need have nothing.
regards.

I'm sorry, but I didn't understand any part of these last two emails.
Maybe you meant to attach some script that we should look at.

Yes.

Netbeans to codecompletion need you add the header files by hand. We have in netbeans a button to add header... This task every time to every header...
But we can add that headers like this:
C:/GTK/include/gtkmm-2.4;C:/GTK/lib/gtkmm-2.4/include;C:/GTK/include/glibmm-2.4;C:/GTK/lib/glibmm-2.4/include
path;path;path;...

Then i write a ruby script to create that text:

___________________

text=`pkg-config --cflags gtkmm-2.4`

my_array=text.split(' ')

final_text=""
my_array.each do |include|
 if include=~/-I(.+)/
   final_text=final_text+$1+";"
 end
end

#delete last ';' char
final_text=final_text.chop
puts  final_text

___________________

ouputs:

C:/GTK/include/gtkmm-2.4;C:/GTK/lib/gtkmm-2.4/include;C:/GTK/include/glibmm-2.4;C:/GTK/lib/glibmm-2.4/include;C:/GTK/include/giomm-2.4;C:/GTK/lib/giomm-2.4/include;C:/GTK/include/gdkmm-2.4;C:/GTK/lib/gdkmm-2.4/include;C:/GTK/include/pangomm-1.4;C:/GTK/include/atkmm-1.6;C:/GTK/include/gtk-2.0;C:/GTK/include/sigc++-2.0;C:/GTK/lib/sigc++-2.0/include;C:/GTK/include/glib-2.0;C:/GTK/lib/glib-2.0/include;C:/GTK/lib/gtk-2.0/include;C:/GTK/include/cairomm-1.0;C:/GTK/include/pango-1.0;C:/GTK/include/cairo;C:/GTK/include/libpng12;C:/GTK/include/atk-1.0

...

but you have take care of not have spaces in that text else don´t compile and you don´t know why. I had problems with the last file because i had an space but i don´t see it. like Germán have a problem perhaps was for that...


Other interesting things to do is create a netbeans project file. It´s only a XML file like code-blocks projects.

I solve all problems in wiki already. If people find more things to add or whatever tell it to this list:
http://wiki.netbeans.org/GTKMMApplicationInNetBeans

Regards.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]