Mostrando las entradas con la etiqueta windows. Mostrar todas las entradas
Mostrando las entradas con la etiqueta windows. Mostrar todas las entradas

sábado, 1 de mayo de 2010

Compilación cruzada Qt4 en Gentoo para Windows

Anoto esto para recordarlo más tarde. Además, puede que le sirva a alguien que esté buscando esto en español.

Objetivo:
Compilar aplicaciones Windows desde GNU/Linux.

Prerequisitos:
Saber inglés
Tener lista una distribución de GNU (Se recomienda Gentoo)
La misma versión de Qt para Windows que esté disponible en tu distribución

Requisitos:
Un compilador cruzado. En Gentoo es trivial construir uno con la utilidad crossdev.
Librerías MingW32.
Basta con seguir el HOWTO de Gentoo dado más adelante para conseguir los dos ítems anteriores.

Instrucciones:
1. Siga las instrucciones para Gentoo: HOWTO MinGW and Qt4
2. Listo

¿Cómo usar Qt Creator para compilar binarios Windows?
En las propiedades del proyecto crear un nuevo perfil (llamémoslo win32). En "Etapas de construcción" ajustar los argumentos adicionales de QMake para que contengan:
-spec win32-g++

domingo, 5 de abril de 2009

KDE development environment for Windows (MinGW)

As soon as I had my Windows desktop with a basic configuration, I put a KDE 4 installation on it. Instructions on how to set a development environment and build KDE (I skipped it by using the installer) are available in the techbase page.

If you are like me, you may want to try different setups at the same time. Perhaps you want to have both MinGW and MSVC installations for whatever reason. Or just may want a simple and painless environment creation without polluting your desktop. This is what I did:

1) Install devel packages and tools with the KDE installer in a path of your choice. (eg. C:\KDE): kdelibs, kdepimlibs, automoc, qt, kdewin32, gcc-mingw, cmake are the minimal packages you need.
1.1). Apparently dependencies are not resolved for devel packages. So, if you want to install more, make sure to install other devel libraries your module/software needs.

2) Save the following to "mingw.bat" (change paths as necessary):
=======================
@set SOURCE_PATH=C:\src
@set INSTALL_PATH=C:\kde

@set DBUSDIR=%INSTALL_PATH%
@set KDEDIRS=%INSTALL_PATH%
@set KDEWIN_DIR=%INSTALL_PATH%
@set PATH=c:\mingw\bin;%INSTALL_PATH%\bin;%INSTALL_PATH%\lib;%PATH%
@set QT_PLUGIN_PATH=%INSTALL_PATH%\lib\kde4\plugins;%INSTALL_PATH%\plugins
@set STRIGI_HOME=%INSTALL_PATH%
@set XDG_DATA_DIRS=%INSTALL_PATH%\share
cd %SOURCE_PATH%

=======================

What you need to check/change are the INSTALL_PATH and PATH variables to point to your KDE dir and MinGW dir. Save it in your sources dir or anywhere else.

3) The key is the environment shortcut. Select a good place where you will usually start your environment from (e.g. c:\src\). Create a new shortcut to:
%windir%\system32\cmd.exe /K c:\YOURDIR\mingw.bat

And save it as "Environment (MinGW)". Done.

Whenever you will build/install from sources, open "Environment (MinGW)" and start hacking.

sábado, 4 de abril de 2009

Hola Windows

Bueno, reinstalé Windows, y fué un proceso desagradable. Pero quería jugar unos juegos que no encajaban con la combinación Wine + NVIDIA. Después de superar la instalación de los controladores más importantes, procedí a instalar el explorador de los tubos. Pero no instalé Firefox como usualmente se hace. En vez, desde el laptop con Debian descargué el instalador de Arora para Windows. ¡Es extremadamente rápido! (en cuanto a tiempo de respuesta y renderizado de páginas).

En fin, ahora podré trabajar más cómodo en el proyecto KDE, específicamente en los bindings de Ruby.

En otro tema, cuando KDE4 esté disponible en inestable (Debian) construiré una nueva edición del Live-CD (que ya lleva mucho tiempo atrasada). La versión más reciente, 4.2.2, trae bastantes arreglos importantes.

Etiquetas

caralibro (1) debian (6) gentoo (2) gnu (1) jabber (1) kde (8) omaque (2) plasma (1) qt (1) software libre (1) ubuntu (2) windows (3) xmms2 (1)