UPBGE / upbge

UPBGE, the best integrated game engine in Blender
https://upbge.org
Other
1.45k stars 180 forks source link

Can't build #1734

Closed e2002e closed 2 years ago

e2002e commented 2 years ago
/home/i20/Documents/upbge/intern/cycles/graph/../util/xml.h:18:45: error: ‘OpenImageIO_v2_1::pugi’ has not been declared
   18 | #  define PUGIXML_NAMESPACE OIIO_NAMESPACE::pugi

installed libpugixml-dev and libopenimageio-dev, I am trying the openimage version 2.4 but not sure whether the cmake arguments are correct for setting lib and headers dir because this makes no changes. System is ZorinOS (linux) and branch is 'master'.

lordloki commented 2 years ago

For linux is much easier to use precompiled libs. Please, follow the indications https://github.com/UPBGE/upbge/wiki/Build-UPBGE-on-Linux

e2002e commented 2 years ago

OK i'm got the files, I just respected the folder's name 'lib' created on same level than upbge, and it magically finds all of them when running make.

Now It's stuck here:

CMake Error at build_files/cmake/platform/platform_unix.cmake:483 (if):
  if given arguments:

    "WITH_OPENCOLLADA" "AND" "(" "VERSION_LESS" "4.0.0" ")"

  Unknown arguments specified
Call Stack (most recent call first):
  CMakeLists.txt:1120 (include)
lordloki commented 2 years ago

Maybe there is somethig modified in your side because that line says:

if(WITH_OPENCOLLADA AND (${LLVM_VERSION} VERSION_LESS "4.0.0"))
e2002e commented 2 years ago

It's precisely what it reads on the file line 483, I commented it out and now am having issues with the prebuild opensubdiv

lordloki commented 2 years ago

https://user-images.githubusercontent.com/1015605/185770725-379ad93c-b1d3-4eea-a505-172725525bb5.mp4

e2002e commented 2 years ago

Nice to show me the cmake gui, that seems handy. My issue is when linking blender, related to opensubdiv. I'm trying again today.

e2002e commented 2 years ago

Used Kubuntu 22 and followed the steps in the link. That builds with no errors.