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

No join_paths function on Xubuntu (Meson < 0.36.0) #22

Open
PezaoPJ opened this issue Apr 11, 2018 · 5 comments
Open

No join_paths function on Xubuntu (Meson < 0.36.0) #22

PezaoPJ opened this issue Apr 11, 2018 · 5 comments
Labels
question Further information is requested

Comments

@PezaoPJ
Copy link

PezaoPJ commented Apr 11, 2018

gustavo@gustavo-Lenovo-G400s:~/gamemode$ ./bootstrap.sh

  • meson --prefix=/usr build -Dwith-systemd-user-unit-dir=/etc/systemd/user
    Error during basic setup:

[Errno 2] No such file or directory: '/home/gustavo/gamemode/build'

So, I created the "build" folder and then

gustavo@gustavo-Lenovo-G400s:~/gamemode$ ./bootstrap.sh

  • meson --prefix=/usr build -Dwith-systemd-user-unit-dir=/etc/systemd/user
    The Meson build system
    Version: 0.29.0
    Source dir: /home/gustavo/gamemode
    Build dir: /home/gustavo/gamemode/build
    Build type: native build
    Build machine cpu family: x86_64
    Build machine cpu: x86_64
    Project name: gamemode
    Native c compiler: cc (gcc 5.4.0-6ubuntu1)

Meson encountered an error in file meson.build, line 32, column 0:
Unknown function "join_paths".

Any tips?

@mdiluz
Copy link
Contributor

mdiluz commented Apr 11, 2018

http://mesonbuild.com/Reference-manual.html#join_paths

It was added in meson 0.36.0, and you're on 0.29.0. Are you able to upgrade meson? Otherwise, we may be able to implement an alternative for join_paths

@mdiluz mdiluz added the question Further information is requested label Apr 13, 2018
@wleoncio
Copy link

This also affects Ubuntu 16.04 LTS. The next LTS release is just around the corner and it should update meson to a suitable version, but an alternative for join_paths could be interesting because many LTS users will not upgrade before 18.04.1 rolls out in July.

@mdiluz mdiluz changed the title Xubuntu: error when tried to run bootstrap.sh. No join_paths function on Xubuntu (Meson < 0.36.0) Apr 17, 2018
@mdiluz
Copy link
Contributor

mdiluz commented May 11, 2018

FWIW, meson is incredibly standalone so can be downloaded from https://github.com/mesonbuild/meson/releases and used from a local directory. I think that'd be the best way to work around this instead of trying to shoehorn in an early meson version.

@mdeguzis
Copy link

mdeguzis commented Sep 23, 2018

What I used for SteamOS:

python 3.6

wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz
tar xvf Python-3.6.3.tgz
cd Python-3.6.3
./configure --enable-optimizations
make -j8
sudo make altinstall
python3.6 --version

ninja (you can also use the binary releases)

https://github.com/ninja-build/ninja
cd ninja
python 3.6 boostrap.py
python 3.6 configure.py

meson

git clone https://github.com/mesonbuild/meson
sudo python3.6 setup.py install --install-scripts=/usr/bin
meson --version
0.48.999

Finally, this project:

cd gamemode/
git checkout 1.2
export PATH=/home/desktop/gamemode/ninja:$PATH
./bootstrap.sh

Problem though was systemd was too old (possible to work around) - SteamOS is still on Jessie :(

 ../daemon/dbus_messaging.c
../daemon/dbus_messaging.c:42:28: fatal error: systemd/sd-bus.h: No such file or directory
 #include <systemd/sd-bus.h>

https://packages.debian.org/search?suite=default&section=all&arch=any&searchon=contents&keywords=sd-bus.h

@mdeguzis
Copy link

For now, while not what this does, a simple, but hacky script that changes the cpu mode as described here and waits:
https://github.com/mdeguzis/SteamOS-Tools/blob/master/utilities/set-cpu-perf.sh

Maybe other tweaks could help make the script an alternative for older systems.

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

No branches or pull requests

4 participants