LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: zhllg

realplayer-10.0.7 compile from source

[复制链接]
发表于 2006-9-6 21:42:50 | 显示全部楼层
看来还不行,我现在连续时间不多,到周末再帮大侠测试吧.
回复 支持 反对

使用道具 举报

发表于 2006-9-6 21:49:42 | 显示全部楼层
你用的是不是 amd64 ?x86 应该没问题。

ERROR: module shadowsdk/oggvorbissdk failed to check out
这个无所谓,我编译时也出现了,但实际的 realplayer 还可以放 ogg 。

ERROR: UNIXCompile(datatype/image/jpg/common) ERROR: Make failed.
这个没见过,试试
cd datatype/image/jpg/common && make
jpeg 应该是完全从源码编译的,跟 dist 包没关系。
回复 支持 反对

使用道具 举报

发表于 2006-9-7 00:45:24 | 显示全部楼层
[color="Red"]这个没见过,试试
cd datatype/image/jpg/common && make
jpeg 应该是完全从源码编译的,跟 dist 包没关系。


g++ -pipe -Wall -Wreturn-type -Wno-non-virtual-dtor -fno-exceptions --permissive -fno-rtti -Wno-ctor-dtor-privacy -Winline -Wdisabled-optimization -Wno-unused-parameter -Wno-reorder -fmessage-length=0  -m64 -D__amd64__ -O2   -I../../../../common/runtime/pub -I/usr/X11R6/include -I../../../../common/include -I../../../../common/util/pub -I../../../../common/container/pub -I../../../../common/dbgtool/pub -I../../../../common/system/pub -I../../../../datatype/common/util/pub -I../../../../datatype/image/common/pub -I../../../../datatype/image/jpg/import/jpeg-6b -I./pub -I. -include rel/datatype_image_jpg_common_ribodefs.h -fPIC -DPIC -o rel/obj/ijglwrap.o -c ijglwrap.cpp
../../../../common/container/pub/hxstring.h:531: warning: 'bool CHXString:perator<=(const char*) const' was used before it was declared inline
../../../../common/container/pub/hxstring.h:140: warning: previous non-inline declaration here
../../../../common/container/pub/hxstring.h:543: warning: 'bool CHXString:perator<=(const unsigned char*) const' was used before it was declared inline
../../../../common/container/pub/hxstring.h:141: warning: previous non-inline declaration here
../../../../common/container/pub/hxstring.h:561: warning: 'bool CHXString:perator<(const char*) const' was used before it was declared inline
../../../../common/container/pub/hxstring.h:143: warning: previous non-inline declaration here
../../../../common/container/pub/hxstring.h:573: warning: 'bool CHXString:perator<(const unsigned char*) const' was used before it was declared inline
../../../../common/container/pub/hxstring.h:144: warning: previous non-inline declaration here
../../../../datatype/image/jpg/import/jpeg-6b/jmorecfg.h:164: error: conflicting declaration 'typedef long int INT32'
../../../../common/include/hxtypes.h:111: error: 'INT32' has a previous declaration as 'typedef int INT32'
ijglwrap.cpp: In static member function 'static BOOL CIJGLibraryWrapper::FillInputBuffer(jpeg_decompress_struct*)':
ijglwrap.cpp:574: warning: unused variable 'ulOldBytesInBuffer'
make: *** [rel/obj/ijglwrap.o] Error 1
回复 支持 反对

使用道具 举报

发表于 2006-9-7 14:49:30 | 显示全部楼层
Post by VirusCamp
你用的是不是 amd64 ?x86 应该没问题。
cd datatype/image/jpg/common && make


64位的.
我再用snapshot编译看看吧.

  1. # make
  2. g++ -pipe -Wall -Wreturn-type -Wno-non-virtual-dtor -fno-exceptions --permissive -fno-rtti -Wno-ctor-dtor-privacy -Winline -Wdisabled-optimization -Wno-unused-parameter -Wno-reorder -fmessage-length=0  -m64 -D__amd64__ -O2   -I../../../../common/runtime/pub -I/usr/X11R6/include -I../../../../common/include -I../../../../common/util/pub -I../../../../common/container/pub -I../../../../common/dbgtool/pub -I../../../../common/system/pub -I../../../../datatype/common/util/pub -I../../../../datatype/image/common/pub -I../../../../datatype/image/jpg/import/jpeg-6b -I./pub -I. -include rel/datatype_image_jpg_common_ribodefs.h -fPIC -DPIC -o rel/obj/ijglwrap.o -c ijglwrap.cpp
  3. ../../../../common/container/pub/hxstring.h:531: 警告:‘bool CHXString::operator<=(const char*) const’ 在被声明为内联之前被用到
  4. ../../../../common/container/pub/hxstring.h:140: 警告:先前的非内联声明在这里
  5. ../../../../common/container/pub/hxstring.h:543: 警告:‘bool CHXString::operator<=(const unsigned char*) const’ 在被声明为 内联之前被用到
  6. ../../../../common/container/pub/hxstring.h:141: 警告:先前的非内联声明在这里
  7. ../../../../common/container/pub/hxstring.h:561: 警告:‘bool CHXString::operator<(const char*) const’ 在被声明为内联之前被 用到
  8. ../../../../common/container/pub/hxstring.h:143: 警告:先前的非内联声明在这里
  9. ../../../../common/container/pub/hxstring.h:573: 警告:‘bool CHXString::operator<(const unsigned char*) const’ 在被声明为内联之前被用到
  10. ../../../../common/container/pub/hxstring.h:144: 警告:先前的非内联声明在这里
  11. ../../../../datatype/image/jpg/import/jpeg-6b/jmorecfg.h:164: 错误:相互冲突的声明 ‘typedef long int INT32’
  12. ../../../../common/include/hxtypes.h:111: 错误:‘INT32’ 早先被声明为 ‘typedef int INT32’
  13. ijglwrap.cpp: In static member function ‘static BOOL CIJGLibraryWrapper::FillInputBuffer(jpeg_decompress_struct*)’:
  14. ijglwrap.cpp:574: 警告:未使用的变量 ‘ulOldBytesInBuffer’
  15. make: *** [rel/obj/ijglwrap.o] 错误 1
  16. root@yangtse:/var/tmp/portage/realplayer-10.0.8-r1/work/realplay-10.0.8/datatype/image/jpg/common# make
  17. g++ -pipe -Wall -Wreturn-type -Wno-non-virtual-dtor -fno-exceptions --permissive -fno-rtti -Wno-ctor-dtor-privacy -Winline -Wdisabled-optimization -Wno-unused-parameter -Wno-reorder -fmessage-length=0  -m64 -D__amd64__ -O2   -I../../../../common/runtime/pub -I/usr/X11R6/include -I../../../../common/include -I../../../../common/util/pub -I../../../../common/container/pub -I../../../../common/dbgtool/pub -I../../../../common/system/pub -I../../../../datatype/common/util/pub -I../../../../datatype/image/common/pub -I../../../../datatype/image/jpg/import/jpeg-6b -I./pub -I. -include rel/datatype_image_jpg_common_ribodefs.h -fPIC -DPIC -o rel/obj/ijglwrap.o -c ijglwrap.cpp
  18. ../../../../common/container/pub/hxstring.h:531: 警告:‘bool CHXString::operator<=(const char*) const’ 在被声明为内联之前被用到
  19. ../../../../common/container/pub/hxstring.h:140: 警告:先前的非内联声明在这里
  20. ../../../../common/container/pub/hxstring.h:543: 警告:‘bool CHXString::operator<=(const unsigned char*) const’ 在被声明为 内联之前被用到
  21. ../../../../common/container/pub/hxstring.h:141: 警告:先前的非内联声明在这里
  22. ../../../../common/container/pub/hxstring.h:561: 警告:‘bool CHXString::operator<(const char*) const’ 在被声明为内联之前被 用到
  23. ../../../../common/container/pub/hxstring.h:143: 警告:先前的非内联声明在这里
  24. ../../../../common/container/pub/hxstring.h:573: 警告:‘bool CHXString::operator<(const unsigned char*) const’ 在被声明为内联之前被用到
  25. ../../../../common/container/pub/hxstring.h:144: 警告:先前的非内联声明在这里
  26. ../../../../datatype/image/jpg/import/jpeg-6b/jmorecfg.h:164: 错误:相互冲突的声明 ‘typedef long int INT32’
  27. ../../../../common/include/hxtypes.h:111: 错误:‘INT32’ 早先被声明为 ‘typedef int INT32’
  28. ijglwrap.cpp: In static member function ‘static BOOL CIJGLibraryWrapper::FillInputBuffer(jpeg_decompress_struct*)’:
  29. ijglwrap.cpp:574: 警告:未使用的变量 ‘ulOldBytesInBuffer’
  30. make: *** [rel/obj/ijglwrap.o] 错误 1
复制代码
回复 支持 反对

使用道具 举报

发表于 2006-9-7 19:49:03 | 显示全部楼层
  1. ../../../../datatype/image/jpg/import/jpeg-6b/jmorecfg.h:164: error: conflicting declaration 'typedef long int INT32'
  2. ../../../../common/include/hxtypes.h:111: error: 'INT32' has a previous declaration as 'typedef int INT32'
  3. ijglwrap.cpp: In static member function 'static BOOL CIJGLibraryWrapper::FillInputBuffer(jpeg_decompress_struct*)':
  4. ijglwrap.cpp:574: warning: unused variable 'ulOldBytesInBuffer'
复制代码


看来是源码冲突。helix 是不是没人用 64 的?

两个文件里肯定有一个错了,amd64 里 int 还是 long int 是 32 位的?
选个正确的,两个都改成这样:

  1. #ifndef INT32
  2. #define INT32 int
  3. #endif
复制代码
回复 支持 反对

使用道具 举报

发表于 2006-9-7 21:13:50 | 显示全部楼层
Post by VirusCamp
看来是源码冲突。helix 是不是没人用 64 的?


各大发行版的64位的貌似都没有helix.
回复 支持 反对

使用道具 举报

发表于 2006-9-7 21:27:16 | 显示全部楼层
所以我叫你 hack 源码
回复 支持 反对

使用道具 举报

发表于 2006-9-7 21:41:08 | 显示全部楼层
Post by VirusCamp
所以我叫你 hack 源码

没感觉有给real当免费员工的必要...

不过改一下自己能用也挺好.至少realplayer是免费软件.
回复 支持 反对

使用道具 举报

发表于 2006-9-7 21:49:24 | 显示全部楼层
Post by 种草得草
没感觉有给real当免费员工的必要...

不过改一下自己能用也挺好.至少realplayer是免费软件.

期待大侠出手,让我等菜鸟也能用上。
回复 支持 反对

使用道具 举报

发表于 2006-9-7 22:09:46 | 显示全部楼层
跟免费员工没关系,也不大可能反馈到 helix ,就是自己改一下,编译过去就行,我也不想 patch 。


datatype/image/jpg/import/jpeg-6b/jmorecfg.h:164
common/include/hxtypes.h:111

这两行的
typedef 。。。

改成
#ifndef INT32
#define INT32 ????
#endif

只是需要确定 amd64 中 int 和 long int 那个是 32 位的,用32位的替换????。

这个 hack 非常之 dirty ,只能用于 amd64 。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表