Announcement

Collapse
No announcement yet.

Andorid Package failed because of wrong lib path

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Andorid Package failed because of wrong lib path

    when i try to package android i get error like this:

    UATHelper: Packaging (Android (ASTC)): ld.lld: error: cannot open G:/repo/TUE/Engine/Source/ThirdParty/MSOC/lib: Is a directory
    UATHelper: Packaging (Android (ASTC)): clang++: error: linker command failed with exit code 1 (use -v to see invocation)
    PackagingResults: Error: cannot open G:/repo/TUE/Engine/Source/ThirdParty/MSOC/lib: Is a directory
    PackagingResults: Error: linker command failed with exit code 1 (use -v to see invocation)

    photo show my build.cs file

    if i add some random string to path like
    PublicAdditionalLibraries.Add(SoftWareOcclusionPath+ "lib/"+ libname+"/aaaaa");
    it will success

    seems that unreal will delete last string when link lib

    #2
    Hello,

    This problem occurs due to the nature of the UNIX system. You need to rename your static library to fit the pattern of "lib{name}.lib" or, for example, "lib{name}.a", where "{name}" is any custom name of the library.

    This rule follows from the generally accepted standard of naming static libraries. In more details, the name of the static library defines subsystem-specific prefixes in place of the lib to identify plugins for particular subsystems.

    Comment


      #3
      Amazing.. same thing was happening to us. Thanks for posting this!

      Comment

      Working...
      X