Author |
Post |
|
#1 Thu Feb 18, 2010 06:51, 182 months ago.
|
Member
Registered: Feb 2010
Location: Hong Kong
|
I;m new to this cygwin stuff.
Trying to build a version for windows XP SP 2, when I call command make i get an error :-
$ make cd src && make - make[1]: Entering directory `/usr/src/smstools3/src' cc -D NUMBER_OF_MODEMS=64 -D NOSTATS -Wall -D_FILE_OFFSET_BITS=64 -c -o extra s.o extras.c make[1]: cc: Command not found make[1]: *** [extras.o] Error 127 make[1]: Leaving directory `/usr/src/smstools3/src' make: *** [compile] Error 2
what am I missing?
|
|
#2 Thu Feb 18, 2010 07:19, 182 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
You are missing a compiler.
In the Cygwin setup, open the Devel list and select gcc-g++ package. After this package is installed, compiling should work.
If you still get an error cc: Command not found, try a command which gcc. If gcc was found, you are missing a symbolic link from cc to gcc. In this case you can edit the Makefile in the smstools3/src directory. There is a line # CC=gcc, uncomment it (remove the # character).
|
|
#3 Thu Feb 18, 2010 08:11, 182 months ago.
|
Member
Registered: Feb 2010
Location: Hong Kong
Topic owner
|
Still no joy.
Same error message,
gcc-g++ already installed. #CC uncommented
I will try on a different machine next week and report back.
|
|
#4 Thu Feb 18, 2010 11:15, 182 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
You could still check if there is a problem with symbolic links. In my machine links are as follows:
$ which cc /usr/bin/cc
$ ls -l /usr/bin/cc lrwxrwxrwx 1 Keke None 20 2010-01-08 16:37 /usr/bin/cc -> /etc/alternatives/cc
$ ls -l /etc/alternatives/cc lrwxrwxrwx 1 Keke None 17 2010-01-08 16:37 /etc/alternatives/cc -> /usr/bin/cc-3.exe
$ ls -l /usr/bin/cc-3.exe lrwxrwxrwx 1 Keke root 9 2010-01-08 16:36 /usr/bin/cc-3.exe -> gcc-3.exe
$ ls -l /usr/bin/gcc-3.exe -rwxr-xr-x 2 Keke root 94741 2009-02-25 12:14 /usr/bin/gcc-3.exe
$ which gcc /usr/bin/gcc
$ ls -l /usr/bin/gcc lrwxrwxrwx 1 Keke None 21 2010-01-08 16:37 /usr/bin/gcc -> /etc/alternatives/gcc
$ ls -l /etc/alternatives/gcc lrwxrwxrwx 1 Keke None 18 2010-01-08 16:37 /etc/alternatives/gcc -> /usr/bin/gcc-3.exe
|
|
#5 Thu Feb 25, 2010 06:51, 182 months ago.
|
Member
Registered: Feb 2010
Location: Hong Kong
Topic owner
|
Tried this on another machine.. Compiles fine.  No problems.. *other problems but not sms 3 related. I am connecting to a China unicom ZTE MF637U WCDMA USB modem. But smsd says the device is already in use. When i try to connect to it using hyperterminal, same message is displayed.
|
|
#6 Thu Feb 25, 2010 07:41, 182 months ago.
|
Member
Registered: Feb 2010
Location: Hong Kong
Topic owner
|
No worries... got it working
|