Search Unity

Vim integration and external script compilation

Discussion in 'Scripting' started by tomworcom, May 18, 2013.

  1. tomworcom

    tomworcom

    Joined:
    Dec 27, 2011
    Posts:
    50
    Hey guys,

    I'm trying to get external script compilation to work with the latest Unity, to integrate it with Vims error fixing mechanism.

    I'm following the information from the wiki (I'm on OSX):
    http://wiki.unity3d.com/index.php?title=Manual_Compilation_of_C_Sharp_Unity_Scripts

    but running

    Code (csharp):
    1.  
    2. gmcs -recurse:'*.cs'
    3.       -lib:/Applications/Unity/Unity.app/Contents/Frameworks/
    4.       -lib:/Applications/Unity/Unity.app/Contents/Frameworks/Mono.framework/
    5.       -r:UnityEngine -r:UnityEditor -r:Boo.Lang
    6.       -nowarn:0169 -target:module
    7.  
    gives me:

    Code (csharp):
    1.  
    2. error CS0006: cannot find metadata file `UnityEngine'
    3. error CS0006: cannot find metadata file `UnityEditor'
    4. error CS0006: cannot find metadata file `Boo.Lang'
    5. Compilation failed: 3 error(s), 0 warnings
    6.  
    I was wondering if anyone here got it to work with the current Unity version.

    Cheers,
    Thomas