Replies: 3 comments 7 replies
-
|
Confirming that this seems to largely work on the latest Linux Mint. I'm sure it will work with most distros with tweakage. |
Beta Was this translation helpful? Give feedback.
-
|
If anyone wants to run PicoGK leveraging Google Colab's runtime you can use this: This runs PicoGK in headless mode and generates an STL file. Colab runs on Ubuntu. If you'd like to compile and run PicoGK on your own Ubuntu, I've done it this way:
|
Beta Was this translation helpful? Give feedback.
-
Sharing my experience: Successfully running PicoGK on NixOSHi everyone! I noticed some discussions about running PicoGK on Linux. I recently managed to get it working on NixOS (running Hyprland) and wanted to share the steps that worked for me, as the standard Docker/pre-build approach had some issues in my environment. The Challenges I FacedInitially, I ran into Additionally, if you try to use the bundled GLFW, you might see: This usually happens because the bundled GLFW doesn't play well with NixOS graphics drivers. My Solution1. Creating a Native Nix EnvironmentInstead of Docker, I used a shell.nix to provide all necessary dependencies during the build. { pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
cmake
pkg-config
wayland-scanner.dev
gcc
];
buildInputs = with pkgs; [
boost
c-blosc
onetbb
zlib
wayland
wayland-protocols
libxkbcommon.dev
libGL
libGLU
glfw
xorg.libX11
xorg.libXrandr
xorg.libXinerama
xorg.libXcursor
xorg.libXi
xorg.libXext
xorg.libXrender
];
CMAKE_PREFIX_PATH = with pkgs; [
wayland-protocols
wayland-scanner
];
}2. Tweaking build processTo fix GLFW errors, I decided to use the system-provided GLFW instead of the bundled one.
mkdir build && cd build
cmake ..
make3. Handling .NET Library LookupAfter the build, I noticed .NET was very specific about the filenames it was looking for. I solved this by creating a few symbolic links in my project folder. I'm not sure if all of them are strictly necessary, but creating these four made the errors go away: ln -sf picogk.so picogk.1.7
ln -sf picogk.so libpicogk.1.7
ln -sf picogk.so picogk.1.7.so
ln -sf picogk.so libpicogk.1.7.soResultAfter these steps, the viewer launched perfectly on Hyprland. If you are on NixOS or another distro facing similar library "loops," I hope this experience helps you save some time! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
As I said in another thread, I have no immediate plans to also officially support LINUX (I really do not have any decent way to test it).
But I have set up a Docker environment that (at least on my Mac) successfully compiles PicoGK on LINUX. You can find it in the
Miscfolder of the PicoGKRuntime project.To build the Docker environment, open up a command line in the
Miscsubfolder, and run:(you can choose any name,
picogk2is just for your reference — don't forget the.at the end of the command to reference the local folder)After building the environment, you can mount it like this:
Make sure you replace the path to wherever your
PicoGKRuntimerepo is located locally.If successful, you will now end up inside the Docker environment in the
/srcdirectory, which points to thePicoGKRuntimedirectory outside the Docker container.You can now configure using CMake. First create a build directory.
Then configure the build environment using
cmakeand build it usingmake.This should work. Again, I have not tested the compiled result, but it does compile.
Best,
Lin
Dockerfile attached for your reference:
Beta Was this translation helpful? Give feedback.
All reactions