Is Linux - possible to build a shared library that calls other libraries shared without having to make a static link to them?

Hello

Operating system = Linux (Ubuntu 14.04 LTS 32-bit)

I am building a shared library *. so.  This *.so should be used by LabVIEW.  This *.so is calling other functions in shared libraries.  In my case, the other library share is libxml2 and libz.  The only way I could compile my shared library and operate was a static link from libxml2.a and libz.a.  Is there a way to make a dynamic link?

Here's the makefile file that I use.  The goal of 'TestValidateSchema' compiles the shared without the static link library and this shared library is called by an application to test 'c' and it works.  Now, to make it work in LabVIEW, I need to make a static link, as you can see in the target ' install: «otherwise the function "call library node" throws me a symbol unresolve...»»

This is the only way to do it and if yes why?

Thank you

--------------------------------

CC = gcc

all: TestValidateSchema

TestValidateSchema: testValidateSchema.c
$(CC) o Release/validateschema.o - c - wall - Werror - fpic Src / validateschema.c - I. / Include-I/usr/include/libxml2
$(CC) - shared-o./Release/libvalidateschema.so./Release/validateschema.o
$(CC) - wall o ./release/testvalidateschema testValidateSchema.c./Release/validateschema.o-lxml2

clean:
$(RM) $(OBJS)./Release/testvalidateschema./Release/libvalidateschema.so./Release/validateschema.o /usr/include/validateschema.h /usr/lib/libvalidateschema.so

install:
$(CC) o Release/validateschema.o - c - wall - Werror - fpic Src / validateschema.c - I. / Include-I/usr/include/libxml2
$(CC) - shared-o./Release/libvalidateschema.so./Release/validateschema.o Src/libxml2.a Src/libz.a

--------------------------------------

In addition to what said Daniel on the specification of an external shared library in the liaison stage of your version of the shared library, together with the - shared option, there is still one thing to consider:

Your library of hello.so then contains references to functions in external shared libraries libxml.so and zlib.so. When LabVIEW calls dlopen ("/ path/dir/hello.so",...) it basically hands of any control in the linker Linux running, ld.so that takes care of the rest. LD.so then try to load the shared library, recognizing that there are external references and try to solve.

First he tries to match the missing external references to any symbols that have been previously loaded into the current process already. If this is not successful for a particular system, it queries the ldcache for a library and a symbol. ldcache is updated with the ldconfig program. When you add a new shared library on the system that you want the linker ld.so runtime in order to find, run ldconfig.

NOTE: Running ldconfig is not normally necessary to shared libraries that access you directly via the node call library, as you specify here the full access to your custom library shared already, so path ld.so will fail immediately if it is not the library specified in the given absolute position and will not attempt to query ldcache at all.

If you are installing packages through your package manager platform update ldcache for all publicly accessible libraries shared in these packages is usually done automatically for you as part of the package installation script. If however you manually install the libraries you need to run ldconfig yourself. In your case, you could add the libxml.so and/usr/lib zlib.so and simply run ldconfig from the command-line as it default search/lib and/usr/lib for libraries shared and rebuilt the ldcache from that. If you add your new libraries in a different directory on your computer you need to run ldconfig with - n option, saying what directory the new shared libraries have been installed.

Tags: NI Software

Similar Questions

  • Is it possible to download the Lightroom software that resides on a disk without a hard drive (i.e. online)? I have a Macbook without a CD player...

    Is it possible to download the Lightroom software that resides on a disk without a hard drive (i.e. online)? I have a Macbook without a CD player...

    Download & install instructions https://forums.adobe.com/thread/2003339 can help

    -includes a way to go to a page to download the Adobe programs if you do not have a disk or drive

    -Cloud desktop http://helpx.adobe.com/creative-cloud/help/creative-cloud-desktop.html

    -Cloud Getting Started https://helpx.adobe.com/creative-cloud.html

    -you will need to enter your original serial number during the installation for non-Cloud programs

    - or kglad links in response to #1 here can help https://forums.adobe.com/thread/2081216

    Also go to https://forums.adobe.com/community/creative_cloud/creative_cloud_faq

  • Is it possible to display a shared without an iPad folio?

    Is it possible to watch a folio shared on your desktop PC or Mac with content adobe Viewer app?

    8.1 Windows users can download the LCA of the Windows store. This is not

    possible on Mac or earlier versions of Windows.

  • Is it possible to build a complete daily with muse adobe? Can you give an example pls...

    Is it possible to build a complete daily with muse adobe? Can you give an example pls...

    Moving to the Muse forum

  • Is it possible to build a paralellagram to consider the angle that produced an image?

    Is it possible to build a paralellagram to consider the angle that produced an image?

    You can correct for tilt using free transform > Skew, or control by dragging a handle from Center.  Is that what you meant?

  • I managed to install and started to build my site, to discover my library of widgets, States and scrolling effects selections don't respond to clicking on them or open somehow. I need to reinstall and start over?

    I managed to install and started to build my site, to discover my library of widgets, States and scrolling effects selections don't respond to clicking on them or open somehow. I need to reinstall and start over?

    Are you referring to the widgets etc that you have added to pages or the actual interface of Muse?

    If it's things on the page then you most likely have an empty element above them. Do a select on your page and make sure that there are no elements that overlap your clickable items. Also make sure your clickable items are highest in your layers panel.

  • Would it be possible to have 2 shared resources, a local containing all common topics and photos for several projects and another a remote control containing all the topics and pictures for the purpose of collaboration

    Hello

    I was wondering, now that I discovered the benefits of eating of the resource, if it would be possible to have 2 shared resources, a local with common themes and images for several projects and another one, remote, containing projects together, i.e. the subjects and images, for collaboration purposes.

    The only local, I intend to use it for my purposes to have common points (topics & photos) update of all projects where they appear and the distance that I intend to use it with remote colleagues, who might want to make changes in the topics.

    This would mean that the topics and current photos will be present in the resources, one local as one remote.

    Thank you.

    SVN is not a source control package?

    I'm not sure, but RoboHelp * MAY * be able to integrate with SVN to control projects and sharing.

    RoboHelp comes with RoboSource Control that could be used to provide the source code control. But if you already have a package in place, my thought is why reinvent the wheel? Simply use what is there.

    See you soon... Rick

  • Is it possible to buy additional licenses so that I can legally install XP for the given PC?

    Purchase additional licenses of XP to charitable purposes.

    G ' Day.

    Seems I entered company free charity PC by accident. I fix PC for needy people in my community and have been recently
    Gift of parts which I now build computers for those who cannot afford it. I have an authentic copy of the retail of Windows XP Professional
    but I don't want to break any laws by installing it on several PC. Is it possible to buy additional licenses so that I can legally
    install XP for the given PC?

    I'm in the Australian Navy and can not afford to buy XP for each PC, I'm donating. Shipping with Linux does not work too well for these people because they are for the most computer illiterate and only know windows.

    See you soon.
    Select this option.

    G ' Day.

    Seems I entered company free charity PC by accident. I fix PC for needy people in my community and have been recently
    Gift of parts which I now build computers for those who cannot afford it. I have an authentic copy of the retail of Windows XP Professional
    but I don't want to break any laws by installing it on several PC. Is it possible to buy additional licenses so that I can legally
    install XP for the given PC?

    I'm in the Australian Navy and can not afford to buy XP for each PC, I'm donating. Shipping with Linux does not work too well for these people because they are for the most computer illiterate and only know windows.

    See you soon.
    Select this option.

    Windows XP is no longer sold by Microsoft.  You will need to search the Internet and find a place you trust or inquire locally.  Unfortunately - this is where you are at.

  • Can you build a new version of an exe without having to rebuild its installer later?

    I'm currently testing an exe LabVIEW-built on a PC without installed LabVIEW. Whenever I go back to the development PC to fix a bug / change something, and then rebuild the executable file, it seems that I must also rebuild its installer which takes considerable time.

    Is it possible to rebuild an executable without having to rebuild its installer? Or a way to tell the installation program that he didn't need to be completely rebuilt, but rather just has to look at the new executable?

    After writing this, I realized it probably isn't a way to do it, but it's worth a shot.

    Christian.

    If you remove all the additional installation programs of your build spec, you should end up with a fairly compact to build installer.

    I usually a specification of construction to complete installation, then a spec to build for the patch install.  When I make just a small change and know that the application will be distributed only on a computer that already has the EXE, I just rebuild the hotfix installation program.

    For major releases, I will rebuild the full installer.

  • Multimedia shared problems - computers do not see each and other libraries

    I have 3 computers: 1 computer that runs Windows 7 and WMP 12, 2 computers that are running Windows Vista Ultimate Edition and WMP 11 and 3 computer runs also Windows Vista Ultimate Edition and WMP 11.  I have installed all Windows updates.

    The problem is that the computer 2 and 3 computer can not see each and other libraries, but both can see computer library 1.  Computer 1 can see the libraries computer both 2 and 3 of the computer.

    All three computers are in the same workgroup.  They are connected with the same username (without password).  Sharing multimedia files are allowed between all computers (and, in fact, the media sharing dialog box shows computer 2 when the 3 computer and vice versa).  On the Vista machines I have the network discovery, file sharing, public folder sharing, and media sharing on.

    What Miss me?  Clues?

    Thanks in advance.

    Hi Keith Spitz,
    Could you see libraries from Vista to Windows 7 computer before?
    Step 1:
    Disable the Antivirus\Firewall temporarily, then check the issue.
    Note: Please make sure that you enable the antivirus software after the test to keep your computer protected.
    Enable or disable the Windows Firewall:
    http://Windows.Microsoft.com/en-us/Windows7/turn-Windows-Firewall-on-or-off
    See also the link below:
    Share your media in Windows Media Player with other people or devices:
    http://Windows.Microsoft.com/en-us/Windows-Vista/share-your-media-in-Windows-Media-Player-with-other-people-or-devices
    Step 2:

    You can also put the computer in a clean boot state, and then search for the question.
    a. put your system in start mode state minimum helps determine if third-party applications or startup items are causing the problem.
    b. If Yes, you need to maybe contact the manufacturer of the program for updates or uninstall and reinstall the program.

    See the following article in the Microsoft KB for more information on how to solve a problem by performing a clean boot in Windows Vista or Windows 7:

    How to solve a problem by performing a clean boot in Windows Vista or in Windows 7?
    http://support.Microsoft.com/kb/929135

    Note: After a repair, be sure to set the computer to start as usual as mentioned in step 7 in the above article.
    Kind regards

    Manasa P - Microsoft technical support.

  • Streaming from other libraries vs play shared files

    I was able to share a folder, that part adds the video library to another local computer, and then ask WMP read a file in this folder (imported into the local library).

    I read help on the "other libraries" function that is related to the streaming of files on home network (and the internet, but this is not my case), having played the other PC (or a digital camera).

    Since I have problem in using this feature, I am writing to ask preliminarly the following:

    Does streaming by using "other libraries" is another way to do the same thing, I did (as described above), or let use more effective protocols than to simply read a shared file using the ethernet Protocol?

    Thank you in advance, regarding

    Ricardo

    There are more effective ways, one is by setting up a 'homegroup' so that all of your computers to share together.  To start, type "homegroup" in the search box of the start menu and you'll find it.

  • Add permission to VM shared without GUI?

    Is it possible to have the authorization adds VM shared without GUI?

    im just install WS8 to my CentOS box (CLI only)

    and I can't connect to my CentOS to WS8 box in my laptop (Windows)

    It's just a matter for the user and the password, I already try my root and all other users in this box, but it keep error invalid user/pass popui

    and the idea?

    Check that the user is listed in /etc/vmware/hostd/authorization.xml in the ACEData block. It is the user you need to sign in so that by using the password for that user on your system. You can change the user listed in ACEDataUser, just restart the vmware-workstation-server service thereafter.

  • Is it possible to send an email to everyone in my address book WITHOUT typing/select each address individually?

    My old e-mail address will be aborted and I need to tell everyone in my address book of Mozilla Thunderbird. Is it possible to send an email to everyone in my address book WITHOUT typing/select each address individually?

    Hello zmerill
    Yes it is possible and simple to do.
    -In the composition of the TB window, display on the left address books
    -Select the address book you
    -Select normally the first contact (left click)
    -by pressing the SHIFT key, select the last contact (-> all selected)
    -just below the last contact, use the button you want.

    In an address book, it is also possible to create a mailing list.

    Stone

  • How to get pictures of my iPhoto library that is saved on time capsule on my MacBook Pro, which has pictures instead of iPhoto?   My old MacBook Pro died.

    How to get pictures of my iPhoto library that is saved on time capsule on my MacBook Pro, which has pictures instead of iPhoto?   My old MacBook Pro died.

    How to import old backups Time Machine photos on a new computer iPhoto libraries

  • How can I transfer a photo library (raw and jpeg files) fram without loss of metadata and keywords?

    How can I transfer my favorite photos library on my MacBook to another library on an external hard drive without losing metadata and keywords?

    If you want to keep the metadata, you must export the images as the current versions, edited. File > export > export... images.  Then you can turn on the indicator "Tile, keys, descriptions words":

    Choose a high quality for JPEG, not to lose quality.  To the RAWs export them under like TIFF picture.

    You can export the RAWs as "file > export > export original unmodified" and keep it RAW, but which will not include the metadata.  And the Photos will allow you to export an XMP file with metadata, but when I tested, it did not apply the metadata when you import the RAW files again. So the best compromise for the RAW format would be to export as TIFF, another lossless format.

Maybe you are looking for

  • Removed Dylibs of Tcl/Tk in El Capitan update

    Hello I upgraded a computer to El Capitan and discovered that a bunch of the dylibs used by Tcl/Tk have been removed from their repertoires by the update.  Img package, for example, consists of a bunch of libraries in System/Library/Tcl/8.5/Img1.4. 

  • Qosmio X 870-152: lack of disk drive Blu - ray after own Win 8.1 installed

    Hello guys,. After a clean install of 8.1 to win Miss drivers thereafter for the built in blu - ray player_.If someone could provide a link to the Toshiba blu - ray Disc Player 3D software or alternative software player which is compatible with this

  • Unable to detect 802.1 x EAP wireless network

    Hello I just got this phone today bike e 2nd GEN when I tried to connect to wifi, it couldn't find my access point to the work. I have this connection and work on my Moto X 2013 and cannot understand why the new e-bike can not even find it. Someone a

  • Partition the drive, then restore from Time Machine?

    An iMac that I just died. She used Time Machine as a backup to an external drive. I want to resurrect the content of the iMac on an existing MacBook Pro, I own. Does make sense to partition the hard drive in the MacBook Pro and then migrate all data

  • HP Envy 13 laptop: how to use the updated drivers in HPSupport

    Hi - I use HP Support Assistant to update the drivers. However when I look on the HP (Software and Driver Downloads) customer support page, there are many pilots appear. I'm not clear if I should go through each of them and install them? What is a li