I'm beginner to PNaCl/NaCl and have a problem.
I want to use "openCV" on Web Native Client. So I tried to build "naclports" on cygwin.
But it was failed..
below is my workflow and result. Please tell me what is wrong or alternative idea to use "openCV".
*I use windows8.1 and cygwin.
1. Download and install the [Native Client SDK][1].
- installed pepper version is 35. PATH is C:/cygwin64/home/*user*/nacl_sdk/pepper_35 (set the environment variable).
2. Clone the "[naclports][2]" in C:/cygwin64/home/*user*/naclports/src/
3. Done the build on cygwin.
**#** ~/naclports/src
$make opencv
4. error is coming:
######################################################################
Testing zlib
######################################################################
chdir /home/ryosuke/naclports/src/out/build/zlib/zlib-1.2.8
DEBUG MODE ENABLED (bypass acl)
fread: Broken pipe
DEBUG MODE ENABLED (bypass acl)
NaClMain: <fd:0>: Broken pipe
*** minigzip test FAILED ***
naclports: Building 'zlib' failed.
Makefile:68: recipe for target 'opencv' failed
make: *** [opencv] Error 1
Do you have any good idea?
Unfortunately many of the ports in naclports don't currently building cygwin. In this case you can see that its actually zlib that is failing to build.
If possible you can build the ports a mac or linux machine and copy the resulting packages over.
A system for installing binary package is currently being developed to make it easier to install pre-built packages rather than building them from source.
Related
I’m trying to create a GUI client for connecting to OpenVPN servers using electron and node but I’m struggling to figure out how to actually connect to the servers using the .ovpn files.
My question is what is the best way to connect to an OpenVPN server using node? Would it be best to Tun terminal commands like
“openvpn—config path to config”
Or is there another way applications like tunnelblick do it that might be easier or more efficient?
Hello I have been working with electron and ovpn on my last project, so here are a few tips.
VPNs require admin/root privilege in order to get setup, so running child_process.spawn on openvpn --config <path> will fail unless your electron app is being ran via sudo/admin privilege.
You can also use electron-sudo package, link here. This is basically a child process spawn with sudo/admin. Aka, app runs normally, but vpn command runs with sudo.
However, if your client is sketchy about giving you sudo/admin, the VPN must be ran separately prior to launching your app.
All in all its a admin/sudo thing.
Hope this helps.
I've spent a few days trying to use my GPU with theano in Windows, but I've encountered several problems and after trying everything I've found in Google it still doesn't work.
The error I get is the following one:
===============================
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
mod.cu
nvcc error : 'cl.exe' died with status 0xC0000135
['nvcc', '-shared', '-O3', '--compiler-bindir', 'D:\\Programas\\Visual Studio\\2012\\VC\\bin', '-Xlinker', '/DEBUG', '-D HAVE_ROUND', '-m64', '-Xcompiler', '-DCUDA_NDARRAY_CUH=c72d035fdf91890f3b36710688069b2e,-DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION,/Zi,/MD', '-ID:\\Anaconda2\\lib\\site-packages\\theano\\sandbox\\cuda', '-ID:\\Anaconda2\\lib\\site-packages\\numpy\\core\\include', '-ID:\\Anaconda2\\include', '-ID:\\Anaconda2\\lib\\site-packages\\theano\\gof', '-o', 'C:\\Users\\axelp\\AppData\\Local\\Theano\\compiledir_Windows-10-10.0.14393-Intel64_Family_6_Model_94_Stepping_3_GenuineIntel-2.7.13-64\\cuda_ndarray\\cuda_ndarray.pyd', 'mod.cu', '-LD:\\Anaconda2\\libs', '-LD:\\Anaconda2', '-lcublas', '-lpython27', '-lcudart']
ERROR (theano.sandbox.cuda): Failed to compile cuda_ndarray.cu: ('nvcc return status', 53, 'for cmd', 'nvcc -shared -O3 --compiler-bindir D:\\Programas\\Visual Studio\\2012\\VC\\bin -Xlinker /DEBUG -D HAVE_ROUND -m64 -Xcompiler -DCUDA_NDARRAY_CUH=c72d035fdf91890f3b36710688069b2e,-DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION,/Zi,/MD -ID:\\Anaconda2\\lib\\site-packages\\theano\\sandbox\\cuda -ID:\\Anaconda2\\lib\\site-packages\\numpy\\core\\include -ID:\\Anaconda2\\include -ID:\\Anaconda2\\lib\\site-packages\\theano\\gof -o C:\\Users\\axelp\\AppData\\Local\\Theano\\compiledir_Windows-10-10.0.14393-Intel64_Family_6_Model_94_Stepping_3_GenuineIntel-2.7.13-64\\cuda_ndarray\\cuda_ndarray.pyd mod.cu -LD:\\Anaconda2\\libs -LD:\\Anaconda2 -lcublas -lpython27 -lcudart')
WARNING (theano.sandbox.cuda): CUDA is installed, but device gpu is not available (error: cuda unavailable)
Information about my installation:
I've installed CUDA v8.0 from the official NVidia site
My GPU is a GEFORCE GTX 960M
I've installed Visual Studio 2012. I previously tried to used the 2015 and 2017 versions, but I got a lot of errors (if I remember correctly, it stated that the architecture was unsupported) and saw that this one has better support. In case it matters, I didn't select the default directory (as it's on the SSD and I always try to save space on it), but on the regular HDD.
I use Windows 10 Home 64 bits
My Python version is the 2.7.13 from Anaconda
I've created a .theanorc.txt file in my User root directory with the following content:
#!sh
[global]
device = gpu
floatX = float32
[nvcc]
compiler_bindir=D:\Programas\Visual Studio\2012\VC\bin
My theano version is 0.8.2
Does anyone know how to solve it? Of course, don't hesitate to ask if I need to provide more information. Thank you so much in advance for your help!
I got a Meteor project from a friend who develops on MacOS.
When trying to run it, I get:
This project uses METEOR#1.0.2.1, which isn't available on Windows. To
work with this app on all supported platforms, use meteor update
--release METEOR#1.2.1 to pin this app to the newest Windows-compatible release.
When running it, I get:
While checking for cfs:gridfs#0.0.27: no compatible binary file
found...
Then, when I try to override (use run instead of update), without actually updating, it starts proxy and Mongo, but then breaks at, but skips the first error
While building package npm-container: error: No plugin known to handle
file '../../packages.json'. If you want this file to be a static
asset, use addAssets instead of addFiles; eg,
api.addAssets('../../packages.json', 'client').
I read that this error is fixed by updating meteorhacks, but when I try to, I get the Meteor version conflicts (see very first error) and I have no idea how to break out of the loop.
Can someone shine some light on how to fix any of these error?
I am using visual studio 2013 ultimate running on a 64-bit windows 7 home premium. I wanted to write JavaScript code, when I tried to create a new JavaScript Project, It redirected me to Install the "Tools for Apache Cordova for Visual Studio". The installation completed successfully but showed an error in the end. The error was:
Joyent Node.js:
Invalid command line argument. Consult the Windows Installer SDK for detailed command line help. "
Now, I tried to create a new Project by selecting "JavaScript" form the "New Project" window. There was only one sub-option called "Blank App (Apache Cordova)". I selected it and clicked finish, bit then it showed all these errors:
We've detected issues with your system's environment configuration
Joyent node.js - software is missing from your computer.
Apple iTunes - software is missing from your computer.
WebSocket4Net - software is missing from you computer.
You may also have to configure it after installation.
I fixed the error related to joyent node.js and iTunes by manually installing the two, but the problem with the WebSocket4Net still persists.
I've already installed WebSocket4Net, using both the "vs2013_mda0.3" setup and manually. This has not worked. I even tried to repair the installation, by using the "vs2013_mda0.3" setup, but it made things even worse.
It was a problem with the installer, a bug maybe. The latest update (Visual Studio Update 5 (2013.5)) fixes these bugs. After updating, I didn't get any of these errors.
Also, TypeScript Projects cannot be created on Windows 7 using visual studio 2013 or lower. You have to either upgrade the OS to windows 8 or later.
I inherited a project where the person wrote tools to test our site's UI using JQuery and JS.
I don't know too much about it other than it requires a browser to be spawned and I think the tool uses JS to interact with iframes to see if it's the expected values.
My job is to get this tool to run on a remote server and post the results to Jenkins.
The remote test server and staging server is linux. From our staging server, I want to write a script to spawn a browser and run cmds from the tool to test our UI. I ran the following manually:
ssh -X user#remote_test_server /usr/bin/firefox
However, the remote server says:
Error: no display specified
Is there a way to spawn a browser for automated testing from one headless server to another? Thanks in advance for your help.
I faced a similar problem when I tried to automate a GUI installation program. While there are quite some different possibilities to choose from (e.g. Xnest, Xephyr?), I ended up using vncserver, because it's relatively easy to debug the GUI session this way.
You need to create a vncpassword file, I think:
mkdir -p $HOME/.vnc
chmod 0700 $HOME/.vnc
echo MyLittlePassword | vncpasswd -f > $HOME/.vnc/passwd
chmod 0600 $HOME/.vnc/passwd
Starting the server is then quite straightforward
vncserver
export DISPLAY=:1
/usr/bin/firefox&
...
Now it is possible to connect to the VNC server with a VNC viewer of your choice. But beware there may be no window manager, depending on the X startup scripts of your environment.
Shutting the server down
vncserver -kill :1
In the configuration of Jenkins project , specify the
Build Environment
Start Xvfb before the build, and shut it down after.
#