Message boards : Questions and problems : Linux Source with configure and make scripts
Message board moderation
Author | Message |
---|---|
Send message Joined: 8 Jan 09 Posts: 3 ![]() |
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 |
![]() Send message Joined: 12 Feb 06 Posts: 232 ![]() |
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 |
Send message Joined: 8 Jan 09 Posts: 3 ![]() |
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?! |
![]() Send message Joined: 12 Feb 06 Posts: 232 ![]() |
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 |
Send message Joined: 8 Jan 09 Posts: 3 ![]() |
I am getting this error : -sh: ./_autosetup: /bin/sh^M: bad interpreter: No such file or directory |
![]() Send message Joined: 12 Feb 06 Posts: 232 ![]() |
I am getting this error : 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 |
Send message Joined: 2 Mar 09 Posts: 1 ![]() |
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. |
![]() Send message Joined: 12 Feb 06 Posts: 232 ![]() |
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 |
Send message Joined: 19 Jan 07 Posts: 1179 ![]() |
I am getting this error : 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. |
Copyright © 2025 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.