Giter Club home page Giter Club logo

Comments (4)

blacklightpy avatar blacklightpy commented on September 2, 2024

Building with -j1 captures the sequential flow well. The problem is with MuPDF.

[ 10%] Automatic MOC and UIC for target domain
cd /home/jyothish/repos/Librum/build-Release/src/domain && /usr/bin/cmake -E cmake_autogen /home/jyothish/repos/Librum/build-Release/src/domain/CMakeFiles/domain_autogen.dir/AutogenInfo.json Release
make[2]: Leaving directory '/home/jyothish/repos/Librum/build-Release'
[ 10%] Built target domain_autogen
/usr/bin/make  -f src/domain/CMakeFiles/domain.dir/build.make src/domain/CMakeFiles/domain.dir/depend
make[2]: Entering directory '/home/jyothish/repos/Librum/build-Release'
cd /home/jyothish/repos/Librum/build-Release && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/jyothish/repos/Librum /home/jyothish/repos/Librum/src/domain /home/jyothish/repos/Librum/build-Release /home/jyothish/repos/Librum/build-Release/src/domain /home/jyothish/repos/Librum/build-Release/src/domain/CMakeFiles/domain.dir/DependInfo.cmake "--color="
make[2]: Leaving directory '/home/jyothish/repos/Librum/build-Release'
/usr/bin/make  -f src/domain/CMakeFiles/domain.dir/build.make src/domain/CMakeFiles/domain.dir/build
make[2]: Entering directory '/home/jyothish/repos/Librum/build-Release'
make[2]: Nothing to be done for 'src/domain/CMakeFiles/domain.dir/build'.
make[2]: Leaving directory '/home/jyothish/repos/Librum/build-Release'
[ 20%] Built target domain
/usr/bin/make  -f src/application/CMakeFiles/mupdf.dir/build.make src/application/CMakeFiles/mupdf.dir/depend
make[2]: Entering directory '/home/jyothish/repos/Librum/build-Release'
cd /home/jyothish/repos/Librum/build-Release && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/jyothish/repos/Librum /home/jyothish/repos/Librum/src/application /home/jyothish/repos/Librum/build-Release /home/jyothish/repos/Librum/build-Release/src/application /home/jyothish/repos/Librum/build-Release/src/application/CMakeFiles/mupdf.dir/DependInfo.cmake "--color="
make[2]: Leaving directory '/home/jyothish/repos/Librum/build-Release'
/usr/bin/make  -f src/application/CMakeFiles/mupdf.dir/build.make src/application/CMakeFiles/mupdf.dir/build
make[2]: Entering directory '/home/jyothish/repos/Librum/build-Release'
[ 21%] Building mupdf (This takes a while) ...
cd /home/jyothish/repos/Librum/libs/mupdf && /usr/bin/cmake -E env USE_SYSTEM_LIBJPEG=yes USE_SONAME=no ./scripts/mupdfwrap.py --venv -d build/shared-release -b --m-target 'libs tools' -j 0 m01
(+0.0s): parse.py:14:<module>: Warning, could not import clang: No module named 'clang'
(+0.0s): state.py:18:<module>: Warning: failed to import clang.cindex: e=ModuleNotFoundError("No module named 'clang'")
(+0.0s): state.py:18:<module>: We need Clang Python to build MuPDF python.
(+0.0s): state.py:18:<module>: Install with `pip install libclang` (typically inside a Python venv),
(+0.0s): state.py:18:<module>: or (OpenBSD only) `pkg_add py3-llvm.`
(+0.1s): --venv: __main__.py:3012:main2: running: "/usr/bin/python3" -m venv venv-mupdfwrap-3.12-x64
(+3.5s): --venv: __main__.py:3012:main2: [returned e=0]
(+3.5s): --venv: __main__.py:3030:main2: running: . venv-mupdfwrap-3.12-x64/bin/activate && python -m pip install --upgrade pip && python -m pip install --upgrade setuptools libclang swig
(+4.1s): --venv: __main__.py:3030:main2: Requirement already satisfied: pip in ./venv-mupdfwrap-3.12-x64/lib/python3.12/site-packages (24.0)
(+5.5s): --venv: __main__.py:3030:main2: Requirement already satisfied: setuptools in ./venv-mupdfwrap-3.12-x64/lib/python3.12/site-packages (69.5.1)
(+6.2s): --venv: __main__.py:3030:main2: Requirement already satisfied: libclang in ./venv-mupdfwrap-3.12-x64/lib/python3.12/site-packages (18.1.1)
(+6.3s): --venv: __main__.py:3030:main2: Requirement already satisfied: swig in ./venv-mupdfwrap-3.12-x64/lib/python3.12/site-packages (4.2.1)
(+6.8s): --venv: __main__.py:3030:main2: [returned e=0]
(+6.8s): --venv: __main__.py:3039:main2: running: . venv-mupdfwrap-3.12-x64/bin/activate && python ./scripts/mupdfwrap.py -d build/shared-release -b --m-target 'libs tools' -j 0 m01 && deactivate
(+6.9s): --venv: __main__.py:3039:main2: (+0.0s): -b: m: __main__.py:1613:build: Building libmupdf.so ...
(+6.9s): --venv: __main__.py:3039:main2: (+0.0s): -b: m: __main__.py:1217:_get_m_command: Setting -j to  multiprocessing.cpu_count()=4
(+6.9s): --venv: __main__.py:3039:main2: (+0.0s): -b: m: __main__.py:1615:build: running: cd /home/jyothish/repos/Librum/libs/mupdf && make -j 4 HAVE_GLUT=no HAVE_PTHREAD=yes verbose=yes shared=yes build=release build_prefix=shared- libs tools
(+6.9s): --venv: __main__.py:3039:main2: (+0.1s): -b: m: __main__.py:1615:build: (+0.0s): -b: m: __main__.py:1615:build: make[3]: Entering directory '/home/jyothish/repos/Librum/libs/mupdf'
(+8.3s): --venv: __main__.py:3039:main2: (+1.5s): -b: m: __main__.py:1615:build: (+0.0s): -b: m: __main__.py:1615:build: make[3]: Nothing to be done for 'libs'.
(+8.4s): --venv: __main__.py:3039:main2: (+1.5s): -b: m: __main__.py:1615:build: (+0.0s): -b: m: __main__.py:1615:build: make[3]: Nothing to be done for 'tools'.
(+8.4s): --venv: __main__.py:3039:main2: (+1.5s): -b: m: __main__.py:1615:build: (+0.0s): -b: m: __main__.py:1615:build: make[3]: Leaving directory '/home/jyothish/repos/Librum/libs/mupdf'
(+8.4s): --venv: __main__.py:3039:main2: (+1.5s): -b: m: __main__.py:1615:build: (+0.0s): -b: m: __main__.py:1615:build:
(+8.4s): --venv: __main__.py:3039:main2: (+1.5s): -b: m: __main__.py:1615:build: [returned e=0]
(+8.4s): --venv: __main__.py:3039:main2: (+1.5s): -b: 0: __main__.py:1386:build_0: Generating C++ source code ...
(+8.4s): --venv: __main__.py:3039:main2: (+1.5s): -b: 0: cpp.py:4906:close: File unchanged: platform/c++/include/mupdf/extra.h
(+8.4s): --venv: __main__.py:3039:main2: (+1.5s): -b: 0: cpp.py:4906:close: File unchanged: platform/c++/implementation/extra.cpp
(+8.4s): --venv: __main__.py:3039:main2: Traceback (most recent call last):
(+8.4s): --venv: __main__.py:3039:main2:     venv-mupdfwrap-3.12-x64/lib/python3.12/site-packages/clang/cindex.py:4045:get_cindex_library(): library = cdll.LoadLibrary(self.get_filename())
(+8.4s): --venv: __main__.py:3039:main2:     /usr/lib/python3.12/ctypes/__init__.py:460:LoadLibrary(): return self._dlltype(name)
(+8.4s): --venv: __main__.py:3039:main2:     /usr/lib/python3.12/ctypes/__init__.py:379:__init__(): self._handle = _dlopen(self._name, mode)
(+8.4s): --venv: __main__.py:3039:main2: OSError: Error loading shared library libclang.so: No such file or directory
(+8.4s): --venv: __main__.py:3039:main2:
(+8.4s): --venv: __main__.py:3039:main2: During handling of the above exception, another exception occurred:
(+8.4s): --venv: __main__.py:3039:main2: Traceback (most recent call last):
(+8.4s): --venv: __main__.py:3039:main2:     scripts/wrap/cpp.py:5014:cpp_source(): index = state.clang.cindex.Index.create()
(+8.4s): --venv: __main__.py:3039:main2:     venv-mupdfwrap-3.12-x64/lib/python3.12/site-packages/clang/cindex.py:2967:create(): return Index(conf.lib.clang_createIndex(excludeDecls, 0))
(+8.4s): --venv: __main__.py:3039:main2:     venv-mupdfwrap-3.12-x64/lib/python3.12/site-packages/clang/cindex.py:193:__get__(): value = self.wrapped(instance)
(+8.4s): --venv: __main__.py:3039:main2:     venv-mupdfwrap-3.12-x64/lib/python3.12/site-packages/clang/cindex.py:4018:lib(): lib = self.get_cindex_library()
(+8.4s): --venv: __main__.py:3039:main2:     venv-mupdfwrap-3.12-x64/lib/python3.12/site-packages/clang/cindex.py:4052:get_cindex_library(): raise LibclangError(msg)
(+8.4s): --venv: __main__.py:3039:main2: clang.cindex.LibclangError: Error loading shared library libclang.so: No such file or directory. To provide a path to libclang use Config.set_library_path() or Config.set_library_file().
(+8.4s): --venv: __main__.py:3039:main2:
(+8.4s): --venv: __main__.py:3039:main2: The above exception was the direct cause of the following exception:
(+8.4s): --venv: __main__.py:3039:main2: Traceback (most recent call last):
(+8.4s): --venv: __main__.py:3039:main2:     scripts/mupdfwrap.py:6:<module>(): wrap.__main__.main()
(+8.4s): --venv: __main__.py:3039:main2:     scripts/wrap/__main__.py:3089:main(): jlib.exception_info()
(+8.4s): --venv: __main__.py:3039:main2:     ^except raise:
(+8.4s): --venv: __main__.py:3039:main2:     scripts/wrap/__main__.py:3087:main(): main2()
(+8.4s): --venv: __main__.py:3039:main2:     scripts/wrap/__main__.py:2481:main2(): build( build_dirs, swig_command, args, vs_upgrade, make_command)
(+8.4s): --venv: __main__.py:3039:main2:     scripts/wrap/__main__.py:1633:build(): build_0(
(+8.4s): --venv: __main__.py:3039:main2:     scripts/wrap/__main__.py:1409:build_0(): cpp.cpp_source(
(+8.4s): --venv: __main__.py:3039:main2:     scripts/wrap/cpp.py:5016:cpp_source(): raise Exception(f'libclang does not appear to be installed') from e
(+8.4s): --venv: __main__.py:3039:main2: Exception: libclang does not appear to be installed
(+8.4s): --venv: __main__.py:3039:main2: [returned e=1]
Traceback (most recent call last):
    scripts/mupdfwrap.py:6:<module>(): wrap.__main__.main()
    scripts/wrap/__main__.py:3089:main(): jlib.exception_info()
    ^except raise:
    scripts/wrap/__main__.py:3087:main(): main2()
    scripts/wrap/__main__.py:3039:main2(): jlib.system(command, out='log', verbose=1)
    scripts/jlib.py:1682:system(): raise Exception( message)
Exception: Command failed: . venv-mupdfwrap-3.12-x64/bin/activate && python ./scripts/mupdfwrap.py -d build/shared-release -b --m-target 'libs tools' -j 0 m01 && deactivate
make[2]: *** [src/application/CMakeFiles/mupdf.dir/build.make:71: src/application/CMakeFiles/mupdf] Error 1
make[2]: Leaving directory '/home/jyothish/repos/Librum/build-Release'
make[1]: *** [CMakeFiles/Makefile2:357: src/application/CMakeFiles/mupdf.dir/all] Error 2
make[1]: Leaving directory '/home/jyothish/repos/Librum/build-Release'
make: *** [Makefile:136: all] Error 2

from librum.

blacklightpy avatar blacklightpy commented on September 2, 2024

MuPDF itself would build well, independently.

from librum.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.