Programming :: Convert XImage To PNG Using Libpng?
Dec 16, 2010
i was able to use XGetImage to get an image from desktop on my Linux, not the problem is that, can i use this output XImage and convert it to png? or even save this XImage to file and load it to XImage again later?
Trying to run Sauerbraten and Frozen-Bubble on Slackware 13.1 - I get sauerbraten:
Code: libpng warning: Application was compiled with png.h from libpng-1.4.2 libpng warning: Application is running with png.c from libpng-1.2.43 libpng error: Incompatible libpng version in application and library frozen-bubble:
Code: libpng warning: Application was compiled with png.h from libpng-1.4.2 libpng warning: Application is running with png.c from libpng-1.2.43 libpng error: Incompatible libpng version in application and library
I've tried recompiling the libpng 1.4.2 package with the ln -sf libpng.so.3 libpng.so.0 uncommented from the Slackbuild script, and recompiled gd, and still haven't had any success.
Seems like I'm having a problem with libpng. I've created a simple SDL app and last night it worked perfectly. Today, I tried it out again and it gave me this error.
Code:
libpng warning: Application was compiled with png.h from libpng-1.4.3 libpng warning: Application is running with png.c from libpng-1.2.44 libpng error: Incompatible libpng version in application and library
I didn't mess with anything related to libpng and I'm not sure what the problem is. I didn't even know I had libpng-1.2.44 installed. I'm not sure if this is an SDL_image problem or libpng or if it's just my path is wrong.
Do I have the convert the int to a string using stringstream then convert the string to a char? or is there a more direct way?Also is there a way to tell the length of a int?
I got the following error while running make on stage-3.2.2 after looking looking around the web I have already installed these packages: (im working on ubunto i686 -> if it helps :P )
compile slim-1.3.1 (last stable) on slackware-current but it failed. So I use svn version, compilation worked but when I launch slim, X is started but slim crashed.I have this message in slim.log :
Code: /usr/bin/xauth: creating new authority file /var/run/slim.auth X.Org X Server 1.7.5
I'm primarily trying to use kmess but have found the same problem in using kopete. A lot of the icons are missing and both applications crash. Running them both in the terminal reveals the problem:
Code: libpng warning: Application was compiled with png.h from libpng-1.2.37 libpng warning: Application is running with png.c from libpng-1.4.1 in kopete: Code: libpng warning: Application was compiled with png.h from libpng-1.4.1 libpng warning: Application is running with png.c from libpng-1.2.43
I only have one package installed: libpng-1.4.1, although I can see that it contains both of the versions Both apps crash as a result of this error, curiously each for the opposite reason! I have tried the kmess slackbuilds from slacky.eu and slackbuilds.org, I have also tried compiling from source myself. I guess I need to force kmess to compile using the newer libpng, although I'm not really sure how to do that.
I want to load data into mysql database,I am having a xls file want to convert it into csv file to do it.I am running the script on apache server,was able to convert and I could see the output file,when I execute the php script in command line,but when I run it on the browser the file is not saved..??? .Whether something has to be configured on apache
I am trying to install gnome-libs package as prereq to install Oracle 10.2 on Red Hat 5. It requires libpng.so.2 while I have libpng.so.3 installed on my system. I tried to do a link: ln -s /usr/lib/libpng.so.3 /usr/lib/libpng.so.2, then run /sbin/ldconfig and rebbot as well but it continues to ask for this library.
libgmp If you found slackpkg failed for this upgrade because of libgmp not found you will need to grab the gmp package and install manually. This way ought to work:
I am trying to write a kernel module which is the combination of the usb driver and a network driver, now whenever the data is recieved by the usb driver it will be in struct urb, but the data that is required by the net driver is sk_buff, now how do i convert a urb to sk_buff, i found something similar is being done in the phonet protocol, but i couldnt understand, howexactly this is being done. Can someone explain this code.
I have the source code for the dll file, and I want to convert it to .so file.the dll file has declared some functions like this in the .c file declspec (dllexport) etc. I want to use this program in linux(open suse). How to do it? Is it through Wine? Then how to do it exactly.
I'm learning C and trying to write a program to convert gigabyte into byte. It will take 50% of the value given and then convert that value into byte. But the problem is the output goes into minus / negative value. Like, if I enter 22, I get output: -2147483648.
Code:
#include <stdio.h> #include <math.h> main (int argc, char* argv[]) {
I wrote a bash script a few months ago and now I want to convert it to a C program. However, i used awk a lot in my script, and I don't know what to use in place of awk. The awk calls are simple, like string splitting and math, but I don't know of any replacement for the string splitting function. Are there any C libraries that include some sort of string splitting function?
Im new to linux Iam pursuing bachelors in computer science engineering.... my final year project is to develop a "html to pdf converter using linux"... i have some basic knowledge of commands used in unix
1) Where can i get the basic idea about the existing converters... their pros and cons... .... programming...
2) Any kind of material or source where i can get basic idea of programming used for converting html pages that are linked into a single pdf..
I bet this is a Perl one-liner (or very simple python script).I have a tab separated files in which each row looks like:Unique_Eight_Character_Sequence [3 tabs] data1~moredata1~moredata1 [3 tabs] data2~ moredata2~ moredata2 ... dataN~.The output file should have each column converted into a row (with the unique character sequence copied in for the first column), and then each "~" replaced by a comma.
Can anyone please suggest me how can we convert a wide char data in linux which is of 32 bit to a 16bit data. I have a file which has 16bit binary data? Could any one please give me ideas.
I'm trying to migrate my company server to linux, but i have a program that is designed in access what is the best way to move access tables to a mysql database so that i can program it in PHP?