I'm using Cordova 3.4 CLI and i get an error when I add a wp7 platform.
after the command "cordova platform add wp7"
C:\quelle\apps\MHI-4Web>cordova platform add wp7
Checking wp7 requirements...
Error: Requirements check failed: Eingabefehler: F?r die Dateierweiterung ".js" gibt es kein Skriptmodul.
at C:\Users\msp\AppData\Roaming\npm\node_modules\cordova\src\metadata\wp7_parser.js:60:22
at ChildProcess.exithandler (child_process.js:651:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:753:16)
at Socket.<anonymous> (child_process.js:966:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:465:12)
I'm using Windows phone 7.1 sdk on Windows 7 x64 os.
On Win7 make a .reg file with following content
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.js]
#="JSFile"
[HKEY_CLASSES_ROOT\.js\PersistentHandler]
#="{5e941d80-bf96-11cd-b579-08002b30bfeb}"
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.js]
then you have to rightclick on a .js file, Open with.., and select editor of your choice and dont forget the tick on always use this
Related
I have an error I have a when running tns platform add android command.
I can run other apps (new apps) but no my current and all happens after I install codeworks_android it change the path for the SDK then I reinstall native-script but I'm not able to add the Android platform.
CODEWORKS
error ENOENT: no such file or directory, scandir 'PATH_PORJECT\platforms\android\app\src\main\res'
Adding the platform would help (For both Android and iOS),
tns platform add ios
tns platform add android
More explanation in Doc here
If the platform already exists(you can check inside the platforms folder), you can try remove/clean before adding again,
tns platform remove android
tns platform clean android
If you are using the Nativescript seed project (like NS advanced seed), make sure you are in mobile app's root folder(typically nativesctript inside the projects root folder) when you add or remove the platforms.
Adding the solution as an answer here with little more information (instead of an update in the comment) so others can get it easily.
These commands solved my problem
npm i
ns run android
I have a QT 5.7 (VS 2013) app running properly on my PC (with QT installed), and I want to launch it in a PC without QT.
I have used 'windeployqt' to add all required libraries and folders to my binary path, and a lot of them have been added there.
I rename the 'QT' folder, to simulate another PC, and I launch the .exe file, but it fails:
Qt WebEngine ICU data not found at C:/Qt/5.7/msvc2013/resources. Trying parent directory...
Qt WebEngine ICU data not found at C:/Qt/5.7/msvc2013. Trying application directory...
Qt WebEngine ICU data not found at D:/Projects/SpontaniaQML/Spontania-Desktop/Release. Trying fallback directory... The application MAY NOT work.
ModLoad: 00000000`0e8e0000 00000000`0e981000 C:\Windows\SysWOW64\advapi32.dll
ModLoad: 00000000`0e8e0000 00000000`0e8f7000 C:\Windows\SysWOW64\userenv.dll
Installed Qt WebEngine locales directory not found at location C:/Qt/5.7/msvc2013/translations\qtwebengine_locales. Trying application directory...
(bfc.1ca4): WOW64 breakpoint - code 4000001f (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
*** WARNING: Unable to verify checksum for D:\Projects\MyProject\Release\Qt5WebEngineCore.dll
*** ERROR: Symbol file could not be found. Defaulted to export symbols for D:\Projects\MyProject\Release\Qt5WebEngineCore.dll -
Qt5WebEngineCore!GetHandleVerifier+0x22c71:
579c8d61 cc int 3
Is it an ICU problem? I have not found any of these libraries in my QT path to add to my binary folder...
Thanks in advance,
Diego
I have found my problem. In my PATH variable I had references to QT 5.5, not to QT 5.7. Updated that, the app runs properly
the question was asked before, but the solution did not Change anything for me. I had Problems connecting to my Android device so I reinstalled the CTP2 of Multi device hybrid apps. Now the Build process is not working any more. I get the following errors on a new blank solution:
Error 2 Cannot find module 'q' D:\TFS\W1\trunk...\EXEC 1 1 BlankCordovaAppHelloWorld
Error 3 The command ""C:\Users\\AppData\Roaming\npm\node_modules\vs-mda\vs-cli" prepare --platform Android --configuration Debug --projectDir . --projectName "BlankCordovaAppHelloWorld" --language "en-US"" exited with code 8. C:\Users\\AppData\Roaming\npm\node_modules\vs-mda-targets\Microsoft.MDA.targets 182 5 BlankCordovaAppHelloWorld
I already restored the System to a restore Point and reinstalled everything over and over but without success....???
Kind regards,
Markus
Edit:
I I try to install ripple manually I get the following warning (I don't know if this means that the install failed or not)
npm WARN engine ripple#0.1.1: wanted: {"node":"0.8.x"} (current: {"node":"0.10.30","npm":"1.4.21"}) C:\Users\\AppData\Roaming\npm\ripple -> C:\Users\\AppData\Roaming\npm\node_modules\ripple\ripple.js ripple#0.1.1 C:\Users\\AppData\Roaming\npm\node_modules\ripple
├── commander#0.5.2
└── colors#0.6.2
You will need to uninstall your vs-mda and vs-mda-targets and then reinstall them specifying the full path to those folders under the visual studio installation folder.
Source: Cannot create new project (VS2013 and multi-hybrid device app)
In my case, I was using java JDK x64 (including JRE), Visaul Studio 2015 in Windows 7 x64, my solution: uninstall NodeJS x86 then reboot, install NodeJS x64 and then it worked!
I've installed nodejs on windows and tried adding the canvas module using the following command...
npm install canvas
I get the following error message...
'node-waf' is not regonized as an internal or external command, operable program or batch file.
Is there a way to install node-waf on windows or an alternative way to install modules?
I have read that you should try to use Gyp instead of node-waf. It's apparently better cross platform as well.
Up to version 0.4 the node.js team offered node-waf (a waf 1.5.3 wrapper script) to configure and build modules for node.js. This was fine since in windows there was no native support and you had to use Cygwin to make your builds. From version 0.5 and on, there node supports native windows builds which brings visual studio in to play. The problem is that waf started supporting visual studio’s msbuild from version 1.6 and on and this was a major setback. In the meanwhile the node.js team decided to move on to gyp and abandoned the node-waf script. If you are tempted to create a node-waf wrapping waf 1.6, try to resist. A lot of things have changed in waf 1.6 and when I finished modifying the script, I still couldn’t generate proper windows builds (I would have to hardwire the linking arguments in order to link the object to node.lib just for windows). On the other hand, gyp supports custom arguments depending on the building platform which makes the gyp files easier to maintain.
http://botsikas.blogspot.com/2011/12/nodejs-modules-cross-platform.html
You can also use canvas implementation based on GDI+ https://bitbucket.org/pastorgluk/node-canvas-win
I am trying to run openCV code with VS2010 Windows 7 Ultimate cpu intel CORE i3 but it shows the following error:
The program can't start because tbb_dubug.dll is missing from your computer
I downloaded Intel TBB 4.0 and I copied all files from folder tbb40_233oss/bin/intel64/vc10 to opencv/build/common/tbb/intel64/vc10, But when I run my code it shows the same error. So, I copied tbb_debug.dll to the Debug folder in my Project, But when I run my code it shows the error
TestHist\Debug\tbb_debug.dll is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator or the software vendor for support.
How do I install tbb_dedug.dll in VS2010 Windows 7 ?
Just try to download the files from intel directly. Find them with google then copy the tbb_debug.dll in the same directory where your executable is.