LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-29-2010, 09:24 PM   #16
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651

probably because of the gcc output
Code:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
 
Old 04-30-2010, 01:48 AM   #17
naren4055
LQ Newbie
 
Registered: Apr 2010
Posts: 16

Original Poster
Rep: Reputation: 0
c compiler can not create executables

thanks for quick reply i want to compile vlc source code in intel desktop pc and then i can move to cross compilation targetboard.

i am new to linux , please what are the corrections i have to do in following command

Code:
  configure:2383: gcc -I /home/narendra/lib/libmad-0.15.1b/include/ -L /home/narendra/lib/libid3tag-0.15.1b/lib/ conftest.c >&5
> cc1: error: /home/narendra/lib/libmad-0.15.1b/include/: Permission denied
 
Old 04-30-2010, 01:55 AM   #18
naren4055
LQ Newbie
 
Registered: Apr 2010
Posts: 16

Original Poster
Rep: Reputation: 0
c compiler can not create executables

what corrections i have to make in the cofig.log or cofigure file
will i modify make file or somthing else

Code:
 ## --------- ##
## Platform. ##
## --------- ##

hostname = localhost
uname -m = i686
uname -r = 2.6.27.5-117.fc10.i686
uname -s = Linux
uname -v = #1 SMP Tue Nov 18 12:19:59 EST 2008

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

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

PATH: /usr/lib/qt-3.3/bin
PATH: /usr/kerberos/bin
PATH: /usr/lib/ccache
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /sbin
PATH: /home/narendra/bin


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

configure:1571: checking for a BSD-compatible install
configure:1626: result: /usr/bin/install -c
configure:1637: checking whether build environment is sane
configure:1680: result: yes
configure:1737: checking for gawk
configure:1753: found /usr/bin/gawk
configure:1763: result: gawk
configure:1773: checking whether make sets $(MAKE)
configure:1793: result: yes
configure:1968: checking build system type
configure:1986: result: i686-pc-linux-gnu
configure:1994: checking host system type
configure:2008: result: i686-pc-linux-gnu
configure:2071: checking for gcc
configure:2087: found /usr/lib/ccache/gcc
configure:2097: result: gcc
configure:2341: checking for C compiler version
configure:2344: gcc --version </dev/null >&5
gcc (GCC) 4.3.2 20081105 (Red Hat 4.3.2-7)
Copyright (C) 2008 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:2347: $? = 0
configure:2349: gcc -v </dev/null >&5
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-cpu=generic --build=i386-redhat-linux
Thread model: posix
gcc version 4.3.2 20081105 (Red Hat 4.3.2-7) (GCC)
configure:2352: $? = 0
configure:2354: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:2357: $? = 1
configure:2380: checking for C compiler default output file name
configure:2383: gcc -I /home/narendra/lib/libmad-0.15.1b/include/ -L /home/narendra/lib/libid3tag-0.15.1b/lib/ conftest.c >&5
cc1: error: /home/narendra/lib/libmad-0.15.1b/include/: Permission denied
configure:2386: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "MPEG audio decoder and player"
| #define PACKAGE_TARNAME "madplay"
| #define PACKAGE_VERSION "0.15.2b"
| #define PACKAGE_STRING "MPEG audio decoder and player 0.15.2b"
| #define PACKAGE_BUGREPORT "rob@mars.org"
#define PACKAGE "madplay"
| #define VERSION "0.15.2b"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2425: error: C compiler cannot create executables
See `config.log' for more details.

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

ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
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=set
ac_cv_env_CPPFLAGS_value='-I /home/narendra/lib/libmad-0.15.1b/include/'
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_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-L /home/narendra/lib/libid3tag-0.15.1b/lib/'
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
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=i686-pc-linux-gnu
ac_cv_host_alias=i686-pc-linux-gnu
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes

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

ACLOCAL='${SHELL} /home/narendra/madplay-0.15.2b/missing --run aclocal-1.8'
ALLOCA=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /home/narendra/madplay-0.15.2b/missing --run tar'
AR=''
AUTOCONF='${SHELL} /home/narendra/madplay-0.15.2b/missing --run autoconf'
AUTOHEADER='${SHELL} /home/narendra/madplay-0.15.2b/missing --run autoheader'
AUTOMAKE='${SHELL} /home/narendra/madplay-0.15.2b/missing --run automake-1.8'
AWK='gawk'
BUILD_INCLUDED_LIBINTL=''
CATOBJEXT=''
CC='gcc'
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS='-I /home/narendra/lib/libmad-0.15.1b/include/'
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DATADIRNAME=''
DEFS=''
DEPDIR=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
F77=''
FFLAGS=''
GENCAT=''
GLIBC21=''
GMSGFMT=''
HAVE_ASPRINTF=''
HAVE_POSIX_PRINTF=''
HAVE_SNPRINTF=''
HAVE_WPRINTF=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
INSTOBJEXT=''
INTLBISON=''
INTLLIBS=''
INTLOBJS=''
INTL_LIBTOOL_SUFFIX_PREFIX=''
LDFLAGS='-L /home/narendra/lib/libid3tag-0.15.1b/lib/'
LIBICONV=''
LIBINTL=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIBTOOL_DEPS=''
LN_S=''
LTLIBICONV=''
LTLIBINTL=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/narendra/madplay-0.15.2b/missing --run makeinfo'
MKINSTALLDIRS=''
MSGFMT=''
MSGMERGE=''
OBJEXT=''
PACKAGE='madplay'
PACKAGE_BUGREPORT='rob@mars.org'
PACKAGE_NAME='MPEG audio decoder and player'
PACKAGE_STRING='MPEG audio decoder and player 0.15.2b'
PACKAGE_TARNAME='madplay'
PACKAGE_VERSION='0.15.2b'
PATH_SEPARATOR=':'
POSUB=''
RANLIB=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
USE_INCLUDED_LIBINTL=''
USE_NLS=''
VERSION='0.15.2b'
XGETTEXT=''
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_F77=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${prefix}/share'
depend_audio=''
exec_prefix='NONE'
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/home/narendra/madplay-0.15.2b/install-sh'
ldadd_audio=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='mkdir -p -- .'
oldincludedir='/usr/include'
prefix='/home/narendra/madplay-0.15.2b'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE "madplay"
#define PACKAGE_BUGREPORT "rob@mars.org"
#define PACKAGE_NAME "MPEG audio decoder and player"
#define PACKAGE_STRING "MPEG audio decoder and player 0.15.2b"
#define PACKAGE_TARNAME "madplay"
#define PACKAGE_VERSION "0.15.2b"
#define VERSION "0.15.2b"

configure: exit 78
 
Old 04-30-2010, 02:08 AM   #19
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
"2.6.27.5-117.fc10.i686
that is the first problem
Fedora 10 is no longer supported ,Please install a supported version

and vlc will build in fedora
most of the dependencies are there
http://www.videolan.org/vlc/
http://wiki.videolan.org/Developers_Corner
http://wiki.videolan.org/GetTheSource

also a cross with WHAT mac or windows ( if windows just install the windows version ) or some other linux distro ????? or or intel and arm cpu's ???
http://wiki.videolan.org/ARM-XCompile
also WHY do you need to try to build " madplay " it is old and has not been worked on in a long time
see my post #7
 
Old 04-30-2010, 02:16 AM   #20
naren4055
LQ Newbie
 
Registered: Apr 2010
Posts: 16

Original Poster
Rep: Reputation: 0
knudfl said that

You will have to cross compile all libraries that will
be used by vlc. "gcc" is not to be used at all.

i am new to linux can tell me how to cross compile all libraries that will
be used by vlc.
 
Old 04-30-2010, 02:38 AM   #21
naren4055
LQ Newbie
 
Registered: Apr 2010
Posts: 16

Original Poster
Rep: Reputation: 0
c compiler can not create executables

John VV has given me some sites in that one is the complete source pakages are given for cross compilation .can i follow those steps or will i do extra steps pls give me complete procedure how to compile vlc source code in intel pc
 
Old 04-30-2010, 02:46 AM   #22
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
what are you cross compiling for ??
what arch ??

What dose vlc need to run on that you can not build in on that system ?
 
Old 04-30-2010, 03:03 AM   #23
naren4055
LQ Newbie
 
Registered: Apr 2010
Posts: 16

Original Poster
Rep: Reputation: 0
c compiler can not create executables

i have downloaded following vlc source package and following files
* binutils-2.11.2.tar.gz
* linux-2.4.19.tar.bz2
* patch-2.4.19-rmk4.bz2
* gcc-2.95.3.tar.gz
* gcc-2.95.3.diff.bz2
* gcc-2.95.3.diffbis.bz2 - [File hard to find, Please post link to file]
* gcc-2.95.3.diff2
* glibc-2.2.5.tar.gz
* glibc-linuxthreads-2.2.5.tar.gz
* SDL-1.2.5.tar.gz
* glib-1.2.10.tar.gz
* ffmpeg.tar.gz
* mad-0.14.2b.tar.gz
* flac-1.1.0.tar.gz
* libdvbpsi-0.1.2.tar.gz
* a52dec-0.7.4.tar.gz
in above files what i need to install in fedora 10version which has libgcc-4.3.2-7.i386
gcc-4.3.2-7.i386
gcc-gfortran-4.3.2-7.i386
gcc-c++-4.3.2-7.i386 ,
and tell me what files are not needed to compile .
 
Old 04-30-2010, 03:47 AM   #24
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
ALL OF THOSE FILES ARE IN THE FEDORA REPOS use yum to install them!!!!!!!!!!!!!!!

Code:
yum groupinstall " Development Tools"

but install fedora 12 first!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

and read
Code:
man yum
and answer my question in the above pose
WHAT architectures do you need to cross compile for!!!!

Last edited by John VV; 04-30-2010 at 03:49 AM.
 
Old 04-30-2010, 03:51 AM   #25
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
I have downloaded following vlc source package and following files
No vlc ?
Did you really download all those "ten" year old files ?
Or is it just a copy of this text :
http://forum.videolan.org/viewtopic.php?f=13&t=73126

Most of the files can not even be compiled on Fedora 10..11..12.
..

Last edited by knudfl; 04-30-2010 at 04:20 AM.
 
Old 04-30-2010, 04:41 AM   #26
naren4055
LQ Newbie
 
Registered: Apr 2010
Posts: 16

Original Poster
Rep: Reputation: 0
c can not create executables

these are my architecture details which i need to cross compile below link give u entire architecture details

http://www.friendlyarm.net/products/mini2440

and one more thing i have already did that with
Code:
yum groupinstall " Development Tools"

Last edited by naren4055; 04-30-2010 at 04:46 AM. Reason: detailed information
 
Old 04-30-2010, 05:41 AM   #27
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
An answer to ""How do I learn to cross compile ?"" can be this :
Start building LFS, 'Linux From Scratch' a couple of times,
preferable using the LFS live cd. http://www.linuxfromscratch.org/lfs/

When you have seen, how everything works, and is connected together,
then move on to CLFS, 'Cross Linux From Scratch', where an example of
a different architecture is used.
 
Old 04-30-2010, 10:58 AM   #28
naren4055
LQ Newbie
 
Registered: Apr 2010
Posts: 16

Original Poster
Rep: Reputation: 0
c can not create executables

thank u sir
suppose i was installed fedora 12 version in intel pc, then will i directly compile vlc source code with no need of cross compilation porecudere
 
Old 04-30-2010, 04:51 PM   #29
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Compiling vlc-1.0.6 for x86 on Fedora 10..11..12 :
Code:
# yum install libXxf86vm-devel vcdimager-devel \
zlib-devel fontconfig-devel alsa-lib-devel libgcrypt-devel libdca-devel \  
SDL_image-devel fribidi-devel zvbi-devel freetype-devel libX11-devel \ 
taglib-devel libnotify-devel libogg-devel libvorbis-devel libmpeg2-devel \  
libproxy-devel live555-devel libmpcdec-devel libdvdnav-devel libcddb-devel \
libcdio-devel libdvdread-devel ffmpeg-devel libmad-devel libdvbpsi-devel \
lua-devel libtar-devel liba52-devel mesa-libGL-devel mesa-libGLU-devel \
speex-devel schroedinger-devel fluidsynth-devel libxml2-devel avahi-devel \
pulseaudio-libs-devel libpng10-devel libmtp-devel minizip-devel qt-devel \ 
gnutls-devel xcb-util-devel xorg-x11-proto-devel libtiff-devel
( 'vlc' will not compile with x264-devel on Fedora 10.)
cd vlc-1.0.6/ && ./configure && make && ./bin/vlc-static : "vlc" starts !

No files compiled for x86 are usable for 'arm'. Must be cross compiled.
Or compiled on an arm machine.

A 'vlc' for arm is here http://packages.debian.org/etch/vlc ( vlc 0.8.6 )
Version 1.0.5, (glibc 2.8), armel: http://packages.debian.org/squeeze/vlc
The "35" dependencies are marked with red dots.

Last edited by knudfl; 04-30-2010 at 04:56 PM.
 
Old 05-01-2010, 03:19 PM   #30
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Moved: This thread is more suitable in <FEDORA> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create an executable in Perl madhi Programming 9 07-16-2009 09:47 PM
how to create link to an executable? Finlay Slackware 12 10-09-2004 08:19 AM
gcc can't create executable Aeion Linux - Newbie 1 04-06-2004 12:03 PM
Rhythmbox - Failed to create mad element Makaelin Fedora 5 04-02-2004 03:45 PM
"Failed to create mad element; check your installation jlacroix Fedora 2 12-08-2003 12:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 04:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration