I’m using the Ada programming IDE GNAT Programming Studio (GPS, GPL 2017 release) and I’m having a hard time when I try to use it with STM32F4Disco.
On Linux (Ubuntu 17.10), when I try to open a STM32 project, GPS freezes. No core-dump, no error message. No exception message in .gsp/log but look like it didn't finish loading.
Help will be much appreciated. Thank you
Edit:
I installed GNAT 2017, Spark and arm-elf for Linux from AdaCore website.
Edit 2: I remove my question about GPS on Mac because it might be considered software-hardware questions.
You have to install 32 bits support. On Ubuntu/Debian execute this command:
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
Related
When I try to generate unit tests in GNAT 2020 Community Edition (Windows 10 64 bit), I get an error on missing gnattest tool: could not locate gnattest.
Same happens on Ubuntu 20.04 (in WSL) with package gnat-10: could not locate x86_64-linux-gnu-gnattest-10.
Is GNATtest not part of GNAT 2020 Community Edition, as shown on AdaCores website (https://www.adacore.com/gnatpro/comparison)?
Yes in 2020 Community Edition gnattest is not included. Main reason: gnattest is tool based on library ASIS which is no longer maintained. AdaCore is moving towards libadalang library and for now gnattest is a victim of these changes. It will back soon or later to Community Edition (when it will be rewritten to use libadalang). Source: I was hit by this same problem and I got this answer from AdaCore :)
At this moment, you can download source package asis-2019-20190517-18AB5-src.tar.gz from previous version of GNAT and compile it by self. At least for me, it works.
AdaCore are moving away from ASIS to their own libadalang technology, and GNAT CE 2020 doesn’t include ASIS.
The ASIS-based applications in GNAT CE 2019 are
gnat2xml
gnat2xsd
gnatcheck
gnatelim
gnatmetric *
gnatpp *
gnatstub *
gnattest
of which only the ones marked with an asterisk are in GNAT CE 2020 (for macOS, at any rate).
If you do go with #thindil’s answer, it’d be best to install the ASIS tools in their own directory, so as to avoid stomping on gnatpp etc.
For info, gnatelim is missing because - for targets using the GNU linker - -ffunction-sections, -fdata-sections, and -gc-sections do the equivalent job
On Ubuntu you can just install asis applications with : sudo apt install asis-programs
As subject, I tried to follow the quick start quide to run the speech api in non-ubuntu linux (see below), but I wonder if anyone get it to work or it is just not supported
cat /proc/version
Linux version 4.14.77-70.82.amzn1.x86_64 (mockbuild#gobi-build-64003) (gcc version 7.2.1 20170915 (Red Hat 7.2.1-2) (GCC)) #1 SMP Mon Dec 3 20:01:27 UTC 2018
but I got exception as the following.
Exception in thread "main" java.lang.UnsatisfiedLinkError: com.microsoft.cognitiveservices.speech.internal.carbon_javaJNI.swig_module_init()V
at com.microsoft.cognitiveservices.speech.internal.carbon_javaJNI.swig_module_init(Native Method)
at com.microsoft.cognitiveservices.speech.internal.carbon_javaJNI.<clinit>(carbon_javaJNI.java:517)
at com.microsoft.cognitiveservices.speech.SpeechConfig.<clinit>(SpeechConfig.java:69)
Similiar thing happened in Ubuntu linux at first, but it is resolved after I installed libasound2 as recommended in the microsoft documentation.
sudo apt-get install libasound2
This leads me to think maybe I miss some of the dependencies but I cannot figure out what exactly I missed from the error message.
Sorry, non-Ubuntu distributions are currently not supported / working.
The openssl library is an additional dependency; on Ubuntu 16.04 / 18.04 installed as the "libssl1.0.0" package, which ties it to a specific openssl version and library name.
I'm following an installation guide for Arduino. I have Arduino UNO rev3 and ubuntu 64bit
The guide refers to Synaptic Package manager to install software. But it doesn't seem to be available in Ubuntu 12.04 Precise Pangolin.
Should I install the list of software components via Ubuntu software center? Or should I install the Synaptic Package manager? (e.g. http://www.jonathanmoeller.com/screed/?p=3610)
Is there any difference between the two installation applications?
I had a lot of trouble syncing processing and arduino in 12.04.
I installed arduino in every possible way imaginable: from the website, from synaptic/software-centre, from apt-get... etc and it just wouldn't run.
If you are having trouble 'running' it , go to a terminal and run it there to see the problem. Post details.
In my case I got java headlessexceptions errors, which I concluded was because 12.04 didn't have any JAVA stuff installed? Can you believe it! It came to me as a shock, but oh well:
Go to synaptic and get the following packages:
java-common, openjdk-7/6, java-wrappers, libjaxme-java, default-jre, defaul-jdk, libbsf-java, default-jre-headless, openjdk-6-jre-headless
I am sorry if some of these are irrelevant to arduino, I just went on a 'click-on-jdk' stuff spree and got it to work :) Processing and Arduino run like a charm now!
Hope this helps!
Follow this tutorial for setting up Arduino in Ubuntu. I found this one to be the most helpful. Install Arduino IDE in Ubuntu.
Actually the easiest way to get the Arduino IDE on Linux is to download the software from this page http://arduino.cc/en/Main/Software (either the 32bit or 64bit linux version depending on your system)
After you download it all you have to do is extract the archive and run the executable called "arduino"
For installing Arduino 1.0 in Precise there is no difference between using Synaptic or Software Center, they will both install including dependancies. The biggest difference is the user interface and that Software Center allows for purchasing some additional software, they are both using your repos defined in /etc/apt/sources.
https://apps.ubuntu.com/cat/applications/precise/arduino/
https://apps.ubuntu.com/cat/applications/synaptic/
Installing Arduino on Linux is a little bit harder than the same installation on Windows or Mac. A wide list with tutorials for Arduino installation on Linux could be a good help for you. Also, you can check this guide for arduino installation http://playground.arduino.cc//Learning/Linux
The best way to install arduino for ubuntu is with terminal.
The first line command you have to write is:
sudo apt-get update && sudo apt-get install arduino
This will update your ubuntu packages and also install the arduino package. Then type:
tar -xvzf filename.tar.xz
Then you have to go to the directory Downloads (cd Downloads), and next to the arduino directory (cd filename).
Finally to run arduino, once you are inside the arduino directory you type:
./arduino
It will run the program.
i have a problem.. i'm trying to compile qt for vs 2010..
But i can't..
i'm following this guide:
http://thomasstockx.blogspot.com/2011/03/qt-472-in-visual-studio-2010.html
i follow all the steps (with the exception of -shared config, because i want -static) but when i digit nmake the vs prompt tell me this:
Microsoft (R) Program Maintenance Utility versione 10.00.30319.01
Copyright (C) Microsoft Corporation. Tutti i diritti riservati.
NMAKE : fatal error U1064: MAKEFILE non trovato. Nessuna destinazione specificat
a.
Stop.
c:\Qt\4.8.0>
it didn't find the makefile... i try with 2 different pcs with the same version of qt, vs and windows and in both don't work so i do something wrong.. but i can't understand where..i triedsearching but with no luck...
Thanks in advance...
I would definitely install Perl and try again. If it's not needed why should it give that message at all?
However, I don't seem to remember I had Perl installed so the error is rather strange.
The tutorial was written originally for Qt 4.7.2 and worked up to 4.7.4.
But I haven't tested it with 4.8. Before 4.8, VS2010 just wasn't supported by Qt, this has recently changed, so like Frank said, you should probably try to download the VS2010 packages since they now support it.
Not sure if this is SO appropriate so feel free to move. It is an IDE though. :)
I want to try the QT IDE on my Snow Leopard machine but for some reason it's not wanting to install. It freezes even (the installer I mean).
I am downloading the 442 meg file from this page: http://qt.nokia.com/downloads
Anyone know why I can't get this to install? Thanks! :)
I'm pretty sure you can't install that on Snow Leopard. Try downloading the 4.6 RC and installing that. You can get the RC here.
More Update;
I have success to install Nokia Qt on my MBP - run pretty good. You can get it here
http://www.forum.nokia.com/Develop/Qt/
Only Simulator is allow, No news on Device deployment support yet.