Open GoogleCodeExporter opened 9 years ago
修改最多的地方可能是gcc和msc不兼容的log输出宏。
msvc6编译需要sdk。
ubuntu 10.04附带的gcc应该是4.4.1,我用March 25,
2011发布的4.6.0编译通过了,
应该低版本的没有什么问题,通常越高的版本检查越严格。
Original comment by siyansh...@gmail.com
on 15 Aug 2011 at 2:05
已经提交到svn了
Original comment by siyansh...@gmail.com
on 19 Aug 2011 at 3:57
[deleted comment]
copyfile:
cp $(TARGET) ../bin/myqq
../bin ????
Original comment by havanna....@gmail.com
on 22 Aug 2011 at 3:36
myqq3--\
|--lib
|--qtc
|--src
|--bin
|--...
Original comment by siyansh...@gmail.com
on 22 Aug 2011 at 4:26
>cd myqq3/src
>make -f linux.mak
>../bin/myqq
Original comment by siyansh...@gmail.com
on 22 Aug 2011 at 4:28
[deleted comment]
$ make -C src -flinux.mak CC="${CHOST}-gcc" CFLAGS="${CFLAGS} -c -Wall"
LDFLAGS="${LDFLAGS} -lpthread" LD="${CHOST}-gcc"
make: Entering directory `/home/havanna/Documents/myqq3/src'
rm -rf obj
mkdir -p obj
gcc -c -Wall -o obj/qqsocket.o qqsocket.c
gcc -c -Wall -o obj/qqcrypt.o qqcrypt.c
gcc -c -Wall -o obj/md5.o md5.c
gcc -c -Wall -o obj/debug.o debug.c
gcc -c -Wall -o obj/qqclient.o qqclient.c
gcc -c -Wall -o obj/memory.o memory.c
gcc -c -Wall -o obj/config.o config.c
gcc -c -Wall -o obj/packetmgr.o packetmgr.c
packetmgr.c: In function ‘handle_packet’:
packetmgr.c:212:36: warning: cast to pointer from integer of different size
[-Wint-to-pointer-cast]
packetmgr.c:213:39: warning: cast to pointer from integer of different size
[-Wint-to-pointer-cast]
gcc -c -Wall -o obj/qqpacket.o qqpacket.c
gcc -c -Wall -o obj/prot_login.o prot_login.c
gcc -c -Wall -o obj/protocol.o protocol.c
gcc -c -Wall -o obj/prot_misc.o prot_misc.c
gcc -c -Wall -o obj/prot_im.o prot_im.c
gcc -c -Wall -o obj/prot_user.o prot_user.c
gcc -c -Wall -o obj/list.o list.c
gcc -c -Wall -o obj/buddy.o buddy.c
buddy.c: In function ‘searcher’:
buddy.c:41:36: warning: cast from pointer to integer of different size
[-Wpointer-to-int-cast]
buddy.c: In function ‘buddy_get’:
buddy.c:50:46: warning: cast to pointer from integer of different size
[-Wint-to-pointer-cast]
buddy.c: In function ‘buddy_remove’:
buddy.c:67:46: warning: cast to pointer from integer of different size
[-Wint-to-pointer-cast]
gcc -c -Wall -o obj/group.o group.c
group.c: In function ‘searcher’:
group.c:26:36: warning: cast from pointer to integer of different size
[-Wpointer-to-int-cast]
group.c: In function ‘group_get’:
group.c:34:46: warning: cast to pointer from integer of different size
[-Wint-to-pointer-cast]
group.c: In function ‘group_remove’:
group.c:55:46: warning: cast to pointer from integer of different size
[-Wint-to-pointer-cast]
gcc -c -Wall -o obj/qun.o qun.c
qun.c: In function ‘qun_searcher’:
qun.c:28:34: warning: cast from pointer to integer of different size
[-Wpointer-to-int-cast]
qun.c: In function ‘member_searcher’:
qun.c:33:38: warning: cast from pointer to integer of different size
[-Wpointer-to-int-cast]
qun.c: In function ‘qun_member_get’:
qun.c:42:48: warning: cast to pointer from integer of different size
[-Wint-to-pointer-cast]
qun.c: In function ‘qun_member_remove’:
qun.c:63:48: warning: cast to pointer from integer of different size
[-Wint-to-pointer-cast]
qun.c: In function ‘qun_get’:
qun.c:74:42: warning: cast to pointer from integer of different size
[-Wint-to-pointer-cast]
qun.c: In function ‘qun_ext_searcher’:
qun.c:101:38: warning: cast from pointer to integer of different size
[-Wpointer-to-int-cast]
qun.c: In function ‘qun_get_by_ext’:
qun.c:105:45: warning: cast to pointer from integer of different size
[-Wint-to-pointer-cast]
qun.c: In function ‘qun_remove’:
qun.c:111:42: warning: cast to pointer from integer of different size
[-Wint-to-pointer-cast]
qun.c: In function ‘qun_update_memberinfo’:
qun.c:148:15: warning: cast from pointer to integer of different size
[-Wpointer-to-int-cast]
qun.c:148:25: warning: cast from pointer to integer of different size
[-Wpointer-to-int-cast]
gcc -c -Wall -o obj/prot_group.o prot_group.c
gcc -c -Wall -o obj/prot_qun.o prot_qun.c
gcc -c -Wall -o obj/prot_buddy.o prot_buddy.c
gcc -c -Wall -o obj/loop.o loop.c
gcc -c -Wall -o obj/utf8.o utf8.c
gcc -c -Wall -o obj/myqq.o myqq.c
gcc -c -Wall -o obj/util.o util.c
gcc -c -Wall -o obj/crc32.o crc32.c
gcc -c -Wall -o obj/qqconn.o qqconn.c
gcc -lpthread -o obj/myqq obj/qqsocket.o obj/qqcrypt.o obj/md5.o obj/debug.o
obj/qqclient.o obj/memory.o obj/config.o obj/packetmgr.o obj/qqpacket.o
obj/prot_login.o obj/protocol.o obj/prot_misc.o obj/prot_im.o obj/prot_user.o
obj/list.o obj/buddy.o obj/group.o obj/qun.o obj/prot_group.o obj/prot_qun.o
obj/prot_buddy.o obj/loop.o obj/utf8.o obj/myqq.o obj/util.o obj/crc32.o
obj/qqconn.o
cp obj/myqq ../bin/myqq
cp: cannot create regular file `../bin/myqq': No such file or directory
make: *** [copyfile] Error 1
make: Leaving directory `/home/havanna/Documents/myqq3/src'
Original comment by havanna....@gmail.com
on 22 Aug 2011 at 5:56
please update svn, I add a dir.
Original comment by siyansh...@gmail.com
on 22 Aug 2011 at 10:02
好把
gcc -c -Wall -O2 -s -o obj/util.o util.c
gcc -c -Wall -O2 -s -o obj/crc32.o crc32.c
gcc -c -Wall -O2 -s -o obj/qqconn.o qqconn.c
cp obj/myqq ../bin/myqq
cp: cannot stat `obj/myqq': No such file or directory
make: *** [copyfile] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory ......
这是打包过程中出现的问题,arch && gentoo
但实际上手动make倒是能过去
Original comment by havanna....@gmail.com
on 26 Aug 2011 at 8:27
补充,r13版,无问题
Original comment by havanna....@gmail.com
on 26 Aug 2011 at 8:28
Original issue reported on code.google.com by
siyansh...@gmail.com
on 15 Aug 2011 at 1:02Attachments: