Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime path requirements? #11

Open
mhuesch opened this issue Jun 9, 2023 · 0 comments
Open

runtime path requirements? #11

mhuesch opened this issue Jun 9, 2023 · 0 comments

Comments

@mhuesch
Copy link

mhuesch commented Jun 9, 2023

hi, first of all thanks for this epic project! I've been really enjoying using it for "ambient background fractals".

I have a question about the build + runtime requirements of the project. I was able to very easily build it, but I am only able to run it successfully from the project root directory:

$ cd src
$ sh build_glChAoSP.sh

    glChAoS.p build starts . . .

    ---  CMake stage  ---

-- selected OpenGL_45 ...
-- OPENGL_INCLUDE_DIRS:
-- OPENGL_LIBRARY: /nix/store/cw3vvzl0ql7s4hb7cw0fw1y60pz7wmlp-libGL-1.6.0/lib/libOpenGL.so;/nix/store/cw3vvzl0ql7s4hb7cw0fw1y60pz7wmlp-libGL-1.6.0/lib/libGLX.so
GNU...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mhueschen/projects-reference/glChAoS.P/src/build

    ---  make stage  ---


[100%] Built target glChAoSP_Linux

    . . . end glChAoS.P


$ ../glChAoSP_Linux
[1]    1283199 floating point exception (core dumped)  ../glChAoSP_Linux
$ cd ..
$ ./glChAoSP_Linux
# (application opens in a new window and works as expected)

my goal in manually building it is to create a nix (https://github.com/NixOS/nix) derivation for the project, so it can be reproducibly built and installed on my NixOS system. it could also, then, be submitted to https://github.com/NixOS/nixpkgs which would allow others to easily install and use this fantastic tool.

I have a derivation which works and produces the same glChAoSP_Linux, but if I run it from anywhere but the project root, it crashes with the same floating point exception as above.

my guess is that there could be assumptions in the code about loading files relative to the project root, but I am not C++ literate enough to know for certain.

when you make the release builds, is there a process for producing the executables beyond sh build_glChAoSP.sh?

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant