Xrysnow / LuaSTG-x

LuaSTG-x is a multi-platform game engine.
MIT License
89 stars 17 forks source link

Portable linux version #4

Open 4n0nct opened 3 years ago

4n0nct commented 3 years ago

Have you succeed yourself compiling into a linux version ? If yes, could you make a portable version and upload it in the mega archive ?

ShizuhaAki commented 3 years ago

It seems that I cannot compile it on my GNU/Linux yet. Though I would really want one!

SlawekNowy commented 2 years ago

Repo author provides some dependecies pre-built. This is not the case however with OGGVorbis and openal.One can easily build it.

EDIT: you can add libzip to the list

TODO: why does repo author for some cases prefer prebuilts over source trees?

ShizuhaAki commented 2 years ago

Repo author provides some dependecies pre-built. This is not the case however with OGGVorbis and openal.One can easily build it.

EDIT: you can add libzip to the list

TODO: why does repo author for some cases prefer prebuilts over source trees?

I tried following the official docs, and CMake is throwing up here:

CMake Error at CMakeLists.txt:58 (add_subdirectory):
  add_subdirectory given source
  "/home/lilywhite/LuaSTG-x/frameworks/cocos2d-x/tests/cpp-empty-test" which
  is not an existing directory.

CMake Error at CMakeLists.txt:59 (add_subdirectory):
  add_subdirectory given source
  "/home/lilywhite/LuaSTG-x/frameworks/cocos2d-x/tests/cpp-tests" which is
  not an existing directory.

CMake Error at CMakeLists.txt:62 (add_subdirectory):
  add_subdirectory given source
  "/home/lilywhite/LuaSTG-x/frameworks/cocos2d-x/tests/lua-empty-test/project"
  which is not an existing directory.

CMake Error at CMakeLists.txt:63 (add_subdirectory):
  add_subdirectory given source
  "/home/lilywhite/LuaSTG-x/frameworks/cocos2d-x/tests/lua-tests/project"
  which is not an existing directory.

I'm on a Fedora 36 and I've installed all the equivalents of the dependencies.

@SlawekNowy

SlawekNowy commented 2 years ago

Xrysnow removed tests from his fork at commit https://github.com/Xrysnow/cocos2d-x/commit/bf2dbe1bb581c057519e2ebd383da261ca8456bf , but he didn't remove references to it. See https://github.com/Xrysnow/cocos2d-x/blob/348da560fd293fff759be4616e15bc05ead5391d/CMakeLists.txt#L57

Xrysnow commented 2 years ago

Xrysnow removed tests from his fork at commit Xrysnow/cocos2d-x@bf2dbe1 , but he didn't remove references to it. See https://github.com/Xrysnow/cocos2d-x/blob/348da560fd293fff759be4616e15bc05ead5391d/CMakeLists.txt#L57

This CMakeLists.txt should never be used. Always use https://github.com/Xrysnow/LuaSTG-x/blob/master/CMakeLists.txt to build LuaSTG-x.

SlawekNowy commented 2 years ago

Yea LuaSTG-x's cmakelists uses select dirs from cocos. Do as he said.