Debian Programming :: How To Include Version Information In SO Library

Oct 8, 2014

Suppose I have the library code in library.cpp. I found that to include the version information in the .so library, I had to use these command forms:

Code: Select allg++ -Wall -fPIC -c library.cpp
g++ -shared -Wl,-soname,library.so.0 -o liblibrary.so.0.1

The howto then continued to recommend creating symbolic links pointing at the newly compiled library. [URL] ....

The result is, during the booting sequence, I am receiving this error:

Code: Select alllibsystemd-login.so.1: no version information available (required by /usr/bin/dbus-daemon).

The library is the one I am working on.

View 5 Replies


ADVERTISEMENT

Programming :: Add Version Information To An Executable?

Mar 2, 2010

when compiling a c++ program in g++ on Linux, how can I add version information to that executable and if possible is there a Linux utility to read the version information?

View 2 Replies View Related

Debian :: Running Synaptic - No Version Information Available

Aug 6, 2010

I have installed Openshot Video editor, then it did not work (due to some python bindings I guess) so I uninstalled it. After that everything seems to start failing including, running aptitude and apt-get. Here is a message when I try to run apt-get from command line (sudo apt-get install -f)

Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up shared-mime-info (0.71-3) .....

Here is I am trying to run synaptic from command line:
synaptic: /usr/local/lib/libz.so.1: no version information available (required by /usr/lib/libxml2.so.2)
/usr/bin/python: /usr/local/lib/libz.so.1: no version information available (required by /usr/bin/python)
/usr/bin/python: /usr/local/lib/libz.so.1: no version information available (required by /usr/bin/python)
synaptic: symbol lookup error: /usr/lib/libxml2.so.2: undefined symbol: gzopen64

This is from "/usr/lib$ ls libz* -al"
-rw-r--r-- 1 root root 90284 Dec 28 2009 libz.a
lrwxrwxrwx 1 root root 16 Jun 29 23:18 libzbar.so.0 -> libzbar.so.0.2.0
-rw-r--r-- 1 root root 183284 Jun 9 11:13 libzbar.so.0.2.0
lrwxrwxrwx 1 root root 18 Jun 15 21:13 libzephyr.so.4 -> libzephyr.so.4.0.0
-rw-r--r-- 1 root root 51396 Nov 29 2009 libzephyr.so.4.0.0
lrwxrwxrwx 1 root root 15 Jun 16 20:40 libz.so -> libz.so.1.2.3.4
lrwxrwxrwx 1 root root 15 Jun 15 20:27 libz.so.1 -> libz.so.1.2.3.4
-rw-r--r-- 1 root root 79980 Dec 28 2009 libz.so.1.2.3.4

View 14 Replies View Related

Debian :: Install Newer Version Of Library In Lenny?

Aug 31, 2010

to install a Python module I need a more recent version of a library (libcurl) that the one available in Lenny. How should I manage it? Shall I just install it manually? Won't it mess the system to have two versions of the same library in the system?

View 1 Replies View Related

Networking :: Include Path Of Exe In Ld Library?

Jul 9, 2009

I am facing the following error while running SplitOff.exe in machine 172.24.130.245 :
Error :
ld.so.1: SplitOff.exe: fatal: libstdc++.so.2.10.0: open failed: No such file or directory.This file is avilabe in ap/local/lib path.
how to include the path of exe in the ld library path [only System admin has permission]

View 10 Replies View Related

Debian Programming :: HTML5 - How To Include Another File

Jun 15, 2013

I am trying to re-write my local web pages in HTML5. My original pages used an include file so that I had a consistent set of links on the top of each page. I used - require("link_list.php");

But this does not seem to be possible in HTML5. I am guessing that there is a way to do this, searching the web suggests object or embed, but these create a new page within my original page, which is not what I want.

View 4 Replies View Related

General :: Information Each Of /rhgb And /vmlinuz Sub Directors Include?

Jan 1, 2011

One question /vmlinuz-2.6.9-34.EL ro root=LABEL=/ rhgb quiet 3 and boot the system. what kind of information each of the /rhgb and /vmlinuz subdirectoris include

View 1 Replies View Related

General :: The X11 Library '-lX11' Could Not Be Found Use Configure Options '--x-include?

Feb 14, 2011

In the process of installing DDD, I get the following error:The X11 library could not be found. Please use the configure options '--x-includes=DIR' and '--x-libraries=DIR' to specificy the X location.I did a "yum install libx11-devel". I was told that the right package was installed

View 1 Replies View Related

Ubuntu :: MySQL Library Version X.x.x Differs From Server Version X.x.x

Jun 4, 2010

Installed Zend Server CE on 10.04 - install mostly fine. But phpmyadmin shows this error; "Your PHP MySQL library version 5.0.83 differs from your MySQL server version 5.1.41" I have followed the Zend online docs and used a DEB install. Why would these versions be different?how do I fix it so that the two are in sync?

View 3 Replies View Related

Debian Programming :: Opcode Collision Detection Library

Mar 2, 2015

I would like to use the collision detection routine from the OPCODE library, newest version 1.3 ... There exist documentations, e.g. Opcode.pdf and OpcodeUserManual.pdf, but they do not agree with the source code, neither the current nor the previous version 1.2.

Any working example to check if to meshes collide? I only would like to define the meshes using triangles and connectivities (no callback function). I started with a code like the following, but not successfully.

#include <Opcode.h>
using namespace Opcode;
int main(void) {
IceMaths::IndexedTriangle *Tri0 = new IceMaths::IndexedTriangle[10];
IceMaths::Point *Pnt0 = new IceMaths::Point[10];
MeshInterface Mesh0;

[Code] ....

View 0 Replies View Related

Debian Programming :: Packaging Shared Library With Python Wrapper

Apr 12, 2014

I have written a shared library and successfully used debhelper 9 to create a Debian package from source using a Makefile generated by cmake. I then went about writing a python wrapper to that library and wish to package that wrapper in with the library so I can have a single distributable rather than 2 separate ones.

All of my attempts so far have me placing my python source and a setup.py file in the same directory as the makefile at the time where I call debuild.

From here I have tried a couple different configurations to my debian/rules file as seen below:

Attempt 1:
# -*- makefile -*-
%:
dh $@ --with-python2 --buildsystem=python_distutils

This try seemed to package up the python stuff nicely but proceeded to ignore my makefile for the shared library and therefore ultimately failed.

Attempt 2:
# -*- makefile -*-
%:
dh $@ --with-python2

This try ran make, but completely ignored the python stuff. From some research I have gathered that the --buildsystem flag tells debuild to ignore any makefiles in the directory, which obviously causes a problem in my case.

Another attempt was to modify the build dependency to first run make and then call the python build process that file looked like this

Attempt 3:
# -*- makefile -*-

build:
dh $@
dh $@ --with-python2 --buildsystem=python_distutils
%:
dh $@ --with-python2 --buildsystem=python_distutils

This appears to somewhat work as both processes do build, but a few of the python files are still not getting installed.

Is this the way I should be going about doing this? I've noticed that most python wrappers tend to package themselves individually and then make that package dependent on the library it is attempting to wrap.

View 0 Replies View Related

Programming :: SDL Static Library - Shared Library ?

Apr 7, 2009

I'm reading about shared, static, and dynamic libraries. What is SDL? Is it static, shared, or dynamic?

I always thought a library would be a lot of .h and .cpp files compiled separately into .o files and then if you compiled your own program you could use the -l parameter to link the library and it was all compiled together. Now I'm not so sure.

I don't even see any SDL .cpp files in my system anywhere. All I have are lots of SDL .h files in /usr/include/SDL and I don't really understand the code in them.

I'm making a wild guess here: SDL is a shared library. SDL itself is NOT compiled into my program, therefore SDL must be on any system my program tries to run on. When I compile and link SDL all it needs is the header files to know what SDL function and objects it can use. And then on every system it uses an already compiled SDL shared library thingy somewhere.

So... where is that part of SDL? All I can find are header files.

I'm thinking the advantage of shared libraries is that someone could say update SDL on their own system and take advantage of the new features without having to download new executables with the new version of SDL compiled into them for every program that uses SDL.

So if I'm making an editor and a game engine and they both use a lot of the same .cpp and .h files that I wrote and I'm tired of updating one and then the other and I need to turn them into a library, then a shared library might be kind of a silly solution. I could just make a static library. Right? Because it's not SDL. Nobody else is ever going to use this library.

View 6 Replies View Related

Ubuntu :: No Version Information Available?

Mar 23, 2011

When I run apt-get command I get some errors. For example this:

Code:
mahmood@localhost:~$ sudo apt-get update
apt-get: /usr/local/lib/libstdc++.so.6: no version information available (required by apt-get)

[code]....

View 14 Replies View Related

Programming :: Convert A Dynamic Library (filename.so) To A Static Library (filename.a)?

Nov 18, 2009

How can we convert a dynamic library (filename.so) to a static library (filename.a) using gnu gcc . Can we get a static library form a dynamic library . I saw a few post in which the conversion form a static library to a dynamic library is mentioned but, unfortunately, not the other way.

View 4 Replies View Related

Slackware :: /usr/lib/libng12.so.0: No Version Information Available?

Feb 15, 2010

I'm trying to install bibble5pro. The only packages they provide are binaries:x86_64.deb, i386.deb and i386.rpmI converted the rpm binary to tgz and installed it on my slackware-current (works fine).Then I tried to install it on slack64-current and slack64 13 (both multilib). I tried both rpm2tgz and deb2tgz. The .tgz package gets converted and then installs without any errors. When I run bibble5pro I get the following:

Code:
Install Path: /opt/bibble5pro
LD_PATH: /opt/bibble5pro/lib:

[code]....

View 4 Replies View Related

Debian Programming :: Cannot Get OpenGL Version

Feb 28, 2014

Running under Debian oldstable:

#include<stdio.h>
#include<stdlib.h>
#include <GL/glew.h>
#include <GL/glext.h>
#include <GL/glut.h>
void init(){
const GLubyte* version = glGetString​(GL_VERSION​); // line 2338
printf("version = %s
", version);
...

The gcc compiler gives me:

code.c: In function ‘init’:
code.c:2338: error: stray ‘342’ in program
code.c:2338: error: stray ‘200’ in program
code.c:2338: error: stray ‘213’ in program
code.c:2338: error: stray ‘342’ in program
code.c:2338: error: stray ‘200’ in program
code.c:2338: error: stray ‘213’ in program

Do I need an additional header?

View 4 Replies View Related

OpenSUSE Install :: Error 11.3: Wrong JPEG Library Version

Aug 10, 2010

Just installed OpenSUSE 11.3 64-bit. I have a program that uses libjpeg, so I installed libjpeg and the dev modules. It has both version 6 and 8 installed. When I run my prog and try to access the lib I get this error: Wrong JPEG library version: library is 80, caller expects 62 This seems a common problem elsewhere. Anyone know how to fix it in 11.3 ?

View 1 Replies View Related

Software :: Newer Library Version Doesn't Satisfy Dependency

Nov 29, 2010

I'm trying to install the Amazon MP3 downloader. They're a bit behind -- they have a downloader available for "Ubuntu 9.04" I downloaded it and tried to install -- but it says there's a dependency that can't be resolved: Dependency is not satisfiable: libboost-filesystem1.34.1 I installed libboost (and a bunch of other sub-items in the Boost library) using the Ubuntu Software Center, but the version of Libboost is higher now than it was in April of 2009 (surprise!) Why doesn't a NEWER version satisfy the dependency? Is there a way to override it?

View 4 Replies View Related

General :: Verify Vmware Drivers To Test Version Information?

Aug 16, 2010

I have noticed kernel.org with kernel releases on the mainline.Example: 2.6.36-rc1 is currently on the mainline. What does it mean? Does it mean that feature changes been freezed.Does it mean "2.6.36-rc1 Released". I have job to verify vmware drivers to test the version information, Can I test it now through compiling for vmware drivers now. Lots of Git activity goes on after kernel comes on mainline. Does it mean our vmware drivers can only be tested after kernel if finally announced

View 4 Replies View Related

Programming :: Why Does Installer Copy *.h Into /usr/include

Sep 15, 2010

I am working on a Linux embedded C++ project. When I do an install, all of the header files are copied into the target at /usr/include/.My question is, why would the target ever need the C++ header files? It seems to me all the target needs is the executables and the library *.so files.I want to remove the installation of header files into the target but I'm afraid I'm missing something.

View 3 Replies View Related

Programming :: Way To Add Some Sort Of I-/usr/include Commands

Feb 27, 2011

I'm learning GTK , and would like to use Codeblocks, and/or KDEvelop, and compile my c files using that, but always get an error about gtk/gtk.h not found, but can't figure out how to add the commands... I normally type gcc -o Program1 main.c `pkg-config --libs --cflags gtk+-2.0` That's a lot to type every time to compile.. Isn't there an easier way, in KDevelop, Monodevelop, and/or Codeblocks to make this step quicker, by adding some sort of I-/usr/include commands, or something?? thanks in advance, =). I looked online for some results, but didn't come across anything handy..

View 1 Replies View Related

Programming :: Include - H Files From Dir Inside Dir?

Feb 2, 2011

Basically I have a dir that contains my makefile and another directory inside this called source this holds main source files. External to these I have a couple of dirs common and drives.

In my make file I use

To include the protoypes from the headers in the folders common and drivers used by source, this works fine. However in common and drivers I use a few variables that are set in the source dir. I set these with externs inside the common and driver files. However I'm sure I should be able to set the directory path for source inside my makefile. So say I have inside source hardware.h with prototypes, I set DINCDIR = -I/Source -I../Drivers -I../CommonFiles

Then from a c file inside my common folder I say #include "hardware.h" the file should be able to see hardware.h and it's protoypes. However I get:

Is there some way I can get the extern dirs to see the source dir?

The set out is something like;

View 1 Replies View Related

Programming :: Best Way To Include Variables In String Using C

Feb 26, 2009

What's the best way to include variables in a string using C,i.e if i want to do the following query in C, how would i do that.How do i build the string variable up in C?

View 1 Replies View Related

Debian Programming :: OpenGL Version Verification - Compiler Error

Feb 5, 2015

I have moved from MS directX to OpenGL on Linux Debian. My computer is running Jessie version with Gimp. I am trying to use several of the gl 4.0 functions but getting compiler error. I check for OpenGL version and appears to be version 1.5 .... How can I verify the correct openGL version and how can I upgrade to a moder version of at least 4.0?

View 4 Replies View Related

CentOS 5 :: PhpMyAdmin Complains Of MySQL Client Library And Server Version Mismatch

Sep 18, 2010

Summary: Does a discrepancy between MySQL client library 5.0.x and MySQL server of 5.1.50 cause "inconsistent behavior", as reported by phpMyAdmin? The longer version: Windows Sysadmin taking the plunge into Linux. I tried to spare you all the rookie questions and did a fair bit of reading. I'm rather happy I was able to get CentOS 5.5 installed and running, configured iptables, got the kernel updated, Apache, MySQL and PHP installed. Then upgraded PHP to 5.2 after I figured out how repos and priorities work.

I got phpMyAdmin installed and running, then decided to upgrade from 2.11 to 3.3.7 but it keeps complaining that my MySQL client libraries are something like 5.0.63, while my server is 5.1.50, and this may cause "inconsistent behavior" or something of the like. So, feeling industrious, I decided to find an updated client.

MySQL-client-community-5.1.50-1.rhel5.i386.rpm

But it wouldn't let me install it as it conflicted with the default mysql-server installation. I also couldn't remove just the old client, to update to a newer one. So I blew away everything mysql on my server and installed the above client

MySQL-server-community-5.1.50-1.rhel5.i386.rpm

and that server file. I'm assuming I'm missing dependencies now as phpMyAdmin claims it can't load the mysql extension. Attempting to 'yum' php-mysql tried to install 'mysql' as a dependency, which immediately conflicted with the files I'd installed. At this point I'm wondering if I'm closing in on successfully installing a version that phpMyAdmin doesn't complain about, or if I should even care that it is complaining and just go back to all the repo versions of everything.

# rpm -e MySQL-shared-community-5.1.50-1.rhel5.i386.rpm
error: package MySQL-shared-community-5.1.50-1.rhel5.i386.rpm is not installed

View 4 Replies View Related

Programming :: View / Edit C Include Path?

Jul 5, 2010

For gcc, it seems that there are multiple include paths like /usr/include and /usr/src/linux/include. How do I check the current include path for gcc via command line? How do I edit it?

What about for cc?

View 9 Replies View Related

Programming :: How To Include Variables In System() Calls

Mar 12, 2010

I need to include variables in a system() call. This is that I have:

[code]#include <iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;

[Code]....

P.S.: I know this is a pointless redundant program, but it's part of a larger project learning process.

View 10 Replies View Related

Programming :: Include Common Elements On Every Page?

May 16, 2010

I am trying to learn how to include common elements on every page. At first I made the mistake of calling it ssi but I do not think that is correct in php5. I downloaded phpb3 to look at and they are not doing it that way. they do it like this.
Code...

Problem is I can not find any articles that explain it. I even looked at the php manual and did not find it. Could someone explain this or point me in the right direction.

View 1 Replies View Related

Programming :: Include Boost In Eclipse Project?

Dec 14, 2010

I'm using Eclipse to build a small c++ program using boost.

Code:

#include<iostream>
#include<string>
#include <boost/regex.hpp>

[code]....

I can right click on boost::regex and it takes me to the header file regex_fwd.hpp, but when I go to build it, it gives me the error:

Code:

DescriptionResourcePathLocationType
/usr/include/boost/regex/v4/basic_regex.hpp undefined reference to `boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> >

[code]...

View 6 Replies View Related

Programming :: QT #include <QGLWidget> No Such File Or Directory

May 30, 2011

I have installed QT on Slackware 13.37 x64 and when I create gui project it works ok, but I need OpenGL.When I add #include <QGLWidget>I get error No such file or directory there is my env

Quote:

CPLUS_INCLUDE_PATH=/usr/lib/qt/include
MANPATH=/usr/local/man:/usr/man:/usr/lib/java/man:/usr/share/texmf/man
KDE_MULTIHEAD=false
HZ=100

[code].....

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved