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

NBIS build error #22

Closed
camtheham opened this issue May 17, 2023 · 5 comments
Closed

NBIS build error #22

camtheham opened this issue May 17, 2023 · 5 comments

Comments

@camtheham
Copy link

Hello,

I am trying to install on Windows 10 running WSL2 ubuntu 22.04. I installed all of the requirements without issue, and then I tried to install NBIS. I followed the installation guide for linux included in the NBIS directory and did the following:

  1. Created a directory named build in the OpenEft directory
  2. Ran the setup script with ./setup ../build/
  3. make config
  4. make it
  5. make install LIBNBIS=yes

I have also tried LIBNIBS=no and excluding LIBNBIS entirely from the last command. The result I keep getting is shown below. What am I missing? If it helps, I followed the OpenJPEG install guide as well and built into the /home/user_name directory.

When I manually go into the nbis/ijg/src/lib/jpegb directory, I see that libjpegb.a is actually there. I can even copy this file to the desired destination of ../build/lib.

Anybody else run into this issue?

makeInstallError
@Tim-Healey
Copy link

I am not very familiar with WSL, but maybe try elevating the command?
sudo make install LIBNBIS=no
What version of GCC are you using? I could only get the NBIS binaries to install correctly using an older version.

@Sn1PeR
Copy link

Sn1PeR commented May 18, 2023

You need to implement this pull request:
lessandro/nbis#1

I built nbis separately from here, then added the bins to my $PATH and it now works.

@camtheham
Copy link
Author

@Tim-Healey I am using GCC 9 as I ran into that same issue from that thread and followed the given solution. I forgot to mention that I did try all commands as sudo with the same result, which is what really puzzled me. I will try to build nbis from the link in @Sn1PeR's comment.

@camtheham
Copy link
Author

camtheham commented May 18, 2023

Trying to build from that nbis fork still gave me this same error. The second screenshot even shows that the file that "doesn't exist" is exactly where it should be. Any ideas? Maybe I'm missing a package?

specificError libjpeg

Edit: I see the command I'm getting an error on is "cp -f libjpegb.a \ build/lib/libjpeg.a". What is that backslash doing here?

@camtheham
Copy link
Author

Now I got it to work! Instead of creating my build directory for nbis inside of the main nbis directory, I created it in my /home/user_name directory. Running through the same process as above it worked using this as my build destination.

Note: I did end up using "sudo make install LIBNBIS=no" this time.

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

3 participants