I aware that this is a common theme but I can not find anything what I can use. I have a .cpp code in which I can see the video from a Ipcamera. I am working with Ubuntu 14. I compile the code in the Terminal like this:
g++ ipcamera.cpp -o camera `pkg-config opencv --cflags --libs`
and it finish ok, and I got a executable "camera" which I can run without problem, it seems that everything works propertly, and I can see the video without problem.
The thing is that I want that this executable start automatically when ubuntu starts, I have been reading in many forum but nothing works for me. I guees that is because I need the GUI for run this executable, but I do not know how to do this.
Someone can help me?
Many thanks
I'm aware that this thread is ancient, and that it is concerning Ubuntu 14, whereas my answer is for Linux Mint 17. I successfully added an executable from the Windows Partition (on my dual boot system) to be ran upon startup of Mint. Open the Mint Menu, type "Session and Startup". Go to the Application Autostart tab, hit the Add button, then you can hit the folder icon to the right of the Command section, navigate to the executable that you want to automatically launch, and choose it. Hit OK, then Close, and you're done. Hope that this helps somebody.
Related
This might just be me doing something stupid but I'm getting a popup message on running java --version when I use the install: graalvm-svm-java11-darwin-m1-gluon-22.1.0.1-Final
"graalvm-svm-java11-darwin-m1-gluon-22.1.0.1-Final” is damaged and can’t be opened
Does anyone else have the same issue? I've switched to my Pentium MacMini, so it's not urgent; but I do need Java11 and not 17 due to a dependency issue.
The following versions all run correctly and were installed using the same procedure and I have set the necessary quarantine paths.
graalvm-ce-java11-22.3.1
graalvm-svm-java11-darwin-gluon-22.1.0.1-Final
graalvm-svm-java17-darwin-gluon-22.1.0.1-Final
openjdk11-openj9
graalvm-svm-java17-darwin-m1-gluon-22.1.0.1-Final
So it's only the ...-java11-...-m1...tar that gives the message.
I looked for an older m1 release, but 22.1.0.1 was the only one I could see.
The GraalVM build graalvm-svm-java11-darwin-m1-gluon-22.1.0.1-Final downloaded from https://github.com/gluonhq/graal/releases works just fine.
When you use the GluonFX plugin, the first time you run mvn gluonfx:build you get prompted to add a password, just to remove the quarantine from it.
But if you want to run anything like /path/to/graalvm/bin/java -version before that, the folder is still under quarantine, that won't work, and you will get the error that you posted:
"graalvm-svm-java11-darwin-m1-gluon-22.1.0.1-Final” is damaged and can’t be opened
You just need to remove the quarantine yourself, running:
sudo xattr -r -d com.apple.quarantine /path/to/graalvm
See the open issue https://github.com/oracle/graal/issues/1724 for reference.
I have the following problem.
I noticed that, once i installed flutter and added its path to my .zshrc file, like this
export PATH={$PATH}:/Users/matteo/Documents/flutter/bin
I have problems with docker and/or npm. (E.G. I get the error docker: command not found)
I tried moving my line of code in different places in my .zshrc file, and it seems like depending on where my line of code is placed, sometimes only docker is not found, sometimes only npm, sometimes both of them.
Are there any connection, maybe under the hood, between those 3 application?
My computer is a Macbook Pro with Big Sur 11.4 and M1 chip.
Thanks for help,
Matteo.
you are exporting the path the wrong way, you should add it as follows:
export PATH="$PATH:/Users/matteo/Documents/flutter/bin"
After you have updated the ".zshrc" file, run this command to ensure changes have been notified to OS
source ~/.zshrc
Reference: https://flutter.dev/docs/get-started/install/macos
Can anyone tell me why my app is not installing at all and ending with the error message
Observatory connection never became ready.
the app was working perfectly fine until yesterday .
I have changed the channel to master yesterday in the command prompt and from then on the app never runs.
I even switched back to channel alpha but still no use.
I have attached a screenshot of the command prompt where the installation was stuck forever.
I am not so sure if I need to reinstall the flutter. I am worried if I uninstall the flutter now it may not configure properly and I might break it forever.
Please can someone tell me what exactly might have gone wrong.
Many Thanks,
Mahi
Instead of reinstall try with following: (Mac)
Set Path Variable: via following terminal command
export PATH=~/flutter/bin:$PATH;
that is bin folder path of flutter.
export PATH=[PATH_TO_FLUTTER_GIT_FOLDER]/bin:$PATH
https://flutter.io/setup-macos/#update-your-path
If above not worked. Check with the Dart version
dart --version
Install the latest dart version:
brew install dart --devel
Hope this helps others.
For Mac
open terminal
$ echo $PATH
it will show like this
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:
it means you need to add flutter in to path
Open Finder presss command + shift + G
Put /etc/paths in dialog and press GO
Copy the file "paths" and paste it on desktop
Then open the pasted "paths" file from desktop
and add following line into end of the file "/flutter/bin"
Then copy that file and again paste it on /etc/paths
same like step no 2
it will ask you to replace or not
press replace
Now if you hit $ echo $PATH on terminal it will show
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/swagat/development/flutter/bin
Now your $flutter doctor will work perfectly
The solution is from Google Groups #Flutter-Dev
Thank you very much for your reply #Michael Thomsen.
I've tried what you have suggested and the details are as follows:
When I used flutter run -v command the command prompt output is as follows:
It was stuck for a while at waiting for port connection if I am not wrong.
So I've used AndroidStudio, File>Open and selected android/ folder to run the app then the gradle was showing an error:
Error:Conflict with dependency 'com.android.support:support-annotations' in project ':app'. Resolved versions for app (25.2.0) and test app (25.4.0) differ. See http://g.co/androidstudio/app-test-app-conflict for details.
I modified the build.gradle(Module:app) to show the correct version of 25.2.0 which was previously showing 25.4.0.
dependencies {
androidTestCompile 'com.android.support:support-annotations:25.2.0'
}
I just saved the changes inside android studio and the gradle sync completed without any errors.
Now I can run the app from inside Android Studio and also from IntelliJ IDE.
Thanks very much Michael this solved my problem.
Reinstalling flutter would be my starting point. If this problem persists, please post the output of $>flutter doctor and a description of what exactly leads to this error.
Just create a new playground file, got this without doing anything
failed to launch process. The folder "disabled.plist" doesn't exist.
Quit Xcode and restart, even remove 'Xcode/DerivedData', doesn't have any help.
How could fix it?
I had the same issue and I just fixed it.
Turns out somehow I was removed from having permission to write to /private/temp directory.
To solve it:
Using CMD
Update the permission of your temp folder using:
sudo chown -R $(whoami) /private/temp
Repairing with Disk Utility
If you are using OS X 10.10 ("Yosemite") or earlier,
Try to fix the problem by using the OS X Disk Utility program:
Launch Disk Utility. It is located in /Applications/Utilities.
Select the computer's boot volume (usually "Macintosh HD") in the left column.
Click on the "Repair Disk Permissions" button".
Wait until the permissions repair is complete (it usually takes several minutes).
Quit Disk Utility.
Launch Xcode and to see if the problem has been fixed.
Hope it helps someone
i've been working on this for a while now but i'm still stuck. This is what i've done...
Installed Eclipse
Installed SDK, NDK
Created a project from an existing source... which i browsed to muPDF/android
Then i installed Cygwin to build the project
I used ndk-build to build the project by cygwin
Then i got an error that says ".../Downloads/mupdf-0.8.165/android/jni/mupdf.c:11:19: error: mupdf.
h: No such file or directory"
I've been finding a way to fix this but it keeps on having other new problems after and after. so i would like to ask for your help... plz
Thanks in advance... Best regards, Sirisub
In the directory above there is a script called build.sh that runs the Android.mk and other makefiles; all the locations in those makefiles are set to be run from that location.
However, there are lots of other problems, not all of which I've resolved yet; quick hints, though, you need the third-party libs like jpeg and so on in a directory called "thirdparty" in the same source location as the rest of mupdf (so as siblings of the android subdirectory) and some of the libs need you to produce config headers to make everything work!
I'm currently trying to work out how to link it all ....