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"

How can I resolve these compile errors when trying to follow slate tutorial?

I followed "this tutorial" and had to make minor changes to get it to compile, however I still get the errors below whenever I uncomment lines 20, 27 or 34 from the attached screenshot, I'm doing this from a Mac.

Undefined symbols for architecture x86_64: "SCompoundWidget::OnPaint(FGeometry const&, FSlateRect const&, FSlateWindowElementList&, int, FWidgetStyle const&, bool) const", referenced from: vtable for SMyUIWidget in MyHUD.cpp.o "SWidget::OnHitTest(FGeometry const&, FVector2D)", referenced from: vtable for SMyUIWidget in MyHUD.cpp.o "SWidget::OnKeyboardFocusReceived(FGeometry const&, FKeyboardFocusEvent const&)", referenced from: vtable for SMyUIWidget in MyHUD.cpp.o "SWidget::OnKeyChar(FGeometry const&, FCharacterEvent const&)", referenced from: vtable for SMyUIWidget in MyHUD.cpp.o and the list of errors alt textgoes on

Product Version: Not Selected
Tags:
more ▼

asked Jun 12 '14 at 12:21 AM in C++ Programming

avatar image

jdavid82
1 3 4 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Build CS

Find your Build.CS and add this!

 //Private Module Dependencies                                                            
 PrivateDependencyModuleNames.AddRange(new string[] { "InputCore", "Slate", "SlateCore" });

Specifically SlateCore

:)

Rama

more ▼

answered Jun 12 '14 at 01:21 AM

avatar image

Rama
10.6k 446 346 1088

avatar image jdavid82 Jun 12 '14 at 09:02 PM

Great, that did the trick, thanks a lot!

avatar image Lenka Pitonakova Jan 24 '17 at 01:44 PM

Hi, I am still getting these errors, despite of making the change to the build.cs file. I am running Unreal 4.14 and XCode 8. Could anyone help please?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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