narunlifescience / AlphaPlot

:chart_with_upwards_trend: Application for statistical analysis and data visualization which can generate different types of publication quality 2D and 3D plots with extensive visual customization.
http://alphaplot.sourceforge.net/
GNU General Public License v2.0
243 stars 37 forks source link

Error building from source #17

Closed archisman-panigrahi closed 2 years ago

archisman-panigrahi commented 4 years ago

When I run make (after qmake) I get the following error.

cd alphaplot/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /home/archisman/AlphaPlot/alphaplot/alphaplot.pro ) && make -f Makefile 
Project MESSAGE: Build configuration: Linux all dynamic
Project ERROR: Unknown module(s) in QT: datavisualization xmlpatterns
Makefile:51: recipe for target 'sub-alphaplot-make_first-ordered' failed
make: *** [sub-alphaplot-make_first-ordered] Error 3

I am using KDE Neon 5.19 (Ubuntu 18.04 base). I installed zlibc and gsl-bin packages.

narunlifescience commented 4 years ago

The error message shows two of the Qt5 modules used to build alphaplot is missing. please install qt5datavis3d and qt5xmlpatterns equivalent in ubuntu. if you have a local copy of qt installed, you can install the modules using Qt maintenance tool

In your case please try installing libqt5datavisualization5 and libqt5datavisualization5 or their developer versions.

archisman-panigrahi commented 4 years ago

It looks like libqt5datavisualization5 is not available in Ubuntu 18.04 LTS (available 19.10 onwards). I will try manually installing its .deb package and let you know if that works. Meanwhile, it will be helpful if name of the packages of all the dependencies are mentioned in the Readme (not just the links to their website).

archisman-panigrahi commented 4 years ago

The .deb package of libqt5datavisualization5, does not support 18.04 due to missing dependencies. Looks like I'll have to upgrade to 20.04. Anyway, please mention in readme the names of the packages for dependencies.

narunlifescience commented 4 years ago

if you have the patience, you can try to install a local version of qt5.14 or qt5.15 (Downloads for open source users) and build alphaplot using that. I should warn you that this process will take some time as the downloads will be around 10 to 20 gbs. but this will work!

narunlifescience commented 4 years ago

The issue is each Linux distro will have a different package name that is the reason I didn't mention it. please install libqt5datavisualization5 and libqt5xmlpatterns5 or libqt5datavisualization5-dev and libqt5xmlpatterns5-dev. are you sure these packages are not available for 18.04 ?

I will add the information to readme soon

narunlifescience commented 4 years ago

You can use this https://github.com/narunlifescience/AlphaPlot/issues/18 AppImage to run AlphaPlot. Note: the look and feel may not be ideal!

archisman-panigrahi commented 4 years ago

The Appimage does not work in as it cannot find GLIBC_2.29, which is mentioned in #18 . I will soon install Linux Mint 20 once it is released (by the end of this month), and if the build works (it should, as all the dependencies will be available there), I'll close the issue. In the unlikely case that the build won't work, I will report back.

narunlifescience commented 4 years ago

Oh yes! I forgot about that :)

filipestevao commented 3 years ago

AlphaPlot is now available to install from Flathub:

https://flathub.org/apps/details/io.github.narunlifescience.AlphaPlot

If you use Linux Mint, just search for AlphaPlot in the software manager (mintinstall).

archisman-panigrahi commented 3 years ago

Although the appimage and flatpak work, I am still interested in compiling it from source (first step towards making a .deb package/PPA), and there is a different build error.

Here is the error I am getting right now in Linux Mint 20.

I installed the following dependencies. libmuparser-dev, qt5-default, libqt5svg5-dev, qtscript5-dev, qml-module-qtdatavisualization, libqt5datavisualization5-dev, libgsl-dev

I am using the latest code from the master branch.

filipestevao commented 3 years ago

I'm not sure about that, but it looks like some libs are still missing.

A guess: libglu1-mesa-dev,libqt5xmlpatterns5-dev,libqt5widgets5

archisman-panigrahi commented 3 years ago

libqt5widgets5 and libglu1-mesa-dev were already installed. I installed libqt5xmlpatterns5-dev but the output does not change.

archisman-panigrahi commented 3 years ago

I ran make clean and make, and this time it got built perfectly. Last time I once ran make -j4 to speed up the compilation, and that might be somehow responsible. I will try to isolate the reason why it did not compile, and soon close this GitHub issue.

narunlifescience commented 3 years ago

the following libraries are not required if you are using the master branch libqt5xmlpatterns5-dev, qml-module-qtdatavisualization, libmuparser-dev libqt5xmlpatterns5-dev was dropped as a dependency after v1.011. qml-module-qtdatavisualization is not required. libmuparser-devthe source code is already included. so this will be statically added to the executable.