[Mono-dev] libMonoPosixHelper and libMonoSupportW not being built when --disable-mcs-build
I am cross compiling mono and have success with it. The process as described is: 1) Compile mono on build/host machine for the libraries 2) Cross Compile mono with --disable-mcs-build and copy the .NET libraries to the target system. However, I have to use --disable-mcs-build mono_cv_uscore=no --with-tls=pthread --with-sigaltstack=no for configuration. Then I copy over both the etc/mono and usr/lib/mono directories to the target system At this point of time, I am able to get all the runtime tests to pass and almost all the mscorlib and System.dll tests to pass. The problem is that when I try to execute a .NET app that uses Windows Forms, I get a DllNotFoundException for these (unmanaged) libraries. I have verified that libMonoPosixHelper.* and libMonoSupportW.* are not being built, even when we just compile (not necessarily cross compile) mono with --disable-mcs-build So, whats going on what can I do to force build this? I am using the latest stable version 2.10.8.1 Thanks Autif ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] libMonoPosixHelper and libMonoSupportW not being built when --disable-mcs-build
I believe that support directory is intentionally being left out during cross compilation. I wonder why? Does anyone know? Excerpts from root Makefile.in - notice how support is missing when @CROSS_COMPILING_FALSE @CROSS_COMPILING_FALSE@@ONLY_MOONLIGHT_FALSE@SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) support data runtime scripts man samples msvc $(docs_dir) @CROSS_COMPILING_FALSE@@ONLY_MOONLIGHT_TRUE@SUBDIRS = $(MOONLIGHT_SUBDIRS) runtime @CROSS_COMPILING_TRUE@SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) data runtime scripts man samples msvc $(docs_dir) # Keep in sync with SUBDIRS @CROSS_COMPILING_FALSE@@ONLY_MOONLIGHT_FALSE@DIST_SUBDIRS = po libgc eglib mono ikvm-native support data runtime scripts man samples tools msvc docs # Keep in sync with SUBDIRS @CROSS_COMPILING_TRUE@DIST_SUBDIRS = po libgc eglib mono ikvm-native data runtime scripts man samples tools msvc docs On Wed, Jan 25, 2012 at 11:19 AM, autif khan autif.ml...@gmail.com wrote: I am cross compiling mono and have success with it. The process as described is: 1) Compile mono on build/host machine for the libraries 2) Cross Compile mono with --disable-mcs-build and copy the .NET libraries to the target system. However, I have to use --disable-mcs-build mono_cv_uscore=no --with-tls=pthread --with-sigaltstack=no for configuration. Then I copy over both the etc/mono and usr/lib/mono directories to the target system At this point of time, I am able to get all the runtime tests to pass and almost all the mscorlib and System.dll tests to pass. The problem is that when I try to execute a .NET app that uses Windows Forms, I get a DllNotFoundException for these (unmanaged) libraries. I have verified that libMonoPosixHelper.* and libMonoSupportW.* are not being built, even when we just compile (not necessarily cross compile) mono with --disable-mcs-build So, whats going on what can I do to force build this? I am using the latest stable version 2.10.8.1 Thanks Autif ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] libMonoPosixHelper and libMonoSupportW not being built when --disable-mcs-build
I looked thru git to see how this evolved. It lead me to commit 9c48ce0cec7f37fd9f90be75cf7887d014048b25 by Gonzalo. I was hoping he could shed some light on this. I just dont want this to bite me down the road. On Wed, Jan 25, 2012 at 12:59 PM, autif khan autif.ml...@gmail.com wrote: I believe that support directory is intentionally being left out during cross compilation. I wonder why? Does anyone know? Excerpts from root Makefile.in - notice how support is missing when @CROSS_COMPILING_FALSE @CROSS_COMPILING_FALSE@@ONLY_MOONLIGHT_FALSE@SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) support data runtime scripts man samples msvc $(docs_dir) @CROSS_COMPILING_FALSE@@ONLY_MOONLIGHT_TRUE@SUBDIRS = $(MOONLIGHT_SUBDIRS) runtime @CROSS_COMPILING_TRUE@SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) data runtime scripts man samples msvc $(docs_dir) # Keep in sync with SUBDIRS @CROSS_COMPILING_FALSE@@ONLY_MOONLIGHT_FALSE@DIST_SUBDIRS = po libgc eglib mono ikvm-native support data runtime scripts man samples tools msvc docs # Keep in sync with SUBDIRS @CROSS_COMPILING_TRUE@DIST_SUBDIRS = po libgc eglib mono ikvm-native data runtime scripts man samples tools msvc docs On Wed, Jan 25, 2012 at 11:19 AM, autif khan autif.ml...@gmail.com wrote: I am cross compiling mono and have success with it. The process as described is: 1) Compile mono on build/host machine for the libraries 2) Cross Compile mono with --disable-mcs-build and copy the .NET libraries to the target system. However, I have to use --disable-mcs-build mono_cv_uscore=no --with-tls=pthread --with-sigaltstack=no for configuration. Then I copy over both the etc/mono and usr/lib/mono directories to the target system At this point of time, I am able to get all the runtime tests to pass and almost all the mscorlib and System.dll tests to pass. The problem is that when I try to execute a .NET app that uses Windows Forms, I get a DllNotFoundException for these (unmanaged) libraries. I have verified that libMonoPosixHelper.* and libMonoSupportW.* are not being built, even when we just compile (not necessarily cross compile) mono with --disable-mcs-build So, whats going on what can I do to force build this? I am using the latest stable version 2.10.8.1 Thanks Autif ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list