728x90

ERROR

host Executable: acp (out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp)
host SharedLib: libneo_cs (out/host/linux-x86/obj/lib/libneo_cs.so)
host C++: libutils <= frameworks/base/libs/utils/RefBase.cpp
frameworks/base/libs/utils/RefBase.cpp: In member function void android::RefBase::weakref_type::trackMe(bool,
bool):
frameworks/base/libs/utils/RefBase.cpp:483:67: error: passing const android::RefBase::weakref_impl as this
argument of void android::RefBase::weakref_impl::trackMe(bool, bool) discards qualifiers [-fpermissive]
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates/RefBase.o] Error 1
make: *** Waiting for unfinished jobs....

SOLUTION
frameworks/base/libs/utils/Android.mk


- LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1 $(TOOL_CFLAGS)
+ LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1 $(TOOL_CFLAGS) -fpermissive

 

=====================================================================================================

ERROR

host C++: q2dm <= sdk/emulator/qtools/armdis.cpp
host C++: q2dm <= sdk/emulator/qtools/thumbdis.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>:0:0: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
sdk/emulator/qtools/thumbdis.cpp: In function char* disasm_insn_thumb(uint32_t, uint32_t, uint32_t, char*):
sdk/emulator/qtools/thumbdis.cpp:387:71: warning: format not a string literal and no format arguments [-Wformatsecurity]
sdk/emulator/qtools/thumbdis.cpp:396:71: warning: format not a string literal and no format arguments [-Wformatsecurity]
cc1plus: all warnings being treated as errors

SOLUTION

build/core/combo/HOST_linux-x86.mk

 line 61

-HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0
+HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0

 

 

요약하자면

 

frameworks/base/libs/utils/Android.mk  파일에서

 

LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1 $(TOOL_CFLAGS)
이녀석을 찾아서

 

LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1 $(TOOL_CFLAGS) -fpermissive

요렿게 옵션 추가


build/core/combo/HOST_linux-x86.mk 파일에서

 

HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0

요녀석을 찾아서

HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0

요렇게 옵션 추가

 

728x90
728x90

make menuconfig할 때 ncurses libraries가 없다면서 중단된다.

 

$:/usr/src/linux-2.6.28.7# make menuconfig
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
make: *** [menuconfig] Error 2

 

 

그런데 cnurses란 놈이 이미 설치되어 있다고 한다. 뭐지?

 

libncurses5-dev 요놈이 필요하단다. 설치 후 해결됨

 

sudo apt-get install libncurses5-dev

728x90
728x90
stigala
July 12th, 2007, 04:33 AM
Hi, 

I'm trying to run a script on ubuntu 7.04;

stig@stig-laptop:~/mosesdecoder$ ./regenerate-makefiles.sh 
./regenerate-makefiles.sh: 13: Syntax error: "(" unexpected

but then I get the syntax error. Below is the first lines in the script, line 13 in red. 



#!/bin/sh

# NOTE:
# Versions 1.9 (or higher) of aclocal and automake are required.

# For Mac OSX users:
# Standard distribution usually includes versions 1.6.
# Get versions 1.9 or higher
# Set the following variable to the correct paths
#ACLOCAL="/path/to/aclocal-1.9"
#AUTOMAKE="/path/to/automake-1.9"

function die () {
echo "$@" >&2
exit 1
}

...

I already have automake (GNU automake 1.9.6) and aclocal (GNU automake 1.9.6). Setting the paths is only for Mac OSX users, so I didn't try to set any of those paths. 

Anyone can explain this? Thanks for any help,

Stig
Rui Pais
July 12th, 2007, 05:01 AM
Hi.

the (inexistent) problem is the 1st line in combination with Ubuntu. 

When you run it using ./ it will use the shell you mention on first line, in your case:
#!/bin/sh

if you do a ls -l /bin/sh you will see that it's just a link to dash.
Ubuntu, since Edgy, replaced old sh with dash, creating a series of incompatibilities in a lot of scripts...

So, either you run:
bash regenerate-makefiles.sh 

or replace first line with:
#!/bin/bash
(or even remove the 1st line and environment will call it with bash)

or (losing generality) adapt it for dash:
remove the keyword function:
die() {
...
}

hth

구닥다리 dash로 실행되는 녀석을 bash로 실행되도록 해놓으란 말

파일의 첫줄을

#!/bin/sh ==> #!/bin/bash

이렇게 바꾸니까 된다.

728x90
728x90

UIMAGE  arch/arm/boot/uImage
"mkimage" command not found - U-Boot images will not be built
 Image arch/arm/boot/uImage is ready

 

컴파일에 필요한 mkimage가 없다는 것이다.

u-boot를 컴파일하면 mkimage가 생성된다. 결국 맞게 가이드를 해줘도 못알아들어서 고생함.

 

u-boot를 컴파일하고 tools directory 내에 있는 mkimage를 /usr/bin/ 으로 복사해주자.

728x90

+ Recent posts