Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mpu.exe(1.0.0) not working in the Mac environment #308

Open
hiyorin opened this issue Dec 2, 2018 · 2 comments
Open

mpu.exe(1.0.0) not working in the Mac environment #308

hiyorin opened this issue Dec 2, 2018 · 2 comments

Comments

@hiyorin
Copy link

hiyorin commented Dec 2, 2018

Mac environment:
OSX High Serria (10.13.6)

mono version:

mono --version
Mono JIT compiler version 5.18.0.216 (2018-08/f0e466618d1 Fri Nov 30 20:17:18 EST 2018)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com

mpu version:

mono mpu.exe
MessagePack for Unity Utility ver. 1.0.0
  Copyright © FUJIWARA, Yusuke 2010-2017

execute command:

mpu.exe -s -o OutDir Data.cs
System.Exception: Compiler failed to produce the assembly. Output: ''
  at Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x002d1] in <4605a50878ff458c98a8b66722729be6>:0
  at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x0003a] in <4605a50878ff458c98a8b66722729be6>:0
  at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00006] in <4605a50878ff458c98a8b66722729be6>:0
  at mpu.SerializerTargetCompiler.CompileSourceFiles (System.Collections.Generic.IEnumerable`1[T] sourceFilePathes, System.Collections.Generic.IEnumerable`1[T] referenceAssemblies, System.IO.TextWriter outputWriter, mpu.ColorizedTextWriter errorWriter) [0x000b1] in <be08559612f34dafb4556b44679e5666>:0
  at mpu.SerializerTargetCompiler.CompileTargetTypeAssembly (System.Collections.Generic.IEnumerable`1[T] sourceFilePathes, System.Collections.Generic.IEnumerable`1[T] referenceAssemblies) [0x00054] in <be08559612f34dafb4556b44679e5666>:0
  at mpu.Program.GenerateSerializers (System.Collections.Generic.IList`1[T] sourceFilePathes, System.String[] referenceAssemblies, System.Boolean sourceFileIsAssembly, System.String includingPattern, System.String excludingPattern, System.Boolean treatWarningsAsErrors, System.Int32 warningLevel, System.Boolean admitNonPublicTypes, MsgPack.Serialization.SerializerCodeGenerationConfiguration configuration) [0x00037] in <be08559612f34dafb4556b44679e5666>:0
  at mpu.Program.Execute (System.Collections.Generic.IEnumerable`1[T] args) [0x003f6] in <be08559612f34dafb4556b44679e5666>:0
  at mpu.Program.Main (System.String[] args) [0x00000] in <be08559612f34dafb4556b44679e5666>:0

Data.cs:

public class Data
{
    public int Integer { get; set; }
    public float Float { get; set; }
}

Am I making a mistake?
I want to working on Mac environment.
Thank you.

@yfakariya
Copy link
Member

it looks like #80. mpu.exe failed to build your source code to inspect target type metadata.

Try following:

  1. Build your *.cs file with mono.
  2. Specify the built dll file and -a option.

@hiyorin
Copy link
Author

hiyorin commented Dec 3, 2018

I solved it. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants