Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

Shipping with GCC Compiler

Discussion in 'General Discussion' started by ToshoDaimos, Apr 24, 2018.

  1. ToshoDaimos

    ToshoDaimos

    Joined:
    Jan 30, 2013
    Posts:
    679
    I don't know GPL3 well. I want to ship my software with GCC compiler so that users can write C++ and have it built on the target platform without any external IDE. Is it legal to have GCC deployed with game/engine automatically?
     
  2. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    If it's a situation where you can create binaries that use Unity engine, circumventing the need for licensing yet still using Unity, I don't think it's legal at all.

    I also don't think you will ever get permission from Unity staff about this from the forum. You should contact Unity legal.

    It's legal to use LUA or make a game maker that doesn't avoid Unity or you don't do any compilation. For example, a moddable game. A lot of people do this already.

    But I understand you're talking about using Unity Engine + your own compiler. That's really out there and I don't think anyone wants to touch that, so you should go higher up than the forum.

    (I'm not a lawyer).
     
  3. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Are you trying to separately include the gcc compiler in the same distributable package as your game? Or are you trying to build the gcc compiler into the same executable as your game?
     
  4. ToshoDaimos

    ToshoDaimos

    Joined:
    Jan 30, 2013
    Posts:
    679
    I want to use C++ for run-time scripting using custom IDE. I imagine that I would ship some kind of "gcc.exe" with some dlls and then I would call it using command line internally. All compilers support command line execution.
     
  5. grimunk

    grimunk

    Joined:
    Oct 3, 2014
    Posts:
    270
  6. Balthamet

    Balthamet

    Joined:
    Jan 25, 2014
    Posts:
    56
    You might want to look at embedding AngelScriot into your project. That will give the users the ability to script stuff in C++. I haven’t used it myself but I have friends that do.