[Mono-dev] libMonoPosixHelper and libMonoSupportW not being built when --disable-mcs-build

autif khan autif.mlist at gmail.com
Wed Jan 25 17:59:54 UTC 2012


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 at SUBDIRS = po $(libgc_dir)
eglib mono $(ikvm_native_dir) support data runtime scripts man samples
msvc $(docs_dir)
@CROSS_COMPILING_FALSE@@ONLY_MOONLIGHT_TRUE at SUBDIRS =
$(MOONLIGHT_SUBDIRS) runtime
@CROSS_COMPILING_TRUE at 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 at 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 at 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.mlist at 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


More information about the Mono-devel-list mailing list