-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
meshlab: 1.3.3 -> 2016.12 #26680
meshlab: 1.3.3 -> 2016.12 #26680
Conversation
@nh2: I get the following error when I try to
|
Hmm, you're right, I get something similar (but not the same):
It must depend on the nixpkgs base. On the commit in my PR, I'll try to reproduce the build success on top of an appropriate nixpkgs commit. |
@bennofs Can you try my commit cherry-picked on top of |
I've rebased now on latest master and am currently trying to build it there. |
I think it's because the feature that detects this problem wasn't there on the commit on which I based the original patch; feature introduced on May 4 here: 94d164d |
OK so the problem is:
I don't know why this is. I don't even know why that directory is there or where it should be instead. "I just want to build a QT app" :D But this looks similar to #27174. So maybe @ttuegel knows how to do this correctly? |
Whenever you override a phase, you must call the pre- and post-hooks. For example, {
installPhase = ''
runHook preInstall
# actual installPhase here
runHook postInstall
'';
} |
OK, I've pushe a fix to call the hooks, and with that it builds without error. But I get this new error when trying to run it:
|
OK looks like I'm missing some env var to be set; I can launch it successfully like this:
So it seems like I'm missing |
@ttuegel Do you have another tip of how I can set |
@ttuegel Short ping because Meshlab 2016 is pretty useful |
That variable should not need to be set, but you also cannot run Qt 5 packages from |
Issues seem fixed and merged in #32309 |
Motivation for this change
Meshlab 2016.12 is significantly improved vs Meshlab 1.3.3.
Apparently we need way less patches here than Arch Linux to make things compile; I haven't yet found something that breaks without them.
Not all contents of the
QMAKE_FLAGS
may be needed, but I stuck close to the ones given in cnr-isti-vclab/meshlab#68 (comment). If somebody wants to make the effort and find which ones are truly not needed, I'd welcome it.Note for non-NixOS users (for example, when you run nix on Ubuntu or Debian), you need to use
LD_PRELOAD
orLD_LIBRARY_PATH
so that your systemlibGL.so.1
can be found.For example, on my Nvidia system I use this to run:
nix-shell --pure -p meshlab --run 'LD_LIBRARY_PATH=/usr/lib/nvidia-375 meshlab'
.Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)