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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Can't link websockets_static.lib

When trying to compile UE4 from master (2014-09-02) with emscripten, I get an error that the websockets_static.lib file was not found during the linking step.

However the file is already located in the WebSockets module here: UnrealEngine\Engine\Source\ThirdParty\WebSockets\libwebsockets\lib\x64\2013\websockets_static.lib

Product Version: Not Selected
Tags:
more ▼

asked Sep 03 '14 at 09:18 PM in C++ Programming

avatar image

smilingrob
570 19 31 49

avatar image [Ankitkk] STAFF Sep 05 '14 at 10:22 PM

I would suggest to upgrade to 2013, FWIW - my setup is 2012 professional and 2013 express. I generate 2012 project file s and let the UBT actually invoke 2013. Your mileage may vary.

avatar image smilingrob Sep 06 '14 at 12:15 AM

The VS 2013 installer wouldn't work on my machine because I don't have Windows 8+

avatar image [Ankitkk] STAFF Sep 06 '14 at 12:25 AM

I think you might trying to install the one which does win 8 ui. the basic desktop edition just needs Win 7 + SPI1

avatar image smilingrob Sep 06 '14 at 01:04 AM

Thanks! I just installed it and found out Visual Assist (VAX) doesn't work with express. Anyway, why do you think 2013 is better than 2012? Just to avoid these issues?

avatar image [Ankitkk] STAFF Sep 06 '14 at 02:06 AM

yeah, express doesn't support plugin. VAX is the reason i use 2012 IDE for which I have a pro license. But still use 2013 as the compiler from express.

Do you have any local changes ( in UBT? UEBuildWindows.cs ? ) to force 2012 ? revert those. and then generate project files using "GenerateProjectFiles.bat -2012". This will generate a UE4.sln file which opens in 2012. all build/clean commands go though UBT batchfies so it will invoke the right compiler.

This setup SHOULD work with latest master, if it doesn't it's a bug.

if you are dealing with UE codebase, my best guess is to avoid 2012. and move on to 2013.

That being said - mea culpa - websockets_lib not being there for 2012 is my fault and I will update it as soon I have some time.

HTH.

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

1 answer: sort voted first

The problem is that the WebSockets.Build.cs assumes that only VS2013 can build the libraries. And I am using Windows 7 and VS2012.

I resolved the issue by copying the contents of the 2013 folder into a new 2012 folder.

UnrealEngine\Engine\Source\ThirdParty\WebSockets\libwebsockets\lib\x64\2012

more ▼

answered Sep 03 '14 at 09:19 PM

avatar image

smilingrob
570 19 31 49

(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