Building love for SliTaz -help needed

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
4aiman
Party member
Posts: 262
Joined: Sat Jan 16, 2016 10:30 am

Building love for SliTaz -help needed

Post by 4aiman »

Since I have found no ready-to-use package and debian packages require newer core libs (like libc) I started my struggles to build love2d for SliTaz rolling.

Note: I'm using a 0.9.2 codebase.

The first step was to build DevIL. Done that (w/o libsquash).
Then there were several dependency-related issues like linux headers missing and some other dev packages.
And Just when I thought I was ready, enet started to misbehave.

Code: Select all

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I. -I./modules -I./libraries -I./libraries/enet/libenet/include -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I/usr/include/SDL2 -I/usr/include/luajit-2.0 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/AL -I/usr/local/include -I/usr/include/libmodplug -g -O2 -MT libraries/enet/libenet/unix.lo -MD -MP -MF libraries/enet/libenet/.deps/unix.Tpo -c libraries/enet/libenet/unix.c  -fPIC -DPIC -o libraries/enet/libenet/.libs/unix.o
libraries/enet/libenet/unix.c: In function ‘enet_socket_connect’:
libraries/enet/libenet/unix.c:321:34: error: ‘EINPROGRESS’ undeclared (first use in this function)
     if (result == -1 && errno == EINPROGRESS)
                                  ^
libraries/enet/libenet/unix.c:321:34: note: each undeclared identifier is reported only once for each function it appears in
libraries/enet/libenet/unix.c: In function ‘enet_socket_send’:
libraries/enet/libenet/unix.c:394:21: error: ‘EWOULDBLOCK’ undeclared (first use in this function)
        if (errno == EWOULDBLOCK)
                     ^
libraries/enet/libenet/unix.c: In function ‘enet_socket_receive’:
libraries/enet/libenet/unix.c:428:21: error: ‘EWOULDBLOCK’ undeclared (first use in this function)
        if (errno == EWOULDBLOCK)
                     ^
libraries/enet/libenet/unix.c: In function ‘enet_socket_wait’:
libraries/enet/libenet/unix.c:522:22: error: ‘EINTR’ undeclared (first use in this function)
         if (errno == EINTR && * condition & ENET_SOCKET_WAIT_INTERRUPT)
                      ^
Makefile:3265: recipe for target 'libraries/enet/libenet/unix.lo' failed
make[3]: *** [libraries/enet/libenet/unix.lo] Error 1
make[3]: Leaving directory '/home/uuu/love/src'
Makefile:3382: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/uuu/love/src'
Makefile:610: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/uuu/love'
Makefile:410: recipe for target 'all' failed
make: *** [all] Error 2
I don'tknow how to resolve this :(
Any help will be appreciated.
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: Building love for SliTaz -help needed

Post by raidho36 »

I think you might be trying to build a Windows version.

The build process for Linux is the following:

Code: Select all

./platform/unix/automagic
./configure
make
make install
The last command is optional. You need dependencies installed, and besides the libaries that also includes automake and libtool.
User avatar
4aiman
Party member
Posts: 262
Joined: Sat Jan 16, 2016 10:30 am

Re: Building love for SliTaz -help needed

Post by 4aiman »

raidho36 wrote: Wed Jul 12, 2017 7:54 pm readme info
Sorry, but I'm able to read readmes. What you've mentioned is exactly what I've done. All goes well up until make stumbles upon enet.

Edit: I *do* have mingw installed, could it be mingw is being "chosen" to build love?
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: Building love for SliTaz -help needed

Post by raidho36 »

That's a possibility. Especially if gcc defaults to mingw and not Linux.

Why would you have mingw on Linux installed anyway?
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Building love for SliTaz -help needed

Post by bartbes »

4aiman wrote: Wed Jul 12, 2017 8:25 pm Edit: I *do* have mingw installed, could it be mingw is being "chosen" to build love?
Looking at that output it's using 'gcc', so only if the first gcc on your PATH is the mingw one. That said, that's pretty much the only option, the file already includes errno.h on anything non-windows, and it contains those definitions.
User avatar
4aiman
Party member
Posts: 262
Joined: Sat Jan 16, 2016 10:30 am

Re: Building love for SliTaz -help needed

Post by 4aiman »

I've removed mingw (although I'll need it later for a different project) and tried again.
Automagic and configure went just fine.
Here's make output: click (Warning! VERY huge.)
Now it uses g++ O_o
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: Building love for SliTaz -help needed

Post by raidho36 »

Or, you could have passed full path to gcc in configure flags, or in config file.

That said, having foreign compiler as default indicates that your installation is botched. You may want to try again, more carefully.
User avatar
4aiman
Party member
Posts: 262
Joined: Sat Jan 16, 2016 10:30 am

Re: Building love for SliTaz -help needed

Post by 4aiman »

raidho36 wrote: Thu Jul 13, 2017 1:23 am Or, you could have passed full path to gcc in configure flags, or in config file.

That said, having foreign compiler as default indicates that your installation is botched. You may want to try again, more carefully.
Ah.... No offense, but do you even have a copy of slitaz installed?
All I did was

Code: Select all

./platform/unix/automagic
./configure
make
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Building love for SliTaz -help needed

Post by bartbes »

4aiman wrote: Wed Jul 12, 2017 10:52 pm I've removed mingw (although I'll need it later for a different project) and tried again.
Automagic and configure went just fine.
Here's make output: click (Warning! VERY huge.)
Now it uses g++ O_o
It's the exact same, from the look of it. By the way, it still uses gcc for enet (since that's c, not c++).
If you grep for EINPROGRESS, can you actually find it?

Code: Select all

grep -rF EINPROGRESS /usr/include
If not, do you maybe need a package that contains the right headers? Like maybe 'linux-api-headers'?
User avatar
4aiman
Party member
Posts: 262
Joined: Sat Jan 16, 2016 10:30 am

Re: Building love for SliTaz -help needed

Post by 4aiman »

I have api-headers installed alright. It didn't want to build some module/lib w/o that (forgot which).

Also, greping was successful.

Code: Select all

grep -rF EINPROGRESS /usr/include
/usr/include/X11/Xtrans/Xtranssock.c:#define EINPROGRESS WSAEINPROGRESS
/usr/include/X11/Xtrans/Xtranssock.c:	 * If the error was EWOULDBLOCK or EINPROGRESS then the socket
/usr/include/X11/Xtrans/Xtranssock.c:	else if (olderrno == EWOULDBLOCK || olderrno == EINPROGRESS)
/usr/include/X11/Xtrans/Xtranssock.c:	     * If the error was EWOULDBLOCK or EINPROGRESS then the socket
/usr/include/X11/Xtrans/Xtranssock.c:	    if (olderrno == EWOULDBLOCK || olderrno == EINPROGRESS)
/usr/include/c++/4.9.2/i486-slitaz-linux/bits/error_constants.h:      operation_in_progress = 			EINPROGRESS,
/usr/include/asm-generic/errno.h:#define	EINPROGRESS	115	/* Operation now in progress */
uuu@slitaz:~/love$ 
Here's my package manger with "gcc" as a filter. Green==installed.
gcc.png
gcc.png (51.85 KiB) Viewed 5151 times
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 184 guests