ÇóÖú:Linux Ï libpsd ±àÒ벻ͨ¹ý - C/C++ / CÓïÑÔ
Linux»·¾³Ï±àÒë²»¹ý ÓÐûÓбàÒëͨ¹ýµÄÐÖµÜ
Libjpeg: ÎÒÒѾ°²×°
Zlib: ÏÂÔغó²»ÖªµÀÈçºÎʹÓÃ
Libxml: ÕÒµ½µ½ÊÇlibxml2
Libexif: ÎÒÒѾ°²×°
ÇóÖúһϹýÀ´ÈË£¬ÊDz»ÊÇÎÒµÄÒÀÀµ°ü°æ±¾²»¶Ô£¬¶¼ÊÇÏÂÃæÕâÖÖ´íÎó
/home/hades/workspace/prasepsd/Debug/../src/thumbnail.c:361: undefined reference to `jpeg_read_scanlines'
/home/hades/workspace/prasepsd/Debug/../src/thumbnail.c:383: undefined reference to `jpeg_finish_output'
/home/hades/workspace/prasepsd/Debug/../src/thumbnail.c:343: undefined reference to `jpeg_input_complete'
/home/hades/workspace/prasepsd/Debug/../src/thumbnail.c:388: undefined reference to `jpeg_input_complete'
./src/thumbnail.o: In function `psd_jpeg_image_stop_load':
/home/hades/workspace/prasepsd/Debug/../src/thumbnail.c:405: undefined reference to `jpeg_destroy_decompress'
/home/hades/workspace/prasepsd/Debug/../src/thumbnail.c:408: undefined reference to `jpeg_finish_decompress'
/home/hades/workspace/prasepsd/Debug/../src/thumbnail.c:409: undefined reference to `jpeg_destroy_decompress'
collect2: ld returned 1 exit status
make: *** [prasepsd] Error 1
ÎÒ¸øÄã·¢ÏûÏ¢ÁË£¬ÄÜÓʼþÂð£¿
ÎÒ°²×°ÁËÁ½¸ö£¨Libexif¡¢Libexif£© ¶¼make installÁË£¬±àÒëlibpsd²»»áȥϵͳÀïÃæÕÒô£¿
¸Ðл¸÷λ´ïÈË£¬±àÒëͨ¹ýÁË£¬¿Éϧlibpsd ²»ÄܽâÎöCS4°æ±¾£¬¿´À´Ö»ÄܶÁGIMPÔ´ÂëÁË¡£
±àÒëlibpsd
1¡¢ubuntuʹÓÃ
Ïà¹ØÎÊ´ð£º
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
ÈçÌ⣬C/C++ÖеÄexeclÔõôµ÷ÓÃдºÃµÄjava³ÌÐò£¬
execl("/opt/java1.5/bin/java","MyClass",NULL);
ÕâÑùµÄ²»ÐÐŶ¡£
²»»á.
ÔËÐÐjava³ÌÐò
ÕÒ¹¤¾ß²é¿´Ò»ÏÂÄǸö³ÌÐòµÄÃüÁîÐÐ
ËÑË÷Ï£ºjni ......
ÓÐÒ»10*10¾ØÕ󣬳ýÈ¥µÚÒ»¸öµã£¨0£¬0£©ºÍ×îºóÒ»µã£¨9£¬9£©£¬»¹Óа˸öµãΪ1£¬ÆäËû¶¼Îª0£¬ÒªÇóÓöþάÊý×é±íʾ¡£°Ë¸öµãÊÇËæ»úÉú³ÉµÄ£¬±àдÏà¹Ø³ÌÐò±íʾ¾ØÕóËùÓпÉÄÜÇé¿ö¡£
ÕæÐÄÇó½Ì¸÷λ¸ßÊÖ£¬°¥£¡±¾ÈËÌ«²ËÁË£¡ºÇºÇ£¡
......
ΪʲôÎҵijÌÐòµ÷ÓÃXMLÅäÖÃÎļþÖеİ¢À²®ÎÄÏÔʾ²»³öÀ´£¿ÆäËûµÄÓïÖÖ¶¼¿ÉÒÔ£¬ÈçÖÐÎÄ£¬Ó¢ÎÄ£¬µÂÎĶ¼¿É¡£
ÎÒ½«XMLµÄ±àÂë¸ÄΪutf-8ºÍunicodeµÄµ½µÃ½á¹û¶¼Ò»Ñù.
°¢À²®ÎĵÄ×Ö¿âÄãÓÐô£¿
ÓÐ,ÎÒµÄEXEÊÇ·ÅÔÚpc»úÉÏÖ´Ðе ......
ͦ·±Ëö£¬Ö®Ç°·¢µÄÌû×Ó£¬·Öֵ̫µÍÏÖÔÚÖØ·¢Ò»¸ö¡£»¶Ó¸÷λ´óÏÀ~~
#include "stdlib.h"
#include "math.h"
#include "stdio.h"
float objfx(float x[]);
void constraint(float x[] ......