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?
View 3 Replies
ADVERTISEMENT
Jul 28, 2011
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.
View 8 Replies
View Related
Oct 27, 2010
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.
View 3 Replies
View Related
Mar 26, 2011
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?
View 5 Replies
View Related
Mar 2, 2011
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 )
freeglut3 (for stage)
freeglut3-dev (for stage)
libfltk1.1 (for stage)
libfltk1.1-dev (for stage)
libgtk2.0-dev (for stage)
libltdl7 (for stage)
[Code]...
View 11 Replies
View Related
Mar 18, 2010
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
[code]....
View 4 Replies
View Related
Jul 29, 2011
Judging by the big red box (Vulnerability Warning) on the libpng homepage, a security update is available.
View 4 Replies
View Related
Oct 29, 2010
I'm trying to install SoX, and get through configure fine, but it fails on make with the following:
[Code]....
View 2 Replies
View Related
May 7, 2010
While I was compiling kuickshow I noticed this error:
Code:
src/CMakeFiles/kuickshow.dir/kuickshow_dummy.o
Linking CXX executable kuickshow
/usr/lib/gcc/i486-slackware-linux/4.4.3/../../../libImlib.so: undefined
reference to `png_check_sig'
collect2: ld returned 1 exit status
make[2]: *** [src/kuickshow] Error 1
[Code]...
View 10 Replies
View Related
Mar 26, 2010
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.
View 7 Replies
View Related
Apr 26, 2011
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
View 1 Replies
View Related
Sep 5, 2010
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.
View 5 Replies
View Related
Mar 1, 2010
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:
[Code]....
View 14 Replies
View Related
Apr 6, 2010
I have an existing line of code from a P2 script that I cannot find a solution to converting to P3:
Code:
for i, x in map(None, list1, list2):
I have found the information about converting the simple case:
map(None,x) becomes list(x)
But my googling was unable to find a solution when more than one iterable exists.
View 2 Replies
View Related
Jul 6, 2010
Iam trying to check a value less than or equals 0.The value iam getting is after doing grep a file . but its throwing error .
Code:
When i execute this it throws
Code:
View 8 Replies
View Related
Nov 30, 2010
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.
drivers/net/usb/cdc-phonet.c
Code:
static void rx_complete(struct urb *req)
{
struct net_device *dev = req->context;
struct usbpn_dev *pnd = netdev_priv(dev);
[Code]....
View 1 Replies
View Related
Jul 27, 2010
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.
View 1 Replies
View Related
May 9, 2010
I've searched around and can't find out how to convert a string ( like "12345" ) into an int array ( x[ 5 ] = { 1, 2, 3, 4, 5 } ; ).
View 4 Replies
View Related
Nov 24, 2010
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[])
{
[Code]....
View 5 Replies
View Related
Jan 14, 2010
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?
View 4 Replies
View Related
Jun 20, 2011
I need to convert some .flac files into .mp3.
I found this script:
#!/bin/bash
FLAC=$1
MP3="${FLAC%.flac}.mp3"
[ -r "$FLAC" ] || { echo can not read file "$FLAC" >&1 ; exit 1 ; } ;
metaflac --export-tags-to=- "$FLAC" | sed 's/=(.*)/="1"/' >tmp.tmp
[Code].....
And I need it to run it from outside of a directory for several directories.
I need to run it from /dir for /dir/dire*
View 4 Replies
View Related
Jan 1, 2011
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..
View 1 Replies
View Related
Aug 10, 2009
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.
View 14 Replies
View Related
Jun 6, 2011
How does one convert from DD/MM/YYYY to YYYYMMDD?
Code:
06/06/2011
06/06/2011
to
Code:
20110606
20110606
View 6 Replies
View Related
Jul 2, 2010
convert string to long ?
View 4 Replies
View Related
Apr 5, 2010
Someone know how i can convert from hex string to double in c/c++?? Example 40668472B020C49C is 180.139
reference page: http://babbage.cs.qc.edu/IEEE-754/64bit.html
View 10 Replies
View Related
Sep 19, 2010
main()
{
unsigned long long tsc_start, tsc_end;
tsc_start = get_tsc();
// execute some code
[code]....
View 1 Replies
View Related
Jul 15, 2010
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.
View 2 Replies
View Related
Feb 22, 2010
Code:
FILE_SIZE=`find /var/logs/ -type f -mtime +5 | wc -c`
im trying to convert FILE_SIZE into megabytes
[code]....
View 8 Replies
View Related
May 3, 2010
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?
View 3 Replies
View Related