Notices


Reply
Thread Tools
Posts: 482 | Thanked: 550 times | Joined on Oct 2010
#1
I am trying to install a program that I wrote for desktop, in Python, on my N900. The thing is, it depends on SWFTools, which is not in the Maemo repository. So I installed gcc and g++ and had a go at compiling on-device. This in my result:

Code:
Nokia-N900:/swftools-2011-01-23-1815# ./configure -build=arm-unknown-linux
checking build system type... arm-unknown-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/swftools-2011-01-23-1815':
configure: error: C compiler cannot create executables
See `config.log' for more details
And the contents of config.log:

Code:
Nokia-N900:/swftools-2011-01-23-1815# cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.68.  Invocation command line was

  $ ./configure -build=arm-unknown-linux

## --------- ##
## Platform. ##
## --------- ##

hostname = Nokia-N900
uname -m = armv7l
uname -r = 2.6.28.10-power47
uname -s = Linux
uname -v = #1 PREEMPT Tue May 3 20:40:52 EEST 2011

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/bin/X11


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2735: checking build system type
configure:2749: result: arm-unknown-linux-gnu
configure:2769: checking host system type
configure:2782: result: arm-unknown-linux-gnu
configure:2875: checking for gcc
configure:2891: found /bin/gcc
configure:2902: result: gcc
configure:3131: checking for C compiler version
configure:3140: gcc --version >&5
gcc (GCC) 4.2.1
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3151: $? = 0
configure:3140: gcc -v >&5
Using built-in specs.
Target: arm-linux-gnueabi
Configured with: ../src/configure -v --enable-languages=c,c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --disable-libssp --disable-sjlj-exceptions --disable-multilib --enable-checking=release --build=arm-linux-gnueabi --host=arm-linux-gnueabi --target=arm-linux-gnueabi
Thread model: posix
gcc version 4.2.1
configure:3151: $? = 0
configure:3140: gcc -V >&5
gcc: '-V' option must have argument
configure:3151: $? = 1
configure:3140: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:3151: $? = 1
configure:3171: checking whether the C compiler works
configure:3193: gcc -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O -fomit-frame-pointer    conftest.c  >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:3197: $? = 1
configure:3235: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3240: error: in `/swftools-2011-01-23-1815':
configure:3242: error: C compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=arm-unknown-linux-gnu
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=arm-unknown-linux
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=arm-unknown-linux-gnu
ac_cv_prog_ac_ct_CC=gcc

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR=''
AREXT=''
AVIFILE_CONFIG=''
CC='gcc'
CFLAGS='-fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O -fomit-frame-pointer '
CPP=''
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXFLAGS='-fPIC -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O -fomit-frame-pointer '
CXXLIBS=''
DEFS=''
DEVICE_OPENGL=''
DEVICE_PDF=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FREETYPE_CONFIG=''
GIF2SWF=''
GREP=''
HAVE_PYTHON_IMAGING=''
HAVE_UNISTD_H=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
JPEG2SWF=''
LDFLAGS=''
LIBOBJS=''
LIBPDF=''
LIBS=''
LN_S=''
LTLIBOBJS=''
OBJEXT=''
PACKAGE='swftools'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PDF2PDF=''
PDF2SWF=''
PNG2SWF=''
PYTHON_EXECUTABLE=''
PYTHON_INCLUDES=''
PYTHON_INSTALL_PATH=''
PYTHON_LIB=''
RANLIB=''
RUBY=''
RUBY_CPPFLAGS=''
RUBY_INSTALLDIR=''
RUBY_LDFLAGS=''
RUBY_LIBS=''
SET_MAKE=''
SHARED='-shared'
SHELL='/bin/bash'
SLEXT='so'
STRIP=''
SYSTEM_BACKTICKS=''
UNCOMPRESS=''
USE_GZIP=''
VERSION='2011-01-23-1815'
VIDEO_CFLAGS=''
VIDEO_LIBS=''
WORDS_BIGENDIAN=''
ac_ct_CC='gcc'
ac_ct_CXX=''
bindir='${exec_prefix}/bin'
build='arm-unknown-linux-gnu'
build_alias='arm-unknown-linux'
build_cpu='arm'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host='arm-unknown-linux-gnu'
host_alias=''
host_cpu='arm'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
lame_in_source=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
splash_in_source=''
sysconfdir='${prefix}/etc'
target=''
target_alias=''
target_cpu=''
target_os=''
target_vendor=''
xpdf_in_source=''
xpdf_include=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""

configure: exit 77
Nokia-N900:/swftools-2011-01-23-1815#
Can anybody help?

Last edited by skykooler; 2011-06-27 at 14:40.
 
Posts: 838 | Thanked: 3,384 times | Joined on Mar 2009
#2
Code:
wget http://www.swftools.org/swftools-2011-01-23-1815.tar.gz
tar zxvf swftools-2011-01-23-1815.tar.gz 
cd swftools-2011-01-23-1815/
sb2 -e ./configure
sb2 -e make
All binaries to one pack -> http://cc.oulu.fi/~rantalai/swftools...bin-arm.tar.gz (4Megas)

Is this what you needed?

I must say that I do not know what is swftools and should it be packaged for fremantle (is there any real use for it?). Is swftools needed on 'compile'-time (quotation mark because of python) or it is runtime dependency for your application?
 

The Following User Says Thank You to AapoRantalainen For This Useful Post:
Posts: 482 | Thanked: 550 times | Joined on Oct 2010
#3
Thank you! What is sb2? (I don't seem to have it installed.) In python I am just invoking swfc from the command line with os.system, so I do not need it on "compile-time" but it is needed to export to SWF. To answer your other question, swftools is a set of utilities for working with swf files and as such are more of a supporting library than an application. The only one I actually need is swfc. I may just bundle your compiled swfc along with my application.
 
Posts: 838 | Thanked: 3,384 times | Joined on Mar 2009
#4
My steps are run on Ubuntu computer, not N900 device.

sb2 = Scratchbox 2 [http://freedesktop.org/wiki/Software/sbox2]
= Cross-compilation environment

Once there was a time I though that Scratchbox 2 will make Scratchbox 1 obsoleted, but sb2 is now abandoned.

With sb1, steps are (tested for Harmattan: http://harmattan-dev.nokia.com)

Code:
scratchbox
wget http://www.swftools.org/swftools-2011-01-23-1815.tar.gz
tar zxvf swftools-2011-01-23-1815.tar.gz 
cd swftools-2011-01-23-1815/
./configure
make
 

The Following User Says Thank You to AapoRantalainen For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 09:13.