I'm having a similar problem to that listed here - SDL2 is not seeing X11/Video Device correctly
I'm trying to follow the Lazy Foo tutorial for SDL and I keep getting the 'no available video device' error. If I update SDL_VIDEODRIVER to x11 I get that x11 is not available. I'm linking against it but it doesn't seem to help.
I'm calling SDL_GetVideoDriver at the beginning of my program and all it's seeing is dummy.
System is Ubuntu 20.04.
If anyone has any tips on how to try and debug this that would be greatly appreciated.
So the problem turned out to be that I had compiled SDL2 myself instead of using a package manager, but I had also then installed it with a package manager. It was using the version from my compilation which didn't include the drivers correctly.
The easiest solution was just to remove the compiled installation and go with the package manager.
Related
I'm using STM board STM32F407VG with the ide KEIL MDK5.30. I have tried to flash the basic blinky example to the board. After building the code with 0 error and warning clicked on the download button to flash to the board. At that time an dialogue box popping out with a message "Command not supported". After that the process is failed with a message "Error: Flash Download failed - Target DLL has been cancelled".
ST-link is detected by the IDE (ST-LINK/V2-1).
What exactly need to be done here to solve this issue?
(In a different forum I found a fix like download the previous version MDK and copy the C:\Keil_v5\ARM\STLink\ST-LINKIII-KEIL_SWO.dll DLL file from the installation folder of previous version MDK to the corresponding folder of latest using MDK.
It will be helpful if anybody shares how to get the previous version MDK)
I have the same problem.
Try this way.
Open Pack Installer program.
Find Packs.
Device Specific -> Keil::STM324xx_DFP.
Remove the latest version.
Install previous version (like 2.12.0(2018-02-22) version).
I'm trying to learn ARMV8 assembler, and am trying to build a test application on Windows. I've installed ARM DS-5 Community Edition, version 5.26.2. After much hair pulling trying to install toolchains, I finally installed the "mingw32" toolchain here: here. This seems to work - I am now able to compile and link my application (which consists of a single c file and a .s assembly file. The target created is a ".axf" file.
But I am unable to debug. I have my debugger set to "\gcc-linaro-6.3.1-2017.02-i686-mingw32_aarch64-linux-gnu\bin\aarch64-linux-gnu-gdb.exe", out of the directory where I downloaded the toolchain. gdb starts up, but I get the error below:
Error in final launch sequence
Failed to execute MI command:
-exec-run
Error message from debugger back end:
Don't know how to run. Try "help target".
Don't know how to run. Try "help target".
Any suggestions? Frankly, I don't really know what I'm doing here. I'm not sure I set up the toolchain properly. The problem is I can't find any documentation on how to do this in windows.
Thanks in advance!
Recently I have installed KDevelop on my Windows7 32bit OS, and after installing when I try to open it I am getting an error. Actually, when I try to open KDevelop it says that **api-ms-win-crt-runtime-l1-1-0-dll** is missing, after getting that error I have downloaded that (api-ms-win-crt-runtime-l1-1-0-dll) file from www.dll-files.com, then after, I pasted it in D:/Programs Files/KDevelop/bin/ and now after doing that all again I am getting a new error that api-ms-win-crt-runtime-l1-1-0-dll is either not designed to run on Windows or contains an error. Try installing the program again using the original installation media or contact your system administration or the software vendor for support. any suggestion that get me out from this hell ?
It seems that you don't have the appropriate Visual C++ Redistributable.
Also I would strongly advise against downloading DLL files even from seemingly legit web sites. Missing libraries are a symptom of something larger missing or corrupted.
I wrote a C library that utilizes the libcurl library to interact with a REST API. I wrote this on a debian based system, but am now attempting to use it on an Arduino, which runs an OpenWRT distribution. When trying to use it, I noticed there was an issue when the compiler attempts to use the libcurl library, so I wrote a super simple program to test it.
#include <curl/curl.h>
void main() {
CURL *curl;
}
I then compiled it like so...
gcc -lcurl test.c -o test
and got back the following.
test.c: In function 'main':
test.c:4:2: error: unknown type name 'CURL'
libcurl was already installed on the device.
Package libcurl (7.29.0-1) installed in root is up to date.
Here's what displays when I run opkg files libcurl
Package libcurl (7.29.0-1) is installed on root and has the following files:
/usr/lib/libcurl.so.4
/usr/lib/libcurl.so.4.3.0
Having the hardest time trying to figure out what the problem is. This link was the only thing I found remotely close to being similar to my problem, but the solutions didn't work for me. Does anyone have any suggestions?
Thanks.
EDIT: So I think I found some more information about the problem. I think I'm missing a lot of the libcurl development packages as well because I looked at the opkg.conf file and saw that the only package list was the following.
http://downloads.arduino.cc/openwrtyun/1/packages
Maybe I need to find an OpenWRT package list having the extra libcurl packages I need? I can't seem to find them though.
So I was able to solve my problem, but I guess not "properly".
Apparently, the OpenWRT distribution I'm running uses a completely different libcurl library, and when I tried to uninstall it, the opkg package manager warned me that because it too also utilizes the currently installed libcurl library, it might break if I remove it.
Therefore, I manually installed the version of libcurl I needed from Github, and then made the proper references in my code to use this other version instead.
Thanks everyone for helping me get in the right direction.
I am looking to try out clutter (http://www.clutter-project.org) on an OSX machine (10.6). I installed the toolkit first by setting up required dependencies via macports and then installing clutter from source (with needed osx flags).
When I try to compile any sample code, it succeeds. However, I always get a "ClutterGLX-CRITICAL **: Unable to find suitable GL visual." error.
I tried googling for answers but couldn't find anything useful.
Help!
Thanks.
I saw the same problem on my MacBook using the standard build from MacPorts, but the no_x11 variant worked okay for me. I am also using the universal variant because I'm using the library from a 32-bit app, so this is what my MacPorts command line looked like:
sudo port install clutter +universal +no_x11
You can probably omit the '+universal' if you only want the library built for your default architecture.