Modern open source game engine

 
tni711
Topic Author
Posts: 7
Joined: Sat Jun 30, 2018 1:52 am

can you build Banshee 3D on linux?

Sat Jun 30, 2018 2:34 am

Hi, I am new to Banshee. Does it support the Linux platform at this point?

I downloaded the source files and compiled in Ubuntu 16.04 and got the following errors. I enabled c++14 standards in CMakeLists.txt.

BansheeEngine/Source/bsf/Source/Foundation/bsfUtility/String/BsUnicode.cpp: In function ‘T bs::UTF8To32(T, T, char32_t&, char32_t)’:
BansheeEngine/Source/bsf/Source/Foundation/bsfUtility/Prerequisites/BsPlatformDefines.h:40:25: error: expected primary-expression before ‘__attribute__’
 # define BS_FALLTHROUGH __attribute__((fallthrough));
 
User avatar
BearishSun
Banshee Developer
Posts: 96
Joined: Fri Sep 23, 2016 9:52 am

Re: can you build Banshee 3D on linux?

Sat Jun 30, 2018 5:58 am

You can but your compiler needs to be at least GCC 7 or Clang 5. I'm guessing that's the problem.
 
tni711
Topic Author
Posts: 7
Joined: Sat Jun 30, 2018 1:52 am

Re: can you build Banshee 3D on linux?

Sat Jun 30, 2018 11:43 am

I installed gcc 7 and resolved the compilation issue and be able to proceed up to 99%. It however failed at the step building the MHbansheeEditor.csproj. See error output below.

My build environment:
Ubuntu 16.04 LTS
gcc 7.3.0
clang 6.0.1
mono-xbuild 4.2.1

Error output:
----------------------------------------------------------
XBuild Engine Version 12.0
Mono, Version 4.2.1.0
Copyright (C) 2005-2013 Various Mono authors

Build started 6/30/2018 7:33:34 AM.
__________________________________________________
Project "/home/tangth/BansheeEngine/Source/Scripting/MBansheeEditor/MBansheeEditor.csproj" (default target(s)):
    Target PrepareForBuild:
        Configuration: Release Platform: AnyCPU
        Created directory "../../../bin/Assemblies/Release/"
        Created directory "obj/Release/"
    Target ResolveProjectReferences:
        Project "/home/tangth/BansheeEngine/Source/Scripting/MBansheeEngine/MBansheeEngine.csproj" (default target(s)):
            Target PrepareForBuild:
                Configuration: Release Platform: AnyCPU
                Created directory "obj/Release/"
            Target GenerateSatelliteAssemblies:
            No input files were specified for target GenerateSatelliteAssemblies, skipping.
        Done building project "/home/tangth/BansheeEngine/Source/Scripting/MBansheeEngine/MBansheeEngine.csproj".-- FAILED
    Task "MSBuild" execution -- FAILED
    Done building target "ResolveProjectReferences" in project "/home/tangth/BansheeEngine/Source/Scripting/MBansheeEditor/MBansheeEditor.csproj".-- FAILED
Done building project "/home/tangth/BansheeEngine/Source/Scripting/MBansheeEditor/MBansheeEditor.csproj".-- FAILED

Build FAILED.
     0 Warning(s)
     0 Error(s)
 
User avatar
BearishSun
Banshee Developer
Posts: 96
Joined: Fri Sep 23, 2016 9:52 am

Re: can you build Banshee 3D on linux?

Sun Jul 01, 2018 9:06 am

I'm not familiar with that issue, but at the same time it has been a while since I tested the editor on Linux. I can suggest trying to compile MBansheeEngine.csproj manually using your installed Mono, and perhaps you can get a clearer error message. Perhaps a newer Mono version is required.
 
tni711
Topic Author
Posts: 7
Joined: Sat Jun 30, 2018 1:52 am

Re: can you build Banshee 3D on linux?

Sun Jul 01, 2018 2:19 pm

Thanks!
The compile issues are all resolved now after I upgraded the mono compiler version and other needed dependencies as per your github linux compile instructions
https://github.com/BearishSun/BansheeEn ... mpiling.md.

I am able to bring up the Banshee3D editor in my Ubuntu 16.04 environment.

Now it complaints Jack Server cannot be started. Probably some additional dependencies to be installed before I can explore further of Banshee3D in my linux environment.

runtime issue:
------------------------
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
 
User avatar
BearishSun
Banshee Developer
Posts: 96
Joined: Fri Sep 23, 2016 9:52 am

Re: can you build Banshee 3D on linux?

Sun Jul 01, 2018 4:10 pm

That's a normal message triggered by OpenAL, it won't cause any issues, just OpenAL querying for the existance of that audio module.
 
tni711
Topic Author
Posts: 7
Joined: Sat Jun 30, 2018 1:52 am

Re: can you build Banshee 3D on linux?

Mon Jul 02, 2018 12:57 am

Encountered additional runtime issues.

The editor first crashed due to some missing asset files in the Data directory, I copied the missing files from the Source/bsf/Data directory and be able to proceed a bit further until I tried to create a new project, it crashed after 30 secs hanging. There is no crash report produced.

Runtime exception (seems like it is the GPU related error?):
intel_do_flush_locked failed: Input/output error
AL lib: (EE) alc_cleanup: 1 device not closed

I have Mesa 17.2.8 installed in my environment.
 
User avatar
BearishSun
Banshee Developer
Posts: 96
Joined: Fri Sep 23, 2016 9:52 am

Re: can you build Banshee 3D on linux?

Wed Jul 04, 2018 8:34 pm

There are some known visual glitches with Mesa at the moment, caused by a bug in the drivers themselves. But I haven't experienced crashes yet. 

I haven't properly tested on Intel integrated GPUs yet, so that could be the cause (assuming that's the GPU due to the error message).
 
tni711
Topic Author
Posts: 7
Joined: Sat Jun 30, 2018 1:52 am

Re: can you build Banshee 3D on linux?

Thu Jul 05, 2018 2:37 am

Thanks for the reply.
Yes, I double checked the syslogs and confirm it is indeed the GPU / driver causing the issues. My current desktop which is based on pretty old graphic card.
I have switched the development to my Dell XPS laptop and able to get pass this GPU issue. Will write up another topic in your new https://discourse.bsframework.io
when I am done with testing it.

Reported error in console:
intel_do_flush_locked failed: Input/output error
AL lib: (EE) alc_cleanup: 1 device not closed

Syslogs:
kernel: [211909.926512] drm/i915: Resetting chip after gpu hang
kernel: [211913.094294] asynchronous wait on fence i915:[global]:4e4839 timed out
kernel: [211917.926378] drm/i915: Resetting chip after gpu hang

My desktop System information
Banshee version: 1.0
OS version: Linux#50~16.04.1-Ubuntu SMP Wed May 30 11:18:27 UTC 2018 64-bit
CPU vendor: GenuineIntel
CPU name: Intel(R) Core(TM) i3-4130 CPU @ 3.40GHz
CPU clock speed: 3400Mhz
CPU core count: 2
GPU: VMware, Inc. llvmpipe (LLVM 5.0, 256 bits)
 
User avatar
BearishSun
Banshee Developer
Posts: 96
Joined: Fri Sep 23, 2016 9:52 am

Re: can you build Banshee 3D on linux?

Thu Jul 05, 2018 8:37 am

Was it running in a virtual machine when it crashed? (Asking because of VMware GPU in your log)

If so then it's pretty normal for it to crash, I never had it running under a VM myself. I don't believe that will be resolved any time soon as the emulated VM GPUs are pretty limited, and Banshee uses a lot of modern features that they probably do not support.

Who is online

Users browsing this forum: No registered users and 0 guests