64bit OS에서 NCAR Graphics를 사용할 때 XWD파일이 이상한 문제 해결법

@ 좀 전문적인 것입니다만 제 기억을 위해서 기록합니다.

NCAR Graphics를 64bit OS에서 설치하면 X Windows dump 파일인 XWD 파일이나 기타 비트맵파일이 제대로 표시되지 않는 문제가 발생한다. 이것은 64bit OS가 되면서 long형이 8 byte 크기로 되고, /usr/include/X11/Xlib.h 파일에서 정의된 XColor 구조체가 long형을 포함하고 있어서 발생하는 문제이다. /usr/include/X11/XWDFile.h에 정의된 XWDColor 구조체가 제대로 된 정의를 가지고 있다. 이것을 해결하기 위해서는 다음의 과정을 거친다.

1. ncarview/src/lib/libncarg_ras/xwd.c 파일에서 대소문자를 구분해서 XColor를 모두 XWDColor로 바꾼다.
2. "_swaplong((char *) &xcolors[i].pixel, sizeof(long));"인 것을 "_swaplong((char *) &xcolors[i].pixel, sizeof(xcolor[i].pixel));"로 수정한다. 정확히 이 패턴이 두 번 나타나므로 두 군데에서만 고친다.

위의 두 가지를 고친다음 다시 NCAR Graphics를 컴파일해서 사용하면 된다.
크리에이티브 커먼즈 라이센스
Creative Commons License

Posted by 다꺼

2006/09/14 18:00 2006/09/14 18:00
, , ,
Response
36 Trackbacks , No Comment
RSS :
http://9nang.net/rss/response/138

Trackback URL : 이 글에는 트랙백을 보낼 수 없습니다

Trackbacks List

  1. Xanax with klonopin.

    Tracked from Klonopin wafers. 2010/03/21 11:19 Delete

    Klonopin addiction. Klonopin ratings.

  2. Long term ambien.

    Tracked from Buy ambien. 2010/03/21 18:21 Delete

    Generic ambien. Buy ambien online. Ambien.

  3. Ambien cr.

    Tracked from Ambien side effects. 2010/03/23 08:13 Delete

    Ambien. Ambien addiction. What color is ambien. Canada overnight ambien. Ambien drug screen.

  4. Buy klonopin.

    Tracked from Generic klonopin. 2010/03/23 16:23 Delete

    Klonopin withdrawal side effects. Klonopin. Klonopin euphoria. Klonopin snort.

  5. Tramadol hcl.

    Tracked from Tramadol side effects. 2010/03/24 03:08 Delete

    Taking tramadol while pregnant. Tramadol cod. Tramadol fda. Tramadol. Tramadol no rx 180 pills.

  6. Valtrex.

    Tracked from How does valtrex affect coumadin. 2010/03/24 18:48 Delete

    Valtrex. Valtrex 500. Buy valtrex without prescription. Valtrex als.

  7. Buy valtrex at msn.

    Tracked from Valtrex. 2010/03/25 03:11 Delete

    Use of the drug valtrex.

  8. Percocet.

    Tracked from Dosages for percocet. 2010/03/25 19:13 Delete

    Percocet 93-490. M360 percocet. Percocet.

  9. Side effects of codeine.

    Tracked from Codeine. 2010/03/26 19:16 Delete

    Codeine combined pseudoephedrine. How long does codeine stay in your system. Allergy to codeine sponsored. Codeine. Apap codeine pill. Codeine withdrawal. London drugs cough syrup with codeine.

  10. Ativan.

    Tracked from Side effects of ativan. 2010/03/28 03:14 Delete

    Ativan without prescription. Can you give ativan to a dog. Ativan drug information. Ativan fed ex us pharmacy no prescription.

  11. Ambien lawsuit.

    Tracked from Ambien. 2010/03/28 12:51 Delete

    Long term ambien. Generic ambien. Ambien side effects. Cheap ambien. Buy ambien online. Ambien. Buy ambien.

  12. 40 mg ambien.

    Tracked from Ambien. 2010/03/29 03:08 Delete

    Ambien and dehydration. Taking xanax with ambien dangers. Ambien cr. Cheap ambien. Buy ambien online.

  13. Buy ambien online fast.

    Tracked from Ambien cr complaints. 2010/03/30 16:15 Delete

    Ambien side effects. Ambien visuals online. Ambien.

  14. Vicodin.

    Tracked from Buy vicodin online. 2010/03/31 04:27 Delete

    No prescription vicodin. Vicodin side effects. Vicodin no prescription. Vicodin. Vicodin without prescription. Vicodin with no membership fees.

  15. Ambien cr.

    Tracked from Ambien us pharmacy. 2010/04/01 04:35 Delete

    Purchasing ambien online. Ambien. Where can i buy ambien for next day delivery. Ambien cr addiction. Ambien overnight. Ambien safety profile.

  16. 1mg finasteride for bph.

    Tracked from Finasteride. 2010/04/01 23:49 Delete

    Prostate finasteride. Finasteride. 1mg finasteride for bph. Propecia side effects finasteride. Generic finasteride.

  17. Buy valtrex online.

    Tracked from Side effects for valtrex. 2010/04/04 00:59 Delete

    Valtrex. Valtrex information.

  18. Cheap tramadol.

    Tracked from Tramadol. 2010/04/05 11:34 Delete

    Tramadol cod. Cheap tramadol. Tramadol.

  19. Xanax.

    Tracked from Buy xanax. 2010/04/06 08:56 Delete

    Buy 180 xanax 2mg. Xanax as a party drug. Xanax. Generic xanax 2 mg no prescription. Ativan vs xanax.

  20. Ultram.

    Tracked from Buying ultram no prescription. 2010/04/06 12:57 Delete

    Snort ultram. Ultram er abuse. Ultram. Buy ultram.

  21. Cialis.

    Tracked from Cialis for free. 2010/04/07 00:44 Delete

    Buy cialis. Cialis. Cialis prescription. Cheapest cialis. Generic cialis. Discount cialis.

  22. Percodan.

    Tracked from Percodan no prescription. 2010/04/08 19:08 Delete

    Percodan no prescription. Percodan drug information percodan side effects. Percodan percocette. Testing for percodan in the human body. Buy percodan online.

  23. Viagra.

    Tracked from Viagra. 2010/04/10 11:19 Delete

    Viagra. Re viagra cello. Viagra marketing. Discount viagra.

  24. Bactrim

    Tracked from Allergic Reaction To Bactrim 2010/05/12 06:24 Delete

    Bactrim Generic

  25. Casino 1273897929

    Tracked from Casino 1273897929 2010/05/15 23:32 Delete

    Casino 1273897929

  26. Casino 1276950831

    Tracked from Casino 1276950831 2010/06/19 23:55 Delete

    Casino 1276950831

  27. Amoxicillin online.

    Tracked from Amoxicillin online no prescription. 2010/07/28 09:12 Delete

    Buy amoxicillin online cheap amoxicillin. Order amoxicillin online. Amoxicillin online no prescription. Amoxicillin online homepage.

  28. Hydrocodone buy online.

    Tracked from Buy hydrocodone online medical records required. 2010/08/01 11:20 Delete

    Hydrocodone online prescription.

  29. Order percocet online.

    Tracked from Buy percocet online without a prescription. 2010/08/02 08:23 Delete

    Order percocet online. Percocet online. Purchase vicodin percocet online. Buy percocet online.

  30. Cheap oxycodone.

    Tracked from Buy cheap oxycodone online. 2010/08/03 06:04 Delete

    Cheap oxycodone.

  31. Imitrex online.

    Tracked from Canada online imitrex oral. 2010/08/04 06:21 Delete

    Imitrex pharmacy online. Order imitrex online.

  32. Uy norco.

    Tracked from Uy norco. 2010/08/05 07:05 Delete

    Uy norco.

  33. Cheap xanax online.

    Tracked from Hysbysfwrdd cymrux xanax cheap phentermine. 2010/08/06 05:51 Delete

    Xanax cheap. Buy cheap xanax.

  34. Buy medication ativan cheap 34542.

    Tracked from Cheapest ativan online. 2010/08/07 06:03 Delete

    Cheapest ativan online. Buy medication ativan cheap 34542. Ativan buy cheap.

  35. Order lipitor.

    Tracked from Order lipitor. 2010/08/08 05:39 Delete

    Order lipitor.

  36. Order tramadol.

    Tracked from Phendimetrazine order phentermine adipex tramadol. 2010/08/09 06:41 Delete

    Brand ultram order ultram tramadol pain medicine. Phendimetrazine order phentermine adipex tramadol. Order tramadol.

« Previous : 1 : ... 52 : 53 : 54 : 55 : 56 : 57 : 58 : 59 : 60 : ... 165 : Next »

블로그 이미지

Don't be idle 그냥... 살아온 30여년... 게으름, 이제 나가라!

- 다꺼

Notices

  1. 득도

Archives

Authors

  1. 다꺼

Calendar

«   2012/02   »
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29      

Site Stats

Total hits:
586248
Today:
44
Yesterday:
236