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

occt 7.2/7.4 build error: cannot find -lXmu #727

Closed
roipoussiere opened this issue May 6, 2020 · 2 comments
Closed

occt 7.2/7.4 build error: cannot find -lXmu #727

roipoussiere opened this issue May 6, 2020 · 2 comments

Comments

@roipoussiere
Copy link

roipoussiere commented May 6, 2020

I installed these dependencies:

  • glu 9.0.1
  • freeglut 3.2.1
  • tcl 8.6.10
  • tk 8.6.10

Then when I build opencascade 7.4, extracted from the last release, the build stop at 36% without a clear error message:

# [ 36%] Linking CXX shared library ../../lin64/gcc/lib/libTKShHealing.so
# [ 36%] Built target TKShHealing
# make: *** [Makefile:130: all] Error 2
# Error: module oce: Child process exited with code 2

Note: when building occt 7.2 I'm facing an other problem (#728) (edit: probably not related).

@roipoussiere roipoussiere changed the title error when building opencascade 7.4 error when building opencascade 7.2 and 7.4 May 7, 2020
@roipoussiere roipoussiere changed the title error when building opencascade 7.2 and 7.4 occt 7.2/7.4 build error: cannot find -lXmu May 7, 2020
@roipoussiere
Copy link
Author

roipoussiere commented May 7, 2020

After redirecting stderr to a file, I found the error message (which was hidden by some really verbose unfinished jobs):

/usr/lib/gcc/x86_64-unknown-linux-gnu/9.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: cannot find -lXmu
collect2: error: ld returned 1 exit status
make[2]: *** [src/TKService/CMakeFiles/TKService.dir/build.make:440: lin64/gcc/lib/libTKService.so.7.2.0] Error 1
make[1]: *** [CMakeFiles/Makefile2:1190: src/TKService/CMakeFiles/TKService.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

This error appears on both occt 7.2 and 7.4

@roipoussiere
Copy link
Author

roipoussiere commented May 7, 2020

As suggested here I ran ld -lXmu --verbose:

[...]
ld: mode elf_x86_64
attempt to open /usr/x86_64-unknown-linux-gnu/lib64/libXmu.so failed
attempt to open /usr/x86_64-unknown-linux-gnu/lib64/libXmu.a failed
attempt to open /usr/lib/x86_64-linux-gnu/libXmu.so failed
attempt to open /usr/lib/x86_64-linux-gnu/libXmu.a failed
attempt to open /usr/lib/libXmu.so failed
attempt to open /usr/lib/libXmu.a failed
attempt to open /usr/x86_64-unknown-linux-gnu/lib/libXmu.so failed
attempt to open /usr/x86_64-unknown-linux-gnu/lib/libXmu.a failed
ld: cannot find -lXmu

So libxmu was missing, installing it fixed the problem.

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