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?
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
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?
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]
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.
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
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
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?
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;
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:
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
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.
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.
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.
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.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
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 ?
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?
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
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.
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..
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?
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?
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?
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
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?
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.
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