Linux Source with configure and make scripts

Message boards : Questions and problems : Linux Source with configure and make scripts
Message board moderation

To post messages, you must log in.

AuthorMessage
Andy Armstrong

Send message
Joined: 8 Jan 09
Posts: 3
United Kingdom
Message 22339 - Posted: 8 Jan 2009, 0:40:07 UTC

Hi!

I am trying something rather weird - trying to compile the linux client on the iphone.

Now I have a g++ compiler on the phone - and this is just a kinda spare time project. I have svn tortoise and have tried getting the client folder from the svn however it has no configure or seemingly makefile.

Can somebody please either tar me up the lastest build with configure and make files, or point me in their direction at least!

Thanks so much

Andy
ID: 22339 · Report as offensive
Eric Myers
Avatar

Send message
Joined: 12 Feb 06
Posts: 232
United States
Message 22341 - Posted: 8 Jan 2009, 2:57:32 UTC - in response to Message 22339.  

Run _autosetup to create the configure script

Then run `./configure --disable-server` to create the Makefiles

You'll need to build the wxWidgets library first if you want the Manager, but not if you just want the CLI client. You probably also need --with-apple-opengl-framework for the GUI.

Once you have the configure script then `configure --help` can show you other things you can configure.

Hope it works. Good luck.



-- Eric Myers

"Education is not the filling of a pail, but the lighting of a fire." -- William Butler Yeats
ID: 22341 · Report as offensive
Andy Armstrong

Send message
Joined: 8 Jan 09
Posts: 3
United Kingdom
Message 22343 - Posted: 8 Jan 2009, 9:21:56 UTC - in response to Message 22341.  

Thats the thing - there is no autosetup file - typing _autosetup at the command line does nothing, and there is no name of file with _autosetup, or autosetup in my source list?!
ID: 22343 · Report as offensive
Eric Myers
Avatar

Send message
Joined: 12 Feb 06
Posts: 232
United States
Message 22346 - Posted: 8 Jan 2009, 15:50:12 UTC - in response to Message 22343.  

Thats the thing - there is no autosetup file - typing _autosetup at the command line does nothing, and there is no name of file with _autosetup, or autosetup in my source list?!

That script is in SVN, so try updating and make sure you are getting that file.
   grendel:boinc> svn info _autosetup 
Path: _autosetup
Name: _autosetup
URL: http://boinc.berkeley.edu/svn/trunk/boinc/_autosetup
Repository Root: http://boinc.berkeley.edu/svn
Repository UUID: 677681c0-c3c0-48b4-bd46-92119ef6d97a
Revision: 16842
Node Kind: file
Schedule: normal
Last Changed Author: davea
Last Changed Rev: 15282
Last Changed Date: 2008-05-23 15:24:20 -0400 (Fri, 23 May 2008)
Text Last Updated: 2008-07-23 16:14:13 -0400 (Wed, 23 Jul 2008)
Checksum: c3c265a49fca0b175a3f0b28fcf8b21f


You may not want to use the current trunk, since it's being worked on.
Pick a stable recent client branch. See the SourceCode page in the developers wiki.
-- Eric Myers

"Education is not the filling of a pail, but the lighting of a fire." -- William Butler Yeats
ID: 22346 · Report as offensive
Andy Armstrong

Send message
Joined: 8 Jan 09
Posts: 3
United Kingdom
Message 22347 - Posted: 8 Jan 2009, 18:39:01 UTC

I am getting this error :

-sh: ./_autosetup: /bin/sh^M: bad interpreter: No such file or directory

ID: 22347 · Report as offensive
Eric Myers
Avatar

Send message
Joined: 12 Feb 06
Posts: 232
United States
Message 22371 - Posted: 10 Jan 2009, 17:45:54 UTC - in response to Message 22347.  

I am getting this error :
-sh: ./_autosetup: /bin/sh^M: bad interpreter: No such file or directory

It's a short script, so you could try giving the commands in it by hand.

Perhaps sh (the Bourne shell) is somewhere else on iPhone? It could be called bash not sh. If you have bash, you couud say
bash _autosetup


-- Eric Myers

"Education is not the filling of a pail, but the lighting of a fire." -- William Butler Yeats
ID: 22371 · Report as offensive
Woyt'sa_Vadshn?

Send message
Joined: 2 Mar 09
Posts: 1
Austria
Message 23397 - Posted: 2 Mar 2009, 11:28:35 UTC - in response to Message 22371.  

Hi,

Maybe, /bin/sh is a softlink to /bin/bash on your system (like it is on SuSE 9.3). The script seems not to work with bash ....


W.
ID: 23397 · Report as offensive
Eric Myers
Avatar

Send message
Joined: 12 Feb 06
Posts: 232
United States
Message 23407 - Posted: 2 Mar 2009, 16:17:07 UTC - in response to Message 23397.  

What _autosetup does is run the GNU build tools to create the configure script, which in turn builds the Makefiles. Short and sweet, the script just sets things up to run
aclocal -I m4 && autoheader && automake && autoconf

So you also need all those GNU build tools.

An alternative approach might be to build on a Mac which has all this, and a compiler which can cross-compile for the ARM processor in the iPhone. Then you build on the Mac, but build executables that run on the other device. I know nothing about the current state of such things, except that this is how XCode does it for building iPhone apps.


-- Eric Myers

"Education is not the filling of a pail, but the lighting of a fire." -- William Butler Yeats
ID: 23407 · Report as offensive
Nicolas

Send message
Joined: 19 Jan 07
Posts: 1179
Argentina
Message 25019 - Posted: 23 May 2009, 22:05:31 UTC - in response to Message 22347.  

I am getting this error :

-sh: ./_autosetup: /bin/sh^M: bad interpreter: No such file or directory


That means you copied the _autosetup file from a Windows machine, which introduced Windows newlines.

Also, see this thread; where I show I successfully compiled the client for iPhoneOS 1.x :) However, I didn't try running it, but I'm almost sure it'd have had problems with network access.
ID: 25019 · Report as offensive

Message boards : Questions and problems : Linux Source with configure and make scripts

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.