<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>cmake &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://wordpress.com/tag/cmake/</link>
	<description>Feed of posts on WordPress.com tagged "cmake"</description>
	<pubDate>Fri, 25 Jul 2008 03:52:28 +0000</pubDate>

	<generator>http://wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Editor de código livre com suporte à várias linguagens de programação]]></title>
<link>http://cacalinks.wordpress.com/?p=842</link>
<pubDate>Sun, 20 Jul 2008 02:58:14 +0000</pubDate>
<dc:creator>deianaweb</dc:creator>
<guid>http://cacalinks.wordpress.com/?p=842</guid>
<description><![CDATA[
O Notepad++, desenvolvido por Don HO, é um editor de código livre (e um substituto do Notepad), q]]></description>
<content:encoded><![CDATA[<p style="text-align:left;"><img class="size-full wp-image-844 aligncenter" src="http://cacalinks.wordpress.com/files/2008/07/notepad.gif" alt="" width="196" height="80" /><br />
O <strong>Notepad++</strong>, desenvolvido por Don HO, é um editor de código livre (e um substituto do Notepad), que suporta várias linguagens de programação, rodando sobre o ambiente MS Windows.
</p>
<p align="justify">Este projeto é baseado em um componente para editor de texto, o <a href="http://www.scintilla.org/" target="_blank">Scintilla</a> (um componente muito poderoso), escrito em <strong>C++</strong> com pura <strong>api win32</strong> e <strong>STL</strong> (<!--i.e. without MFC, -->o que garante alta velocidade de execução e pequeno tamanho de programa), está sob a licença da <a href="http://www.gnu.org/copyleft/gpl.html" target="_blank">GPL</a>.</p>
<p align="justify"><strong>Veja abaixo as características do Notepad++ :</strong></p>
<p align="justify"><strong>1) </strong><strong>Destaque de Sintaxes e Sintaxe de Blocos</strong></p>
<p>Linguagens suportadas :</p>
<p>C, <a title="C++" href="http://notepad-plus.sourceforge.net/commun/screenshots/scrsh_multiView.gif" target="_blank">C++</a>, <a title="Java" href="http://notepad-plus.sourceforge.net/commun/screenshots/scrsh_lexerJava.gif" target="_blank">Java</a>, C#, <a title="XML" href="http://notepad-plus.sourceforge.net/commun/screenshots/scrsh_lexerXML.gif" target="_blank">XML</a>, HTML, PHP, CSS, makefile, <a title="ASCII" href="http://notepad-plus.sourceforge.net/commun/screenshots/scrsh_asciiArt.gif" target="_blank">ASCII art (.nfo)</a>, doxygen, ini file, batch file,  <a title="JavaScript" href="http://notepad-plus.sourceforge.net/commun/screenshots/scrsh_lexerHTML.gif" target="_blank">Javascript,</a> <a title="ASP" href="http://notepad-plus.sourceforge.net/commun/screenshots/scrsh_lexerAsp.gif" target="_blank">ASP</a>, <a title="VB/VBS" href="http://notepad-plus.sourceforge.net/commun/screenshots/scrsh_lexerVB.gif" target="_blank">VB/VBS</a>, <a title="SQL" href="http://notepad-plus.sourceforge.net/commun/screenshots/scrsh_lexerSQL.gif" target="_blank">SQL</a>, <a title="Objective-C" href="http://notepad-plus.sourceforge.net/commun/screenshots/scrsh_lexerObjC.gif" target="_blank">Objective-C</a>, RC resource file, Pascal, Perl, Python,  Lua, TeX, TCL, Assembler, Ruby, Lisp, Scheme, Properties, Diff, Smalltalk, Postscript, VHDL, Ada, Caml, AutoIt, KiXtart, Matlab, Verilog, Haskell, InnoSetup, CMake, YAML.</p>
<p><strong>2) WYSIWYG (O que você vê é o que você tem)</strong></p>
<p>Se você tiver uma impressora colorida poderá imprimir seu código fonte (ou qualquer outra coisa) em cores.</p>
<p><strong>3) Destaque de Sintaxes Definida pelo Usuário</strong></p>
<p>Isto permite ao usuário definir sua própria linguagem: não somente sintaxe de palavras chaves, mas também sintaxe de blocos (ex : If / endIf) , comentários e operadores. ( <a title="imagem 1" href="http://notepad-plus.sourceforge.net/commun/images/ulds_folder.gif" target="_blank">imagem1</a>, <a title="imagem 2" href="http://notepad-plus.sourceforge.net/commun/images/ulds_keywords.gif" target="_blank">imagem2</a>, <a title="imagem 3" href="http://notepad-plus.sourceforge.net/commun/images/ulds_comment.gif" target="_blank">imagem3</a>, <a title="imagem 4" href="http://notepad-plus.sourceforge.net/commun/images/ulds_op.gif" target="_blank">imagem4</a> ).</p>
<p><strong>4) Auto completar </strong></p>
<p>Para quase todas as linguagens suportadas, o usuário pode criar sua própria lista de api (ou baixar os arquivos na <a title="Download" href="http://notepad-plus.sourceforge.net/br/download.php" target="_blank">sessão download</a>). Uma vez que o arquivo api estiver pronto, digite Ctrl+Espaço para executar esta ação (veja a <a title="imagem" href="http://notepad-plus.sourceforge.net/commun/screenshots/scrsh_autocomplete.gif" target="_blank">imagem</a>). Para mais informações sobre o auto completar, por favor veja a sessão <a title="auto completar" href="http://notepad-plus.sourceforge.net/br/auto-completion-HOWTO.php" target="_blank">Auto completar</a>.</p>
<p><strong>5) Múltiplos Documentos<br />
</strong><br />
Você pode editar vários documentos ao mesmo tempo.</p>
<p><strong>6) Múltiplas Visualizações<br />
</strong><br />
Você tem duas visualizações ao mesmo tempo. Na qual você poderá visualizar/editar 2 documentos diferentes ou o mesmo documento (<a title="imagem" href="http://notepad-plus.sourceforge.net/commun/screenshots/scrsh_multiView.gif" target="_blank">imagem</a>). Você pode visualizar (editar) em 2 vistas um documento, em posições diferentes. A modificação de uma das vistas acontecerá na outra também. (ou seja, você modifica o MESMO documento quando você está no modo clone, veja a <a title="imagem" href="http://notepad-plus.sourceforge.net/commun/screenshots/scrsh_multiViewCloneMode.gif" target="_blank">imagem</a>).</p>
<p><strong>7) Suporta Expressões de Busca/Substituição</strong></p>
<p>Você pode buscar a substituir uma string (frase) no documento usando expressões regulares.</p>
<p><strong>8 ) Suporta o Arrastar e Soltar<br />
</strong><br />
Você pode abrir um documento arrastando e soltando. Você pode também mover seu documento (ou visualização) de uma posição a outra usando o Arrastar e Soltar.</p>
<p><strong>9 ) Posição Dinâmica de Visualizações<br />
</strong><br />
O usuário pode escolher a posição de uma visualização dinamicamente (somente em 2 modos : separação horizontal ou vertical), veja a <a title="imagem" href="http://notepad-plus.sourceforge.net/commun/screenshots/scrsh_rotate.gif" target="_blank">imagem</a>.</p>
<p><strong>10) Auto detecção de Estado do Arquivo</strong></p>
<p>Se você modificar ou apagar um arquivo que esteja aberto no Notepad++, você receberá uma notificação para atualizar seu documento (recarregar o arquivo ou apagar o arquivo).</p>
<p><strong>11) Avanço/Recuo de Zoom</strong></p>
<p>Esta é uma outra fantástica função do componente Scintilla. Simplesmente veja a <a title="imagem" href="http://notepad-plus.sourceforge.net/commun/screenshots/scrsh_zoom.gif" target="_blank">imagem</a>.</p>
<p><strong>12) Ambiente com Suporte a Múltiplos Idiomas</strong></p>
<p>O chinês, japonês, coreano, árabe e hebraico são suportados no ambiente Windows. Veja o Notepad++ sob o <a title="Chinês - Windows" href="http://notepad-plus.sourceforge.net/commun/screenshots/scrsh_underChineseSys.gif" target="_blank">Chinês - Windows</a> , sob o <a title="Árabe - Windows" href="http://notepad-plus.sourceforge.net/commun/screenshots/scrsh_underArabicWin.gif" target="_blank">Árabe - Windows</a> e sob o <a title="Hebraico - Windows" href="http://notepad-plus.sourceforge.net/commun/screenshots/scrsh_underHebrewWin.gif" target="_blank">Hebraico - Windows</a> em ação.</p>
<p><strong>13) Marcadores</strong></p>
<p>Basta clicar na margem para inserir um marcador (no lado direito da margem junto ao nº da linha) ou digitar Ctrl+F2 para inverter o marcador. Para ir até um marcador, digite F2 (Próximo Marcador) ou Shift+F2 (Marcador Anterior). Para excluir todos os marcadores, clique no Menu Localizar-&#62;Excluir Marcadores. Veja a <a title="imagem" href="http://notepad-plus.sourceforge.net/commun/screenshots/scrsh_bookmark.gif" target="_blank">imagem</a>.</p>
<p><strong>14) Chaves, Colchetes e Parênteses com Destaque</strong></p>
<p>Quando o cursor se apróxima de um desses símbolos { } [ ] ( ) , o símbolo que está próximo ao cursor e o símbolo simetricamente oposto são destacados, assim como sua guia de identação (se houver) fazendo com que a localização de um bloco seja mais fácil. Veja a <a title="imagem1" href="http://notepad-plus.sourceforge.net/commun/screenshots/scrsh_braceIndentGuideHiLiting.gif" target="_blank">imagem1</a>,  <a title="imagem2" href="http://notepad-plus.sourceforge.net/commun/screenshots/scrsh_braceHiLiting.gif" target="_blank">imagem2</a> .</p>
<p><strong>15) Grava e Reproduz Macros </strong></p>
<p>Você pode salvar várias macros e criar atalhos de tecla para o próximo uso.</p>
<p align="justify"><strong>DOWNLOAD:</strong> Para <strong>baixar</strong> o programa <strong>Notepad++ (v.5.0)</strong> e obter maiores detalhes sobre  arquivos de ajuda, arquivos de api, arquivos binários, arquivos de estilos, arquivos de imagens, códigos fonte, temas, plugins,  vá diretamente do site do desenvolvedor: <a title="Download do Notepad++" href="http://notepad-plus.sourceforge.net/br/download.php" target="_blank">clicando aqui</a></p>
<p align="justify">Já existe a versão 5.0.1 do programa Notepad++ disponível no Baixaki, porém, testamos o executável e o mesmo apresentou erro na hora da instalação, assim, não disponibilizaremos o link dessa versão.<a title="Download da versão 5.0.1 - Notepad++" href="http://baixaki.ig.com.br/download/Notepad-.htm" target="_blank"></a></p>
<p align="justify">O programa tem 2,03MB, não possui limitações, é totalmente gratuito e funciona nos sistemas: Windows XP/98/2000.</p>
<p align="justify">
<p align="justify">
<p align="justify">
<p align="justify">
]]></content:encoded>
</item>
<item>
<title><![CDATA[cross-platform build alternative]]></title>
<link>http://uncleham.wordpress.com/?p=99</link>
<pubDate>Sat, 19 Jul 2008 18:03:30 +0000</pubDate>
<dc:creator>Dave Smith</dc:creator>
<guid>http://uncleham.wordpress.com/?p=99</guid>
<description><![CDATA[There&#8217;s evidence that CMake may be overtaking Autotools as the cross-platform build tool of ch]]></description>
<content:encoded><![CDATA[<p>There's evidence that <a href="http://www.cmake.org/HTML/index.html">CMake</a> may be overtaking <a href="http://en.wikipedia.org/wiki/GNU_build_system">Autotools</a> as the cross-platform build tool of choice in the open source community.</p>
<p><a href="http://www.cmake.org/HTML/index.html"><img class="size-full wp-image-102 alignnone" src="http://uncleham.wordpress.com/files/2008/07/cmake_logo.png" alt="" width="153" height="50" /></a></p>
<p>Google Trends indicates that CMake has recently overtaken Automake in search volume, and here's an <a href="http://lwn.net/Articles/188693/">insightful article</a> about why KDE switched to CMake during the KDE 4.0 development cycle.</p>
<p><a href="http://uncleham.files.wordpress.com/2008/07/cmake_automake_trend.png"><img class="aligncenter size-medium wp-image-103" src="http://uncleham.wordpress.com/files/2008/07/cmake_automake_trend.png?w=300" alt="" width="300" height="112" /></a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Tip &amp; Trick: Compilar OSG 2.4 en Leopard]]></title>
<link>http://materod.wordpress.com/?p=22</link>
<pubDate>Sat, 17 May 2008 14:42:10 +0000</pubDate>
<dc:creator>materod</dc:creator>
<guid>http://materod.wordpress.com/?p=22</guid>
<description><![CDATA[Para el que no lo conozca OpenSceneGraph(OSG) es un motor de grafos de escena libre y multiplataform]]></description>
<content:encoded><![CDATA[<p>Para el que no lo conozca <a title="OpenSceneGraph" href="http://www.openscenegraph.org/projects/osg" target="_blank">OpenSceneGraph</a>(OSG) es un motor de grafos de escena libre y multiplataforma escrito en C++ que funciona sobre OpenGL. Bueno pues hace poco salió la versión 2.4 y para mi sorpresa no ha resultado tan sencillo de copilar con <a title="CMake" href="http://www.cmake.org/" target="_blank">CMake</a> como en anteriores ocasiones. No se si los errores que da se producen también en windos y linux, pero de momento os pongo aquí (pongo una guía completa para los no iniciados en el mundo de CMake) como solucionarlo en MacOSX Leopard y luego pruebo si va en otras plataformas.</p>
<p><!--more--></p>
<p>Primero en la version 2.6 de cmake han actualizado algo que hace fallen los archivos de cmake de OSG, por tanto os recomiendo que utiliceis la versión 2.4.8 (si teneis compilada una 2.5.X es probable que también os funcione sin problemas) aunque igual puede que os funcione con la 2.6 modificando la compatibilidad a 2.5.</p>
<p>Una vez tenemos la versión correcta de cmake, vamos al directorio donde tenemos los fuentes de OSG (la carpeta OpenSceneGraph) y nos creamos un directorio (Build por ejemplo) para dejar la basurilla que genera la compilación ahi:</p>
<p><em>$ cd OpenSceneGraph</em></p>
<p><em>$ mkdir Build</em></p>
<p><em>$ cd Build</em></p>
<p>Desde el directorio Build ejecutamos cmake para que nos genere los makefiles:</p>
<p><em>$ ccmake ../</em></p>
<p>o si queremos que genere un proyecto de Xcode en lugar de los makefiles:</p>
<p><em>$ ccmake ../ -GXcode</em></p>
<p>La primera vez que ejecutemos ccmake genera un archivo de cache donde se almacenan las opciones que hemos marcado. Como es la primera vez, nos preguntara que tipo de compatibilidad queremos, por defecto pone la de version de cmake que tenemos instalada. Para que funcione OSG debeis de tener puesto 2.4.8 si teneis esta version de cmake o 2.5 si teneis una superior.</p>
<p>A continuación pulsaremos la letra "c" y nos creara una configuracion por defecto. Para movernos por la tabla utilizaremos los cursores y pulsando Intro podemos modificar el valor de cada una de las celdas. Debemos marcar a ON: <strong>BUILD_OSG_APPLICATIONS</strong>, <strong>BUILD_OSG_EXAMPLES</strong>, <strong>BUILD_OSG_PLUGINS</strong> y si ademas vamos a trabajar con introspección debemos poner a ON: <strong>BUILD_OSG_WRAPPERS.</strong></p>
<p>En <strong>CMAKE_INSTALL_PREFIX </strong>le indicaremos la ruta donde queremos que instale las librerias o dejaremos el valor que trae por defecto. Con  <strong>CMAKE_OSX_ARCHITECTURES</strong> podemos especificar con que arquitecturas queremos que sea compatible la librería, por defecto "ppc; i386".</p>
<p>La opción <strong>CMAKE_OSX_SYSROOT</strong> indica que SDK se va a utilizar para la compilación. Por defecto se utiliza el 10.5 que es el de Leopard, pero para mantener la compatibilidad con Tiger cambiaremos su valor por: /Developer/SDKs/MacOSX10.4u.sdk</p>
<p>El parametro <strong>DYNAMIC_OPENSCENEGRAPH</strong> y <strong>DYNAMIC_OPENTHREADS </strong>nos permiten decididir si queremos las librerías dinámicas (por defecto) o estáticas.</p>
<p>A partir de aqui aparecen las rutas de un monton de librerías que son dependencias externas de OSG. No es necesario tenerlas todas, pues algunas son para algunos plugins concretos y normalmente si las tenemos instaladas en el sistema, cmake las encuentra el solo.</p>
<p>Bueno con esto solo debería compilar sin más problemas, pero lamentablemente no es así. Con esta configuración da un error al compilar Tessellator.cpp. Para solucionarlo debemos cambiar el parametro <strong>OSG_GLU_TESS_CALLBACK_TRIPLEDO</strong> a OFF. En mi caso particular, tampoco podia compilar el ejemplo de wxWidgets porque me falta alguna librería, si como yo no vais a utilizar el plugin de Widgets basta con que os asegureis que <strong>wxWidgets_CONFIG_EXECUTABLE</strong> y <strong>wxWidgets_wxrc_EXECUTABLE </strong>ponga NOTFOUND (sino poneis un espacio en blanco y listo). Si quereis usarlo podeis mirar las dependencias en la pagina de OSG e instalarlas.</p>
<p>Si estais en Leopard os dara también un error de "reexpots" libGL. Para solucionar este error basta con pulsar "t" en ccmake para entrar en modo de edición avanzado. Una vez en modo avanzado (veremos que salen nuevas opciones) buscamos la que se llama <strong>CMAKE_MODULE_LINKER_FLAGS</strong> y copiamos la siguiente linea (atención debe ir toda en una única linea):</p>
<p>-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:<br />
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/OpenGL.framework<br />
/Versions/A/Libraries/libGL.dylib</p>
<p>o si estamos compilando con el SDK 10.5:</p>
<p>-dylib_file<br />
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:<br />
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/OpenGL.framework<br />
/Versions/A/Libraries/libGL.dylib</p>
<p>Una vez añadida la linea, pulsamos de nuevo "t"para volver al modo normal. Ahora pulsamos "c" para ajustar la configuración a las nuevas opciones y "g" para generar los makefiles o el proyecto de Xcode.</p>
<p>Y ya esta listo para compilar con make install si hemos generado makefiles o con el proyecto de Xcode.</p>
<p>Espero que os sirva de ayuda. XD</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[CMakeとアセンブラ]]></title>
<link>http://hirish.wordpress.com/?p=46</link>
<pubDate>Mon, 14 Apr 2008 03:23:41 +0000</pubDate>
<dc:creator>hirish</dc:creator>
<guid>http://hirish.wordpress.com/?p=46</guid>
<description><![CDATA[最近CMakeをアップグレードして2.6（まだベータ）にした。モジュールをざ]]></description>
<content:encoded><![CDATA[<p>最近<a href="http://www.cmake.org">CMake</a>をアップグレードして2.6（まだベータ）にした。モジュールをざっと眺めていてCMakeASMInformation.cmakeなるファイルを見つけた。CMakeはいいツールなんだけど、.Sファイルを認識してくれないのが弱点だった。2.4を使っているときは自分でコマンドを作ってそれでアセンブリファイルをコンパイルしていた。これで、CMakeファイルを簡潔にすることが出来る。</p>
<p>メーリングリストを見るとアセンブリファイルのサポートはまだ実験段階らしい。まあ、そんなことは気にせずに使う。</p>
<pre>
CMakeLists.txt:
  cmake_mininum_required(VERSION 2.6)
  enable_language(ASM)
</pre>
<p>これでアセンブリファイルを認識するようになる。</p>
<p>標準の状態ではCMakeはアセンブリファイルに対してATTのアセンブラ、つまりGASを起動する。今やっているプロジェクトはアセンブリファイルをCコンパイラに処理させたいのでカスタマイズが必要になる。アセンブリファイルに異なるアセンブラを割り当てたい。</p>
<pre>
CMakeLists.txt:
  cmake_mininum_require(VERSION 2.6)
  set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/MyCMake}
  enable_language(ASM-GCC)
  set(CMAKE_ASM-GCC_COMPILER_ARG1 -c) # invoke gcc with "-c"

MyCMake/CMakeASM-GCCInformation.cmake:
  set(ASM_DIALECT "-GCC")
  set(CMAKE_ASM${ASM_DIALECT}_SOURCE_FILE_EXTENSIONS s;S)
  include(CMakeASMInformation)
  set(ASM_DIALECT)

MyCMake/CMakeDetermineASM-GCCCompiler.cmake:
  set(ASM_DIALECT "-GCC")
  set(CMAKE_ASM${ASM_DIALECT}_COMPILER_INIT ${_CMAKE_TOOLCHAIN_PREFIX}gcc ${_CMAKE_TOOLCHAIN_PREFIX}cc)
  include(CMakeDetermineASMCompiler)
  set(ASM_DIALECT)

MyCMake/CMakeTestASM-GCCCompiler.cmake:
  set(ASM_DIALECT "-GCC")
  include(CMakeTestASMCompiler)
  set(ASM_DIALECT)
</pre>
<p>これでアセンブリファイルをgccでコンパイルできるようになった。</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Qt 4 + CMake + Visual Studio rules now]]></title>
<link>http://airfang.wordpress.com/?p=13</link>
<pubDate>Mon, 31 Mar 2008 02:44:35 +0000</pubDate>
<dc:creator>airfang</dc:creator>
<guid>http://airfang.wordpress.com/?p=13</guid>
<description><![CDATA[Thanks to Bill from Kitware Inc., who responded my previous post in a very timely manner and helped ]]></description>
<content:encoded><![CDATA[<p>Thanks to Bill from <a href="http://www.kitware.com/" target="_blank">Kitware Inc.</a>, who responded my previous post in a very timely manner and helped me solve the compilation issues as well as the execution error.  CMake and Visual Studio 2008 are now back in the triangle.</p>
<p>The compilation problem lies the source code of the Qt demo. Two <b>other</b> classes were declared in two of the class definition .cpp files so that either moc'ing the sources or moc'ing the headers will leave some of Q_OBJECT classes un-moc'ed, which causes the linking errors. On the other hand, <i>qmake</i> handles this implicitly so the project file it generates doesn't have this problem. After moving those declarations to the header files, everything compiled nicely and quietly.</p>
<p>As for the debug execution problem, Bill also suggested that the commercial evaluation version of Qt 4 binary I downloaded might be built with VS 2005. If that is the case, there is no way I can execute in debug mode the program linked against the Qt 4 libraries. I was just being so naive to make the assumption that the binaries should be of no difference if QMAKESPEC is the same.</p>
<p>After downloading and compiling the source of Qt 4.4 beta (boy, that compilation DID take QUITE a while), everything went back to normal. I am now happily "CMaking" my projects again.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Qt 4.3.4 + CMake + Visual Studio 2008 doesn't work]]></title>
<link>http://airfang.wordpress.com/?p=12</link>
<pubDate>Sun, 30 Mar 2008 18:34:57 +0000</pubDate>
<dc:creator>airfang</dc:creator>
<guid>http://airfang.wordpress.com/?p=12</guid>
<description><![CDATA[Hoping to create a nice GUI for the project I am currently working on, I downloaded the commercial v]]></description>
<content:encoded><![CDATA[<p>Hoping to create a nice GUI for the project I am currently working on, I downloaded the commercial version of Qt 4.3.4. It installed fine, with the option of integrating with Visual Studio disabled since the integration with VS 2008 is not officially supported yet. <a href="http://trolltech.com/" target="_blank">Trolltech</a> has already announced to <a href="http://trolltech.com/developer/notes/supported_platforms" target="_blank">support this</a> in the upcoming version of 4.4, though.</p>
<p>The demo that comes with the package looks really appealing, just like how I like it: simple, themed design and fluent animated transition, which together provide the user with maximum visual satisfaction.</p>
<p>Trolltech is generous enough to have included all the source code of the demo so that we can play around and figure out how to mimic those fancy effects. At first I planned to use <a href="http://www.cmake.org/HTML/index.html" target="_blank">CMake</a> to generate the project file (.sln file in the case of Visual Studio) for the demo, in accordance with all other projects that I am working on. There are also examples of CMakeLists.txt for Qt 4 projects (<a href="http://qtnode.net/wiki?title=Qt_with_cmake#cmake_for_Qt_4" target="_blank">here</a> is one). Despite it seemed that everything should be easily done without any hustle, it soon turned out not to be the case this time.</p>
<p>First, the solution file generated by CMake just won't compile (unless it's a single main.cpp, in which case I got it to work) if there are other Q_OBJECT classes present.  I tried both QT4_AUTOMOC and QT4_WRAP_CPP, all ended up with "<i>error LNK2019: unresolved external symbol</i>":</p>
<p><code>SET(SRCS src/main.cpp src/mainwindow.cpp)<br />
SET(HDRS include/mainwindow.h)</code></p>
<p>and either</p>
<p><code>QT4_AUTOMOC(${SRCS})<br />
ADD_EXECUTABLE(demoGUI ${SRCS} ${HDRS})</code></p>
<p>or</p>
<p><code>QT4_WRAP_CPP(MOC_SRCS ${HDRS})<br />
ADD_EXECUTABLE(demoGUI ${SRCS} ${HDRS} ${MOC_SRCS})</code></p>
<p>Correct me if I am doing anything wrong above. After googling a bit I figured that something is wrong with the moc'ing process, but I haven't yet found a solution. Thus I am taking CMake out of the equation temporarily.</p>
<p>A nice thing about <i>qmake</i> that comes with the Qt package is that just like CMake it can generate project files for different platforms, with an equivalent of CMakeLists.txt, <i>projectname</i>.pro file. With the command</p>
<p><code>qmake -tp vc -spec win32-msvc2005</code></p>
<p>one can easily get the project file (.vcproj/.sln) for Visual Studio 2005 to use. The project compiled under VS 2008 without any error, but when running under debug mode I get either "This application has failed to start because the application configuration is incorrect" if the solution file is generated by qmake or "The application failed to initialize properly (0xc0150002)" if it is created by CMake (remember I had one single main.cpp compiled). However, the release builds executed correctly.</p>
<p>Again I googled for a while and found out the problem might lie in the manifest files of the Qt core dll's. Since the QMAKESPEC is set to win32-msvc2005, the manifest files  of the dll's have VS 2005 info (Microsoft.VC80.DebugCRT) embedded. When the program compiled with VS 2008 (VC90) and linked against those dll's tries execute, there's a conflict in configuration. Unfortunately, none of the solutions I found worked.</p>
<p>Now it is quite clear that for now I cannot (at least easily) debug the Qt4 programs in VS 2008. VS 2005, on the other hand, is working as advertised both in debug and release mode. Guess I would have to stick with VS 2005 for a while before Qt 4.4 is released.</p>
<p>An alternative plan would be trying out the <a href="http://trolltech.com/developer/downloads/qt/qt44-preview-download" target="_blank">4.4 beta</a>  to see if it is a solution, while using qmake to generate the Makefile, from which to see how the CMakeLists.txt should be written.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[CMake: chi è costui?]]></title>
<link>http://toastedtech.wordpress.com/?p=348</link>
<pubDate>Tue, 25 Mar 2008 20:59:19 +0000</pubDate>
<dc:creator>montoya</dc:creator>
<guid>http://toastedtech.wordpress.com/?p=348</guid>
<description><![CDATA[Il nome CMake è un abbreviazione di cross platform make.

Questo software rimpiazza il vecchio e no]]></description>
<content:encoded><![CDATA[<p>Il nome CMake è un abbreviazione di cross platform make.</p>
<div style="text-align:center;"><img src="http://upload.wikimedia.org/wikipedia/it/0/0a/Cmake.jpg" height="286" width="283" /></div>
<p>Questo software rimpiazza il vecchio e non facilissimo da usare Automake nella generazione dei Makefile. Infatti, nella maggior parte dei progetti, non esiste un Makefile incluso nei sorgenti, dato che questo non è portabile. Per la compilazione del programma è necessario verificare che siano incluse tutte le librerie e scovare i loro percorsi all'interno del file system. Proprio per questo motivo, è impossibile avere un Makefile già scritto. A questo punto, il tool Automake, doveva eseguire una precisa ricerca di tali librerie e infine, se non si sono riscontati errori, la definitiva creazione del Makefile per la successiva compilazione.</p>
<p><!--more--><br />
Questo avveniva con:</p>
<p><code>./configure<br />
make<br />
make install</code></p>
<p>La creazione di un configure non è proprio facilissima. Proprio per questo interviene il nuovo sistema di generazione di Makefile: CMake.<br />
Utilizzo</p>
<p>CMake è un tool molto modulare che, con poche e concise istruzioni, è in grado di generare Makefile a puntino. CMake dispone di una particolare sintassi comprensiva di moltissime macro ed il loro utilizzo è possibile mediante un apposito file chiamato CMakeLists.txt.</p>
<p>Un tipico e semplicissimo esempio di CMakeLists.txt è il seguente:</p>
<p><code>PROJECT(matematica)</code></p>
<p><code>ADD_DEFINITIONS(-pipe -O2 -mtune=native)</code></p>
<p><code>ADD_EXECUTABLE(<br />
../bin/matematica<br />
src/main.cpp<br />
)</code></p>
<p>Per la generazione del Makefile e la successiva compilazione del progetto, è necessario eseguire i seguenti comandi:</p>
<p><code>mkdir build<br />
cd build<br />
cmake ..<br />
make</code></p>
<p>I primi due comandi possono essere anche evitati, ma in questo modo si evita di sporcare il progetto, così da avere tutto ciò che serve per la compilazione, all'interno della directory build.</p>
<p>Mediante CMake si crea effettivamente un Makefile astratto, mentre la sua creazione concreta avviene nel particolare sistema operativo utilizzato.<br />
Applicazioni che usano CMake</p>
<ul>
<li><a href="http://www.kde.org/">KDE</a> (partendo dalla versione 4)</li>
<li><a href="http://www.vtk.org/">VTK</a></li>
<li><a href="http://www.openscenegraph.org/">OpenSceneGraph</a></li>
<li><a href="http://www.scribus.net/">Scribus</a></li>
<li><a href="http://www.qgis.org/">Quantum GIS</a></li>
</ul>
]]></content:encoded>
</item>
<item>
<title><![CDATA[KDE 4 con Qt 4.4 compilato]]></title>
<link>http://frank95.wordpress.com/?p=19</link>
<pubDate>Mon, 18 Feb 2008 10:18:35 +0000</pubDate>
<dc:creator>frank95com</dc:creator>
<guid>http://frank95.wordpress.com/?p=19</guid>
<description><![CDATA[19-02-2008 Aggiornamento: pinotree mi ha detto nel suo commento che il problema nel ridimensionament]]></description>
<content:encoded><![CDATA[<p><b>19-02-2008 Aggiornamento:</b> pinotree mi ha detto nel suo commento che il problema nel ridimensionamento è dovuto ai "widget alieni"delle Qt 4.4. Per rimediare temporaneamente bisogna immettere la variabile di ambiente QT_USE_NATIVE_WINDOWS=1 prima di avviare la sessione di KDE.</p>
<p>Ieri mi sono finalmente deciso a ricompilare KDE 4 da SVN e quindi a compilare anche la nuova versione (ancora in stato preview) delle librerie grafiche Qt, la 4.4. Non vi sono stati intoppi durante la il processo e già così mi sono sentito sollevato, dato che mi aspettavo che qualcosa potesse andare storto, data appunto l'immaturità di questa nuova versione. Il desktop environment si è avviato correttamente e pian piano ho iniziato a notare alcuni piccoli difetti, ad esempio, quando si ridimensiona una finestra, questo non avviene immediatamente ma bisgona avviene una sorta di freeze della finestra che si ridimensiona solo dopo alcuni secondi (screenshot). Un altro problema lo si può riscontrare nelle caselle di testo mentre si usa konqueror. Infatti l'ultimo carattere digitato non viene visualizzato. Non so se questo sia dovuto al nuovo motore WeKit, poiché so che la nuova versione delle QT integra questo engine ma non so se sia già stato incluso in konqueror al posto di KHTML (e non è nemmeno facile notare la differenza). Inoltre, utilizzando hardy che integra di default il nuovo pulseaudio, phonon non ci lavora correttamente (ma questo è un problema di xine, il cui plugin per supportare pulseaudio è ancora immaturo e quindi disabilitato).<br />
Speriamo che nel breve questi difetti vengano sistemati, ma di certo non me la prenderò se qualcosa non va, dato che siamo ancora distanti dal rilascio di KDE 4.1. :)</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Another attempt: building KDE 4 option 2]]></title>
<link>http://fengshaun.wordpress.com/?p=49</link>
<pubDate>Mon, 11 Feb 2008 20:26:17 +0000</pubDate>
<dc:creator>fengshaun</dc:creator>
<guid>http://fengshaun.wordpress.com/?p=49</guid>
<description><![CDATA[There also an easier way to get KDE 4 which I used myself.  For this one, you don&#8217;t need to ch]]></description>
<content:encoded><![CDATA[<p>There also an easier way to get KDE 4 which I used myself.  For this one, you don't need to change your .bashrc or anything else.  Just checkout sources wherever you want and you're done ( of course you must install dependencies first ).</p>
<p>after you checkout SVNs in '/home/KDE4devel/SRCs/KDE/' you can just make another folder, let's say '/home/KDE4devel/Build/KDE/'<br />
open Terminal/Konsole and then type:<br />
su -<br />
cd /home/KDE4devel/Build/KDE<br />
cd kdelibs<br />
cmake &#38;&#38; make &#38;&#38; make install<br />
cd ..<br />
cd kdepimlibs<br />
cmake &#38;&#38; make &#38;&#38; make install<br />
cd ..<br />
cd kdebase<br />
cmake &#38;&#38; make &#38;&#38; make install<br />
cd ..<br />
cd "yourmodule"<br />
cmake &#38;&#38; make &#38;&#38; make install</p>
<p>OR if you have changed your .bashrc, you can do for each one:</p>
<p>cd /home/KDE4devel/SRCs/KDE/4.0/yourmodule<br />
cmakekde</p>
<p>(it MIGHT work, I just made it up right now ;) )</p>
<p>WARNING: THIS WILL REPLACE YOUR KDE 3.5 DESKTOP.<br />
WARNING: YOU WILL NEED ROOT PRIVILEGES.</p>
<p>If you try this one, leave comment for me whether if it worked for you or not.  Thanks :)</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Another attempt: building KDE 4 option 1]]></title>
<link>http://fengshaun.wordpress.com/?p=48</link>
<pubDate>Mon, 11 Feb 2008 20:17:51 +0000</pubDate>
<dc:creator>fengshaun</dc:creator>
<guid>http://fengshaun.wordpress.com/?p=48</guid>
<description><![CDATA[now we get to really build KDE 4.
first of all, you should change you ~/.bashrc file and I&#8217;ll ]]></description>
<content:encoded><![CDATA[<p>now we get to really build KDE 4.<br />
first of all, you should change you ~/.bashrc file and I'll tell you how and what to change.</p>
<p>go to your home directory and<br />
View &#62; Show hidden files<br />
now if you look closely, you'll find a file called ".bashrc" among the hidden files.<br />
open that with a text editor ( in 99% cases just double click it )</p>
<p>copy the .bashrc in you original home ( /home/username/ ) into your KDE4devel account ( /home/KDE4devel/ ) it should replace it.</p>
<p>copy/paste the contents of <a href="http://techbase.kde.org/index.php?title=Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc">this .bashrc </a> into your .bashrc, after "#user-specified commands" ( or something like that ).</p>
<p>now you're ready to go.  By the way, this .bashrc you just did,  was only to make life easier but it is in fact necessary and you HAVE TO do it ;)</p>
<p><strong>Building kdelibs</strong><br />
the first module ( package ) you should make/compile, is kdelibs.  You SHOULD make this first of all.<br />
to compile kdelibs, just do this:</p>
<p>cd<br />
cs<br />
mkdir KDE &#38;&#38; cd KDE<br />
svn checkout svn://anonsvn.kde.org/home/kde/branches/KDE/4.0/kdelibs<br />
cd kdelibs<br />
cmakekde</p>
<p>note: cs is not a typo.  you made this command available by editing your .bashrc file, look into that for more info.<br />
for troubleshooting stuff look into <a href="http://techbase.kde.org/index.php?title=Getting_Started/Build/KDE4#kdelibs">here</a>.</p>
<p><strong>Building kdepimlibs</strong><br />
next comes the kdepimlibs.  the recipe is this:</p>
<p>cs KDE<br />
svn checkout svn://anonsvn.kde.org/home/kde/branches/KDE/4.0/kdepimlibs<br />
cd kdepimlibs<br />
cmakekde</p>
<p>again, for troubleshooting stuff go <a href="http://techbase.kde.org/index.php?title=Getting_Started/Build/KDE4#kdepimlibs">here</a>.</p>
<p><strong>Building kdebase</strong><br />
next goes to kdebase.<br />
recipe:</p>
<p>cs KDE<br />
svn checkout svn://anonsvn.kde.org/home/kde/branches/KDE/4.0/kdebase<br />
cd kdebase<br />
cmakekde</p>
<p>troubleshooting stuff -&#62; <a href="http://techbase.kde.org/index.php?title=Getting_Started/Build/KDE4#kdebase">here</a>.</p>
<p>from now, you can build all of the modules you want with the same fashion.  For a minimal KDE 4 session you only needed those 3 modules and that's all.<br />
after you finished compiling all the modules you want, you just log out, and log in again, hopefully everything will be fine and you will have your KDE 4 session :D</p>
<p>Good Luck with your building :D ( building as in compiling ;) )<br />
note: I got this information from <a href="http://techbase.kde.org/index.php?title=Getting_Started/Build/KDE4">here</a>.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Another attempt: building KDE 4 SVN checkout]]></title>
<link>http://fengshaun.wordpress.com/?p=47</link>
<pubDate>Mon, 11 Feb 2008 19:53:46 +0000</pubDate>
<dc:creator>fengshaun</dc:creator>
<guid>http://fengshaun.wordpress.com/?p=47</guid>
<description><![CDATA[NOTE: LOOK AT Another attempt: building KDE 4 part 3 AND part 4 TO SEE WHICH ONE YOU&#8217;RE INTERE]]></description>
<content:encoded><![CDATA[<p>NOTE: LOOK AT Another attempt: building KDE 4 part 3 AND part 4 TO SEE WHICH ONE YOU'RE INTERESTED IN DOING.  YOU WILL NOT NEED THIS IF YOU'RE GOING TO USE THE SAFER PART 3.</p>
<p>ok, here we have all the dependencies ready to go and there just remains our time to be spent on compiling KDE 4 itself :)<br />
WARNING: THIS STEP MUST BE DONE IN ONLY NORMAL USER.  NO ROOT USER PLEASE.  IF IT NEEDS YOU TO ENTER ROOT PASSWORD, REVIEW AND SEE WHAT YOU HAVE DONE WRONG.</p>
<p>first thing you should do, is that you should make a new user account to be used by KDE 4 ( just in case ).<br />
to do it, go to ( for KDE ) Kmenu &#62; system &#62; users and groups  ( for GNOME ) System &#62; Administration &#62; users and groups</p>
<p>make a new account and login to that account ( simply log out, and then log in again )<br />
make a new folder wherever you want ( definitely not in root folder ) that you put your sources in it.<br />
for this "tutorial" I will use /home/KDE4devel/SRCs/<br />
go to that folder and open a Terminal/Konsole which points to that folder by using this command</p>
<p>cd /home/KDE4devel/SRCs/KDE/</p>
<p>now, you should download the sources of KDE 4 into this folder you just created. if you want to use fancy names, call it check out SVNs ( es-vi-enz )<br />
to do this, just open Terminal/Konsole and type:<br />
1) svn co -N svn://anonsvn.kde.org/home/kde/trunk/KDE<br />
2) svn co -N svn://anonsvn.kde.org/home/kde/branches/KDE/4.0</p>
<p>if you want it really new and cutting edge, go for the first one, but if you prefer to back down a little bit ( not really much difference though ) go for the second one.  But generally I'd suggest second one ;)</p>
<p>now just type:</p>
<p>cd 4.0<br />
svn list<br />
svn up kdebase kdepimlibs kdelibs</p>
<p>if you want other packages also to be checked out, you can just put them in svn up.  for example if you want to also checkout kdemultimedia and kdegraphics, you just type</p>
<p>svn up kdebase kdepimlibs kdelibs kdemultimedia kdegraphics (etc.)</p>
<p>wait for quite a long time till it finishes ;)</p>
<p>you have just downloaded the source code of KDE 4.  Next post, will be about  compiling KDE 4.<br />
Good luck :D</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[basic cmake ]]></title>
<link>http://taonix.wordpress.com/2007/11/07/basic-cmake-2/</link>
<pubDate>Wed, 07 Nov 2007 01:22:39 +0000</pubDate>
<dc:creator>taonix</dc:creator>
<guid>http://taonix.wordpress.com/2007/11/07/basic-cmake-2/</guid>
<description><![CDATA[OK. cmake is the new building utility used by KDE.
cmake is designed to build projects with the comp]]></description>
<content:encoded><![CDATA[<p>OK. cmake is the new building utility used by KDE.<br />
cmake is designed to build projects with the computer system's NATIVE build system.That is it is made to be portable.<br />
Instead of changing different make files etc for different platforms to build your project, cmake among other things will do that for you. Eg instead of implementing Makefiles etc from say solaris to linux the idea is to run cmake on both platforms and have it generate the correct Makefiles for that OS.</p>
<p>For a very simple project the first thing to create would be the</p>
<p><em>CMakeLists.txt</em></p>
<p>The most basic of cmake files you would need to build an executable would contain three declarations.<br />
project(), add_executable() and set.<br />
project(projectname) holds the name of the project.<br />
The set function  lists files into a variable that is<br />
set(varname main.cpp someotherfile.cpp andanother.cpp) would allow you to reference all those file with the statement ${varname}.<br />
 For make it is done the same as setting environment variables VARNAME=main.cpp someotherfile.cpp andanother.cpp and then is referenced using $(varname).For the example of building a main.cpp into an executable you would use something like this for a make file.</p>
<p><em>SRC=main.cpp<br />
OBJ=main.o<br />
appname : $(OBJ)<br />
             g++ -o appname $(OBJ)<br />
main.o : $(SRC)<br />
              g++ -c $(SRC)</em></p>
<p>then you would run make and it will happily build your executable.</p>
<p>To build this minimal application with cmake you could use the following functions in a CMakeLists.txt</p>
<p>project(projectname)<br />
set(varname sourcefiles).<br />
add_executable(appname ${varname})</p>
<p>Applying this to our main.cpp example and using the name "myapp" for the final executable, it would look something like this</p>
<p><em>project(myproject)<br />
set(myapp_SRC<br />
             main.cpp<br />
)</em><br />
<em>add_executable(myapp ${myapp_SRC})</em></p>
<p>you would then type cmake . &#60;-- notice the dot. This would build among numerous other things, a Makefile.<br />
You then type make as usual and the application is built.<br />
Now lets say you add another src file to your application say struct.cpp and want to build that into your application.<br />
This is where cmake very early on starts to show how much more usefull it can be, and this is only a hint.<br />
To build the new struct.cpp files code into our application you would have to alter the Makefile to to tell it how to build the new struct code, something like this</p>
<p><em>SRC=main.cpp<br />
STRUCT_SRC=struct.cpp<br />
OBJ=main.o struct.o<br />
appname : $(OBJ)<br />
             g++ -o appname $(OBJ)<br />
main.o : $(SRC)<br />
              g++ -c $(SRC)<br />
<strong>struct.o : $(STRUCT_SRC)   &#60;-------- new struct code</strong><br />
            g++ -c $(STRUCT_SRC)</em></p>
<p>However with the  cmake example you would just add the source file into the CMakeLists.txt like</p>
<p><em>set(myapp_SRC<br />
            main.cpp<br />
            <strong>struct.cpp &#60;------- just add this in</strong><br />
)</em><br />
Then just run cmake . again to regenerate the Makefile.<br />
Other usefull functions are building a library the command:</p>
<p> <em>add_library(libname [SHARED &#124; STATIC &#124; MODULE source1 source2 ......] )</em></p>
<p>This will just build a library, just like that. For example if you want to build a library out of the files struct.cpp  and anotherfile.cpp just add </p>
<p><em>add_library(struct SHARED struct.cpp anotherfile.cpp)</em></p>
<p>to your CMakeLists.txt file and run cmake on the current directory: cmake .<br />
and you will see that libstruct.so has appeared there.</p>
<p>Addding </p>
<p>project(projectname) </p>
<p>to a CMakeLists.txt tells cmake to set a couple of variables namely projectname_BINARY_DIR and projectname_SOURCE_DIR but most importantly you will want to set this if you are building you application with a C compiler and not a C++ compiler.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Progress report for week 40]]></title>
<link>http://janmagnet.wordpress.com/?p=36</link>
<pubDate>Mon, 08 Oct 2007 18:29:01 +0000</pubDate>
<dc:creator>Jan Magne</dc:creator>
<guid>http://janmagnet.wordpress.com/?p=36</guid>
<description><![CDATA[Dell is dragging their feet so my laptop is still not operational. I&#8217;ve added configuration fi]]></description>
<content:encoded><![CDATA[<p>Dell is dragging their feet so my laptop is still not operational. I've added configuration files for <a href="http://www.cmake.org/">CMake</a>, which is a cross-platform, open source make system. CMake successfully compiles all the DECS executables and libraries in Windows under MinGW by using CMake's "MinGW Makefiles" generator. It also works without a hitch under Linux with the "Unix Makefiles" generator. I ran into some trouble trying to build DECS with the "Visual Studio 8 2005" and "NMake Makefiles" generators. For some unknown reason Visual C++ 2005 has decided not to generate the .lib files which are required to successfully link against libdlx and libnqdecs. Maybe creating the VC++ project files manually will cure the problem. After adding the CMake support I released DECS version 0.2 on Google Code.</p>
<p>I've downloaded the BOINC VMWare virtual machine and configured a local BOINC server with the uppercase sample application. I also downloaded the BOINC source code (including sample applications) and successfully compiled the sample applications for the i686-pc-linux-gnu, windows_intelx86 and windows_x86_64 platforms. Then I deployed the newly compiled application versions to the BOINC server and tested the one for windows_intelx86.</p>
<p>I encountered another strange problem with VC++ when I tried to compile the BOINC sample applications. Some "access denied" error kept showing up when VC++ tried to embed some manifest to the executables. It disappeared when I turned off manifest embedding. Later when I had successfully compiled all the sample applications I turned the manifest embedding back on and the problem was nowhere to be seen. Standard Microsoft logic I guess. Not that I care what the manifest thing does anyways.</p>
<p>I've also figured out a way to parallelize the Dancing Links algorithm, so implementing that will be the main focus from now on, along with writing on the report. The end result will be that the matrices being sent to the worker nodes will be smaller than the original matrix. This will require some changes to the file format and also a smart way to merge the results back together. Hopefully I'll have a distributed computing sytem that actually works by the time the deadline rears its ugly head.</p>
<p><em>NOTE: This post has been imported from my old it's learning <a href="http://www.itslearning.com/uis/janmagne/projects/decs/">ePortfolio DECS blog</a>.</em></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[CMake2assistant]]></title>
<link>http://agateau.wordpress.com/2007/10/06/cmake2assistant/</link>
<pubDate>Sat, 06 Oct 2007 23:05:40 +0000</pubDate>
<dc:creator>Aurélien</dc:creator>
<guid>http://agateau.wordpress.com/2007/10/06/cmake2assistant/</guid>
<description><![CDATA[I have been using CMake Help for a while, but I was missing some of the nice features of Qt Assistan]]></description>
<content:encoded><![CDATA[<p>I have been using <a href="http://www.proli.net/2007/09/17/cmake-help/">CMake Help</a> for a while, but I was missing some of the nice features of Qt Assistant. I first thought about adding those missing features, but I realized it would be even nicer to go the other way: integrate CMake documentation in Qt Assistant.</p>
<p>The result is CMake2assistant, which you can grab from <a href="http://qt-apps.org/content/show.php/CMake2assistant?content=67492&#38;PHPSESSID=aec60058a17d433a31e47aed2d0ffceb">qt-apps.org</a>. Quoting the README:</p>
<blockquote><p><span class="smallcontenttext">This tool parses CMake output to generate an HTML cross-referenced version of CMake commands and modules. It also generates a .dcf file which can be used to integrate the CMake documentation in Qt Assistant v3 or v4.</span></p></blockquote>
<p>Since I know all you are looking for is screenshots, here are some pictures to feed your pixel hunger.</p>
<p style="text-align:center;"> <a href="http://agateau.wordpress.com/files/2007/10/index.png" title="index.png"><img src="http://agateau.wordpress.com/files/2007/10/index.thumbnail.png" alt="index.png" /></a> <a href="http://agateau.wordpress.com/files/2007/10/command.png" title="command.png"><img src="http://agateau.wordpress.com/files/2007/10/command.thumbnail.png" alt="command.png" /></a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[compiling windows apps on linux]]></title>
<link>http://dingfelder.wordpress.com/2007/07/25/compiling-windows-apps-on-linux/</link>
<pubDate>Tue, 24 Jul 2007 23:37:35 +0000</pubDate>
<dc:creator>dingfelder</dc:creator>
<guid>http://dingfelder.wordpress.com/2007/07/25/compiling-windows-apps-on-linux/</guid>
<description><![CDATA[now that we successfully used cmake to compile a linux app (in the last article), we will now try an]]></description>
<content:encoded><![CDATA[<p>now that we successfully used cmake to compile a linux app (in the last article), we will now try and compile it for windows.</p>
<p>I am doing this on Gentoo linux, so your mileage may vary if you used a different distribution.</p>
<p>I am starting with http://gentoo-wiki.com/HOWTO_MinGW as a rough guide.</p>
<ul>
<li>#  emerge -va sys-devel/crossdev</li>
<li>#  echo 'PORTDIR_OVERLAY="/usr/i686-mingw32/usr/portage /usr/local/portage $PORTDIR_OVERLAY"' &#62;&#62; /etc/make.conf</li>
<li>create the directory /usr/i686-mingw32/usr/portage</li>
<li>install the toolchain:  # crossdev i686-mingw32</li>
</ul>
<p>With Ubuntu/Debian you can simply install it using apt: "apt-get install mingw32". This will  install the toolchain as i586-mingw32msvc-gcc to /usr/bin/ .emerge the packages you want to have as cross compiled programs or libraries.</p>
<p>Once you have installed ming32, it is easy to compile for linux:</p>
<p>#  i686-mingw32-gcc helloworld.cpp -o wintest.exe</p>
<p>Now the next step in the puxxle is to get cmake to compile for both OSes  each time make is run.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Cross platform development with the Eclipse CDT]]></title>
<link>http://dingfelder.wordpress.com/2007/07/24/cross-platform-development-with-the-eclipse-cdt/</link>
<pubDate>Tue, 24 Jul 2007 03:58:53 +0000</pubDate>
<dc:creator>dingfelder</dc:creator>
<guid>http://dingfelder.wordpress.com/2007/07/24/cross-platform-development-with-the-eclipse-cdt/</guid>
<description><![CDATA[So, you want to create an application that can un under both Linux and Windows?
This is my experimen]]></description>
<content:encoded><![CDATA[<p>So, you want to create an application that can un under both Linux and Windows?</p>
<p>This is my experiment trying to do just that...  Lets see if the Eclipse CDT is robust to do cross platform development!</p>
<p>Step 1:  Install the <a href="http://www.eclipse.org">Eclipse 3.3 SDK</a> if you have not already done so.  Make sure to get the CDT components.  If you download the java sdk, you can add the CDT packages by adding the following plugin update site:   http://download.eclipse.org/tools/cdt/releases/europa</p>
<p>Step 2:  Install the cross platform make system, cmake.  it's eclipse download site is:<br />
http://cmakeed.sourceforge.net/updates/</p>
<p>Step 3:  Create a C++ project in eclipse.</p>
<ul>
<li> Go to "New-&#62;C++ Project" Menu (or Go to "New-&#62;Hello World C++ Project" Menu if you are making an empty project and want to see some c++ code used by default)</li>
<li>Select the MakeFile Project type, choose Other Toolchain and click Next</li>
<li>Select the Advanced Settings Button</li>
<li>Uncheck the Use Default Build Command</li>
<li>Insert the following in the Build Command Text Field:  make -C ${project_loc}/Build VERBOSE=1</li>
<li>Under the "C/C++ Build" options, select "Settings".</li>
<li>In the Right Side pane select the binary format for your system (Elf for linux).</li>
<li>Click on the OK Button.</li>
<li>Create a file in the project root named:  CMakeLists.txt [todo:  what are the contents of this file???]</li>
<li>Open a terminal window</li>
<li>cd to your project directory</li>
<li>Create a build directory:  mkdir Build</li>
<li>Change directory to the Build dir:  cd Build</li>
<li>Run the command:  ccmake ../</li>
<li>Follow the ccmake instructions.  when done, your project is ready.</li>
<li>Refresh the eclipse project to show the new build directory.</li>
</ul>
<p>Step 4:  Create an eclipse run menu for cmake:</p>
<ul>
<li>Select the "Run-&#62;External Tools-&#62;Show External Tools Dialog..." menu.</li>
<li>Create a new "Program" and call it Cmake.</li>
<li>In the "Location" text field, type the absolute path to cmake (i.e  /usr/local/bin/cmake  or whatever path your system uses).</li>
<li>In the "Working Directory" test field insert the following: "${project_loc}/Build" and in the Arguments section insert the following: "../".</li>
<li>In the "Refresh" tab select The project containing the selected resources.</li>
<li>In the "Common" tab check the "External Tools" selection.</li>
<li>This will put a shortcut in the "Run" menu for you.</li>
<li>Click the Apply Button and then run.</li>
<li>CMake will now run on your project directory.</li>
</ul>
<p>Step 5.  Build the project using the command  "Run -&#62; External Tools -&#62; cmake"</p>
<p>Next Up:  Getting the project to generate both a windows exe and a linux executable.</p>
<p>see also:  http://paraview.org/Wiki/CMake:Eclipse</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[cmake 2.4.6]]></title>
<link>http://slackit.wordpress.com/2007/02/14/cmake-246/</link>
<pubDate>Tue, 13 Feb 2007 23:16:26 +0000</pubDate>
<dc:creator>slackit</dc:creator>
<guid>http://slackit.wordpress.com/2007/02/14/cmake-246/</guid>
<description><![CDATA[CMake is used to control the software compilation process using simple platform and compiler indepen]]></description>
<content:encoded><![CDATA[<p><a href="http://www.cmake.org/HTML/Index.html" target="_blank">CMake</a> is used to control the software compilation process using simple platform and compiler independent configuration files.  CMake generates native makefiles and workspaces that can be used in the compiler environment of your choice.</p>
<p>Download the file  <a href="http://digilander.libero.it/G14nc0/cmake.tar.bz2">cmake.tar.bz2</a></p>
<p>For any problem, contact me at gianco71[at]libero[dot]it</p>
]]></content:encoded>
</item>

</channel>
</rss>
