Windows mingw pcsc issue - windows

We use mingw in out Qt projects on Windows. When we try to use PCSC library, we get an exception trying to connect to the smart card reader. We do not experience this problem when we use MSVC. Yet, we do not want to change the whole architecture just for this issue. The error message we get is:
error: undefined reference to `_imp__g_rgSCardT0Pci'
How can we solve this problem?
The problem appeared to be 64 bit winscard.lib library.

Related

Gem5 on Mac OSX, build issue (errors)

I am new to gem5 and I am trying to install the simulator on my iMac pc (OSversion: High Sierra 10.13.6).
All the dependencies specified on the site have been installed to the correct version. The problem i am currently stuck with is that when i try to first compile M5 in the gem5 directory with 'scons build/ARM/gem5.opt', it stopped with errors mostly being:
**/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:3656:5: error: destructor called on non-final
'Stats::BinaryNode<std::__1::multiplies<double> >' that has virtual functions but non-virtual destructor [-Werror,-Wdelete-non-virtual-dtor]**
__data_.second().~_Tp();
^
I couldn't find any relevent answers regarding this. I hope if there are any amazing MAC gem5 developers out there can help me with this.
cheers!
I mailed to Mr Andreas Sandberg. The answer worked for me:
"I think the compiler version you are using uses more aggressive warnings than default (and possibly a newer C++ standard than we normally use). I would suggest disabling -Werror and see if that makes a difference."
Try disabling -Werror with the next command line :
export CFLAGS="-Wno-error"
Hope work for you.

User Defined issues Xcode 5

I'm a new Mac Os user, before I worked on windows.
I'm trying to write programs on pawn, but on mac there is not "real" version on it.
I found on official website that you can you can run the program PAWNO threw Xcode, but I can't do it properly.
I got a error - User Defined Issues, what does it mean and how to fix it?
Thanks.
And link where I found it.
http://www.compuphase.com/pawn/pawn.htm
You are building for a 64-bit Intel architecture but the header file you're using doesn't support that (i386). Try setting your project/target settings for building as a 32-bit application.

Running mach_inject with Qt in OSX Mountain Lion

On OSX Mountain Lion I'm able to compile mach_inject and the included test project. That works as expected with injection functioning perfectly.
I'm now trying to use the same mach_inject framework from a Qt project, compiled from QtCreator. I've tried both clang and gcc compilers.
Everything compiles and the application runs, but when calling mach_inject, I get the error:
mach_inject failing.. (os/kern) invalid address
Tracing mach_inject, the failure occurs at the last step, when it calls thread_create_running.
Does anyone know what the problem is here? I'm assuming it's something to do with the compiler options provided by Qt against those used by XCode, but could be totally wrong!
Thanks.
The problem turned out to be a 32 / 64 bit incompatibility - as (naturally) you can't inject a 64bit bundle into a 32 bit app!
If anyone else has similar problems, debugging into the mach_inject_bundle_stub can be of use, as the same error from the kernel can be presented due to other issues.

Compiling CUDA SDK V4.1.28 For Linux?

When trying to compile the most recent CUDA SDK from Nvidia (version 4.1.28) for linux, I get the following error:
error: identifier "CURAND_STATUS_DOUBLE_PRECISION_REQUIRED" is undefined
My google-fu yields only similar problems, and not solutions.
I have an older version of the SDK (version 4.0.17) which compiles fine. So this might be a bug in the SDK, or there is/are environment variable(s) I didn't set.
Not really an "answer", but an ugly quick fix is to comment out the line 328. It doesent impact my program, but there is no guarantee that it does not affect yours.

Compiling a Qt based NPAPI Browser Plugin on Windows

I am further developing a NPAPI Plugin in Qt. I got the source code and a precompiled windows (DLL) version of the Plugin. I added some functionality and tried to compile it using the default Build process of Qt Creator. In my edited case as well as in the original case the compiling worked perfectly well on windows and linux. The problem is, that the plugin itself is only usable on the linux machine. On Windows (XP SP3) there is an error mentioned, that my specific scriptable methods wouldn't exist. Is there a special way or toolchain for compiling on Windows? Or is there way to locate the failure?
Thanks in anticipation!
Here are some things to check and to try:
Set a breakpoint in NPP_New (you'll have to find it in QT's framework, I don't know where it is); step through until you find a problem
Make sure that NPP_GetValue is returning an NPObject on request; if not, then you definitely won't get any scripting API
Make sure that QT's framework isn't still trying to use XPCOM for scripting.

Resources