Could I get some help with getting a standalone app running?
Hi Epic guys!
I need a little help here!
I have been trying for the last two days to get a simple standalone program to work and I am getting really frustrated cause I cant get it to work. I am really lost. Could you pIease give me some advices on how to proceed?
What I need: A simple window with a viewport and a rotating cube on the screen!
I copied SlateViewer code, made some changes, so it was renamed to TestApp and got a simple Slate window up and running. Then I tried to add the Engine module to subclass the FViewportClient class so I could use a SViewport to show a cube on the screen and thats where things got complicated. So I have just been trying to add Engine module to my project. But it seems I am missing something.
I have added the Engine.h include in my TestApp.h header and have added the Engine module name to my TestApp.Build.cs file.
Have changed my file TestApp.Target.cs so it would compile against the engine
And regenerated project files with GenerateProjectFiles.bat.
My solution platform is set to Development Win64 on Configuration Manager I have only UE4 and TestApp set to build, where UE4 is set to Development_Game x64 and TestApp is set to Development_Program x64.
You can look in the log file that it is trying to compile UnrealEd.h even though I have set bBuildEditor to false.
I dont know what to do anymore. Can someone give me some light on this? I have attached my source files and build log.
I would recommend looking at some of the existing standalone apps under the Programs folder in Visual Studio. Getting a standalone app up and running is currently not as easy as it should be and requires various initialization and shutdown steps in the correct order.
A relatively simple example is the SlateViewer application, and a somewhat more complicated example is UnrealFrontend. Another example for iOS is LaunchDaemon. I would recommend starting by duplicating the Main() loop and Build.cs files of one of these existing apps, get it to compile and run, and then remove everything you don't need.
We have a task scheduled for creating a standalone app template for Visual Studio that will make this easier, but that may still take a while. The main problem is that standalone apps were kind of shoehorned into the existing LaunchEngineLoop implementation, which is, at this point, a nearly intractable accumulation of all kinds of initialization and shutdown code that has accumulated over more than 15 years. We are planning to clean this up as well, but I wouldn't hold my breath for a quick fix.
answered Jun 01 '14 at 12:48 AM
I am also want to do this. we have a project to use UE4 to render our building modules,。 our app is very large so must embed ue4 as a plugs. is there any way to do this?
answered May 01 '18 at 12:45 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here