PyroFlareX / Vinegar

My multi-platform rendering engine. Requires C++14.
1 stars 0 forks source link

Make sure code compiles on Linux #19

Open PyroFlareX opened 5 years ago

PyroFlareX commented 5 years ago

Should be g++/gcc compliant. Make sure code compiles with linux/uses packages on the system to do so rather than always recompiling git-submodules.

zayyanabbas commented 4 years ago

It does not compile on Linux. CMake error file shows the following: https://pastebin.com/VQeALhzz

PyroFlareX commented 4 years ago

Did you do any configuration with CMake? That seems to be something with pthread, which I haven't used here.

zayyanabbas commented 4 years ago

I don't think I have, but I'll try again. Are there any dependencies that I need to install?

PyroFlareX commented 4 years ago

You probably need the basic packages, but I'm no expert with package management and cmake, so idk if you need to install anything or if it will build for you.

zayyanabbas commented 4 years ago

Sorry for the delay. Anyways I tried to compile it with CMake again, and it says it couldn't find a package configuration file provided with the names openvr_apiConfig.cmake or openvr-api-config.cmake

CMake Error at CMakeLists.txt:62 (find_package): By not providing "Findopenvr_api.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "openvr_api", but CMake did not find one.

Could not find a package configuration file provided by "openvr_api" with any of the following names:

openvr_apiConfig.cmake
openvr_api-config.cmake

Add the installation prefix of "openvr_api" to CMAKE_PREFIX_PATH or set "openvr_api_DIR" to a directory containing one of the above files. If "openvr_api" provides a separate development package or SDK, be sure it has been installed.

Here's the full errors: https://pastebin.com/fgJhbNnQ

Here's the output: https://pastebin.com/KwCmZ3Y9

PyroFlareX commented 4 years ago

Two things:

  1. When cloning, do you clone --recursive ? Try it if you hadn't already.
  2. Check the /Libraries directory, if their is no openvr folder, or no cmakelists.txt file in the openvr folder, that is the issue. Try downloading the openvr api and copying it to the libraries folder. (With the name "openvr")
zayyanabbas commented 4 years ago

Cloning recursively fixed it.