View Full Version : Problem in compiling ver 0.5
mojo
September 2nd, 2005, 12:58
I tried to compile the src but I ended up with this msg:
mojo@ubuntu:~/Desktop/mupen64_src-0.5$ ./configure
*** Couldn't compile test program.
*** Couldn't find a working C compiler!
I find this problem very weird, I look through the script, it seems to me just to test out whether you have 'gcc' or not, if not it will use 'cc' instead. I am using Ubuntu Breezy Alpha 3, I checked carefully that my system has 'gcc-4.0' compiler installed. Firstly I thought it's gcc-4.0 fault, I installed the gcc-3.4 and gcc-3.3 but the problem still remains. Anyone has any idea?
Hacktarux
September 2nd, 2005, 18:34
I though there was always at least a "gcc" symlink to call the compiler on linux... is it "cc" on your system ?
i'll try to fix it, meanwhile, the easy fix for you is to edit the configure script and search these lines :
check_cc
if [ "$?" -ne "0" ]; then
echo "*** Couldn't find a working C compiler!"
exit 1
fi
comment the exit line
Then open the Makefile and replace gcc by cc
mojo
September 4th, 2005, 21:48
I though there was always at least a "gcc" symlink to call the compiler on linux... is it "cc" on your system ?
i'll try to fix it, meanwhile, the easy fix for you is to edit the configure script and search these lines :
check_cc
if [ "$?" -ne "0" ]; then
echo "*** Couldn't find a working C compiler!"
exit 1
fi
comment the exit line
Then open the Makefile and replace gcc by cc
Ok, it works now, Great help. Thx.
Hacktarux
September 4th, 2005, 22:05
Ok, it works now, Great help. Thx.
Ok i helped you but you didn't answer my question about your compiler, is it "cc" ? it'd be better if i could fix it for next release ;)
mojo
September 5th, 2005, 13:33
No, my is not 'cc'
Hacktarux
September 5th, 2005, 17:55
Then, tell me what is it....
mojo
September 7th, 2005, 11:10
Then, tell me what is it....
it's 'gcc' on my system if I install the dummy 'gcc' package. If I dun install that dummy package, it's just 'gcc-3.3' or 'gcc-4.0'. There is no 'cc' command or 'cc' alias.
ciruZ
September 7th, 2005, 11:19
mojo: You should do an "export CC=gcc-3.3" on Ubuntu or install the gcc-Package which is a symlink on the used gcc version. Anyway, Mupen64 should respect $CC if set (if it doesn't yet). ;)
adwin
September 7th, 2005, 11:36
Did you remember to do an
env-update && source /etc/profile after each install of gcc?
mojo
September 11th, 2005, 04:27
No, I didn't do any env-update, but isn't it auto-done for u in Ubuntu?
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.