Linux PPC build?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, LCMark

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

Re: Linux PPC build?

Post by mwieder » Wed Feb 26, 2014 10:38 pm

Richmond- you've got missing directories because the submodules aren't present in the tarball. If you were using git instead of making extra headaches for yourself, this would be easy to fix. Since you don't want to do this the proper way, I can't think of how you are going to get around this other than iteravely tarballing each of the dependent submodules, unarchiving them into the proper place, then trying to make again until it works.

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

Re: Linux PPC build?

Post by monte » Thu Feb 27, 2014 1:46 am

There's way too much of a chicken and an egg thing going on with the prebuilts. It would be nice these things could be scripted with something that's likely to already be on the system in question or at least installable. For example: xxd -i for startupstack.cpp.
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
Contact:

Re: Linux PPC build?

Post by mwieder » Thu Feb 27, 2014 2:23 am

Yes, I hate the whole prebuilt / submodule thing.
But that's the hand we've been dealt, at least for the present.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10081
Joined: Fri Feb 19, 2010 10:17 am

Re: Linux PPC build?

Post by richmond62 » Thu Feb 27, 2014 9:27 am

As each new version of Livecode is made available it would be very nice indeed if a tarball of the complete source code
would be made available: never mind about interim stages and so forth.

For the sake of argument; were I to have a complete tarball I could download the thing on a PPC machine running some sort of PPC Linux
and stand a relatively good chance of getting a version up and running.

As it is, I have to spend quite a bit of time and effort learning GIT, which is not really necessary for what I want to do.
FP7503L.jpg

LCfraser
Livecode Staff Member
Livecode Staff Member
Posts: 71
Joined: Thu Nov 28, 2013 11:18 am
Contact:

Re: Linux PPC build?

Post by LCfraser » Thu Feb 27, 2014 9:37 am

Hi Richmond,

The alternative is to just learn the magic incantations and use them each time:

Code: Select all

git clone --recursive https://github.com/runrev/livecode.git
cd livecode
git submodule update
for the first time. If you already have the source code from the commands above,

Code: Select all

git pull
git submodule update
will update you to the latest version of the code.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Linux PPC build?

Post by Simon » Thu Feb 27, 2014 9:42 am

Richmond,
You ask a lot for a 6 year old. :wink:

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Linux PPC build?

Post by Klaus » Thu Feb 27, 2014 2:36 pm

Simon wrote:Richmond,
You ask a lot for a 6 year old. :wink:

Simon
:D :D :D

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Linux PPC build?

Post by jacque » Thu Feb 27, 2014 6:05 pm

Simon wrote:Richmond,
You ask a lot for a 6 year old. :wink:
LOL! Quote of the day. :)
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10081
Joined: Fri Feb 19, 2010 10:17 am

Re: Linux PPC build?

Post by richmond62 » Thu Feb 27, 2014 7:50 pm

I wonder if I should adopt that as a new masthead to all my posts?

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10081
Joined: Fri Feb 19, 2010 10:17 am

Re: Linux PPC build?

Post by richmond62 » Thu Feb 27, 2014 8:48 pm

Fraser, here I am following your "Magic Recipe", and I am beginning to feel fairly foolish as the whole thing is going very smoothly indeed (this on the Dell Optiplex 745
running UbuntuStudio 13.10).

I am downloading the PPC alternate install disk for Xubuntu 12.04 and will dig out my old MacMini at the weekend and install that there.

Then I will try to build a Linux PPC build.

The next question is whether, should it build and work successfully, and how I should pump it back into the system and/or to you lot at RunRev to offer
to any other people daft enough to be running Linux on old Macs.

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

Re: Linux PPC build?

Post by mwieder » Thu Feb 27, 2014 9:09 pm

Richmond- welcome to the git world.
If you want to contribute the source back once you get things working there are a couple of things to know.

1: if you are going to be making changes to the source (this may involve doing c coding or maybe just fiddling with make files or the like) then I'd advise one step before the original git clone. Make a github account if you haven't done that already, and then fork the original livecode source from the runrev repository. Then clone that one instead of the runrev one. You don't have write access to the runrev repository, so you won't be able to contribute anything back without this step. It may sound daunting, but it's actually pretty easy on github's site.

2: I can't remember the second thing, but I'll get more caffeine and maybe it will come back to me.

Now... I wouldn't be surprised if you find that some libraries required to compile the source are missing on your system, and you'll have to install them. I think most of the required dependencies are listed on the github site, but you're in uncharted territory with linux ppc. Do keep track of any libraries you need that aren't on the list, as these will need to be added to the docs for anyone foolish enough to follow in your footsteps.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10081
Joined: Fri Feb 19, 2010 10:17 am

Re: Linux PPC build?

Post by richmond62 » Thu Feb 27, 2014 9:13 pm

However, I got stuck at this point:

richmond@richmond-OptiPlex-745:~/livecode$ _build/linux/i386/release/engine-community
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading configurations from ~/.fonts.conf is deprecated.
Startup error - /home/richmond/livecode/Toolset/home.rev
richmond@richmond-OptiPlex-745:~/livecode$

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10081
Joined: Fri Feb 19, 2010 10:17 am

Re: Linux PPC build?

Post by richmond62 » Thu Feb 27, 2014 9:36 pm

As the baseline Linux system is Ubuntu 6.06 I will install that in VMware player and build there.

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

Re: Linux PPC build?

Post by mwieder » Fri Feb 28, 2014 7:21 am

However, I got stuck at this point:

richmond@richmond-OptiPlex-745:~/livecode$ _build/linux/i386/release/engine-community
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading configurations from ~/.fonts.conf is deprecated.
Startup error - /home/richmond/livecode/Toolset/home.rev
richmond@richmond-OptiPlex-745:~/livecode$
Hmmm... that looks to me like you built it properly, but the i386 seems to say that you built an intel version rather than a ppc version.
And then the following warning looks like the system is trying to open the file with gedit.
You may well have to fiddle with the makefiles to get a ppc build going.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10081
Joined: Fri Feb 19, 2010 10:17 am

Re: Linux PPC build?

Post by richmond62 » Fri Feb 28, 2014 9:40 am

I am trying to build an INTEL version initially, both as a learning experience, and to extract the

engine/src/linuxstubs.cpp
engine/src/startupstack.cpp
engine/src/encodederrors.cpp
engine/src/hashedstrings.cpp
engine/include/revbuild.h
thirdparty/libopenssl/src/sslstubs.cpp

files to transfer over to the Linux PPC setup.

Locked