Closed solrevdev closed 4 years ago
Hi, strange. It says it does not find libgee.
Also it says something about cmake but there is no cmake in this repo?
Meson must find the dependencies. So it must look like
2020-06-20T00:46:30.4421277Z |Subproject libqalculate finished.
2020-06-20T00:46:30.4421355Z
2020-06-20T00:46:30.4421608Z Run-time dependency gee-0.8 found: YES 0.20.3
2020-06-20T00:46:30.4421858Z Run-time dependency glib-2.0 found: YES 2.64.2
2020-06-20T00:46:30.4422121Z Run-time dependency granite found: YES 5.5.0
2020-06-20T00:46:30.4422386Z Run-time dependency gtk+-3.0 found: YES 3.24.18
2020-06-20T00:46:30.4422659Z Run-time dependency gtksourceview-3.0 found: YES 3.24.11
2020-06-20T00:46:30.4422931Z Run-time dependency webkit2gtk-4.0 found: YES 2.28.2
2020-06-20T00:46:30.4423048Z Library posix found: YES
2020-06-20T00:46:30.4423162Z Library QalculateNasc found: YES
2020-06-20T00:46:30.4423267Z Program python3 found: YES (/usr/bin/python3)
2020-06-20T00:46:30.4423387Z Program /usr/bin/python3 found: YES (/usr/bin/python3)
2020-06-20T00:46:30.4423504Z Build targets in project: 20
Maybe your homebrew thing does not have it or something. I think that's the problem
Firstly thanks so much for replying and helping out it is very much appreciated.
Ok so I did a brew uninstall cmake && brew ininstall pkg-config
followed by sudo apt-get install cmake && sudo apt-get install pkg-config
and that seemed to move me forward a little.
However, the ninja compile seemed to fail.
So I worked out I also needed to use the system GCC not the linuxbrew/homebrew version
And this is my output. Does this look like it has worked?
What will be my binary output if so?
Below is the file system post build
Any further help would be great
solrevdev@hplaptop ~/.../github/nasc master brew uninstall --ignore-dependencies gcc
Uninstalling /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7... (1,350 files, 174.8MB)
solrevdev@hplaptop ~/.../github/nasc master which gcc
/usr/bin/gcc
solrevdev@hplaptop ~/.../github/nasc master ninja -C build install
ninja: Entering directory `build'
[47/63] Compiling C++ object 'subprojects/libqalcu...lculate/163e77a@@qalculate@sta/QalculateNasc.cc.o'
../subprojects/libqalculate/libqalculate/QalculateNasc.cc: In function ‘char* Calculator_calculate(const char*)’:
../subprojects/libqalculate/libqalculate/QalculateNasc.cc:157:23: warning: catching polymorphic type ‘class std::exception’ by value [-Wcatch-value=]
157 | } catch (std::exception) {
| ^~~~~~~~~
../subprojects/libqalculate/libqalculate/QalculateNasc.cc: In function ‘char* Calculator_calculate_store_variable(const char*, const char*)’:
../subprojects/libqalculate/libqalculate/QalculateNasc.cc:191:23: warning: catching polymorphic type ‘class std::exception’ by value [-Wcatch-value=]
191 | } catch (std::exception) {
| ^~~~~~~~~
[62/63] Installing files.
Installing com.github.parnold-x.nasc to /usr/bin
RPATH changes at install time disabled
Installing data/com.github.parnold-x.nasc.desktop to /usr/share/applications
RPATH changes at install time disabled
Installing data/com.github.parnold-x.nasc.appdata.xml to /usr/share/metainfo
RPATH changes at install time disabled
Installing /home/solrevdev/Code/github/nasc/data/com.github.parnold-x.nasc.gschema.xml to /usr/share/glib-2.0/schemas
Installing /home/solrevdev/Code/github/nasc/data/styles/def.lang to /usr/share/nasc/styles
Installing /home/solrevdev/Code/github/nasc/data/styles/language.dtd to /usr/share/nasc/styles
Installing /home/solrevdev/Code/github/nasc/data/styles/language.rng to /usr/share/nasc/styles
Installing /home/solrevdev/Code/github/nasc/data/styles/language2.rng to /usr/share/nasc/styles
Installing /home/solrevdev/Code/github/nasc/data/styles/nasc.lang to /usr/share/nasc/styles
Installing /home/solrevdev/Code/github/nasc/data/styles/nasc.xml to /usr/share/nasc/styles
Installing /home/solrevdev/Code/github/nasc/data/styles/nasc_dark.xml to /usr/share/nasc/styles
Installing /home/solrevdev/Code/github/nasc/data/styles/styles.rng to /usr/share/nasc/styles
Installing /home/solrevdev/Code/github/nasc/icons/16/com.github.parnold-x.nasc.svg to /usr/share/icons/hicolor/16x16/apps
Installing /home/solrevdev/Code/github/nasc/icons/24/com.github.parnold-x.nasc.svg to /usr/share/icons/hicolor/24x24/apps
Installing /home/solrevdev/Code/github/nasc/icons/32/com.github.parnold-x.nasc.svg to /usr/share/icons/hicolor/32x32/apps
Installing /home/solrevdev/Code/github/nasc/icons/48/com.github.parnold-x.nasc.svg to /usr/share/icons/hicolor/48x48/apps
Installing /home/solrevdev/Code/github/nasc/icons/64/com.github.parnold-x.nasc.svg to /usr/share/icons/hicolor/64x64/apps
Installing /home/solrevdev/Code/github/nasc/icons/128/com.github.parnold-x.nasc.svg to /usr/share/icons/hicolor/128x128/apps
Running custom install script '/home/linuxbrew/.linuxbrew/bin/python3 /home/solrevdev/Code/github/nasc/meson/post_install.py --schemadir /usr/share/glib-2.0/schemas --iconsdir /usr/share/icons'
Compiling gsettings schemas ...
Warning: Schema “com.canonical.indicator.session” has path “/apps/indicator-session/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “com.ubuntu.update-manager” has path “/apps/update-manager/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.freedesktop.ibus” has path “/desktop/ibus/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.freedesktop.ibus.general” has path “/desktop/ibus/general/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.freedesktop.ibus.general.hotkey” has path “/desktop/ibus/general/hotkey/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.freedesktop.ibus.panel” has path “/desktop/ibus/panel/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.freedesktop.ibus.panel.emoji” has path “/desktop/ibus/panel/emoji/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.crypto.cache” has path “/desktop/gnome/crypto/cache/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.crypto.pgp” has path “/desktop/gnome/crypto/pgp/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.seahorse” has path “/apps/seahorse/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.seahorse.manager” has path “/apps/seahorse/listing/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.locale” has path “/system/locale/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy” has path “/system/proxy/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy.http” has path “/system/proxy/http/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy.https” has path “/system/proxy/https/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy.ftp” has path “/system/proxy/ftp/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy.socks” has path “/system/proxy/socks/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “guake” has path “/apps/guake/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “guake.general” has path “/apps/guake/general/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “guake.style” has path “/apps/guake/style/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “guake.style.font” has path “/apps/guake/style/font/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “guake.style.background” has path “/apps/guake/style/background/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “guake.keybindings” has path “/apps/guake/keybindings/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “guake.keybindings.global” has path “/apps/guake/keybindings/global/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “guake.keybindings.local” has path “/apps/guake/keybindings/local/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “guake.hooks” has path “/apps/guake/hooks/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Compiling icon cache ...
gtk-update-icon-cache: Cache file created successfully.
Running custom install script '/home/linuxbrew/.linuxbrew/Cellar/meson/0.54.3/libexec/bin/meson --internal gettext install --subdir=po --localedir=share/locale --pkgname=com.github.parnold-x.nasc'
File system post build
solrevdev@hplaptop ~/.../nasc/build master tree .
.
├── build.ninja
├── com.github.parnold-x.nasc
├── com.github.parnold-x.nasc@exe
│ ├── build
│ │ └── config.c
│ ├── meson-generated_.._subprojects_libqalculate_data_definitions.c.o
│ ├── meson-generated_build_config.c.o
│ ├── meson-generated_src_Calculator.c.o
│ ├── meson-generated_src_Controller.c.o
│ ├── meson-generated_src_HelpBox.c.o
│ ├── meson-generated_src_InputView.c.o
│ ├── meson-generated_src_ListFooter.c.o
│ ├── meson-generated_src_MainWindow.c.o
│ ├── meson-generated_src_MathBinDialog.c.o
│ ├── meson-generated_src_Nasc.c.o
│ ├── meson-generated_src_NascSettings.c.o
│ ├── meson-generated_src_OpenBox.c.o
│ ├── meson-generated_src_PeriodicTable.c.o
│ ├── meson-generated_src_ResultBoxWidget.c.o
│ ├── meson-generated_src_ResultLine.c.o
│ ├── meson-generated_src_ResultView.c.o
│ ├── meson-generated_src_Tutorial.c.o
│ └── src
│ ├── Calculator.c
│ ├── Controller.c
│ ├── HelpBox.c
│ ├── InputView.c
│ ├── ListFooter.c
│ ├── MainWindow.c
│ ├── MathBinDialog.c
│ ├── Nasc.c
│ ├── NascSettings.c
│ ├── OpenBox.c
│ ├── PeriodicTable.c
│ ├── ResultBoxWidget.c
│ ├── ResultLine.c
│ ├── ResultView.c
│ └── Tutorial.c
├── compile_commands.json
├── config.vala
├── data
│ ├── com.github.parnold-x.nasc.appdata.xml
│ └── com.github.parnold-x.nasc.desktop
├── icons
├── meson-info
│ ├── intro-benchmarks.json
│ ├── intro-buildoptions.json
│ ├── intro-buildsystem_files.json
│ ├── intro-dependencies.json
│ ├── intro-installed.json
│ ├── intro-projectinfo.json
│ ├── intro-targets.json
│ ├── intro-tests.json
│ └── meson-info.json
├── meson-logs
│ ├── install-log.txt
│ └── meson-log.txt
├── meson-private
│ ├── build.dat
│ ├── cleantrees.dat
│ ├── cmake_gee-0.8
│ │ ├── CMakeCache.txt
│ │ ├── CMakeFiles
│ │ │ ├── 3.16.3
│ │ │ │ ├── CMakeCCompiler.cmake
│ │ │ │ ├── CMakeCXXCompiler.cmake
│ │ │ │ ├── CMakeFortranCompiler.cmake
│ │ │ │ └── CMakeSystem.cmake
│ │ │ ├── 3.17.3
│ │ │ │ ├── CMakeCCompiler.cmake
│ │ │ │ ├── CMakeCXXCompiler.cmake
│ │ │ │ ├── CMakeFortranCompiler.cmake
│ │ │ │ └── CMakeSystem.cmake
│ │ │ ├── CMakeDirectoryInformation.cmake
│ │ │ ├── CMakeOutput.log
│ │ │ ├── Makefile.cmake
│ │ │ ├── Makefile2
│ │ │ ├── TargetDirectories.txt
│ │ │ ├── cmake.check_cache
│ │ │ └── progress.marks
│ │ ├── CMakeLists.txt
│ │ ├── Makefile
│ │ ├── cmake_install.cmake
│ │ └── cmake_trace.txt
│ ├── cmd_line.txt
│ ├── coredata.dat
│ ├── install.dat
│ ├── meson.lock
│ ├── meson_benchmark_setup.dat
│ ├── meson_test_setup.dat
│ ├── sanitycheckc.c
│ ├── sanitycheckc.exe
│ ├── sanitycheckcpp.cc
│ └── sanitycheckcpp.exe
├── po
│ └── extra
└── subprojects
└── libqalculate
├── config.h
├── data
│ ├── currencies.xml
│ ├── datasets.xml
│ ├── definitions.c
│ ├── definitions.h
│ ├── elements.xml
│ ├── functions.xml
│ ├── planets.xml
│ ├── prefixes.xml
│ ├── units.xml
│ └── variables.xml
└── libqalculate
├── 163e77a@@qalculate@sta
│ ├── BuiltinFunctions-algebra.cc.o
│ ├── BuiltinFunctions-calculus.cc.o
│ ├── BuiltinFunctions-combinatorics.cc.o
│ ├── BuiltinFunctions-datetime.cc.o
│ ├── BuiltinFunctions-explog.cc.o
│ ├── BuiltinFunctions-logical.cc.o
│ ├── BuiltinFunctions-matrixvector.cc.o
│ ├── BuiltinFunctions-number.cc.o
│ ├── BuiltinFunctions-special.cc.o
│ ├── BuiltinFunctions-statistics.cc.o
│ ├── BuiltinFunctions-trigonometry.cc.o
│ ├── BuiltinFunctions-util.cc.o
│ ├── Calculator-calculate.cc.o
│ ├── Calculator-convert.cc.o
│ ├── Calculator-definitions.cc.o
│ ├── Calculator-parse.cc.o
│ ├── Calculator-plot.cc.o
│ ├── Calculator.cc.o
│ ├── DataSet.cc.o
│ ├── ExpressionItem.cc.o
│ ├── Function.cc.o
│ ├── MathStructure-calculate.cc.o
│ ├── MathStructure-convert.cc.o
│ ├── MathStructure-decompose.cc.o
│ ├── MathStructure-differentiate.cc.o
│ ├── MathStructure-eval.cc.o
│ ├── MathStructure-factor.cc.o
│ ├── MathStructure-gcd.cc.o
│ ├── MathStructure-integrate.cc.o
│ ├── MathStructure-isolatex.cc.o
│ ├── MathStructure-limit.cc.o
│ ├── MathStructure-matrixvector.cc.o
│ ├── MathStructure-polynomial.cc.o
│ ├── MathStructure-print.cc.o
│ ├── MathStructure.cc.o
│ ├── Number.cc.o
│ ├── Prefix.cc.o
│ ├── QalculateDateTime.cc.o
│ ├── QalculateNasc.cc.o
│ ├── Unit.cc.o
│ ├── Variable.cc.o
│ ├── meson-generated_.._.._data_definitions.c.o
│ └── util.cc.o
├── libqalculate.a
└── support.h
19 directories, 138 files
It worked!
I may submit a PR once I work out how I could package this up so folk could sudo apt-get install nasc
or snap install nasc
etc although that may be beyond my skill level!
Thanks for your help. This looks like a great Linux alternative to soulver :+1:
Describe the bug
The project does not compile for Ubuntu 20.04
To Reproduce
Expected behaviour
I expected the build to succeed with no errors
Screenshots
Build Logs
Desktop (please complete the following information):