Manjaro Linux error in "./waf configure"

Manjaro Linux error in "./waf configure"

Postby LiamM32 » 21 Sep 2016, 08:54

As of recently, I am running Manjaro Linux.
I am getting an error when I try to build Lips of Suna (both xenodora's new version & where Amuzen left off), specifically when I run the "./waf configure" command;
{l Code}: {l Select All Code}
[liam@liam-desktop-manjaro lipsofsuna-xenodora]$ ./waf configure
Setting top to                           : /usr/local/src/lipsofsuna-xenodora
Setting out to                           : /usr/local/src/lipsofsuna-xenodora/.build
Checking for 'gcc' (c compiler)          : /usr/bin/gcc
Checking for 'g++' (c++ compiler)        : /usr/bin/g++
Checking for header dlfcn.h              : Traceback (most recent call last):
  File "/usr/local/src/lipsofsuna-xenodora/.waf3-1.7.2-89df5661dd0948598701ec3b9c0a4216/waflib/Scripting.py", line 97, in waf_entry_point
    run_commands()
  File "/usr/local/src/lipsofsuna-xenodora/.waf3-1.7.2-89df5661dd0948598701ec3b9c0a4216/waflib/Scripting.py", line 153, in run_commands
    ctx=run_command(cmd_name)
  File "/usr/local/src/lipsofsuna-xenodora/.waf3-1.7.2-89df5661dd0948598701ec3b9c0a4216/waflib/Scripting.py", line 146, in run_command
    ctx.execute()
  File "/usr/local/src/lipsofsuna-xenodora/.waf3-1.7.2-89df5661dd0948598701ec3b9c0a4216/waflib/Configure.py", line 128, in execute
    super(ConfigurationContext,self).execute()
  File "/usr/local/src/lipsofsuna-xenodora/.waf3-1.7.2-89df5661dd0948598701ec3b9c0a4216/waflib/Context.py", line 87, in execute
    self.recurse([os.path.dirname(g_module.root_path)])
  File "/usr/local/src/lipsofsuna-xenodora/.waf3-1.7.2-89df5661dd0948598701ec3b9c0a4216/waflib/Context.py", line 128, in recurse
    user_function(self)
  File "/usr/local/src/lipsofsuna-xenodora/wscript", line 63, in configure
    conf.check(header_name='dlfcn.h', define_name='HAVE_DLFCN_H', mandatory=False)
  File "/usr/local/src/lipsofsuna-xenodora/.waf3-1.7.2-89df5661dd0948598701ec3b9c0a4216/waflib/Configure.py", line 221, in fun
    return f(*k,**kw)
  File "/usr/local/src/lipsofsuna-xenodora/.waf3-1.7.2-89df5661dd0948598701ec3b9c0a4216/waflib/Tools/c_config.py", line 366, in check
    ret=self.run_c_code(*k,**kw)
  File "/usr/local/src/lipsofsuna-xenodora/.waf3-1.7.2-89df5661dd0948598701ec3b9c0a4216/waflib/Configure.py", line 221, in fun
    return f(*k,**kw)
  File "/usr/local/src/lipsofsuna-xenodora/.waf3-1.7.2-89df5661dd0948598701ec3b9c0a4216/waflib/Tools/c_config.py", line 450, in run_c_code
    bld.compile()
  File "/usr/local/src/lipsofsuna-xenodora/.waf3-1.7.2-89df5661dd0948598701ec3b9c0a4216/waflib/Build.py", line 190, in compile
    self.store()
  File "/usr/local/src/lipsofsuna-xenodora/.waf3-1.7.2-89df5661dd0948598701ec3b9c0a4216/waflib/Utils.py", line 382, in f
    ret=fun(*k,**kw)
  File "/usr/local/src/lipsofsuna-xenodora/.waf3-1.7.2-89df5661dd0948598701ec3b9c0a4216/waflib/Build.py", line 164, in store
    cPickle.dump(data,f,-1)
AttributeError: Can't pickle local object 'Context.__init__.<locals>.node_class'

However, both of these versions of LoS would compile and run on my Ubuntu 16.04 installation. I sadly lack the knowledge to understand what's going wrong.
However, I do have "/usr/include/dlfcn.h" in my Manjaro partition.
LiamM32
 
Posts: 54
Joined: 26 May 2014, 08:09

Re: Manjaro Linux error in "./waf configure"

Postby xenodora » 22 Sep 2016, 15:11

I'll try and have a look at this when I have time to set up a VM with Manjaro.

From looking at the error message, I suspect the source of the error is either in Waf, or an incompatibility with the default version of Python that Manjaro uses. You could try running with an explicit version of Python like so:
{l Code}: {l Select All Code}
python2.7 ./waf configure
To use Python 2.7 (assuming it's installed).

Alternative you can download a new version of Waf from https://github.com/waf-project/waf. Compile that and use that new copy instead.
User avatar
xenodora
 
Posts: 27
Joined: 05 Jun 2016, 15:11

Re: Manjaro Linux error in "./waf configure"

Postby LiamM32 » 26 Sep 2016, 07:13

Oh yeah; I should mention that I have it working on my Manjaro installation now, by using the "python2.7" command that you suggested. I think it uses 3.5 by default, which doesn't work. When I first tried your suggestion, I ran into another error saying that my version of OGRE doesn't have a proper pkg-config file, but then I noticed that I didn't have boost installed, but I could compile it after installing boost.

About your suggestion to compile a new version of waf, this isn't a program that I would have installed normally on my computer, is it? If I type the command "which waf", then it appears that I don't have waf installed. When you speak of compiling a new version of waf, is this a new file to put in my lipsofsuna folder?
LiamM32
 
Posts: 54
Joined: 26 May 2014, 08:09

Re: Manjaro Linux error in "./waf configure"

Postby xenodora » 26 Sep 2016, 08:25

LiamM32 {l Wrote}:Oh yeah; I should mention that I have it working on my Manjaro installation now, by using the "python2.7" command that you suggested. I think it uses 3.5 by default, which doesn't work. When I first tried your suggestion, I ran into another error saying that my version of OGRE doesn't have a proper pkg-config file, but then I noticed that I didn't have boost installed, but I could compile it after installing boost.

From a look at Waf's website, the Python 3.4 is the highest version that it works. I presume the game works and runs after you successfully compiled.

LiamM32 {l Wrote}:About your suggestion to compile a new version of waf, this isn't a program that I would have installed normally on my computer, is it? If I type the command "which waf", then it appears that I don't have waf installed.

I don't think Waf is very common, as there's no package for it on Linux Mint 17.

LiamM32 {l Wrote}:When you speak of compiling a new version of waf, is this a new file to put in my lipsofsuna folder?

Yes, the new waf would go in your lipsofsuna folder, but you might be able to also run from the directory Waf was built.
User avatar
xenodora
 
Posts: 27
Joined: 05 Jun 2016, 15:11

Who is online

Users browsing this forum: No registered users and 1 guest