NanoMichael / MicroTeX

A dynamic, cross-platform, and embeddable LaTeX rendering library
MIT License
403 stars 67 forks source link

version 0.0.1: make: *** [Makefile:91:all] error 2 #90

Closed starsareintherose closed 2 years ago

starsareintherose commented 2 years ago

compile for version 0.0.1 error

      |                                                       ^~~~~
In file included from /home/guoyi/Downloads/clatexmath/src/cLaTeXMath-0.0.1/src/res/builtin/tex_param.res.cpp:1:
/home/guoyi/Downloads/clatexmath/src/cLaTeXMath-0.0.1/src/fonts/fonts.h:60:20: 警告:dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
   60 |         int style) throw(ex_text_style_mapping_not_found) = 0;
      |                    ^~~~~
/home/guoyi/Downloads/clatexmath/src/cLaTeXMath-0.0.1/src/fonts/fonts.h:80:57: 警告:dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
   80 |     virtual Char getChar(const string& name, int style) throw(ex_symbol_mapping_not_found) = 0;
      |                                                         ^~~~~
/home/guoyi/Downloads/clatexmath/src/cLaTeXMath-0.0.1/src/fonts/fonts.h:310:79: 警告:dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  310 |     static void addTeXFontDescription(const string& base, const string& file) throw(ex_res_parse);
      |                                                                               ^~~~~
/home/guoyi/Downloads/clatexmath/src/cLaTeXMath-0.0.1/src/fonts/fonts.h:317:29: 警告:dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  317 |         const string& lang) throw(ex_res_parse);
      |                             ^~~~~
/home/guoyi/Downloads/clatexmath/src/cLaTeXMath-0.0.1/src/fonts/fonts.h:348:20: 警告:dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  348 |         int style) throw(ex_text_style_mapping_not_found) override;
      |                    ^~~~~
/home/guoyi/Downloads/clatexmath/src/cLaTeXMath-0.0.1/src/fonts/fonts.h:352:55: 警告:dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  352 |     Char getChar(const string& symbolName, int style) throw(ex_symbol_mapping_not_found) override;
      |                                                       ^~~~~
/home/guoyi/Downloads/clatexmath/src/cLaTeXMath-0.0.1/src/core/macro_def.cpp:336:28: 警告:dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  336 |     const wstring& enddef) throw(ex_parse) {
      |                            ^~~~~
/home/guoyi/Downloads/clatexmath/src/cLaTeXMath-0.0.1/src/core/macro_def.cpp:343:26: 警告:dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  343 |     const wstring& code) throw(ex_parse) {
      |                          ^~~~~
make[1]: *** [CMakeFiles/Makefile2:83:CMakeFiles/LaTeX.dir/all] 错误 2
make: *** [Makefile:91:all] 错误 2
==> 错误: 在 build() 中发生一个错误。
    正在放弃...

My opertaing

    cd "${srcdir}/${_pkgname}-$pkgver"
    mkdir build
    cd "${srcdir}/${_pkgname}-$pkgver"
    cd build
    cmake ..
    make -j32
sp1ritCS commented 2 years ago

try using meson instead

PikachuHy commented 2 years ago

please use latest master or openmath branch, do not use version 0.0.1

sp1ritCS commented 2 years ago

@starsareintherose, given your recent issues you opend on blackhole89/notekit, I asume you want to use CLM for use in notekit.

In that case you'd want to use the lastet commit in master. notekit doesn't support openmath yet (besides a patch that I posted somewhere in the chatroom)

sp1ritCS commented 2 years ago

as @PikachuHy said, the commit tagged as 0.0.1 is outdated and doesn't work properly.

starsareintherose commented 2 years ago

okay, please update the aur, I have updated the pkgbuild

sp1ritCS commented 2 years ago

@starsareintherose I only maintain clatexmath-git. That should pull in the latest git source there is. To my knowledge there also isn't any other clatexmath package on the AUR.

What exactly are you trying to do?

starsareintherose commented 2 years ago

your pkgbuild lack some depends see comment

sp1ritCS commented 2 years ago

@starsareintherose I answered you comment there. The the thing is pkg-config should be provided by base-devel and fontconfig is a dependency of gtkmm. Are you running a arch derivative (parabola, majaro, endevour, etc.) by chance? (building clatexmath-git works perfectly fine in an empty archlinux:base-devel container 🤷🏻‍♂️ )

starsareintherose commented 2 years ago

No, I don't know why, I think cmake is also needed, I forget which pkg. I'm pure Arch user

sp1ritCS commented 2 years ago

no, cmake is not needed. pkg-config takes care of the whole dependency resolution. it was just that you hadn't had pkg-config installed, which resulted in meson trying to fall back to cmake dependencys, which obv. also didn't work, since the entire GNOME stack never used cmake (only GNU autotools and meson).

starsareintherose commented 2 years ago

But it actually produce this error

sp1ritCS commented 2 years ago

if you mean with "this error" the following:

Did not find CMake 'cmake'
Found CMake: NO

you are confusing that as an error. it just notifies you that it didn't find cmake for dep resolution. but as long as it found pkg-config everything works and meson will return POSIX 0.