[GeoNetwork-devel] FYI: creating windows installer on ubuntu

Hi,

I was trying to create the windows installer on a ubuntu 64 bit system and
it was causing issues with windres program.

Since I rarely see the windows installer available. When I solved the issue
and thought I would post it here for those who want to create it.

I solved the issue by first installing mingw then I switch the windres and
ld programs located in the installer to the mingw versions. And it was that
simple - it worked....

Here is a script that can be used to build the windows installer - it
assumes you installer is in geonetwork-2.8/installer

sudo apt-get install gcc-mingw-w64 g++-mingw-w64
cd geonetwork-2.8/installer
# Change windres and ld to a symlink
rm ./launch4j/unix/bin/windres
ln -s /usr/bin/x86_64-w64-mingw32-windres ./launch4j/unix/bin/windres
rm ./launch4j/unix/bin/ld
ln -s /usr/bin/x86_64-w64-mingw32-ld ./launch4j/unix/bin/ld
ant

enjoy...

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/FYI-creating-windows-installer-on-ubuntu-tp5014965.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.