Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

port to meson#98

Closed
decathorpe wants to merge 6 commits intoparnoldx:masterfrom
decathorpe:master
Closed

port to meson#98
decathorpe wants to merge 6 commits intoparnoldx:masterfrom
decathorpe:master

Conversation

@decathorpe
Copy link
Copy Markdown
Contributor

I ported the current CMake based build system to meson, preserving the behavior as far as possible. I've used this for building the latest fedora packages, and it seems to work as expected.

Suggestions for improvements are welcome 😄

@decathorpe
Copy link
Copy Markdown
Contributor Author

Also, I have no idea why ld still fails to build the object. It works on fedora 28+, but not on fedora 27 and elementaryOS.

/usr/bin/ld: liblibqalculatenasc.a(libqalculatenasc_QalculateNasc.cc.o): undefined reference to symbol '_ZN3cln24cl_GV_number_init_helperD1Ev'
//usr/lib/libcln.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

'libqalculatenasc',

'QalculateNasc.cc',
'QalculateNasc.h',
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The header should be autodetected by meson.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it hurt if it's added explicitly?

@@ -0,0 +1,32 @@
install_data(
meson.project_name() + '.appdata.xml',
install_dir: join_paths(get_option('prefix'), get_option('datadir'), 'metainfo')
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for prefix here. It's added automatically on install_dir.

@decathorpe
Copy link
Copy Markdown
Contributor Author

The last few rounds of review have just been nit-picking. I have no patience to care about this anymore.

I hope my work can be useful for whoever wants to finish this.

scx added a commit to scx/nasc that referenced this pull request Feb 15, 2019
Based on parnoldx#98
parnoldx#98

Fixes:
1. Fix dependencies for libqalculatenasc
parnoldx#98 (comment)

2. Remove header files from meson.build
parnoldx#98 (comment)

3. Get rid of get_option('prefix') from install_dir
parnoldx#98 (comment)

4. Make Meson optional
Do not remove CMake
@scx scx mentioned this pull request Feb 15, 2019
scx added a commit to scx/nasc that referenced this pull request Feb 15, 2019
Based on parnoldx#98
parnoldx#98

Fixes:
1. Fix dependencies for libqalculatenasc
parnoldx#98 (comment)

2. Remove header files from meson.build
parnoldx#98 (comment)

3. Get rid of get_option('prefix') from install_dir
parnoldx#98 (comment)

4. Make Meson optional
Do not remove CMake
@scx scx mentioned this pull request Feb 16, 2019
'QalculateNasc.h',

dependencies: [
meson.get_compiler('cpp').find_library('libqalculate'),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@decathorpe

You forgot about cln.

Replace this:

        meson.get_compiler('cpp').find_library('libqalculate'),

with this:

        dependency('cln'),
        dependency('libqalculate'),

This should fix builds on Fedora < 28 and EL < 8, as well as on Freedesktop 18.08 and GNOME 3.30.
#98 (comment)

/usr/bin/ld: liblibqalculatenasc.a(libqalculatenasc_QalculateNasc.cc.o): undefined reference to symbol '_ZN3cln24cl_GV_number_init_helperD1Ev'
//usr/lib/libcln.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
libqalculatenasc/meson.build:1:0: ERROR:  C++ library 'libqalculate' not found

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting ... that's the first time I read about the cln library. But since it fixes the problem ... 🤷‍♂️

@scx
Copy link
Copy Markdown
Contributor

scx commented Feb 16, 2019

@decathorpe

New attempt:
#109

See also:
#110

Anyway, thank you for your work. It is a pity that you gave up.

@scx
Copy link
Copy Markdown
Contributor

scx commented Feb 16, 2019

@decathorpe

See also: RPM package
#111

@decathorpe decathorpe closed this Apr 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants