DLL to call a subsidiary static library

I have compiled a DLL using labwindows calling a subsidiary static library. I added a step to test that calls this DLL.  On my development station, everything is good.  The subsidiary library is named.  But, on a deployed workstation, I get a "cannot load the DLL.

According to the reference manual, I can preload subsidiary attendance using the adapter of the CVI.  I get the same error on my deployed station...

You get an "Unable to load a DLL" error when a dependency is missing.

Please check this way:

Download the tool free dependency walker- http://www.dependencywalker.com/

Select the DLL (deployed machine).

It will show you which component of the dependency is missing in the deployed machine.

For CVI.

Since you are using a static libarary - include you in the build when you build the project?

It should be incorporated in your DLL. (help to add files to the DLL option in the CVI target settings).

I hope this helps.

Tags: NI Software

Similar Questions

  • How can I use Make to build a static library to use in my application BB10?

    I need to use the mark in the terminal (OSX) to create a static library that can be used in a native application of BB10, but when I try to add the .a file generated as an external library, Momentics says "Library is not compiled to the correct architecture". How can I solve this?

    This problem seems to have something to do with the construction on OSX. I am now building in a CentOS VM and it works fine. It is more of a workaround than a solution, but it solved my problem for now.

  • Problem using the Qt library in static library

    I created a static library with SDK 10.1 10.2 Momentics. Any time I get the qt classes, the compiler complains that it cannot find a file any.

    for example:

    #include

    the error is:

    The path location type Resource Description
    Fatal error: QtCore/qchar.h: no such file or directory MyStaticLibrary line 45, external location: /Applications/Momentics.app/target_10_1_0_4828/qnx6/usr/include/qt4/QtCore/qstring.h C/C++ problem

    Help, please.

    I have a simular problem solved by adding a variable include

    ${QNX_TARGET} / usr/include/qt4 in

    Project / Properties / C/C++ Build / Settings /Tool settings /QCC compiler / preprocessor / Include directories (- I).

  • Creating a static library in Momentics IDE

    Hello all, I am very new to development Playbook, I'm trying to add a project in my workspace that would compile the c code ++ for a .a that could be connected to my App Playbook existing a few questions:

    (1) what type of project right to choose in the list when I go on File > New ?

    (2) is there a way for it to work without makefiles? (IE managed by momentics juice tlike that my app playbook is)

    (3) because my cpp/h files already exist on the disk for this lib, what is the best method to add them to this static lib project?

    Thank you all for the support.

    File-> New-> project BlackBerry C / C++-> {the Set project name}-> {build select C or C++, managed or Makefile and Archives (static library)}->...

  • How to create a static library

    Anyone know how to create a static library using QNX Momentics 10.2?

    Is it possible to create a static library which contains the qml file?

    I found this obsolete article: https://supportforums.blackberry.com/t5/Native-Development-Knowledge/How-to-create-a-shared-or-stati...

    Thank you

    File > New > BlackBerry Project and you get the following window:

    You also like the Fund of this model of library by @IsaacGordezky https://github.com/blackberry/Cascades-Community-Samples/tree/master/Cascades-Library-Template.

  • Impossible to include the static library containing the QObject class in Cascades project

    I'm working on the new platform BB10 based on Qt.

    I have a static library project that defines a QObject class (essentially the class sends signals and a few locations). The project compiles fine and gives me a file libwhathever.a nice

    When I try to include this library in my project of stunts I get these errors during construction:

    • undefined references to com::vasco:digipass:sdk:utils:qrcodescanner:MyClass:staticMetaObject
    • undefined reference to com::vasco:digipass:sdk:utils:qrcodescanner:MyClass:newQRCodeDetected (QString)
    • location reference external com::vasco:digipass:sdk:utils:qrcodescanner:MyClass:staticMetaObject undefined: c:\Developer\bbndk\target_10_1_0_2342\qnx6\usr\include\qt4\QtCore\qobject.h
    • location reference external com::vasco:digipass:sdk:utils:qrcodescanner:MyClass:staticMetaObject undefined: c:\Developer\bbndk\target_10_1_0_2342\qnx6\usr\include\qt4\QtDeclarative\qdeclarative.h
    • location reference external com::vasco:digipass:sdk:utils:qrcodescanner:MyClass:staticMetaObject undefined: c:\Developer\bbndk\target_10_1_0_2342\qnx6\usr\include\qt4\QtDeclarative\qdeclarative.h
    • no reference to vtable for com::vasco:digipass:sdk:utils:qrcodescanner:MyClass
    • no reference to vtable for com::vasco:digipass:sdk:utils:qrcodescanner:MyClass

    I think that I miss the compilation step where the Q_OBJECT macro is run. I'm on the right track? I've heard talk about moc and qmake, but I don't know how or when to use in my build process.

    In fact, I solved my problem simply by running the moc on the header file defining the Q_OBJECT. It generated the file moc, that I needed. Then my ant script does the rest of the compilation with qcc and my indefinite references have disappeared.

  • How to create a static library to Blackberry?

    Hi friends,

    I want to create a static library.can someone explain to me?

    It is urgent

    What do you mean by 'static '?

  • Static library linking

    Hello

    I've searched the forums and although I found many positions related to similar problems I have not found one to actually solve my problem.

    Basically, I'm trying to link my static library in my project BB10.  I have build 2 versions of my library.  A simulator and a version of the device.

    The library will be delivered with the actual application project so I add the libraries to the root of the project directory.

    for example:

    Project\libs\Simulator\library. one

    Project\libs\Device\library.a

    How to link against this library based on my main project so im a Simulator or device of construction build?

    Thank you

    After a few tests more and goes a bit more gray hair, I realized what was going on.

    It turns out that one of my classes in c ++ that it prevented the release build work.  So it seems to be nothing wrong with my library or binding.

    I've seen things like this before over the years.  I think that the debugging information in the final application allowed the class tapped to run without causing reading / writing of memory problems or what ever it was, but when you try to run the Release version the bug is immediately appear.

    I have yet to track down the bug real in class but I temporarily removed from the lib and added to the main project and everything seems to work.  You keep your fingers crossed QA do not come back with anything while I find this bug to class

    Thanks for the input form everyone.

  • How to create a project that connects in a static library?

    I am trying to create an OpenGL project that depends on a static library which I create in the same workspace in the NDK.  I created two projects (static library and OpenGL app) connects them in the NDK and tried, but I must be missing something because my OpenGL project is not able to see the functions in my static library, even if it is able to find my static library?

    Is there documentation describing step by step how to create two projects and how to relate?

    I found a similar post on the forums and I have solved my problem.

    I used project > add library > library of the project in the workspace but something is broken with this command, because it did not work.

    If you use project > add library > external library, then everything works fine.

  • Shared Library containing a static library

    Hello

    I was wondering if it is possible to integrate a static library, in a shared library project.

    I'm creating a shared library, which will be released, so other developers can integrate my shared library in their application. However, I need to use a static library in my shared library.

    I followed the instructions below, for the creation of a shared library and the static library, but also adding them to my projects. Everything compiles fine and I don't get any problems.

    However when a third party developer incorporates my shared library, the compiler complains about the header files that come from the static library?

    http://supportforums.BlackBerry.com/T5/Cascades-development-knowledge/how-to-use-a-third-party-share...

    I was wondering if someone at RIM, or anyone who has done this before can confirm if it is still possible to do?

    Thank you

    I was able successfully to achieve this. Thank you

  • Static library required external ADT for ANE

    Hey there,

    I tried to create a native extension for my current project and tried a simple hello world ANE firstly that I managed to make it work very well so I am now aware of the process so that everything is done correctly.

    The problem I face is now that I use a static library ".a" in my XCode project to build my own static library ".at". When I compile my DONKEY in HAA project I get the following error (sorry for the formatting).

    For architecture armv7 httpd Undefined symbols:
    "OBJC_CLASS$_EAAccessoryManager ', referenced from:

      objc-class-ref in libcom.edgington.HelloWorld.a(TGAccessoryManager.o) 

    "OBJC_CLASS$_EASession ', referenced from:

      objc-class-ref in libcom.edgington.HelloWorld.a(TGAccessoryManager.o) 

    "_EAAccessoryDidConnectNotification", referenced from:

      -[TGAccessoryManager setupManagerWithInterval:forAccessoryType:] in libcom.edgington.HelloWorld.a(TGAccessoryManager.o) 

    'OBJC_METACLASS$_EAAccessory ', referenced from:

      _OBJC_METACLASS_$_TGAccessory in libcom.edgington.HelloWorld.a(TGAccessory.o) 

    "OBJC_CLASS$_EAAccessory ', referenced from:

      _OBJC_CLASS_$_TGAccessory in libcom.edgington.HelloWorld.a(TGAccessory.o) 

    LD: symbol not found armv7 architecture

    The command line that I use is:
    / Applications/Adobe\ Flash\ Builder\ 4.6/sdks/4.6.0/bin/adt-paquet - target ipa-ad-hoc - stores pkcs12 - keystore IOSFP.p12 - provisioning-profile extensionDir - extdir HelloWorld.mobileprovision HelloWorld.ipa HelloWorldIOS - app.xml HelloWorldIOS.swf /-platformsdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPh oneOS5.1.sdk

    I searched many other messages from forums and sites on how to do it, but I'm still unconscious to the problem, I feel I have to be spoon feeding in order to understand! I think that this suite post if relivant to my question but still I do not understand completely:

    http://forums.Adobe.com/message/4269570#4269570

    Can someone point me in the right direction?

    I searched many other messages from forums and sites on how to do it, but I'm still unconscious to the problem, I feel I have to be spoon feeding in order to understand! I think that this suite post if relivant to my question but still I do not understand completely:

    Ah, I found the problem, ExternalAccessory.framework is not included in the default list provided by air executives. Create a switch to options of platforms with this library noted that he has solved the problem. Here's what I did to remedy:

    Created options.XML:

    http://ns.Adobe.com/air/extension/3.1">

    5.0

    added '-platformoptions options.xml ' on the end of the command line to build.

    Past mistakes.

  • Problems of creating a Native Extension, referring to a static library

    Hello

    I am trying to create my own Extension Native for iOs using another static library.

    My problem occurs when I try to pack my application with ADT: after a lot of "ld WARNING: unexpected srelocation type 9", I get a final error: "ld: inch bl/blx out of reach (max-4468380 is + / 4 M).

    This may be caused by the fact that the static library, I use needs CCG affecting "compile for thumb" turns off. I did this in XCode to get my file has to generate my .ane, but how could I tell ADT to take into account?

    Thank you very much for your help!

    You are compiling for ARMv6 and ARMv7?

    With armv7, you don't need to turn off the "compile for thumb" anyway.

    Also, I assume you are using a greater than 4.3 iOS version to compile your native library. In this case, using platformsdk - adt switch, while the packaging of your app could solve just of your question. (You will see some warnings 4-byte alignment ld, but it's ok)

    Neha-

  • Import static library Wizard labview 64 pointer size is 32

    I have labview 2009 sp1 64-bit on a 64-bit with windows vista64 bit computer.  I use the Import Wizard to the shared library on a dll 64 bit with the header file provided.

    I noticed that the header file shows some functions like the passage empty *.  When the wizard generates the library call nodes and terminals vi it makes U32.  Maybe miss me something here, but on a 64-bit computer, it should not be U64?  I think that if the 64-bit dll tries to return a pointer that points to the address exceeds the limit of 32-bit, I could get into trouble here.

    Is it an OR on the view or my misunderstanding?

    Thank you

    James G

    From LabVIEW 8.6 (or was it 2009? I don't remember for sure), we have a 'size integer pointer' option for the call library node parameters. If the Import Wizard tries to wire an integer to an empty parameter * pass by value, then it should be to establish the type of the parameter to the size pointer value and make the wire/control itself an integer 64 bit (on all platforms). There is a limitation in our 64-bit support, because the Import Wizard is prior to this option (and our 64-bit version of LabVIEW). I will file a bug for her report.

  • can not find size_t during import a dll and calling a labview crash function

    Hello, experts

    I need to use FingerLakeInstrument DLL (see attachment) within Labview for talking to a CCD camera. It is built from microsoft visual studio C++

    I unzip FLI dll in my D:\proj\...\linfli-32 and import the dll from there. created a c:\FLIDBG.txt FLI dll must write the debug message on it if are called the FLISetDebugLevel() or others.

    During the import of the dll, the first thing I got is (IE size_t) could not be found. I installed the free version of microsoft visual studio C++

    but can not find 'typedef unsigned int size_t;

    in the end, I just added

    typedef unsigned int size_t;

    in the libfli.h. Having done this, I am able to import all the functions in Labview and have a library of user called libfli.

    However, as soon as I start to call a simple function in a test.vi, as FLIGetLibVersion (char * worm, size_t len), which consists of nothing else the library, the labview crash.

    I created a simple C test.exe who calls a lot of functions with no problems

    any suggstion?

    concerning

    Xiaofeng

    You don't have not shown us how the LabVIEW code looks like. The size_t setting refers to the length of the buffer, in that you spend. In this case you pass a string. So, presumably, you created a buffer zone in LabVIEW to a string of sufficient size, and set the parameter "len" to the length of this string. You also have to make sure you use the correct calling convention?

  • Acquire GigE camera data using labview CIN or DLL to call.

    I am tring to acquire data from a basler runner line CCD camera (GigE).

    Because the NI Vision Development Module is not free, and the camera provide a C++ API and C and also some examples, so I plan on using the function CIN or call DLLS in labview to achieve. Is this possible?

    I tried to generate a DLL with the example of the company code of the camera. But encounter difficulties;

    I did that a little background in C++, but not familiar with it. The C++ Code example provides the camera is a C++ (a source Code file) and a .cproj file, it depends on other files, the camera API directory.

    If I build the project directly, it will create an application window, not in a DLL. I don't know how to convert a DLL project, given that other information such as dependence in the .cproj file, other than source code.

    Can someone help me with this?

    Don't forget that for the acquisition of a GigE camera, you must only Module of Acquisition of Vision, not the entire Vision Development Module. Acquisition of vision is much lower price and also delivered free with hardware NI Vision current (for example a card PCIe - 8231 GigE Vision of purchase). You need only Vision Development Module if you then want to use pre-made image processing duties. If you are just display, save images to disk, or image processing using your own code (for example to manipulate the pixels of the image in a table) you can do so with just Vision Acquisition.

    It is certainly possible to call DLL functions if LabVIEW by using a node called library, it would be quite a lot of work unless you are very familiar with C/C++. Since their driver interface is C++, you need to create wrapper functions in C in a DLL that you write. Depending on how much you want to expose functions, this could be a bit of work.

    Eric

Maybe you are looking for