64bit linux server build

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, LCMark

Locked
monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

64bit linux server build

Post by monte » Thu Dec 19, 2013 12:06 am

Hi

I'm trying to build linux server only on a fairly bare bones Debian x64 VM. I didn't install desktop etc because I'm trying to get as close as possible to a typical server environment.

So far I've installed git-core, g++, ia32-libs (so Revolution.lnx works), libfreetype6-dev, libpango1.0-dev

I'm now hitting "No rule to make target `src/pxmaplst.h` ..." I can't seem to find the file so is it some kind of derived source that isn't being generated for some reason?

Any clues?

Cheers

Monte
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: 64bit linux server build

Post by monte » Thu Dec 19, 2013 1:00 am

Soo... I deleted kernel from the makefile because it looks like Makefile.server doesn't use it in favor of kernel-server and that got me a bit further. But now it breaks on lnxflst requiring X11... correct me if I'm wrong but isn't x11 support kinda rare on a webserver? Perhaps they should be #ifdefed out in lnxprefix.h?
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9823
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: 64bit linux server build

Post by FourthWorld » Thu Dec 19, 2013 1:41 am

monte wrote:...But now it breaks on lnxflst requiring X11... correct me if I'm wrong but isn't x11 support kinda rare on a webserver?
I have at least one server where the X11 dependency in standalones makes it a non-starter. So I wouldn't rely on it being on a server - but is it needed if using the graphic effects? Can it be linked to dynamically on an as-needed basis? Or linked to via flags in the command line?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: 64bit linux server build

Post by monte » Thu Dec 19, 2013 2:04 am

turned out I had libX11-dev installed already. Installing libXext-dev got kernel-server building now libcurl.a(multi.o) is choking on an undefined reference to __fdelt_chk which I believe is because libcurl.a was built against a newer libc. I missed the reasoning behind why we couldn't just build these three libraries as required. Anyway it appears wheezy uses 2.13 and I guess whatever system these prebuilt libraries were built on uses 2.15 + which according to this contains the function:

http://stackoverflow.com/questions/1487 ... from-glibc

@FourthWorld I believe it's only required to build at the moment but I could be wrong.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: 64bit linux server build

Post by monte » Thu Dec 19, 2013 5:50 am

So... building and installing curl from the git repo as a static lib (thinking on it perhaps I could have just used apt-get... ) and then removing the prebuilt one allowed the compile to complete. Tested and it works nicely ;-)
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: 64bit linux server build

Post by monte » Thu Dec 19, 2013 8:49 am

In case anyone is interested ldd on my x86_64 build is:

Code: Select all

	linux-vdso.so.1 =>  (0x00007fff75aca000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f020009f000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f01ffe1d000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f01ffc00000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f01ff8f9000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f01ff56f000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f02002b0000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f01ff358000)
Nothing ominous.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: 64bit linux server build

Post by monte » Thu Dec 19, 2013 10:43 am

My build is available from http://mergext.com/lcserver.tar.gz

There's a Heroku buildpack at https://github.com/montegoulding/heroku ... k-livecode

I deployed a simple hello word lc server file at http://evening-lowlands-1899.herokuapp.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: 64bit linux server build

Post by mwieder » Fri Jan 17, 2014 11:55 pm

@Monte: (sorry, I haven't been around these parts in a few months)

If you put the 64-bit build into the proper place in the LC directory hierarchy you'll see a new option on the standalone builder that will let you build 32-bit and/or 64-bit linux standalones. You also have to copy the 64-bit external libraries. I made a shell script that does all that as a post-make process.

Locked

Return to “Engine Contributors”