x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Minimal Hello World C++ application?

Hello. I am considering upgrading one of my big projects to use UE4 as visualization. The project (let us call it FOO) has its own physics, networking and TONS of other stuff. My idea is basically include UE4 into FOO rather than include FOO into UE4. For business and project reasons I cannot afford huge "revolution" with full UE4 implementation. On the other side replacing visuals will make FOO much more impressive, and can just be a first step into UE4.

So my question is - is it possible to use UE4 with pipeline: prepare terrain database with weather conditions in UE4Editor, and use the prepared level in my application linked against UE4 libraries. The app should be "old style:)" generally doing:

 int main (int argc, char** argv)
 {
    loadUnrealDatabase(char* pathToUnrealSceneFile);
    while (IdontWannaExit)
    {
        // CRUD operations with a set on assets: objects, particles, weather
        // with data obtained from FOO. One object can be represented for example by 
        // one uasset file or collection of files.
       updateUnrealDatabase(); 
       updateCameraLocation();
 
       // update UE4 engine
       updateUnrealScene();
    }
 
    return 0;
 }

I know it may look "old style" and against the philosophy, but as I said using current FOO software with all its complexity is the only way for me.

Product Version: Not Selected
Tags:
more ▼

asked Jan 05 '15 at 09:31 PM in C++ Programming

avatar image

tomecki
6 1 4 4

avatar image tomecki Jan 20 '15 at 10:02 AM

Uhmm... - not a single idea? OK. Maybe I will redefine my question. I am trying to build a simple application based on UE4. So what I do is:

  • run Editor

  • select New Project / C++ / Basic Code

  • set options: Desktop/Console, Maximum Quality, With Starter Content

  • press Create Project

  • after a whilemy project is ready with starter content visible, so I press Compile button (no changes made to starter content)

  • the popupu window shows up saying "Compiling C++ code"

  • after few seconds another popup says: C++ compile failed!

The error always occurs in promoted version (4.8.0) and 4.6.

So my question here is - how can I make a minimal app, when the built-in compilation is not working? Can I make an app that WILL compile, just the small application with window and some simple content (eg non textured box) for the beginning?

avatar image tomecki Jan 20 '15 at 10:02 AM

Pressing "show log" on the popup does not work, so I attach the output from console:

  [2015.01.20-09.46.34:548][671]Recompiling CppTest...
 [2015.01.20-09.46.34:548][671]Launching UnrealBuildTool... [/home/tomek/dev/UnrealEngine-promoted/Engine/Binaries/DotNET/UnrealBuildTool.exe CppTest -ModuleWithSuffix CppTest 5047 Linux Development -editorrecompile -canskiplink "/home/tomek/Documents/Unreal Projects/CppTest/CppTest.uproject"  -progress]
 [2015.01.20-09.46.34:555][671]LogHAL: FLinuxPlatformProcess::CreateProc: spawned child 4166
 [2015.01.20-09.46.34:557][671]Warning: Starting HotReload took  0.0s.
 [2015.01.20-09.46.38:856][917]LogHAL: Child 4166 is no more running (zombie), Wait()ing immediately.
 [2015.01.20-09.46.38:856][917]CompilerResultsLog: New page: Compilation - Jan 20, 2015, 11:46:38 AM
 [2015.01.20-09.46.38:856][917]CompilerResultsLog: Info 
 [2015.01.20-09.46.38:856][917]CompilerResultsLog: Info Running Mono...
 [2015.01.20-09.46.38:856][917]CompilerResultsLog: Info 
 [2015.01.20-09.46.38:856][917]CompilerResultsLog: Info ~/dev/UnrealEngine-promoted/Engine ~/dev/UnrealEngine-promoted/Engine/Binaries/Linux
 [2015.01.20-09.46.38:857][917]CompilerResultsLog: Info Using clang version '3.3' (string), 3 (major), 3 (minor), -1 (patch)
 [2015.01.20-09.46.38:857][917]CompilerResultsLog: Info Compiling game modules for hot reload
 [2015.01.20-09.46.38:857][917]CompilerResultsLog: Info @progress 'Generating headers...' 0%
 [2015.01.20-09.46.38:857][917]CompilerResultsLog: Info @progress 'Generating headers...' 67%
 [2015.01.20-09.46.38:857][917]CompilerResultsLog: Info @progress 'Generating headers...' 100%
 [2015.01.20-09.46.38:857][917]CompilerResultsLog: Info Target is up to date.
 [2015.01.20-09.46.38:857][917]LogMainFrame: MainFrame: Module compiling took 4.347 seconds
 [2015.01.20-09.46.38:857][917]Warning: HotReload failed, recompile failed
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question