2012-03-20 5 views
0

MoSync를 컴파일하려고하는데 다음 오류가 발생합니다. 나는 mosync 포럼에 주위를 둘러 보았다하지만 아무것도 찾을 수 없습니다 ...Linux에서 Mosync 컴파일이 실패합니다.

$ ./workfile.rb CONFIG="debug" 

Hook directories are equal. 
Set constant "CONFIG"="debug" 
/home/elijah/code/MoSync/mosync_trunk/intlibs/idl-common [] 
get_gcc_version_string(gcc) 
GCC version: "4.6.1" 
GCC_IS_V4: true 
GCC sub-version: 6 
/home/elijah/code/MoSync/mosync_trunk/intlibs/filelist [] 
/home/elijah/code/MoSync/mosync_trunk/tools/idl2 ["compile"] 
/home/elijah/code/MoSync/mosync_trunk/intlibs/profiledb [] 
/home/elijah/code/MoSync/mosync_trunk/intlibs/helpers/platforms/linux [] 
/home/elijah/code/MoSync/mosync_trunk/intlibs/bluetooth [] 
In /home/elijah/code/MoSync/mosync_trunk/intlibs/bluetooth 
Because file does not exist: 
Execute: build/debug/bluetoothbluez.o 
gcc -o "build/debug/bluetoothbluez.o" -std=gnu++0x -DHAVE_TR1 -fno-rtti -g -O0 -fvisibility=hidden -I "/home/elijah/code/MoSync/mosync_trunk/runtimes/cpp/base" -I "/home/elijah/code/MoSync/mosync_trunk/runtimes/cpp/platforms/sdl" -I "/home/elijah/code/MoSync/mosync_trunk/intlibs" -I "/home/elijah/code/MoSync/mosync_trunk/libs" -Wall -Werror -Wextra -Wno-unused-parameter -Wwrite-strings -Wshadow -Wpointer-arith -Wundef -Wfloat-equal -Winit-self -Wmissing-noreturn -Wmissing-format-attribute -Wvariadic-macros -Wmissing-include-dirs -Wmissing-declarations -Wvla -Wlogical-op -DBLUEZ_SUPPORTED -DLINUX -fPIC -MMD -MF "build/debug/bluetoothbluez.mft" -c "/home/elijah/code/MoSync/mosync_trunk/intlibs/bluetooth/linux/bluez/bluetoothbluez.cpp" 
In file included from /home/elijah/code/MoSync/mosync_trunk/intlibs/bluetooth/linux/bluez/bluetoothbluez.hpp:29:0, 
       from /home/elijah/code/MoSync/mosync_trunk/intlibs/bluetooth/linux/bluez/bluetoothbluez.cpp:35: 
/home/elijah/code/MoSync/mosync_trunk/intlibs/bluetooth/linux/bluez/cbtdevice.hpp: In constructor ‘CBtDevice::CBtDevice(const MABtAddr*, const char*)’: 
/home/elijah/code/MoSync/mosync_trunk/intlibs/bluetooth/linux/bluez/cbtdevice.hpp:56:34: error: converting to non-pointer type ‘char’ from NULL [-Werror=conversion-null] 
/home/elijah/code/MoSync/mosync_trunk/intlibs/bluetooth/linux/bluez/bluetoothbluez.cpp: In member function ‘void Bluetooth::BlueZ::BluetoothBluez::discoverDevices(Bluetooth::MABtCallback, bool)’: 
/home/elijah/code/MoSync/mosync_trunk/intlibs/bluetooth/linux/bluez/bluetoothbluez.cpp:470:26: error: converting to non-pointer type ‘char’ from NULL [-Werror=conversion-null] 
/home/elijah/code/MoSync/mosync_trunk/intlibs/bluetooth/linux/bluez/bluetoothbluez.cpp:476:71: error: passing NULL to non-pointer argument 5 of ‘int hci_read_remote_name(int, const bdaddr_t*, int, char*, int)’ [-Werror=conversion-null] 
cc1plus: all warnings being treated as errors 

Error: Command failed, code 1 
/home/elijah/code/MoSync/mosync_trunk/rules/error.rb:19:in `error': Command failed, code 1 (RuntimeError) 
    from /home/elijah/code/MoSync/mosync_trunk/rules/util.rb:101:in `sh' 
    from /home/elijah/code/MoSync/mosync_trunk/rules/util.rb:92:in `popen' 
    from /home/elijah/code/MoSync/mosync_trunk/rules/util.rb:92:in `sh' 
    from /home/elijah/code/MoSync/mosync_trunk/rules/gcc.rb:81:in `execute' 
    from /home/elijah/code/MoSync/mosync_trunk/rules/task.rb:199:in `invoke' 
    from /home/elijah/code/MoSync/mosync_trunk/rules/task.rb:244:in `invoke' 
    from /home/elijah/code/MoSync/mosync_trunk/rules/task.rb:196:in `invoke' 
    from /home/elijah/code/MoSync/mosync_trunk/rules/task.rb:196:in `each' 
    from /home/elijah/code/MoSync/mosync_trunk/rules/task.rb:196:in `invoke' 
    from /home/elijah/code/MoSync/mosync_trunk/rules/task.rb:244:in `invoke' 
    from /home/elijah/code/MoSync/mosync_trunk/rules/task.rb:85:in `invoke' 
    from /home/elijah/code/MoSync/mosync_trunk/rules/task.rb:85:in `each' 
    from /home/elijah/code/MoSync/mosync_trunk/rules/task.rb:85:in `invoke' 
    from /home/elijah/code/MoSync/mosync_trunk/intlibs/bluetooth/workfile.rb:44 
    from /home/elijah/code/MoSync/mosync_trunk/rules/task.rb:138:in `load' 
    from /home/elijah/code/MoSync/mosync_trunk/rules/task.rb:138:in `invoke_subdir_ex' 
    from /home/elijah/code/MoSync/mosync_trunk/rules/task.rb:147:in `invoke_subdirs_ex' 
    from /home/elijah/code/MoSync/mosync_trunk/rules/task.rb:147:in `each' 
    from /home/elijah/code/MoSync/mosync_trunk/rules/task.rb:147:in `invoke_subdirs_ex' 
    from /home/elijah/code/MoSync/mosync_trunk/rules/task.rb:144:in `invoke_subdirs' 
    from ./workfile.rb:115 
    from /home/elijah/code/MoSync/mosync_trunk/rules/targets.rb:35:in `call' 
    from /home/elijah/code/MoSync/mosync_trunk/rules/targets.rb:35:in `invoke' 
    from /home/elijah/code/MoSync/mosync_trunk/rules/targets.rb:122:in `invoke' 
    from /home/elijah/code/MoSync/mosync_trunk/rules/targets.rb:118:in `each' 
    from /home/elijah/code/MoSync/mosync_trunk/rules/targets.rb:118:in `invoke' 
    from ./workfile.rb:190 
이러한 오류가 발생하는 이유

사람이 알고 있나요?

P. moSync 이미지/오디오 capcha는 리눅스 atm에서 깨졌습니다. 그래서 여기에 포즈를 취하고 있습니다 ...

편집 : moSync 이미지/오디오 캡차는 모든 플랫폼에서 완전히 손상되었습니다 .. gah.

답변

0

먼저 mosync "gcc"브랜치를 컴파일하는 것이 좋습니다. mosync SDK를 컴파일합니다. 는 여기를 참조하십시오

http://www.mosync.com/documentation/manualpages/building-mosync-source-linux 내가 mosync SDK의 GCC에 대한 https://github.com/fredrikeldh/MoSync-gcc3https://github.com/fredrikeldh/MoSync를 사용합니다. 우분투 12.04 x86_64에서 성공적으로 컴파일되었습니다.

1.9 일 수 있지만 보장 :

이 패키지는 주 분투 11.10에 MoSync를 구축해야합니다 :

는 문서에 linux.txt을보고 기억하지.

ruby1.8

그램 ++ libsdl1.2-DEV libbluetooth-DEV 의 libssl-dev에 libexpat1-DEV

libglew1.5-DEV도 작동합니다.

libglew1.6 데브

libgtk2.0-DEV- libsdl image1.2-DEV- libsdl ttf2.0 데브 libfreeimage 데브 파이프 도구

. 우분투 11.04 이하에서만 사용 가능/필요합니다.

으로 libc6-DEV-I386 lib32z1 데브

gperf의

관련 문제