This is bleeding edge stuff for now so make sure you have the latest tarball. I think the next pre-release will include all this out of the box but if not, at the very least this procedure will work.
Make sure you have a good installation of the SDK (Build & Install SDK in RedHat / Fedora / CentOS) but use the latest (post with download link) tarball.
Just the commands:
Code: Select all
su -c 'yum install mingw32-binutils mingw32-cpp mingw32-filesystem mingw32-gcc mingw32-gcc-c++ mingw32-runtime mingw32-w32api'
su -c 'yum install wine'
wine cmd
exit
wget http://ecere.com/downloads/winbin.zip
unzip -x winbin.zip
mv bin/ecere*.dll /home/user/.wine/drive_c/windows/system32/
1. You need to install the mingw32 compiler.
Code: Select all
su -c 'yum install mingw32-binutils mingw32-cpp mingw32-filesystem mingw32-gcc mingw32-gcc-c++ mingw32-runtime mingw32-w32api'
Code: Select all
su -c 'yum install wine'
wine cmd
exit
Code: Select all
wget http://ecere.com/downloads/winbin.zip
unzip -x winbin.zip
mv bin/ecere*.dll /home/user/.wine/drive_c/windows/system32/
- a. Applications -> Programming -> Ecere IDE
b. File -> Global Settings
c. Compilers
d. Duplicate the default compiler
e. Name it mingw32
e. In Toolchain- e.1. replace cpp by i686-pc-mingw32-cpp
e.2. replace gcc by i686-pc-mingw32-gcc
g. OkCode: Select all
/usr/i686-pc-mingw32/sys-root/mingw/lib /usr/i686-pc-mingw32/lib /home/user/.wine/drive_c/windows/system32
- e.1. replace cpp by i686-pc-mingw32-cpp
- a. Open a sample. (Project -> Open / CTRL+SHIFT+O)
b. Select the mingw32 compiler. (Project -> Active Compiler)
c. Build the sample! (Project -> Build / F7)
d. Test this new windows executable.Code: Select all
wine obj/helloWorld.debug.mingw32.win32/HelloWorld.exe wine obj/helloForm.debug.mingw32.win32/HelloForm.exe
-redj
PS: This has been tested in Fedora 13. Feedback on all platforms is welcome.