adynathos / AugmentedUnreality

Augmented reality for Unreal Engine 4
Other
288 stars 114 forks source link

Broken symlinks in the Example project file #13

Open spixi opened 7 years ago

spixi commented 7 years ago

The example project file contains broken symlinks

I extracted the example project to

/home/mari/Dokumente/Unreal Projects

but it contains broken files, e. g.

/home/mari/Dokumente/Unreal Projects/AugmentedUnrealityEx/Plugins/AugmentedUnreality/Binaries/Linux/libopencv_core.so

is a binary file with the content

00000000  21 3C 73 79  6D 6C 69 6E   6B 3E FF FE  2F 00 6D 00  !<symlink>../.m.
00000010  65 00 64 00  69 00 61 00   2F 00 61 00  64 00 79 00  e.d.i.a./.a.d.y.
00000020  6E 00 61 00  74 00 68 00   6F 00 73 00  2F 00 64 00  n.a.t.h.o.s./.d.
00000030  61 00 74 00  61 00 2D 00   6E 00 74 00  66 00 73 00  a.t.a.-.n.t.f.s.
00000040  2F 00 75 00  6E 00 72 00   65 00 61 00  6C 00 5F 00  /.u.n.r.e.a.l._.
00000050  70 00 72 00  6F 00 6A 00   65 00 63 00  74 00 73 00  p.r.o.j.e.c.t.s.
00000060  2F 00 41 00  75 00 67 00   6D 00 65 00  6E 00 74 00  /.A.u.g.m.e.n.t.
00000070  65 00 64 00  55 00 6E 00   72 00 65 00  61 00 6C 00  e.d.U.n.r.e.a.l.
00000080  69 00 74 00  79 00 45 00   78 00 2F 00  50 00 6C 00  i.t.y.E.x./.P.l.
00000090  75 00 67 00  69 00 6E 00   73 00 2F 00  41 00 75 00  u.g.i.n.s./.A.u.
000000A0  67 00 6D 00  65 00 6E 00   74 00 65 00  64 00 55 00  g.m.e.n.t.e.d.U.
000000B0  6E 00 72 00  65 00 61 00   6C 00 69 00  74 00 79 00  n.r.e.a.l.i.t.y.
000000C0  2F 00 54 00  68 00 69 00   72 00 64 00  50 00 61 00  /.T.h.i.r.d.P.a.
000000D0  72 00 74 00  79 00 2F 00   6F 00 70 00  65 00 6E 00  r.t.y./.o.p.e.n.
000000E0  63 00 76 00  2F 00 2E 00   2E 00 2F 00  2E 00 2E 00  c.v./...../.....
000000F0  2F 00 42 00  69 00 6E 00   61 00 72 00  69 00 65 00  /.B.i.n.a.r.i.e.
00000100  73 00 2F 00  4C 00 69 00   6E 00 75 00  78 00 2F 00  s./.L.i.n.u.x./.
00000110  6C 00 69 00  62 00 6F 00   70 00 65 00  6E 00 63 00  l.i.b.o.p.e.n.c.
00000120  76 00 5F 00  63 00 6F 00   72 00 65 00  2E 00 73 00  v._.c.o.r.e...s.
00000130  6F 00 2E 00  33 00 2E 00   32 00 00 00               o...3...2...

Somehow, the packaging process went wrong as this is not a symlink.

spixi commented 7 years ago

So, this should fix the issue and just recover the symlinks.

find -name \*so.\*|sed 's/\(.*\.so\)\.\(.*\)/rm \1;ln -s \0 \1/g'|bash
spixi commented 7 years ago

And oh, I forgot this: mv libc++.so libc++.so.1 mv libc++abi.so libc++abi.so.1

spixi commented 7 years ago

And there are also some missing libraries:

[2017.10.22-00.04.13:966][ 0]LogLinux: Warning: dlopen failed: libopencv_ml.so.3.2: cannot open shared object file: No such file or directory [2017.10.22-00.04.13:966][ 0]LogModuleManager: Warning: ModuleManager: Unable to load module '/home/mari/Dokumente/Unreal Projects/AugmentedUnrealityEx/Plugins/AugmentedUnreality/Binaries/Linux/libUE4Editor-AugmentedUnreality.so' because the file couldn't be loaded by the OS.

I built opencv 3.2 myself now and use it instead of the bundled libraries.