I'm having trouble compiling the HelloWorldDisplay native appusing the Momentics IDE.
I have followed through the Getting Started guide on the BB10 native SDK developer pages:
https://developer.blackberry.com/native/beta/documentation/getting_started.html
I downloaded the sample apps and attempted to import and build the HelloWorldDisplay app by right clicking it and selecting build.
The build fails and the following console output is displayed:
**** Build of configuration Device-Debug for project HelloWorldDisplay ****
make all
make -j 1 -CDevice-Debug -fmakefile all
make[1]: Entering directory `C:/Users/pro-cln0042/Downloads/Code/BB10Examples/HelloWorldDisplay/Device-Debug'
make[1]: Leaving directory `C:/Users/pro-cln0042/Downloads/Code/BB10Examples/HelloWorldDisplay/Device-Debug'
make[1]: *** No rule to make target `HelloWorldDisplay', needed by `all'. Stop.
make: *** [all] Error 2
**** Build Finished ****
Was I wrong in thinking that Momentics was supposed to handle this automatically, and that I should just be able to right-click->build without settings up any compilers, build files etc?
I'm new to BB development and Eclipse/Momentics in general. Any advice on how to resolve these errors would be much appreciated.
Your link returns a 404 Not Found error. I suspect you have set up an old development environment. Go to the BB10 Beta 2 site and download the NDK from there an follow the instructions. The PlayBook and BB10 NDKs are based on Momentics but have substantial customization to support development for BlackBerry (especially BB10). Since it is in Beta it is a moving target and you have to keep your IDE and simulators up to date.
Related
This happened out of nowhere, and I have no idea what happened.
I started to run my app and got this error:
I believe that it's coming from react-native-vector-icons.
I've tried switching to an older version of react-native-vector-icons, and I still receive the same result.
I've also tried to uninstall react-native-vector-icons, and, when I do, I receive a compiling error.
** BUILD FAILED **
The following build commands failed:
CompileC /Users/lukeschoenberger/Documents/Programming/news-
arg/test6/ios/build/test6/Build/Intermediates.noindex/Pods.build/Debug-
iphonesimulator/RNVectorIcons.build/Objects-
normal/x86_64/RNVectorIconsManager.o
/Users/lukeschoenberger/Documents/Programming/news-
arg/test6/node_modules/react-native-vector-
icons/RNVectorIconsManager/RNVectorIconsManager.m normal x86_64
objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
I'm pretty stuck at this point.
EDIT:
After I linked react-native-vector-desing and cleared the build folder, I received this error:
Build system information
error: Multiple commands produce '/Users/lukeschoenberger/Documents/Programming/news-arg/test6/ios/build/test6/Build/Products/Debug-iphonesimulator/test6.app/AntDesign.ttf':
1) Target 'test6' (project 'test6') has copy command from
'/Users/lukeschoenberger/Documents/Programming/news-
arg/test6/node_modules/native-base/Fonts/AntDesign.ttf' to
'/Users/lukeschoenberger/Documents/Programming/news-
arg/test6/ios/build/test6/Build/Products/Debug-
iphonesimulator/test6.app/AntDesign.ttf'
2) Target 'test6' (project 'test6') has copy command from
'/Users/lukeschoenberger/Documents/Programming/news-
arg/test6/node_modules/react-native-vector-icons/Fonts/AntDesign.ttf' to
'/Users/lukeschoenberger/Documents/Programming/news-
arg/test6/ios/build/test6/Build/Products/Debug-
iphonesimulator/test6.app/AntDesign.ttf'
** BUILD FAILED **
Icon module does not appear to be properly linked.
You can try react-native link react-native-vector-icons
If this is not a workaround,
Delete all items in the build folder under the iOS folder. Then rebuild the project with react-native run-ios.
Regular, Solid, and Brand Icons TTF File import android and ios directory
https://aboutreact.com/react-native-fontawesome/
I am trying to generate a .framework on Xcode 7 and always get an error -
Details: Scheme was asked to build and archive, but the run destination is not a deployment platform and this action shouldn't have been allowed.
xcodebuild: error: Failed to build project UnitedSDK with scheme UnitedSDK.
Reason: You cannot archive for the iOS Simulator platform.
Command /bin/sh failed with exit code 70
Tried to change Targets, but nothing helps. This used to properly work on Xcode 6.
Background
I recently changed from bash to zsh as my default shell and have quickly gotten used to the awesomeness that's added by associated tools (prezto, zaw and zsh-dwim).
I wanted to have a similar setup on iPhone as well. However, only zsh v.4.3.10 is available from the default repos and that's not supported by prezto:
Would you know how I should go about compiling zsh from source for the iPhone? I attempted to use Theos to build something on my Win7 box, but am greeted with the following errors after doing the make package install:
/home/blah/projects/ashrocks/theos/makefiles/targets/Cygwin/iphone.mk:38: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.
Bootstrapping CydiaSubstrate...
Compiling iPhoneOS CydiaSubstrate stub... default target? failed, what?
cp: cannot stat `_out/*': No such file or directory
cp: cannot stat `libsubstrate.dylib': No such file or directory
Generating substrate.h header...
Making all for tweak ashrocks...
Preprocessing Tweak.xm...
Compiling Tweak.xm...
/bin/sh: theos/toolchain/windows/iphone/bin/armv7-apple-darwin11-clang++: No such file or directory
/home/blah/projects/ashrocks/theos/makefiles/instance/rules.mk:144: recipe for target 'obj/Tweak.xm.666c9a3c.o' failed
make[2]: *** [obj/Tweak.xm.666c9a3c.o] Error 127
/home/blah/projects/ashrocks/theos/makefiles/instance/library.mk:19: recipe for target 'internal-library-all_' failed
make[1]: *** [internal-library-all_] Error 2
/home/blah/projects/ashrocks/theos/makefiles/master/rules.mk:54: recipe for target 'ashrocks.all.tweak.variables' failed
make: *** [ashrocks.all.tweak.variables] Error 2
Would you know how the command line tools availabe in Cydia were compiled ?
It's probably because you don't have the standard libraries compiled for the iPhone on your computer. Try setting up gcc on your iPhone by following these instructions. I have done this and have successfully compile various pieces of software.
I am using mailcore2 in my ios app from fetching my gmail account emails on my device. I have changed the ios sdkversion from 6.1 to 6.0 in the mailcore2 scripts bcz I am trying to compile and run the app using iPhone simulator 6.0 which uses ios sdkversion 6.0. Doing so I am getting the following clang error.
clang: error: no such file or directory: '/Users/shujaat/Library/Developer/Xcode/DerivedData/MyTestApp-ditognlaoajwldfliplqecnxqbfj/Build/Products/Debug-iphonesimulator/MailCore/MailCore'
While trying to compile and run my app using iphone simulator 6.1 (uses ios sdk 6.1), with no changes in the ios sdk version in the shell scripts, I am getting the following error:
/bin/sh /Users/shujaat/Documents/WemoTech/Products/WantList/sourcecode/ThirdPartyLib/MailCore2/Externals/builds/workdir/20130930192723/src/libetpan/build-mac/update.sh
configuring
running prepare-cyrus-sasl.sh
prepare sources
patching file lib/client.c
building tools
generated makemd5i386 properly
building for iPhoneOS - armv7
CONFIGURE FAILED
Command /bin/sh failed with exit code 1
These issues are driving me crazy for the last couple of days. Need your help.
Go to your main project target->"Build phases"->"Target dependencies" add mailcore2 ios
You need to read Check Adding MailCore to Your iOS Project carefully.
These issues are fixed now. I want to explain what I did to get rid of them for others facing same issues:
I made a separate project, and made mailcore2 as a part of it (didn't include the #import line in any of the project files at first). I compiled and run the project and copied the resultant mailcore 2 from it to my original project. It's compiling and running fine now.
I would like to build a clang source to source translator plugin for cuda language.Unfortunately i am not able to build the clang plugin itself.I have tried the method suggested by google to copy and paste the PrintFunctionNames and build the same and the other one suggested by http://getoffmylawnentertainment.com/blog/2011/10/01/clang-plugin-development-tutorial/ website did not work for me.
While building with google method I get:
../../../../Makefile.common:61: ../../../../Makefile.config: No such file or directory ../../../../Makefile.common:69: /Makefile.rules: No such file or directory make: * No rule to make target `/Makefile.rules'. Stop.
This did not work for me How to build clang/examples/PrintFunctionNames?
I am getting this error when built using cmake:
teddy#ubuntu:~/dev-lib/example/build$ make
printer/CMakeFiles/PrintFunctionNames.dir/flags.make:6: * commands commence before first target. Stop.
make[1]: * [printer/CMakeFiles/PrintFunctionNames.dir/all] Error 2
make: *** [all] Error 2
I am using ubuntu 10.10 and cmake 2.8.1 to build the clang plugin.
Clang Version:3.1
please help me to build the clang plugin...
Thank you
Building programs that link with Clang can be tricky, especially if you want to do it "out of source" - i.e. in your own source tree, not as part of Clang's.
I'm maintaining a Github repo called llvm-clang-samples that provides samples of linking with LLVM and Clang, and has an example Clang plugin. This repository tries to keep up to date with top-of-tree LLVM & Clang and has branches for earlier released versions.
this error is coming because you have plainly copied the contents of CMakeLists.txt. Particularly the LLVM_LIBS and the CLANG_LIBS part.
What you have to do is simply put backslashed after every line like this
set( CLANG_LIBS \
libclang \
clangFrontend \
.. \
...
)
Or you can bring all the library names to one single line, whichever suits you.
hope this helps
First steps are always hard. Created a toy repo on github, which does pin down the build system issues for a clang plugin. Checkout the 'empty' tag.