On Fri, May 2, 2014 at 1:07 PM, Nicholas A. Schembri <nschembr@gmail.com> wrote:



On Thu, May 1, 2014 at 9:49 AM, Nicholas A. Schembri <nschembr@gmail.com> wrote:
First, Great job on OpenNX.

Second,
I've been using OpenNX for the last two years.  My boss has asked me to update a few thing for his taste.  I'm having a hard time getting opennx.729 to build on the MinGW Developer Environment-5.1.14.3.  pulseaudio is requiring a lot of tooling updates.  I tend to work on current Linux systems so I’ve never had to fix a tool chain.  This is also the first time in 15 years I've need to build anything for window. 
   
 I need a little help setting up a cross compile environment setup.

I'm happy to run Linux or windows 7, but my target is Window 7 32/64.

In the past, someone talked about a Fadora setup with wine, wxWidgets and inno setup. I'm going to setup and document a vm for just this cross compile. 


Thank you for your time 
Nicholas.A.Schembri
Pittsburgh PA, USA.


Still no luck with windows. 

 On linux I'm getting errors with:
make -f Makefile.am.

I do not want to fix each error one at a time. Can some one post a working build Environment. I'm willing to re-install if needed.

I have setup the following Fedora 20 install:

sudo su
chkconfig sshd on
yum install -y wine 
yum groupinstall -y "Development Tools" 
yum install -y mingw32-wxWidgets-static.noarch 
yum install -y mingw64-wxWidgets-static.noarch
yum install -y wxBase.i686 wxBase.x86_64 wxGTK.x86_64
yum install -y mingw32-curl.noarch mingw64-curl.noarch libcurl.x86_64 libcurl.i686 curlpp.x86_64
yum install -y mingw64-libltdl.noarch mingw32-libltdl.noarch libtool-ltdl.x86_64 libtool-ltdl.i686 libtool.x86_64 automake.noarch
yum install glib2-devel -y
you install automake -y
yum install gcc-c++ -y 
yum install compat-gcc-34-g77.x86_64 -y
yum install -y bison                           
yum install -y byacc 
yum install -y cscope
yum install -y ctags
yum install -y cvs
yum install -y diffstat
yum install -y doxygen
yum install -y flex
yum install -y gcc
yum install -y gcc-c++
yum install -y gcc-gfortran
yum install -y gettext
yum install -y git
yum install -y indent
yum install -y intltool
yum install -y libtool
yum install -y patch
yum install -y patchutils
yum install -y rcs
yum install -y redhat-rpm-config
yum install -y rpm-build
yum install -y subversion
yum install -y swig
yum install -y systemtap


#Wine tricks
chmod +x winetricks 
winetricks wininet

mkdir /tmp/innosetup  
cd /tmp/innosetup  
wine ./ispack-5.5.4.exe  

~/.wine/drive_c/Programme/Inno Setup 5.

Nicholas.A.Schembri
Pittsburgh PA, USA

Looks like looks centos 6. has the ws2_32 headers installed for mingw.

.# centos 6.5
# software development workstation

#root
yum install -y wine 
yum groupinstall -y "Development Tools" 
yum install -y mingw32-wxWidgets-static.noarch 
yum install -y mingw64-wxWidgets-static.noarch
yum install -y wxBase.i686 wxBase.x86_64 wxGTK.x86_64
yum install -y mingw32-curl.noarch mingw64-curl.noarch libcurl.x86_64 libcurl.i686 curlpp.x86_64
yum install -y mingw64-libltdl.noarch mingw32-libltdl.noarch libtool-ltdl.x86_64 libtool-ltdl.i686 libtool.x86_64 automake.noarch
yum install glib2-devel -y
you install automake -y
yum install gcc-c++ -y 
yum install compat-gcc-34-g77.x86_64 -y
yum install -y bison                           
yum install -y byacc 
yum install -y cscope
yum install -y ctags
yum install -y cvs
yum install -y diffstat
yum install -y doxygen
yum install -y flex
yum install -y gcc
yum install -y gcc-c++
yum install -y gcc-gfortran
yum install -y gettext
yum install -y git
yum install -y indent
yum install -y intltool
yum install -y libtool
yum install -y patch
yum install -y patchutils
yum install -y rcs
yum install -y redhat-rpm-config
yum install -y rpm-build
yum install -y subversion
yum install -y swig
yum install -y systemtap
yum install -y mingw32-w32api.noarch
yum install -y audiofile-devel
yum install -y libusb-devel
yum install -y libXmu-devel
yum install -y mingw32-gcc-c++.x86_64 
yum install -y libogg-devel.x86_64 libogg-devel.i686

#user
cd 729/opennx/

# I do not need to create the change log
sed '/svn2/s:^:#:' Makefile.am  >Makefile.am.sed; mv Makefile.am.sed Makefile.am

make -f Makefile.am

# linux test
#./configure
#make
# no build errors.

LDFLAGS="-L/usr/i686-pc-mingw32/sys-root/mingw/lib/"
./configure --host=i686-pc-mingw32  --with-dllpath=/usr/i686-pc-mingw32/sys-root/mingw/lib/

# I think i need to build the static exe. When I build 653 on windows, I need to add the wx dll to get it to start. 
#--enable-static --enable-staticwx

 #./configure  --enable-static --enable-staticwx --host=i686-pc-mingw32

make 

In file included from osdep.c:28:
/usr/include/wx-2.8/wx/platform.h:540:33: error: wx/msw/libraries.h: No such file or directory


I have googled this error.  The goal of this task is to build opennx  and not a cross compile tool chain from source.   The dependencies are a little out of control.  I have no need for sound on windows.  I'm not playing youtube videos on remote machines.  Pulse audio would be nice.  I'm concerned that should the hosts providing the dependencies die,  opennx may become unbuildable.   

Can someone help me with a Windows build environment or a cross compile build environment based on any distribution?


Nicholas.A.Schembri
Pittsburgh PA, USA