嗨,我刚刚开始使用cordova项目的新结构,我需要安装这个插件org.apache.cordova.network-information.
我使用的是cordova 3.5.0.
安装它并运行cordova build之后我遇到了这个错误:
Undefined symbols for architecture i386:
"_SCNetworkReachabilityCreateWithAddress", referenced from:
+[CDVReachability reachabilityWithAddress:] in CDVReachability.o
"_SCNetworkReachabilityCreateWithName", referenced from:
+[CDVReachability reachabilityWithHostName:] in CDVReachability.o
"_SCNetworkReachabilityGetFlags", referenced from:
-[CDVReachability connectionRequired] in CDVReachability.o
-[CDVReachability currentReachabilityStatus] in CDVReachability.o
"_SCNetworkReachabilityScheduleWithRunLoop", referenced from:
-[CDVReachability startNotifier] in CDVReachability.o
"_SCNetworkReachabilitySetCallback", referenced from:
-[CDVReachability startNotifier] in CDVReachability.o
"_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:
-[CDVReachability stopNotifier] in CDVReachability.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED …
Run Code Online (Sandbox Code Playgroud) 我最近下载了Intel XDK IOT版本并使用了LED引脚13 Blink示例.然后我把程序上传到爱迪生,但它出现了一些错误; 其中一个是它无法找到MRAA模块.随附的示例代码是:main.js:
var mraa = new require("mraa"); //require mraa
console.log('MRAA Version: ' + mraa.getVersion()); //write the mraa version to the Intel XDK console
var myOnboardLed = new mraa.Gpio(13); //LED hooked up to digital pin 13 (or built in pin on Galileo Gen1 & Gen2)
myOnboardLed.dir(mraa.DIR_OUT); //set the gpio direction to output
var ledState = true; //Boolean to hold the state of Led
periodicActivity(); //call the periodicActivity function
function periodicActivity()
{
myOnboardLed.write(ledState?1:0); //if ledState is true then write …
Run Code Online (Sandbox Code Playgroud) 我有一个我创建的.ttf字体文件.我得到了所有的大写字符,但不是小写字母.有没有一种工具或简单的方法可以使所有的小写字母与资本相同?
示例:字体应显示"hello"为"HELLO"
如果那是不可能的,我有办法用HTML/CSS做到这一点吗?