I’m on 4.12, and I just pulled in your CMakefileGenerator.cs changes. Right now, I’m testing if I can debug the game through CodeLite. I have a feeling the package maintainer removed some key files, trying to slim the Unreal install down.
This is what he’s copying over. Can you see anything missing that should definitely be in there?
package() {
install -Dm644 UE4Editor.desktop “$pkgdir/usr/share/applications/UE4Editor.desktop”
cd $srcdir/UnrealEngine
license
install -Dm644 LICENSE.pdf “$pkgdir/usr/share/licenses/UnrealEngine/LICENSE.pdf”
engine
install -d “$pkgdir/opt/$pkgname/Engine”
these folders needs to be writable, otherwise there is a segmentation fault when starting the editor
cp -r Engine/Binaries “$pkgdir/opt/$pkgname/Engine/Binaries”
cp -r Engine/Build “$pkgdir/opt/$pkgname/Engine/Build”
cp -r Engine/Config “$pkgdir/opt/$pkgname/Engine/Config”
cp -r Engine/Content “$pkgdir/opt/$pkgname/Engine/Content”
install -d “$pkgdir/opt/$pkgname/Engine/DerivedDataCache” # editor needs this
cp -r Engine/Documentation “$pkgdir/opt/$pkgname/Engine/Documentation”
cp -r Engine/Extras “$pkgdir/opt/$pkgname/Engine/Extras”
install -d “$pkgdir/opt/$pkgname/Engine/Intermediate” # editor needs this, but not the files from the build
cp -r Engine/Intermediate “$pkgdir/opt/$pkgname/Engine/Intermediate”
cp -r Engine/Plugins “$pkgdir/opt/$pkgname/Engine/Plugins”
cp -r Engine/Programs “$pkgdir/opt/$pkgname/Engine/Programs”
cp -r Engine/Saved “$pkgdir/opt/$pkgname/Engine/Saved”
cp -r Engine/Shaders “$pkgdir/opt/$pkgname/Engine/Shaders”
cp -r Engine/Source “$pkgdir/opt/$pkgname/Engine/Source” # the source cannot be redistributed, but seems to be needed to compile c++ projects
chmod -R a+rwX “$pkgdir/opt/$pkgname/Engine”
content
cp -r FeaturePacks “$pkgdir/opt/$pkgname/FeaturePacks”
cp -r Samples “$pkgdir/opt/$pkgname/Samples”
cp -r Templates “$pkgdir/opt/$pkgname/Templates”
build scripts, used by some plugins
install -Dm755 GenerateProjectFiles.sh “$pkgdir/opt/$pkgname/GenerateProjectFiles.sh”
install -Dm755 Setup.sh “$pkgdir/opt/$pkgname/Setup.sh”
icon for .desktop file
install -Dm644 Engine/Source/Programs/UnrealVS/Resources/Preview.png “$pkgdir/usr/share/pixmaps/UE4Editor.png”
}
This is what I was using for the install previously, while running 4.11
package() {
install -Dm644 UE4Editor.desktop “$pkgdir/usr/share/applications/UE4Editor.desktop”
cd $srcdir/UnrealEngine
install -Dm644 LICENSE.pdf “$pkgdir/usr/share/licenses/UnrealEngine/LICENSE.pdf”
install -d “$pkgdir/opt/$pkgname”
copy the entire build dir, ~22 GiB
@todo only copy what is needed
cp -r * “$pkgdir/opt/$pkgname/”
make the whole thing world writable, otherwise there is a segmentation fault when starting the editor
@todo find out what specifically needs to writable
chmod -R a+w “$pkgdir/opt/$pkgname/”
install -Dm644 Engine/Content/Editor/Slate/About/UE4Icon.png “$pkgdir/usr/share/pixmaps/UE4Editor.png”
}