<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dalton Filho &#187; NetBeans</title>
	<atom:link href="http://www.daltonfilho.com/tag/netbeans/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.daltonfilho.com</link>
	<description></description>
	<lastBuildDate>Tue, 12 Oct 2010 02:42:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>wxWidgets on Windows using NetBeans 6.0 with MinGW + MSYS</title>
		<link>http://www.daltonfilho.com/2008/02/23/wxwidgets-on-windows-using-netbeans-60-with-mingw-msys/</link>
		<comments>http://www.daltonfilho.com/2008/02/23/wxwidgets-on-windows-using-netbeans-60-with-mingw-msys/#comments</comments>
		<pubDate>Sun, 24 Feb 2008 01:35:09 +0000</pubDate>
		<dc:creator>Dalton Filho</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[MinGW]]></category>
		<category><![CDATA[MSYS]]></category>
		<category><![CDATA[NetBeans]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[wxWidgets]]></category>

		<guid isPermaLink="false">http://www.daltonfilho.com/2008/02/23/wxwidgets-on-windows-using-netbeans-60-with-mingw-msys/</guid>
		<description><![CDATA[Setting up a wxWidgets project on Windows using NetBeans 6.0 is quite harder than doing the same on Linux, but if you want to be able to use the powerful features of NetBeans instead of smaller IDEs like wxDev-cpp, here is a quick guide to setup your environment.]]></description>
			<content:encoded><![CDATA[<p>Setting up a wxWidgets project on Windows using NetBeans 6.0 is quite harder than doing the same on Linux, but if you want to be able to use the powerful features of NetBeans instead of smaller IDEs like wxDev-cpp, here is a quick guide to setup your environment. The first thing you will need is to setup MinGW and MSYS to compile wxWidgets:</p>
<ol>
<li>Download and install <a title="MinGW download" href="http://sourceforge.net/projects/mingw/files_beta/">MinGW</a> if you don&#8217;t already have it. Add MinGW&#8217;s <code>bin</code> subdirectory to your <code>PATH</code> environment variable. Note that if you use Vista, you <em>must</em> override GCC&#8217;s utilities with their corresponding <a href="http://sourceforge.net/project/showfiles.php?group_id=2435&amp;package_id=82723">Vista builds</a>;</li>
<li>Download and install MSYS &#8211; you will need it to compile wxWidgets. Add its bin subdirectory to <code>PATH</code> as you did with MinGW;</li>
<li>Open the MSYS console and navigate to the directory where you extracted wxWidgets (or where the installation put the files from wxWidgets);</li>
<li>Create a directory for your build (<code>mkdir build-static-debug</code>) and navigate to it. You may want to use other names;</li>
<li>Run configure with your preferred options, which may include
<ul>
<li><code>--enable-debug</code> &#8211; enable debugging info</li>
<li><code>--enable-optimise</code> &#8211; create optimised code</li>
<li><code>--disable-shared</code> &#8211; create static libraries (use this unless you want to distribute wxWidgets dlls with your application)</li>
<li><code>--enable-unicode</code> &#8211; compile wxWidgets with unicode support</li>
</ul>
<p>When you are done choosing, enter the configure command. In my build, I used <code>../configure --enable-debug --disable-shared --enable-unicode</code>. After configure is done, it will output the basic options of your build</li>
<li>Run <code>make</code> to build wxWidgets. As this may take quite a while, you may consider doing 100 push-ups to burn the calories of that burrito you&#8217;ve just eaten while following this guide;</li>
<li>Remove object files with <code>rm *.o</code> (you&#8217;re not going to need them);</li>
<li>Run <code>make install</code> to install wxWidgets;</li>
</ol>
<p>This is it for compiling wxWidgets. Now you need to setup a C/C++ project on NetBeans to use what you&#8217;ve just compiled:</p>
<ol>
<li>First of all, make sure NetBeans recognizes your MinGW + MSYS setup. Go to <code>Tools --&gt; Options</code>, then select <code>C/C++</code>. Check if MinGW and MSYS bin subdirectories are listed on the current path list. Add them if they aren&#8217;t. <code>make</code> should be found inside MSYS while <code>gcc</code>, <code>g++</code> and <code>gdb</code> should be found inside MinGW;</li>
<li>Now that NetBeans recognizes your MinGW + MSYS setup, it&#8217;s time to create a new wxWidgets project. Go to <code>File --&gt; New Project...</code> and select <code>C/C++ application</code>;</li>
<li>With your project open, enter the project properties dialog;</li>
<li>Select <code>C/C++ --&gt; C++ Compiler --&gt; General options</code>;</li>
<li>Open the MSYS console and navigate to the directory where you&#8217;ve made your wxWidgets build (e.g. <code>build-static-debug</code>) and enter <code>wx-config --cxxflags.</code><code> wx-config</code> will output the compiler flags for your project. On my machine <code>wx-config --cxxflags</code> outputs <span> <code><span style="color: #0000ff;"> -I/c/wxWidgets-2.8.7/msw-debug/lib/wx/include/msw-uni<br />
code-debug-static-2.8 -I/c/wxWidgets-2.8.7/include -I/c/wxWidgets-2.8.7/contrib/include</span> <span style="color: #339966;">-D__WXDEBUG__ -D__WXMSW__ -mthreads</span></code></span>. Remember to leave this console open;</li>
<li>Add all directories <span style="color: #0000ff;">preppended with <code>-I</code></span> from <code>wx-config</code> output to the include directories of your project;</li>
<li>Select <code>Command line</code> and put the <span style="color: #339966;">remaining flags</span> from <code>wx-config</code> there;</li>
<li>Now select <code>Linker --&gt; General options</code>;</li>
<li>Back on the MSYS console, type <code>wx-config --libs</code>. <code>wx-config</code> will output the linker flags for your project. On my machine <code>wx-config --libs</code> outputs <code><span style="color: #0000ff;">-L/c/wxWidgets-2.8.7/msw-debug/lib</span> <span style="color: #008000;">-mthreads  -Wl,--subsystem,windows -mwindows </span><span style="color: #008000;">/c/wxWidgets-2.8.7/msw-debug/lib/libwx_mswud_richtext-2.8.a /c/wxWidgets-2.8.7/msw-debug/lib/libwx_mswud_aui-2.8.a /c/wxWidgets-2.8.7/msw-debug/lib/libwx_mswud_xrc-2.8.a /c/wxWidgets-2.8.7/msw-debug/lib/libwx_mswud_qa-2.8.a /c/wxWidgets-2.8.7/msw-debug/lib/libwx_mswud_html-2.8.a /c/wxWidgets-2.8.7/msw-debug/lib/libwx_mswud_adv-2.8.a /c/wxWidgets-2.8.7/msw-debug/lib/libwx_mswud_core-2.8.a /c/wxWidgets-2.8.7/msw-debug/lib/libwx_baseud_xml-2.8.a /c/wxWidgets-2.8.7/msw-debug/lib/libwx_baseud_net-2.8.a /c/wxWidgets-2.8.7/msw-debug/lib/libwx_baseud-2.8.a </span><span style="color: #008000;">-lwxregexud-2.8 -lwxexpatd-2.8 -lwxtiffd-2.8 -lwxjpegd-2.8 -lwxpngd-2.8 -lwxzlibd-2.8 -lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi3</span></code>;</li>
<li>Add the directory <span style="color: #0000ff;">preppended with <code>-L</code></span> to the <code>Additional library directories</code> inside <code>General options</code> and click OK to close this dialog;</li>
<li>Now select <code>Linker --&gt; Libraries --&gt; Add option... --&gt; Other option...;</code></li>
<li>Back on the MSYS console, copy the <span style="color: #008000;">remaining linker flags</span>;</li>
<li>Paste the <span style="color: #008000;">remaining flags</span> from <code>wx-config --libs</code> on your notepad and <strong>replace all occurrences of /c/ by C\:/</strong> (this letter may vary depending on where you installed wxWidgets), then paste the result on that field. Remember: replacing /c/ by C\:/ is utterly necessary if you don&#8217;t want to see ugly linker errors!;</li>
<li>Create a <a href="http://www.wxwidgets.org/docs/tutorials/hworld2.txt">simple wx program</a> and build it;</li>
</ol>
<p>That&#8217;s a lot of work for a first application, but for your next applications all you will have to do is to repeat the compiler and linker options. Now you can use your favorite IDE to make wxWidgets applications on Windows.</p>
<p>PS: A wxWidgets plugin for NetBeans (wxMatisse?) would be great.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daltonfilho.com/2008/02/23/wxwidgets-on-windows-using-netbeans-60-with-mingw-msys/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>NetBeans 6.0 &#8211; First Impressions</title>
		<link>http://www.daltonfilho.com/2007/12/30/netbeans-60-first-impressions/</link>
		<comments>http://www.daltonfilho.com/2007/12/30/netbeans-60-first-impressions/#comments</comments>
		<pubDate>Sun, 30 Dec 2007 17:33:30 +0000</pubDate>
		<dc:creator>Dalton Filho</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[IDEs]]></category>
		<category><![CDATA[NetBeans]]></category>

		<guid isPermaLink="false">http://www.daltonfilho.com/2007/12/30/netbeans-60-first-impressions/</guid>
		<description><![CDATA[Finally, after some RCs that didn't quite make it for me, <a href="http://download.netbeans.org/netbeans/6.0/final/" title="NetBeans IDE 6.0 - Final Release" target="_blank">NetBeans 6.0</a> (production release) has definitely won me over. These are my first impressions:
<ul>
	<li><strong>Editor</strong> - code font and colors are not always updated when I change settings on the Font &#38; Color dialog. For example: if I change the field color, I have to reopen the code to see the changes. Font &#38; Color settings weren't imported from my NB 5.5 settings, even though I've chosen to do so when I first opened NB 6.0. This is a minor issue that should be fixed soon;</li>
	<li><strong>MUCH better CSS support</strong> - clicking on a CSS rule updates a "Style Builder" form where you can change font, background, border and other settings <em>plus</em> a window where you can preview the style. That means much less dependency on tools like Dreamweaver;</li>
	<li><strong>Javascript support</strong> - in NB 5.5 I had to use a <a href="http://www.liguorien.com/javascripteditor/" title="Javascript Plugin for NetBeans 5" target="_blank">plugin</a> for Javascript code completion, which is now native to NB 6.0. To make things even better, you can see the minimum DOM version to use every function. With the widespread use of Javascript libraries like <a href="http://www.prototypejs.org/" title="Prototype Javascript Framework" target="_blank">Prototype</a> and <a href="http://script.aculo.us/" target="_blank" title="Scriptaculous">Scriptaculous</a>, I would like NB to parse all the Javascript files in my project just like it's currently done with Java files. That would yield a better code completion support for Javascript;</li>
	<li><strong>Easier encoding configuration</strong> - if you ever moved your code across different OSes and saw your "é" become a "?", you know  encoding is something you <a href="http://www.joelonsoftware.com/articles/Unicode.html" title="The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)" target="_blank">have to care about</a>. It would be easy to write an entire project in NB 5.5 and forget that because the encoding option is so well hidden within the advanced options inside the options dialog. Now you can easily set the encoding for the project in a more intuitive manner by simply choosing a value in a combo box that is inside the very first page of the project options dialog;</li>
	<li><strong>Cool Code insertion</strong> - I remember I was once bashed in a forum for requesting method delegate facilities in the Java language. Maybe we're not quite there yet, but NB 6.0 now features a code insertion facility that makes it easy to proxify methods of objects that your class contains. Just press <span class="monospaced">Alt + Insert</span> and choose <span class="monospaced">"Delegate method..."</span></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>Finally, after some RCs that didn&#8217;t quite make it for me, <a href="http://download.netbeans.org/netbeans/6.0/final/" title="NetBeans IDE 6.0 - Final Release" target="_blank">NetBeans 6.0</a> (production release) has definitely won me over. These are my first impressions:<span id="more-5"></span></p>
<ul>
<li><strong>Editor</strong> &#8211; code font and colors are not always updated when I change settings on the Font &amp; Color dialog. For example: if I change the field color, I have to reopen the code to see the changes. Font &amp; Color settings weren&#8217;t imported from my NB 5.5 settings, even though I&#8217;ve chosen to do so when I first opened NB 6.0. This is a minor issue that should be fixed soon;</li>
<li><strong>MUCH better CSS support</strong> &#8211; clicking on a CSS rule updates a &#8220;Style Builder&#8221; form where you can change font, background, border and other settings <em>plus</em> a window where you can preview the style. That means much less dependency on tools like Dreamweaver;</li>
<li><strong>Javascript support</strong> &#8211; in NB 5.5 I had to use a <a href="http://www.liguorien.com/javascripteditor/" title="Javascript Plugin for NetBeans 5" target="_blank">plugin</a> for Javascript code completion, which is now native to NB 6.0. To make things even better, you can see the minimum DOM version to use every function. With the widespread use of Javascript libraries like <a href="http://www.prototypejs.org/" title="Prototype Javascript Framework" target="_blank">Prototype</a> and <a href="http://script.aculo.us/" target="_blank" title="Scriptaculous">Scriptaculous</a>, I would like NB to parse all the Javascript files in my project just like it&#8217;s currently done with Java files. That would yield a better code completion support for Javascript;</li>
<li><strong>Easier encoding configuration</strong> &#8211; if you ever moved your code across different OSes and saw your &#8220;é&#8221; become a &#8220;?&#8221;, you know  encoding is something you <a href="http://www.joelonsoftware.com/articles/Unicode.html" title="The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)" target="_blank">have to care about</a>. It would be easy to write an entire project in NB 5.5 and forget that because the encoding option is so well hidden within the advanced options inside the options dialog. Now you can easily set the encoding for the project in a more intuitive manner by simply choosing a value in a combo box that is inside the very first page of the project options dialog;</li>
<li><strong>Cool Code insertion</strong> &#8211; I remember I was once bashed in a forum for requesting method delegate facilities in the Java language. Maybe we&#8217;re not quite there yet, but NB 6.0 now features a code insertion facility that makes it easy to proxify methods of objects that your class contains. Just press <span class="monospaced">Alt + Insert</span> and choose <span class="monospaced">&#8220;Delegate method&#8230;&#8221;</span></li>
</ul>
<p class="imagearea"><img src="http://www.daltonfilho.com/wp-content/uploads/2007/12/css_support.png" alt="NetBeans 6.0 CSS support" title="NetBeans 6.0 CSS support" /></p>
<p class="subtitle">Fig. 1. Improved CSS support now shows a preview of the rule</p>
<p class="imagearea"><img src="http://www.daltonfilho.com/wp-content/uploads/2007/12/javascript_support.png" alt="NetBeans 6.0 Javascript support" title="NetBeans 6.0 Javascript support" /></p>
<p class="subtitle">Fig. 2. Javascript code completion is now native to NB 6.0</p>
<p class="imagearea"><img src="http://www.daltonfilho.com/wp-content/uploads/2007/12/encoding_support.png" alt="Easier encoding configuration in NB 6.0" title="Easier encoding configuration in NB 6.0" /></p>
<p class="subtitle">Fig. 3. Encoding configuration is now on the very first page of the project configuration dialog</p>
<p>What I really like about this new version of NB is that things have either become easier or as easy as they were before. All these features are integrated, making NB worth the <em>Integrated</em> Development Environment title. Everyone who download it will benefit from these changes and there is no need to know which NB branch will match your needs. If you downloaded the RC versions of NB 6.0 and you were disappointed by editor problems, you can make your upgrade now since most of those issues were solved. If you were waiting to upgrate to NB 6.0, the time is now!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daltonfilho.com/2007/12/30/netbeans-60-first-impressions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

