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

Linux support #69

Open
technicalwonderland opened this issue Aug 30, 2021 · 4 comments
Open

Linux support #69

technicalwonderland opened this issue Aug 30, 2021 · 4 comments

Comments

@technicalwonderland
Copy link

Hey,

I have a newest version of CEF, but after adding all lib files into appropriate folders into ThirdParty I get those issues:


In file included from /home/adam/perforce/StreamingVlc/Plugins/BLUI/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/Blu/Module.Blu.gen.cpp:4:
In file included from /home/adam/perforce/StreamingVlc/Plugins/BLUI/Intermediate/Build/Linux/B4D820EA/UE4Editor/Inc/Blu/BluEye.gen.cpp:8:
/home/adam/perforce/StreamingVlc/Plugins/BLUI/Source/Blu/Public/BluEye.h:264:12: error: use of undeclared identifier 'CefBrowser'
        CefRefPtr<CefBrowser> browser;
                  ^
/home/adam/perforce/StreamingVlc/Plugins/BLUI/Source/Blu/Public/BluEye.h:271:3: error: unknown type name 'CefWindowInfo'
                CefWindowInfo info;
                ^
/home/adam/perforce/StreamingVlc/Plugins/BLUI/Source/Blu/Public/BluEye.h:272:3: error: no template named 'CefRefPtr'
                CefRefPtr<BrowserClient> g_handler;
                ^
/home/adam/perforce/StreamingVlc/Plugins/BLUI/Source/Blu/Public/BluEye.h:273:3: error: unknown type name 'CefBrowserSettings'
                CefBrowserSettings browserSettings;
                ^
/home/adam/perforce/StreamingVlc/Plugins/BLUI/Source/Blu/Public/BluEye.h:292:3: error: unknown type name 'CefMouseEvent'
                CefMouseEvent mouse_event;
                ^
/home/adam/perforce/StreamingVlc/Plugins/BLUI/Source/Blu/Public/BluEye.h:293:3: error: unknown type name 'CefKeyEvent'
                CefKeyEvent key_event;
                ^
/home/adam/perforce/StreamingVlc/Plugins/BLUI/Source/Blu/Public/BluEye.h:57:2: error: cannot initialize return object of type 'UObject *' with an rvalue of type 'UBluEye *'
        GENERATED_BODY()
        ^~~~~~~~~~~~~~~~

Apart from standard libs I also added more, here is part of Blu.Build.cs :


			PublicAdditionalLibraries.Add(Path.Combine(ThirdPartyPath, "cef/Linux/lib", "libcef.so"));
			PublicAdditionalLibraries.Add(Path.Combine(ThirdPartyPath, "cef/Linux/lib", "libEGL.so"));
			PublicAdditionalLibraries.Add(Path.Combine(ThirdPartyPath, "cef/Linux/lib", "libGLESv2.so"));
			PublicAdditionalLibraries.Add(Path.Combine(ThirdPartyPath, "cef/Linux/lib", "libcef_dll_wrapper.a"));

			PublicIncludePaths.AddRange(
				new string[] {
					Path.Combine(ThirdPartyPath, "cef/Linux")
				});

Those libraries I've got from official download website. I also tried to build with this instruction, but BluBrowser: https://github.com/getnamo/BluBrowser but this also did not help.

Could you be so kind and help out with this one?

Kind Regards,
Adam.

@getnamo
Copy link
Owner

getnamo commented Dec 14, 2021

There currently isn't a linux build. You'll need to modify BluBrowser to make a process equivalent of blu_ue4_process.exe found in BLUI/ThirdParty/cef/Win/shipping along with matching static libs. It's quite an involved process unfortunately and why we don't currently have a linux build unless a programmer spends the time and resources to make one.

@nekwo
Copy link

nekwo commented Dec 18, 2022

can't you just download the cef precompiled binaries for the linux build and place it there? same if you want a newer version of cef on windows?

@nekwo
Copy link

nekwo commented Dec 18, 2022

if not is there a specific way it needs to be built for unreal?

@getnamo
Copy link
Owner

getnamo commented Dec 18, 2022

See https://github.com/getnamo/BluBrowser for solution to build the process. I believe only minor modifications are used for the build.

@getnamo getnamo changed the title Linux compilation issues Linux support Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants