diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8390d79 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +# Use the Epic Games UE runtime as base +FROM ghcr.io/epicgames/unreal-engine:runtime + +# Set working directory +WORKDIR /app + +# Copy your packages into the container +COPY Packages/ /app/Packages/ + +# Install any additional dependencies if needed +# RUN apt-get update && apt-get install -y + +# Set any environment variables +# ENV UE_PROJECT_ROOT=/app + +# Default command (modify as needed) +CMD ["/bin/bash"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..24eb7fe --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: '3.8' + +services: + unreal-builder: + image: ghcr.io/epicgames/unreal-engine:runtime + volumes: + - ./Packages:/app/Packages + working_dir: /app + tty: true + stdin_open: true \ No newline at end of file diff --git a/evolved-npcs/build.rs b/evolved-npcs/build.rs index 36ec6a8..28bf0ed 100644 --- a/evolved-npcs/build.rs +++ b/evolved-npcs/build.rs @@ -10,16 +10,8 @@ fn main() { } else if target.contains("linux") { // Linux-specific linking // OR if you have a custom location for Linux libs - let lib_dir = "/home/tepichord/evolved-npcs/ai_fighter/AI_Fight_Sim/Plugins/NeuralNetworkAIController/Source/NeuralNetworkAIController/ThirdParty/FANN/lib/linux/x86_64-unknown-linux-gnu/"; - let lib_path = std::path::Path::new(&lib_dir).join("libfann.a"); - if lib_path.exists() { - println!("cargo:rustc-link-search=native={}", lib_dir); - println!("cargo:rustc-link-lib=static=fann"); - println!("cargo:warning=Found libfann.a at: {:?}", lib_path); - } else { - println!("cargo:warning=libfann.a not found at: {:?}", lib_path); - panic!("libfann.a not found in specified directory"); - } + println!("cargo:rustc-link-search=/usr/local/musl/lib"); + println!("cargo:rustc-link-lib=static=fann"); } // Add other target platforms as needed