I am a newbie working with Cygwin and CUnit. I have to develop some Unit Tests using CUnit and Netbeans and I have followed the next tutorial:
https://netbeans.org/kb/docs/cnd/c-unit-test.html?print=yes#project
At the end, when I was trying to run the first example test I got stocked by an error:
0 [main] make 4380 C:\cygwin\bin\make.exe: *** fatal error - error while loading shared libraries: /cygdrive/C/Program Files/NetBeans 8.0.2/ide/bin/nativeexecution/Windows-x86_64/unbuffer.dll: cannot open shared object file: Exec format error
448 [main] make 4380 open_stackdumpfile: Dumping stack trace to make.exe.stackdump
I don't know if this has relation to the Cygwin version I have, I have a computer running Windows 7 Enterprise 64bits edition. I have configured my C project to use Cygwin 64bits edition...
Could you please share any idea about how I can solve this?
Thanks!
I had a similar issue, but in my case I was trying to run CppUnit tests in Netbeans. I was using make provided by MSYS2 and it was failing to load unbuffer.dll, but error was "No such file or directory". I switched the make from MSYS2 for the one found in MSYS and the error went away. You could try this as a workaround.
I found sole here:
https://bz.apache.org/netbeans/attachment.cgi?id=164026&action=edit
Need download new version of unbuffer.dll.
Yar
Related
I'm trying to use valgrind with clion in my windows machine. I've gone through the steps of setting up WSL and valgrind on windows.
Although when I try to 'run with valgrind memcheck' in my 'UnixAssembler' project I get the following error:
Error running 'UnixAssembler': File not found: /cygdrive/c/Users/natan/Desktop/UnixAssembler/cmake-build-debug/UnixAssembler.exe
The actual exe is located in c/Users/natan/Desktop/UnixAssembler/cmake-build-debug/UnixAssembler.exe, so I don't know why It's looking in this cygdrive folder.
I'm not sure what to try from here onwards. Any ideas?
Solved:
- Go to File -> Settings -> Build, Execution, Deployment
- Remove any Toolchains other than WSL (making WSL the default will probably work as well)
- Profit
I managed to setup the Neutrino 6.5.0 RTOS in a virtual box and connect to it over qconn from Momentics IDE for Blackberry IDE 2.1.2 .....
I can get the system information perspective view for my Neutrino.
BUT
when I am trying to run my compiled application I am getting the errors :
Could not launch
Cannot find qnx launch process
and
Error starting remote application.
Target launcher#<192.168.56.101:8000>: Error: Attempting to exec a shared lib
SO I manually copied the executable file I compiled to the /tmp dir on my Neutrino virtual machine and run it using ./Test ,still get this error:
"/bin/sh: ./Test: Attempting to exec a shared lib"
I rechecked the project option and make sure that this is an Application output and not a shared library output type.
Any idea what am I doing wrong ?
I also encountered the same problem. Later, I found that the cross compiler was selected incorrectly. This error occurs when x86 programs are run on arm processors; Specify the correct compiler to solve the problem;
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.
All,
I'm trying to compile some code that compiles in Ubuntu after getting the udev library from "apt-get". I am trying to get it to compile in RedHat 5 but am getting the following compile errors:
error: libudev.h: No such file or directory
The question is similar to: QSerialDevice: Compilation error "libudev.h: No such file or directory"
However, instead of the failure happening on Ubuntu, it's happening on RedHat 5. I tried finding the RPM files for the udev library and got one RPM file from the following link. The RPM file was unsuccessful installing when I double clicked it stating:
"Cannot install source packages"
"No packages were given for installation"
http://www.linuxquestions.org/questions/linux-software-2/i-need-libudev-or-udev-devel-for-red-hat-5-a-4175422051/
udev-147-2.42.el6.src.rpm is the name of the RPM
Any help would be appreciated. Doing a search on Google is starting to lead me to believe that this libudev.h is only for Ubuntu? Is this true!?
Its only available for RedHat 6 not in RedHat 5.
http://pkgs.org/centos-6-rhel-6/centos-rhel-i386/libudev-devel-147-2.41.el6.i686.rpm.html