tsnrp / hermes

2 stars 0 forks source link

windows build is a joke in how hard it is #14

Open StarryWisdom opened 5 years ago

StarryWisdom commented 5 years ago

issue tracking for fixed to be implemented pdcurses is inside of src folder rather than lib (can the dep just be dropped) cmake file wrong - run diff to get fixes need to confirm that git submodules update will pull things like google test in correctly google test is in wrong location folder leto/ not libs/ target_link_libraries of pthread (needed for gcc) is causing compile errors in windows lack of documentation re build program HDR causes miss compile (may be lack of protoc) glm missing from build (assuming its in build) error for 32 bit build is a warning not an error boost include directory isnt include before its used (or is it that the find_package isnt run before it needs to be?) missing guide to install static vs dyanmic link conan install -s build_type=Debug .. Release (for cmake_multi))

StarryWisdom commented 5 years ago

current build steps (not shown - install conan, msvc, cmake) (not shown - copy git submodules to correct location) make directory build in source tree start command prompt in that location conan install -s build_type=Release .. conan install -s build_type=Debug .. conan install .. start cmake "where is the source code" -> directory copied to "where to build the binaries" -> above directory / build set platform to x64 (check if needed) bugfix - comment out glfw3 find_package, PDcurses bugfix - add (post find glfw3) include(${CMAKE_BINARY_DIR}/conanbuildinfo_multi.cmake) conan_basic_setup(TARGETS) bugfix - case of protobuf bugfix - boost not working bugfix - pthread included in windows build - fix something is wrong in how I include protobuf - until this is fixed I cant fix the remaning steps

StarryWisdom commented 5 years ago

after assorted cmake fixes (not shown - install conan, msvc, cmake) (not shown - copy git submodules to correct location) bugfix - pull up to date conanfile updates to cmake (pull into master) (to be put in bat file) mkdir build cd build conan install -s build_type=Release .. conan install -s build_type=Debug .. conan install .. start cmake start cmake "where is the source code" -> directory copied to "where to build the binaries" -> above directory / build configure (if this causes an error ensure that the platform is x64) finish currently broken - find_package for glfw3 broken steps at conanfile step - restest after fixing this rebuild had about half the broken steps as last time though

StarryWisdom commented 5 years ago

getting there follow readme.windows.build.txt configure step may be uneeded? (check)

bugfix - missing includes in CMAKE bugfix - gtest, pdcurses both broken in CMAKE bugfix - remove preprocessor defs in hermes.cpp bugfix - add glm/0.9.9.5@g-truc/stable to conan bugfix - add find_package(glm REQUIRED) & target_link_libraries(leto_core PRIVATE glm) into cmake file (can I get away from using include dir?)