skyeye-1.2.8在Ubuntu904上安装问题
在sourceforge.net上下载了skyeye-1.2.8_rc1.tar.gz解压缩,进入目录安装,make时出错
/**************************************************************************************************************/
gcc -DMODET -g -O2 -D_FILE_OFFSET_BITS=64 -DSTANDALONE -DDEFAULT_INLINE=0-I. -I.. -I./ -I../arch/arm -I../arch/arm/common -I../utils/config -I../utils/main -I../utils/main -I../utils -I../device -DLCD -DGTK_LCD -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -MT nandflash_smallblock.o -MD -MP -MF .deps/nandflash_smallblock.Tpo -c -o nandflash_smallblock.o `test -f 'nandflash/nandflash_smallblock.c' || echo './'`nandflash/nandflash_smallblock.c
nandflash/nandflash_smallblock.c: In function ‘nandflash_sb_setup’:
nandflash/nandflash_smallblock.c:521: warning: incompatible implicit declaration of built-in function ‘free’
nandflash/nandflash_smallblock.c:528: warning: incompatible implicit declaration of built-in function ‘free’
nandflash/nandflash_smallblock.c:550: warning: incompatible implicit declaration of built-in function ‘free’
nandflash/nandflash_smallblock.c:555: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘__off64_t’
nandflash/nandflash_smallblock.c:559: warning: incompatible implicit declaration of built-in function ‘free’
nandflash/nandflash_smallblock.c:539: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
nandflash/nandflash_smallblock.c: In function ‘nandflash_sb_uninstall’:
nandflash/nandflash_smallblock.c:612: warning: incompatible implicit declaration of built-in function ‘free’
In function ‘open’,
inlined from ‘nandflash_sb_setup’ at nandflash/nandflash_smallblock.c:519:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make: *** Error 1
make: Leaving directory `/home/francois/SoftwarePackages/arm_linux_relatedfiles/skyeye-1.2.8_rc1/device'
make: *** Error 1
make: Leaving directory `/home/francois/SoftwarePackages/arm_linux_relatedfiles/skyeye-1.2.8_rc1'
make: *** Error 2
/**********************************************************************************************************************/
我修改了文件 device/nandflash/nandflash_smallblock.c line 519
to if ((nf->fdump= open(dev->dump, FILE_FLAG,0666)) < 0)
重新make,编译通过...
sudo make install 又出错...
/*************************************************************************************************************************/
Making install in third-party/bfd/
make: Entering directory `/home/francois/SoftwarePackages/skyeye-1.2.8_rc1/third-party/bfd'
Making install in doc
make: Entering directory `/home/francois/SoftwarePackages/skyeye-1.2.8_rc1/third-party/bfd/doc'
test -z "/usr/local/info" || mkdir -p -- "/usr/local/info"
/usr/bin/install -c -m 644 './bfd.info' '/usr/local/info/bfd.info'
make: Leaving directory `/home/francois/SoftwarePackages/skyeye-1.2.8_rc1/third-party/bfd/doc'
Making install in po
make: Entering directory `/home/francois/SoftwarePackages/skyeye-1.2.8_rc1/third-party/bfd/po'
if test -r ..//./../mkinstalldirs; then \
..//./../mkinstalldirs /usr/local/; \
else \
../mkinstalldirs /usr/local/; \
fi
/bin/sh: ../mkinstalldirs: not found
make: *** Error 127
make: Leaving directory `/home/francois/SoftwarePackages/skyeye-1.2.8_rc1/third-party/bfd/po'
make: *** Error 1
make: Leaving directory `/home/francois/SoftwarePackages/skyeye-1.2.8_rc1/third-party/bfd'
make: *** Error 1
/***********************************************************************************************************************************/
谁来帮帮我,我知道用sudo apt-get install skyeye简单,但是我不想半途而费,而且用apt-get 安装的版本是1.2.3...不是最新的...
[ 本帖最后由 boy0673 于 2009-4-30 15:05 编辑 ] 1. 我没有在ubentu上测试,在opensuse 10.3, fedora core 7,FreeBSD 6.2上没有这个编译错误, 关于这个错误,前面已经有人提出。但是不确定是不是系统不兼容的问题。
2. Make install命令没有严格测试。暂时的解决方案是make之后的skyeye可执行文件skyeye在顶层目录下,如果install可以手动copy到/usr/local/bin 。在下个版本解决 make install的问题
回复 2# ksh 的帖子
谢谢,一直没发现skyeye居然在顶层目录... 瀑布汗一个make install 同样的问题。用的gentoo系统
[~ 0]$ gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.3.3 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.3 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.3/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.3/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --disable-fixed-point --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --enable-cld --disable-libgcj --with-arch=i686 --enable-languages=c,c++,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.3.3-r2 p1.1, pie-10.1.5'
Thread model: posix
gcc version 4.3.3 (Gentoo 4.3.3-r2 p1.1, pie-10.1.5) 编译skyeye-1.2.6源码也一样的现象。
但编译出来的sky-1.2.8 不能正常运行 testsuite 的smdk2410 u-boot
skyeye-1.2.6没问题。
re
本人环境:ubuntu intrepid使用默认的编译器(4.3.2),出现上述错误
若是指定gcc-4.2或gcc-3.4,没有问题。
因此初步怀疑与编译器版本有关。
另,make install的确出现很奇怪的问题 make install的问题,可以通过拷贝文件mkinstalldirs 到skyeye-1.2.8_rc1/third-party目录解决.
mkinstalldirs文件可以在gdb或者binutils的源代码中获得。 我用命令 sudo apt-get install skyeye,但是不能启动lcd窗口 我在debian lenny也有这个问题。不过后来1.2.8更新了些文件后就解决了。
建议楼主更新你的安装包吧。 又是ubuntu……老是出问题。
我用ubuntu开发就没顺手过。后来还是换成了Fedora……
LZ的估计是包依赖的问题吧。
页:
[1]