Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to compile Gelide on Ubuntu 18.04 LTS #9

Open
N0rbert opened this issue Apr 30, 2018 · 0 comments
Open

Unable to compile Gelide on Ubuntu 18.04 LTS #9

N0rbert opened this issue Apr 30, 2018 · 0 comments

Comments

@N0rbert
Copy link

N0rbert commented Apr 30, 2018

Other user and I have installed Ubuntu 18.04 LTS amd64.
We are trying to compile Gelid on it.

But there is a problem with some functions from glibmm-2.4. You can see complete steps to reproduce on the aforementioned AskUbuntu link. The error message is below:

config.cpp: In constructor ‘CConfig::CConfig()’:
config.cpp:31:16: error: ‘build_filename’ is not a member of ‘Glib’
  l_cfg = Glib::build_filename(utils::getGelideDir(), GELIDE_CFG_FILE);
                ^~~~~~~~~~~~~~
config.cpp:33:11: error: ‘file_test’ is not a member of ‘Glib’
  if(Glib::file_test(l_cfg, Glib::FILE_TEST_EXISTS))
           ^~~~~~~~~
config.cpp:33:34: error: ‘FILE_TEST_EXISTS’ is not a member of ‘Glib’
  if(Glib::file_test(l_cfg, Glib::FILE_TEST_EXISTS))
                                  ^~~~~~~~~~~~~~~~
config.cpp: In destructor ‘virtual CConfig::~CConfig()’:
config.cpp:40:13: error: ‘build_filename’ is not a member of ‘Glib’
  save(Glib::build_filename(utils::getGelideDir(), GELIDE_CFG_FILE));
             ^~~~~~~~~~~~~~
Makefile:612: recipe for target 'config.o' failed
make[2]: *** [config.o] Error 1
make[2]: Leaving directory '/home/mate/Downloads/Gelide/src'
Makefile:553: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/mate/Downloads/Gelide'
Makefile:464: recipe for target 'all' failed
make: *** [all] Error 2

Could you please rewrite you code replacing obsolete GlibMM functions and constants such as

  • build_filename from /usr/include/glibmm-2.4/glibmm/miscutils.h
  • file_test, FILE_TEST_EXISTS from /usr/include/glibmm-2.4/glibmm/fileutils.h

Please note, your application compiles and works great on Ubuntu 16.04 LTS, but not on 18.04 LTS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant