Linux Opensuse Build Make Error

MMEX4Desktop, incl. Windows, macOS (10.10 or newer), and Most Unix variants using the GTK+ toolkit

Moderator: Renato

Nikolay
MMEX Developer
Posts: 1535
Joined: Sat Dec 06, 2008 2:27 pm
Are you a spam bot?: No
Location: Sankt-Petersburg, Russia

Re: Linux Opensuse Build Make Error

Post by Nikolay »

Try this

Code: Select all

#!/bin/bash
cd ~
# Install dependencies
yum groupinstall "Development Tools" -y
yum install python-devel libcanberra-devel PackageKit-gtk3-module -y
# Intall EPEL so you can get few other dependencies
yum install epel-release -y
yum install webkitgtk-devel bakefile -y
# Disable Selinux
sed -i 's/\(^SELINUX=\).*/\SELINUX=disabled/' /etc/sysconfig/selinux
sed -i 's/\(^SELINUX=\).*/\SELINUX=disabled/' /etc/selinux/config
setenforce 0
# Download, compile and load wxWidgets
wget https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.0/wxWidgets-3.1.0.tar.bz2
tar xf wxWidgets-3.1.0.tar.bz2
cd wxWidgets-3.1.0
./configure --disable-debug --enable-monolithic
make && make install
echo '/usr/local/lib' > /etc/ld.so.conf.d/wxWidgets.conf
ldconfig
cd ~
# Download compile and install mmex
git clone https://github.com/moneymanagerex/moneymanagerex
cd moneymanagerex
git submodule update --init
mkdir compile
./bootstrap.sh
cd compile
../configure
make && make install
MartinPRowe
New MMEX User
Posts: 3
Joined: Sun Mar 21, 2010 6:05 pm
Are you a spam bot?: No

Re: Linux Opensuse Build Make Error

Post by MartinPRowe »

Thank you Nikolay,

Unfortunately "yum" is not a native SuSE command. And I, for one, do not have the skills to translate into Zypper commands.
If you could be a bit more explicit , we would love to get this installed.
For example, what is

Code: Select all

yum groupinstall "Development Tools" -y
Best regards, Martin
Nikolay
MMEX Developer
Posts: 1535
Joined: Sat Dec 06, 2008 2:27 pm
Are you a spam bot?: No
Location: Sankt-Petersburg, Russia

Re: Linux Opensuse Build Make Error

Post by Nikolay »

Geoplace
New MMEX User
Posts: 11
Joined: Sat Aug 08, 2015 2:25 pm
Are you a spam bot?: No

Re: Linux Opensuse Build Make Error

Post by Geoplace »

Here are command line equivalents for different linux distributions:

https://news.opensuse.org/2013/03/22/op ... os/#fedora

And here is the documentation to use the zypper (package managment from the command line)

https://en.opensuse.org/SDB:Zypper_usage

Later I would try to find the equivalencies for install/ compile mmex

Regards.
wadrian
New MMEX User
Posts: 2
Joined: Sat Apr 15, 2017 1:19 pm
Are you a spam bot?: No

Re: Linux Opensuse Build Make Error

Post by wadrian »

I modified the fedora-script  to compile for my own on opensuse 42.2:

#!/bin/bashcd ~# Install dependencieszypper install -t pattern devel_C_C++zypper install python-devel libcanberra-devel PackageKit-gtk3-modulezypper install libwebkitgtk-develzypper install wxWidgets-3_0-develzypper install wxsqlite3-develzypper install sqlite3-develzypper ar -f http://download.opensuse.org/distributi ... /repo/oss/ bakefilerepozypper install bakefilezypper rr bakefilerepomkdir /usr/local/share/aclocal# Download compile and install mmexgit clone https://github.com/moneymanagerex/moneymanagerexcd moneymanagerexgit submodule update --initmkdir compile./bootstrap.shcd compile../configuremake && make install


Hope that helps others.
(and yes I know that using bakefile from an older repo is a dirty hack. But I cant found a newer one)

Adrian
wadrian
New MMEX User
Posts: 2
Joined: Sat Apr 15, 2017 1:19 pm
Are you a spam bot?: No

Re: Linux Opensuse Build Make Error

Post by wadrian »

I modified the fedora script for my own to compile on Opensuse 42.2:

zypper install python-devel libcanberra-devel PackageKit-gtk3-module
zypper install libwebkitgtk-devel
zypper install wxWidgets-3_0-devel
zypper install wxsqlite3-devel
zypper install sqlite3-devel
zypper ar -f http://download.opensuse.org/distributi ... /repo/oss/ bakefilerepo
zypper install bakefile
zypper rr bakefilerepo
mkdir /usr/local/share/aclocal
# Download compile and install mmex
git clone https://github.com/moneymanagerex/moneymanagerex
cd moneymanagerex
git submodule update --init
mkdir compile
./bootstrap.sh
cd compile
../configure
make && make install      

I know that using bakefile from older repo is a dirty hack, but cant found newer repo. Its a quick and dirty hack
Hope that help others

Adrian
mprowe
New MMEX User
Posts: 1
Joined: Sun Dec 24, 2017 7:35 pm
Are you a spam bot?: No

Re: Linux Opensuse Build Make Error

Post by mprowe »

Hi Adrian,

I hope that you are still around?

As I said at the head of this thread, I have been trying to build an up-to-date version (I'm still on 0.9.9) for a very long time.
I was greatly encouraged when I came across your instructions on how to build MMEX for SuSE. It looked as if it might work...

I know, its not your problem, but have you any suggestions on where I can get the file "bootstrap.sh"?
Your instructions "./bootstrap.sh" (aprox Line 15) is reporting "file not found". And sure enough, it is not in the download from https://github.com/moneymanagerex/moneymanagerex!

I guess that it must have been there when you where working on this, earlier in the year. But its not there now. How does that happen?

Looking forward to hearing from you. And if Nikola is hanging about these forums, could he please take a moment to repair the repository!

Regards, Martin
Nikolay
MMEX Developer
Posts: 1535
Joined: Sat Dec 06, 2008 2:27 pm
Are you a spam bot?: No
Location: Sankt-Petersburg, Russia

Re: Linux Opensuse Build Make Error

Post by Nikolay »

pete
New MMEX User
Posts: 2
Joined: Fri Jul 27, 2018 10:52 am
Are you a spam bot?: No

Re: Linux Opensuse Build Make Error

Post by pete »

I built from source. wxWidgets did not work from rep gave an error when running the binary so I built that from source also then fixed up the CMakeList.txt file to pull in wxWidgets. Build of mmex did not go well because mmex uses _wxArraywxArrayPtrVoid in option.cpp: int ReportCompare() so I commented that bit out just to get the application built... wow what a pain!

Error when running with repo version of wxWidgets was:
The library used 3.1.0 (wchar_t,compiler with C++ ABI 1011,wx containers,compatible with 3.0), and your program used 3.1.0 (wchar_t,compiler with C++ ABI 1002,wx containers,compatible with 3.0).

Here are my mods:
wxWidget - build with configure not cmake because cmake does not build correctly - dont forget to install both webkitgtk-3.0 libwebkitgtk-dev from repo.
wxWidget compiler config required are obtained by running bin/wx-config --cppflags

mmex CMakeLists.txt added wxWidget macros (I install stuff to /opt/local)
#FIND_PACKAGE(wxWidgets REQUIRED
# core qa net html xml aui adv stc webview base REQUIRED)
set(wxWidgets_ROOT_DIR "/opt/local")
set(wxWidgets_LIB_DIR "/opt/local/lib")
set(wxWidgets_INCLUDE_DIRS "/opt/local/include/wx-3.1;/opt/local/lib/wx/include/gtk2-unicode-3.1")
set(wxWidgets_VERSION_STRING "3.1.2")
set(wxWidgets_LIBRARIES "-L/opt/local/lib;-lwx_gtk2u_core-3.1;-lwx_gtk2u_qa-3.1;-lwx_baseu_net-3.1;-lwx_gtk2u_html-3.1;-lwx_baseu_xml-3.1;-lwx_gtk2u_aui-3.1;-lwx_gtk2u_adv-3.1;-lwx_gtk2u_stc-3.1;-lwx_gtk2u_webview-3.1;-lwx_baseu-3.1;-pthread")
set(wxWidgets_CXX_FLAGS "-D_FILE_OFFSET_BITS=64;-DWXUSINGDLL;-D__WXGTK__")

Oh yes and I also built from source rapidjson
# --------- rapidjson dependency ---------
INCLUDE_DIRECTORIES("/opt/local/include")

Once the build is going ... fix up anything that does not build by commenting it out! ie src/option.cpp comment out ReportCompare and its use in Option::Option()
pete
New MMEX User
Posts: 2
Joined: Fri Jul 27, 2018 10:52 am
Are you a spam bot?: No

Re: Linux Opensuse Build Make Error

Post by pete »

I built from source. wxWidgets did not work from rep gave an error when running the binary so I built that from source also then fixed up the CMakeList.txt file to pull in wxWidgets. Build of mmex did not go well because mmex uses _wxArraywxArrayPtrVoid in option.cpp: int ReportCompare() so I commented that bit out just to get the application built... wow what a pain!

Error when running with repo version of wxWidgets was:
The library used 3.1.0 (wchar_t,compiler with C++ ABI 1011,wx containers,compatible with 3.0), and your program used 3.1.0 (wchar_t,compiler with C++ ABI 1002,wx containers,compatible with 3.0).

Here are my mods:
wxWidget - build with configure not cmake because cmake does not build correctly - dont forget to install both webkitgtk-3.0 libwebkitgtk-dev from repo.
wxWidget compiler config required are obtained by running bin/wx-config --cppflags

mmex CMakeLists.txt added wxWidget macros (I install stuff to /opt/local)
#FIND_PACKAGE(wxWidgets REQUIRED
# core qa net html xml aui adv stc webview base REQUIRED)
set(wxWidgets_ROOT_DIR "/opt/local")
set(wxWidgets_LIB_DIR "/opt/local/lib")
set(wxWidgets_INCLUDE_DIRS "/opt/local/include/wx-3.1;/opt/local/lib/wx/include/gtk2-unicode-3.1")
set(wxWidgets_VERSION_STRING "3.1.2")
set(wxWidgets_LIBRARIES "-L/opt/local/lib;-lwx_gtk2u_core-3.1;-lwx_gtk2u_qa-3.1;-lwx_baseu_net-3.1;-lwx_gtk2u_html-3.1;-lwx_baseu_xml-3.1;-lwx_gtk2u_aui-3.1;-lwx_gtk2u_adv-3.1;-lwx_gtk2u_stc-3.1;-lwx_gtk2u_webview-3.1;-lwx_baseu-3.1;-pthread")
set(wxWidgets_CXX_FLAGS "-D_FILE_OFFSET_BITS=64;-DWXUSINGDLL;-D__WXGTK__")

Oh yes and I also built from source rapidjson
# --------- rapidjson dependency ---------
INCLUDE_DIRECTORIES("/opt/local/include")

Once the build is going ... fix up anything that does not build by commenting it out! ie src/option.cpp comment out ReportCompare and its use in Option::Option()
Post Reply