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"

UBT compile command running from C++ doesn't produce same results as command line.

I'm using CreateProcess to run UBT whenever my game documentation code generator generates new C++ files. I'm passing in the path to UBT, and the argument string to CreateProcess. Generating the build files works without issue with the command, \Path\to\UnrealBuildTool.exe Win64 Development -ProjectFiles -Project="\path\to\project.uproject" -game -engine

Running the build command doesn't appear to be working from C++. \path\to\UnrealBuildTool.exe ProjectEditor Win64 Development \path\to\project.uproject -waitmutex -Deploy The same command string works perfectly fine from any directory in the command prompt. I even tried putting Sleep in between generating updated ProjectFiles for UBT, and compilation in case something wasn't finished being generated when the build command executes. Are there any additional arguments I would have to pass in if not running UBT through the command prompt? Can I just use NMake directly?

EDIT: I was able to fix the issue by adding a space to the start of the argument string used by CreateProcess is there any means of avoiding that? It feels like Windows should be able to interpret the command without that space being at the start.

Product Version: UE 4.15
more ▼

asked Apr 24 '17 at 02:48 AM in C++ Programming

avatar image

138 8 17 25

(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