getnamo / socketio-client-prebuild

socket io client static library builds for UE4
7 stars 4 forks source link

Errors when running BuildSocketIO.bat #5

Open EddieLongStockings opened 8 years ago

EddieLongStockings commented 8 years ago

I get this error when running BuildSocketIO.bat

D:\Socket IO Prebuild\socketio-client-prebuild>cd src/socket.io-client-cpp

D:\Socket IO Prebuild\socketio-client-prebuild\src\socket.io-client-cpp>REM cmak
e -DBOOST_ROOT:STRING="./boost/include" -DBOOST_VER:STRING="1.60" ./

D:\Socket IO Prebuild\socketio-client-prebuild\src\socket.io-client-cpp>cmake -D
BOOST_INCLUDEDIR="./boost/include" -DBOOST_LIBRARYDIR="./boost/lib" -DBOOST_VER:
STRING="1.60" ./
-- not define build type, set to release
CMake Error at C:/Program Files/CMake/share/cmake-3.7/Modules/FindBoost.cmake:17
93 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.60.0

  Boost include path: D:/Socket IO
  Prebuild/socketio-client-prebuild/src/socket.io-client-cpp/boost/include

  Could not find the following static Boost libraries:

          boost_random

  Some (but not all) of the required Boost libraries were found.  You may
  need to install these additional Boost libraries.  Alternatively, set
  BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
  to the location of Boost.
Call Stack (most recent call first):
  CMakeLists.txt:23 (find_package)

-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the sys
tem variable OPENSSL_ROOT_DIR (missing:  OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR)

-- Configuring incomplete, errors occurred!
See also "D:/Socket IO Prebuild/socketio-client-prebuild/src/socket.io-client-cp
p/CMakeFiles/CMakeOutput.log".

D:\Socket IO Prebuild\socketio-client-prebuild\src\socket.io-client-cpp>cmake ma
ke install
CMake Error: The source directory "D:/Socket IO Prebuild/socketio-client-prebuil
d/src/socket.io-client-cpp/install" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.

D:\Socket IO Prebuild\socketio-client-prebuild\src\socket.io-client-cpp>pause
Press any key to continue . . .

So I go ahead and create the install folder manually and get the below error after:


D:\Socket IO Prebuild\socketio-client-prebuild>cd src/socket.io-client-cpp

D:\Socket IO Prebuild\socketio-client-prebuild\src\socket.io-client-cpp>REM cmak
e -DBOOST_ROOT:STRING="./boost/include" -DBOOST_VER:STRING="1.60" ./

D:\Socket IO Prebuild\socketio-client-prebuild\src\socket.io-client-cpp>cmake -D
BOOST_INCLUDEDIR="./boost/include" -DBOOST_LIBRARYDIR="./boost/lib" -DBOOST_VER:
STRING="1.60" ./
-- not define build type, set to release
CMake Error at C:/Program Files/CMake/share/cmake-3.7/Modules/FindBoost.cmake:17
93 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.60.0

  Boost include path: D:/Socket IO
  Prebuild/socketio-client-prebuild/src/socket.io-client-cpp/boost/include

  Could not find the following static Boost libraries:

          boost_random

  Some (but not all) of the required Boost libraries were found.  You may
  need to install these additional Boost libraries.  Alternatively, set
  BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
  to the location of Boost.
Call Stack (most recent call first):
  CMakeLists.txt:23 (find_package)

-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the sys
tem variable OPENSSL_ROOT_DIR (missing:  OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR)

-- Configuring incomplete, errors occurred!
See also "D:/Socket IO Prebuild/socketio-client-prebuild/src/socket.io-client-cp
p/CMakeFiles/CMakeOutput.log".

D:\Socket IO Prebuild\socketio-client-prebuild\src\socket.io-client-cpp>cmake ma
ke install
CMake Error: The source directory "D:/Socket IO Prebuild/socketio-client-prebuil
d/src/socket.io-client-cpp/install" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

D:\Socket IO Prebuild\socketio-client-prebuild\src\socket.io-client-cpp>pause
Press any key to continue . . .
getnamo commented 8 years ago

If you're building for windows, did you follow these instructions? https://github.com/getnamo/socketio-client-prebuild#windows-instructions-for-building specifically did you git clone --recurse-submodules

Other platform builds are not supported via the bats, you'll need to grab the src and build them manually by following each sub-module repository instruction.

EddieLongStockings commented 8 years ago

Yes, building on windows. Followed the instructions to the letter. Are you saying the only way to get those iOS libs mentioned earlier today is to build them manually?

getnamo commented 8 years ago

So this repository is mainly about automating the builds of the files you need on windows. It seems something is broken =/.

Either way if you take the source found here and build it manually, it will be the same one that was built for windows and so the plugin will match on all platforms. Boost should be 1.6, and socket.io should be the submodule branch specifically linked in this repository.

If you manage to automate the build, this would be the place to make instructions for others wanting to do follow the same steps that you've done, if at some point we decide to move the socket.io c++ client dependency forward.

EddieLongStockings commented 8 years ago

I wasn't able to get this to work. I don't know when I can get into it again. Really sorry @getnamo. I know we all would have benefited. I just don't have the expertise right at this moment.

getnamo commented 8 years ago

No worries @Tauri4n getting everything jigged isn't as simple problem, I appreciate all your effort! If you reply with some of the things you've tried, it will help if others decide to pick up the baton for the platform. At some point later if I get the time, I'll look again at the mac/ios platforms perhaps together we can crack it.

getnamo commented 7 years ago

updated the prebuild with newer settings. the buildsocketio.bat never reached automatic build status. Looks like I always modified .slns after using cmake to make the project files. It's also not ideal because most of my previous builds didn't include openssl, nor instructions on how to add those. To be improved hopefully someday...