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
Related
Im following this guide: https://www.azerothcore.org/wiki/Installation
I am trying to compile build 6a95e61 with no additional modules under win64 and get 439 identical errors. They point to different files after like half a minute when selecting build/build solution in Visual Studio:
C2429 attribute 'nodiscard' requires compiler flag '/std:c++17' (compiling source file C:\Azerothcore\azerothcore\src\server\shared\DataStores\DBCDatabaseLoader.cpp) shared c:\azerothcore\azerothcore\src\common\datastores\dbcfileloader.h 38
A full wipe and starting over from git-bash yields the same results, so i guess im making mistakes in the process, any suggestion is appreciated.
Big thanks to the guys on azerothcore discord!
Steps which solved it for me:
Uninstalling Visual Studio 2017 and cMake 3.8.2
Installing Visual Studio 2019 with all dependancies in "Desktop Development with C++" and
Installing cMake 3.19.2
re-Built with cMake (as in the official guide)
Build/Build Solution in Visual Studio (as in the official guide)
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 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
Where to download the AUnit (AFAIK, the latest version is 3) for Ada (particularly for GNAT-4.9)?
I don't care whether this AUnit is licensed GPL or otherwise, because it is used only for my test program and the license of the test program does not matter.
I have a Debian system with gnat-4.9. The package libaunit2-dev does not install with this version of GNAT. And it seems that libaunit2-dev is AUnit 1 rather than AUnit 3. I would prefer the latest version.
Go to http://libre.adacore.com and select Download, Free Software, Build your download package, (any operating system)/GNAT GPL 2014, GNAT Ada GPL 2014, Sources, click on aunit-gpl-2014-src.tar.gz (not the checkbox, since you only want the one archive).
I’d recommend not running plain make install to install with the compiler, because AdaCore packages assume a different file structure from that used by Debian; in particular, gnatmake will not find aunit.gpr. Also, you may confuse apt-get. Install in ~/local instead by
make install INSTALL=$HOME/local
(yes, I know, it should be prefix not INSTALL but AdaCore aren’t all that consistent about this)
and then include $HOME/local/lib/gnat in your $ADA_PROJECT_PATH.
I'm experiencing some troubles with AdaGIDE compiler and its libraries. I installed GNAT 2013 and AdaGIDE 7.45 on Windows XP. When I'm trying to compile any code that requires win32 (eg. with win32.winnt;) AdaGIDE's console says file "win32.ads" not found.
I searched the web and I found this, followed the instructions, installed the win32 package, ran setpath.bat, I even tried copying libraries into every GNAT folder I found - but nothing works. When I copy win32.ads to the folder with my program it requires more libraries so I guess copying all of them into my program directory wouldn't be a very good idea either.
Does anyone know how to deal with this problem?
-- Edit --
I had a little chat with the creator of AdaGIDE and all I had to do was to set Compiler Options in Tools -> Project setting in current directory to:
-Ic:\GNAT\2012\include\win32ada -Ic:\gnat\2012\lib\win32ada\static
c:\GNAT\2012\include\win32ada is where I installed Win32Ada, you also have to make sure that in \static\ there is a file named libwin32ada.a.
Unfortunately it has to be repeated for every new project.
As I write, libre.adacore.com is only showing the 2012 (and 2011!) releases. I expect the 2013 release will be back in a day or so.
Looking at the 2012 release for x86-windows, I see the eleventh entry on the list is "Win32Ada 2012". I think the 2013 version of that is what you need.
You might be able to install the 2012 version of Win32Ada into your 2013 GNAT installation ... worth a try if you can't wait!
In any case, Win32Ada is provided in a way that expects you to use GNAT Project (.gpr) files. It comes with examples: if you look in C:\GNAT\2012\share\examples\win32ada, you'll find various example projects; I tried connect, double-clicked on connect.gpr, it fired up GPS, I said Build>Project>Build All and it built connect.exe.