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

Help with cpp include, blueprints work fine. Forgetting something? #66

Closed
n-smits opened this issue Jun 28, 2021 · 5 comments
Closed

Help with cpp include, blueprints work fine. Forgetting something? #66

n-smits opened this issue Jun 28, 2021 · 5 comments

Comments

@n-smits
Copy link

n-smits commented Jun 28, 2021

Blueprints compile and display fine, but this fails. Help please.

// Project.Build.cs
PublicDependencyModuleNames.AddRange( new[] {
  "Core", "CoreUObject", "Engine", "InputCore"
});
PrivateDependencyModuleNames.AddRange( new[] {
  "UMG", "SlateCore", "Blu", // <--------------------
  "Paper2D", "Sockets", "Niagara"
}); 
// Foo.cpp
#include "Foo.h"
// build fails with if any of the following, all ok by ReSharper
#include "BluEye.h"
#include "Blu/Public/BluEye.h"
#include "Project/../../Plugins/BLUI/Source/Blu/Public/BluEye.h"
"C:\...\UE_4.26\Engine\Build\BatchFiles\Build.bat" Editor Win64 Development ...
Using Visual Studio 2019 14.29.30038 toolchain (C..) and Windows 10.0.18362.0 SDK (C..)

[1/4] Foo.cpp
C:\...\INCLUDE\cwchar(32): Error C2589 : ';': illegal token on right side of '::'
C:\...\INCLUDE\cwchar(33): Error C2059 : syntax error: 'using'
C:\...\include\10.0.18362.0\ucrt\locale.h(60): Error C2059 : syntax error: 'struct'
C:\...\include\10.0.18362.0\ucrt\locale.h(162): Error C2059 : syntax error: 'struct'
C:\...\include\10.0.18362.0\ucrt\locale.h(170): Error C2059 : syntax error: 'struct'
C:\...\INCLUDE\xlocinfo.h(115): Error C4430 : missing type specifier - int assumed. Note: C++ does not support default-int
C:\...\INCLUDE\xlocinfo.h(115): Error C2143 : syntax error: missing ')' before 'template'
C:\...\INCLUDE\xlocinfo.h(115): Error C2143 : syntax error: missing ';' before 'template'
C:\...\INCLUDE\xlocinfo.h(114): Error C2733 : '_Strftime': you cannot overload a function with 'extern "C"' linkage
C:\...\include\10.0.18362.0\ucrt\locale.h(158): Reference C2733 : see declaration of '_Strftime'
C:\...\INCLUDE\xlocinfo.h(115): Error C2059 : syntax error: '*'
C:\...\INCLUDE\xlocinfo.h(115): Error C2059 : syntax error: ')'
C:\...\INCLUDE\xlocinfo.h(124): Error C4430 : missing type specifier - int assumed. Note: C++ does not support default-int
C:\...\INCLUDE\xlocinfo.h(124): Error C2143 : syntax error: missing ')' before 'template'
C:\...\INCLUDE\xlocinfo.h(124): Error C2143 : syntax error: missing ';' before 'template'
C:\...\INCLUDE\xlocinfo.h(123): Error C2733 : '_Wcsftime': you cannot overload a function with 'extern "C"' linkage
C:\...\include\10.0.18362.0\ucrt\locale.h(166): Reference C2733 : see declaration of '_Wcsftime'
C:\...\INCLUDE\xlocinfo.h(124): Error C2059 : syntax error: '*'
C:\...\INCLUDE\xlocinfo.h(124): Error C2059 : syntax error: ')'
C:\...\Plugins\BLUI\ThirdParty\cef\Win\include/cef_browser.h(799): Error C2833 : 'operator )' is not a recognized operator or type
C:\...\Plugins\BLUI\ThirdParty\cef\Win\include/cef_browser.h(799): Error C2143 : syntax error: missing ')' before 'newline'
C:\...\Plugins\BLUI\ThirdParty\cef\Win\include/cef_browser.h(799): Error C2143 : syntax error: missing ';' before 'newline'
C:\...\Plugins\BLUI\ThirdParty\cef\Win\include/cef_browser.h(799): Error C2059 : syntax error: 'newline'
C:\...\Plugins\BLUI\ThirdParty\cef\Win\include/cef_browser.h(799): Error C2238 : unexpected token(s) preceding ';'

C:\...\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets(45,5): Error MSB3073 : 
The command ""C:\...\UE_4.26\Engine\Build\BatchFiles\Build.bat" 
Editor Win64 Development -Project="C..." -WaitMutex -FromMsBuild" 
exited with code 6.
Build failed at 8:43:54 AM
@getnamo
Copy link
Owner

getnamo commented Jun 29, 2021

It's plausible you also need BluLoader I'm your dependency modules

@n-smits
Copy link
Author

n-smits commented Jun 30, 2021

Problems persist.

Just for note, I was also able to get another html-ui plugin working (the way I can't get BLUI to work) (but it's a bit laggy so I'm checking BLUI out).

Is there a cpp example somewhere I'm not aware of?

@getnamo
Copy link
Owner

getnamo commented Jun 30, 2021

If you're not using a release did you copy the third party dependencies to https://github.com/getnamo/BLUI/tree/master/ThirdParty/cef? You can get these from a release (.7z file)

@n-smits
Copy link
Author

n-smits commented Jun 30, 2021

I used BLUI-v4.1.0-UE4.26.7z from https://github.com/getnamo/BLUI/releases

@n-smits
Copy link
Author

n-smits commented Jul 3, 2021

Found the error, it was mine. Nvm and thanks.
(And no, it wasn't missing BluLoader)

@n-smits n-smits closed this as completed Jul 3, 2021
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