ruyo / VRM4U

Runtime VRM loader for UnrealEngine5
Other
1.39k stars 179 forks source link

UE5 Project could not be compiled. Try rebuilding from source manually. #144

Open KaSakee opened 2 years ago

KaSakee commented 2 years ago

I go to plugins in UE5, (MacBook Pro M1), I choose the latest plugin folder, Moved to project Plugins as VRM4U "done," restart the project,  It request a rebuild, claiming that it was not built with the same engine. Then there's this error. "Project name" could not be compiled. Try rebuilding from source manually.

Missing test Modules

The following modules are missing or built with a different engine version:

VRM4U VRM4ULoader VRM4UImporter VRM4UEditor VRM4UMisc

Would you like to rebuild them now?

I clicked yes

Then this Error.

Error test could not be compiled. Try rebuilding from source manually.

ruyo commented 2 years ago

Hi. Please see this page for instructions on how to build on Mac.

https://ruyo-github-io.translate.goog/VRM4U/03_mac/?_x_tr_sl=ja&_x_tr_tl=en&_x_tr_hl=ja

KaSakee commented 2 years ago

Thanks man, ill check it <3

KaSakee commented 2 years ago

ERROR: make: Nothing to be done for `.'.

I used the GUI to build inside a folder called build, That I created in the assimp-5.0.1 folder.

I put the assimp-5.0.1 in where is the source I put the build-in were to build this binary.

Clicked configure: I unchecked BUILD_SHARED_LIBS And Edited CMAKE_DEPLOYMENT_TARGET to 10.14

Then clicked generate, And it said it's done.

Then inside the terminal, I navigate to the assimp-5.0.1 folder and type: make .

The result is this Error: make: Nothing to be done for `.'.

And btw I'm using bash for my terminal.

Any ideas?

This is the logs from the GUI:

Shared libraries disabled
Looking for ZLIB...
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
Found ZLIB: optimized;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/lib/libz.tbd;debug;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/lib/libz.tbd
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
CMake Warning (dev) at /Applications/CMake.app/Contents/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (rt) does
  not match the name of the calling package (RT).  This can lead to problems
  in calling code that expects `find_package` result variables (e.g.,
  `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake-modules/FindRT.cmake:19 (find_package_handle_standard_args)
  code/CMakeLists.txt:1013 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

Could NOT find rt (missing: RT_LIBRARY) 
INFO Hunter enabled or RT-extension not found. glTF import/export will be built without Open3DGC-compression.
Enabled importer formats: AMF 3DS AC ASE ASSBIN B3D BVH COLLADA DXF CSM HMP IRRMESH IRR LWO LWS MD2 MD3 MD5 MDC MDL NFF NDO OFF OBJ OGRE OPENGEX PLY MS3D COB BLEND IFC XGL FBX Q3D Q3BSP RAW SIB SMD STL TERRAGEN 3D X X3D GLTF 3MF MMD STEP
Disabled importer formats:
Enabled exporter formats: 3DS ASSBIN ASSXML COLLADA OBJ OPENGEX PLY FBX STL X X3D GLTF 3MF ASSJSON STEP
Disabled exporter formats:
CMake Deprecation Warning at tools/assimp_cmd/CMakeLists.txt:40 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

Configuring done
Generating done
ruyo commented 2 years ago

Check the current directory when using make. It must be called in the directory created by cmake.

KaSakee commented 2 years ago

I tried every possible way, I called make inside the build folder created by CMake, Then assimp folder, And vice versa, I tried Calling CMake manually in the terminal inside assimp folder then calling make it worked then took the file called libassimp.dylib then put it in the mac directory inside the lib in the plugins folder VRM4U, Then open project, The exact same error as before, I tried so many things nothing seems to work at all, Any help on mac m1? Because I really want this plugin so bad, And I have put effort to download VRM4U more than UE5 and VROID combined together, We need help as M1 Users guys, And I'm still part of this community tho haha ❤️🙏🏼

KaSakee commented 2 years ago

If i build with a specific arch like x86_64;arm64 it gives in the lib folder files with .a not . dylib? thats very confusing for me, What does that even mean, When the mac folder needs .dylib and the doc says build as x86_64?

Keep in mind i tried also: arm64 and x86_64

ruyo commented 2 years ago

If the cmake settings are correct, a .a file should be created. Follow the documentation to create the configuration with cmake-gui and make in the terminal.

When calling cmake in the terminal, you must have the correct options. This requires familiarity with the use of cmake.