[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [bos-dev] boswars



Sorry for delay on reply.

But, thanks for your help, When I finish the packaging, I inform you. :D




Diogo Leal [estranho]


On Tue, Aug 11, 2015 at 3:47 PM, FranÃois Beerten <francois.beerten@xxxxxxxxxxx> wrote:
On 08/11/2015 04:07 PM, Diogo Leal wrote:
Hello,

I'm compiling the Bos Wars in a machine with the ARMv7 processor, but during compilation, this with the error below.

Does anyone know how to fix this? The reason I'm compiling Bos Wars is that'm packing it to the distro I use (Void Linux)


g++ fbuild/release/conftests/testz.c -o fbuild/release/conftests/testz -lz -Wall -fsigned-char -D_GNU_SOURCE=1 -D_REENTRANT -Wall -fsigned-char -D_GN
U_SOURCE=1 -D_REENTRANT
g++ fbuild/release/conftests/testGL.c -o fbuild/release/conftests/testGL -lz -lGL -Wall -fsigned-char -D_GNU_SOURCE=1 -D_REENTRANT -Wall -fsigned-cha
r -D_GNU_SOURCE=1 -D_REENTRANT
Traceback (most recent call last):
 File "make.py", line 482, in <module>
ÂÂÂ main(extra_options=[j])
 File "/builddir/boswars-2.7-src/fabricate.py", line 1037, in main
ÂÂÂ this_status = eval(action, globals_dict)
 File "<string>", line 1, in <module>
 File "make.py", line 474, in default
ÂÂÂ release(**kwargs)
 File "make.py", line 386, in release
ÂÂÂ detect(b)
 File "make.py", line 324, in detect
ÂÂÂ detectAlwaysDynamic(b)
 File "make.py", line 301, in detectAlwaysDynamic
ÂÂÂ detectSdl(b)
 File "make.py", line 287, in detectSdl
ÂÂÂ if b.usepkgconfig and pkgconfig(b, 'sdl'):
 File "make.py", line 237, in pkgconfig
ÂÂÂ b.cflags += cmdline2list(shell('pkg-config', '--cflags', package).decode())
 File "/builddir/boswars-2.7-src/fabricate.py", line 155, in shell
ÂÂÂ return _shell(args, **kwargs)
 File "/builddir/boswars-2.7-src/fabricate.py", line 176, in _shell
ÂÂÂ stderr=subprocess.STDOUT, shell=shell)
 File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
ÂÂÂ errread, errwrite)
 File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
ÂÂÂ raise child_exception
OSError: [Errno 2] No such file or directory


Thanks


Diogo Leal [estranho]

Hi Diogo,

Nice to hear about new distros and that they will ship Bos Wars.

You don't have pkg-config in your environment and make.py didn't handle that properly. You can fix it either by adding pkg-config in your build environment or by applying this little patch:

--- make.pyÂÂÂÂ (revision 10240)
+++ make.pyÂÂÂÂ (working copy)
@@ -238,6 +238,8 @@
ÂÂÂÂÂÂÂÂ b.ldflags += cmdline2list(shell('pkg-config', '--libs', package).decode())
ÂÂÂÂ except ExecutionError as e:
ÂÂÂÂÂÂÂÂ return False
+ÂÂÂ except OSError as e:
+ÂÂÂÂÂÂÂ return False
ÂÂÂÂ return True
Â
Âdef CheckLib(b, lib, header=''):

I've commited the fix in svn too.

Happy gaming,
Feb.