我从openSUSE下载了knetworkManager源代码,未做任何修改,./configure通过了,make时却出错,信息如下:
knetworkmanager.cpp:30:28: error: NetworkManager.h: No such file or directory
In file included from knetworkmanager.cpp:37:
knetworkmanager-tray.h:99: error: 'NMDeviceState' has not been declared
knetworkmanager-tray.h:104: error: 'NMDeviceState' has not been declared
knetworkmanager-tray.h:105: error: 'NMDeviceState' has not been declared
In file included from knetworkmanager.cpp:39:
knetworkmanager-device.h:54: error: 'NMDeviceState' does not name a type
knetworkmanager-device.h:63: error: 'NMDeviceState' has not been declared
In file included from knetworkmanager-cellular_device_tray.h:32,
from knetworkmanager.cpp:43:
devicetraycomponent.h:43: error: 'NMDeviceState' has not been declared
devicetraycomponent.h:44: error: 'NMDeviceState' has not been declared
devicetraycomponent.h:52: error: 'NMDeviceState' has not been declared
devicetraycomponent.h:54: error: 'NMDeviceState' has not been declared
devicetraycomponent.h:55: error: 'NMDeviceState' has not been declared
devicetraycomponent.h:58: error: 'NMDeviceState' was not declared in this scope
devicetraycomponent.h:58: error: template argument 1 is invalid
devicetraycomponent.h:59: error: 'NMDeviceState' was not declared in this scope
devicetraycomponent.h:59: error: template argument 1 is invalid
devicetraycomponent.h:60: error: 'NMDeviceState' was not declared in this scope
devicetraycomponent.h:60: error: template argument 1 is invalid
In file included from knetworkmanager.cpp:44:
knetworkmanager-wireless_device_tray.h:62: error: 'NMDeviceState' has not been declared
make[1]: *** [knetworkmanager.lo] 错误 1
make[1]: Leaving directory `/home/root/knetworkmanager/knetworkmanager-0.7/src'
make: *** [all-recursive] 错误 1
这可能是什么原因,这代码在别人机子上make通过了