1/1

Installed python cgkit and sitex air renderer under Windows10

最後のPython2.7の64bit版をwindows10にインストールしました。
python cgkitをインストールし、旧RenderMan互換レンダラーであるsitex air rendererを利用することにしました。

■手順
以下からいくつかのライブラリをダウンロードします。

http://www.lfd.uci.edu/~gohlke/pythonlibs/


■pipの設定
>python -m pip install --upgrade pip
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting pip
Downloading https://files.pythonhosted.org/packages/54/0c/d01aa759fdc501a58f431eb594a17495f15b88da142ce14b5845662c13f3/pip-20.0.2-py2.py3-none-any.whl (1.4MB)
|################################| 1.4MB 591kB/s
Installing collected packages: pip
Found existing installation: pip 19.2.3
Uninstalling pip-19.2.3:
Successfully uninstalled pip-19.2.3
Successfully installed pip-20.0.2

■pygameインストール
>pip install pygame-1.9.6-cp27-cp27m-win_amd64.whl
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Processing c:\users\yokamak\downloads\pygame-1.9.6-cp27-cp27m-win_amd64.whl
Installing collected packages: pygame
Successfully installed pygame-1.9.6

■odeインストール
>pip install ode-0.15.2-cp27-cp27m-win_amd64.whl
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Processing c:\users\yokamak\downloads\ode-0.15.2-cp27-cp27m-win_amd64.whl
Installing collected packages: ode
Successfully installed ode-0.15.2

■PyOpenGLインストール
>pip install PyOpenGL-3.1.5-cp27-cp27m-win_amd64.whl
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Processing c:\users\yokamak\downloads\pyopengl-3.1.5-cp27-cp27m-win_amd64.whl
Installing collected packages: PyOpenGL
Successfully installed PyOpenGL-3.1.5

■cgkitインストール
>pip install cgkit-2.0.0-cp27-none-win_amd64.whl
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Processing c:\users\yokamak\downloads\cgkit-2.0.0-cp27-none-win_amd64.whl
Installing collected packages: cgkit
Successfully installed cgkit-2.0.0

■インストールしたものの内容確認
C:\Users\yokamak\Downloads>pip freeze
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
cgkit==2.0.0
ode==0.15.2
pygame==1.9.6
PyOpenGL==3.1.5

■PILのダミーをインストール、自動的にPillowがインストール
>pip install "PIL-2.0+dummy-py2.py3-none-any.whl"
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Processing c:\users\yokamak\downloads\pil-2.0+dummy-py2.py3-none-any.whl
Collecting Pillow>=2.0
Downloading Pillow-6.2.2-cp27-cp27m-win_amd64.whl (1.9 MB)
|################################| 1.9 MB 3.0 MB/s
Installing collected packages: Pillow, PIL
Successfully installed PIL-2.0+dummy Pillow-6.2.2

■python cgkitの動作確認。

\cgkit>viewer.py demo1.py
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html

\cgkit>viewer.py demo2.py
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html

\cgkit>viewer.py demo3.py
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html


■テクスチャを貼るシーンのロード失敗。Pillowは対応しない。

\cgkit>viewer.py simplescene.py
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
Texname: 1
Loading "uvmap.png"...
Traceback (most recent call last):
File "C:\Python27\Scripts\viewer.py", line 699, in
viewer.run()
File "C:\Python27\lib\site-packages\cgkit\tool.py", line 198, in run
self.action()
File "C:\Python27\Scripts\viewer.py", line 384, in action
self.draw(self.cam, self.width, self.height)
File "C:\Python27\Scripts\viewer.py", line 676, in draw
renderer.paint(root)
File "C:\Python27\lib\site-packages\cgkit\glmaterial.py", line 105, in loadTexData
self._passPILImage(img)
File "C:\Python27\lib\site-packages\cgkit\glmaterial.py", line 141, in _passPILImage
self.texData(w, h, format, GL_UNSIGNED_BYTE, img.tostring())
File "C:\Python27\lib\site-packages\PIL\Image.py", line 779, in tostring
"tostring() has been removed. Please call tobytes() instead."
NotImplementedError: tostring() has been removed. Please call tobytes() instead.

■レンダリングの確認、scitex air rendererを使用する。

\cgkit>render.py -rair demo1.py
Exporting main.rib...
1 passes...
Compiling shaders...
Preprocessing time: 0s
Rendering "out.tif" (frame 0)...
Rendering time: 2s

\cgkit>render.py -rair demo2.py
Exporting main.rib...
1 passes...
Compiling shaders...
Preprocessing time: 0s
Rendering "out.tif" (frame 0)...
Rendering time: 1s

■PILの削除
\cgkit>pip uninstall PIL
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Found existing installation: PIL 2.0+dummy
Uninstalling PIL-2.0+dummy:
Would remove:
c:\python27\lib\site-packages\pil-2.0+dummy.dist-info\*
Proceed (y/n)? y
Successfully uninstalled PIL-2.0+dummy

■内容確認
\cgkit>pip list
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Package Version
---------- -------
cgkit 2.0.0
ode 0.15.2
Pillow 6.2.2
pip 20.0.2
pygame 1.9.6
PyOpenGL 3.1.5
setuptools 41.2.0

■Pillowの削除
\cgkit>pip uninstall Pillow
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Found existing installation: Pillow 6.2.2
Uninstalling Pillow-6.2.2:
Would remove:
c:\python27\lib\site-packages\pil\*
c:\python27\lib\site-packages\pillow-6.2.2.dist-info\*
Proceed (y/n)? y
Successfully uninstalled Pillow-6.2.2

■内容確認
\cgkit>pip list
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Package Version
---------- -------
cgkit 2.0.0
ode 0.15.2
pip 20.0.2
pygame 1.9.6
PyOpenGL 3.1.5
setuptools 41.2.0

■PILのインストール
最後にpython cgkitは、pillowではなくてPILでないとテクスチャがはりつけられないので、Windows用のbinary installした。
thank you. ありがとうございます。

PIL-1.1.7.win-amd64-py2.7.exe

■Windows Compiled Libraries
以下からダウンロード

https://github.com/lightkeeper/lswindows-lib/blob/master/amd64/python/PIL-1.1.7.win-amd64-py2.7.exe?raw=true

sitex air rendererのダウンロード


http://www.sitexgraphics.com/html/download.html

python cgkitのサンプル


cgkitサイトのtutorialからdemoファイルを入手します。
http://cgkit.sourceforge.net/tutorials/demo1.html
http://cgkit.sourceforge.net/tutorials/demo2.html
http://cgkit.sourceforge.net/tutorials/demo3.html


コマンドプロンプトから
 > viewer.py demo3.py

マウス alt+左ドラッグでカメラ目線。

sitex air rendererでレンダリングの確認
 > render.py -rair demo3.py


以下は
http://cgkit.sourceforge.net/tutorials/renderman.html
 > render.py -rair simplescene.py

cgkiA.jpg
ありがとうございます。
  • -
  • -

Sitex Air Renderer and Python cgkit

11年前の記事Happy Buddha!
http://rman.sakura.ne.jp/sb/log/eid62.html

python2.7でcgkitを扱う。sitex airでレンダリング。Happy Buddha
Happy Buddha

cgkitの良いところは、RIBで出力した設定を挿入して、レンダラーに合わせて設定できるところ。Airspace(windows only)を使って、shaderやlightの設定を、レンダリングして、スクリプトを参考にcgkitに挿入した。

以下、スクリプトbuddha_air.py
ありがとうございます。

######################################################################
# Main file for rendering the landscape image
######################################################################
# sitex air renderer and python2.7 cgkit

g=Globals(rib="""Option "occlusion" "prepass" [1]

# the prepass uses indirect attributes for the occlusion call

Attribute "indirect" "maxerror" [0.1]
Attribute "indirect" "integer nsamples" 64
Attribute "indirect" "maxhitdist" 6
Attribute "indirect" "maxpixeldist" 10
Imager "background" "color background" [0.2 0.4 0.6]

Option "searchpath" "shader" "C:/Program Files (x86)/AIR//shaders:C:/Program Files (x86)/AIR//usershaders:&"
Imager "VBgEnvironment"
"float Intensity" [1]
"string EnvironmentName" ["C:/Program Files (x86)/AIR/texture/DebevecGroveProbe.tx"]
"string EnvironmentSpace" ["world"]
"float EnvironmentBlur" [0]
#UseFrames 0
Environment "envMap"
"string MapName" ["C:/Program Files (x86)/AIR/texture/DebevecGroveProbe.tx"]
"float MapIntensity" [1]
"float MapBlur" [0.01]
"float MapSamples" [4]
"string MapSpace" ["world"]
"float RotateX" [90]
"float RotateY" [0]
"float RotateZ" [0]
"float ReflectionVisibility" [1]
"float ReflectionIntensity" [1]
"float ReflectionAddBlur" [0]
"float IndirectVisibility" [1]
"float IndirectIntensity" [1]
"float IndirectAddBlur" [0]
"float CameraVisibility" [0]
"float CameraIntensity" [1]
"float CameraAddBlur" [0]
""",
resolution = (320, 240),
#pixelsamples=(4,4),
#shadingrate=0.25,
#pixelfilter=("gaussian",(2,2)),
up = (0,1,0),
background = (0.2,0.2,0.2)
)

######################################################################
# Camera
######################################################################

# Load the external camera (if it exists), otherwise use the camera for
# the final image
if os.path.exists("camera.py"):
load("camera.py")
else:
TargetCamera(
name = "Camera",
pos = (0.0729126, 0.641438, -2.2),
target = (0, 0, 0),
fov = 30
)

GLPointLight(
intensity = 0.1,
pos = (-50,30, -20),
diffuse = (1, 1, 1)
)

# ...and a distant light

dis=RMLightSource(name = "distant_0",shader=RMShader("distantlight",intensity=0.4))
dis.shader.declare('string shadowname="raytrace"')
dis.shader.declare('uniform point from=(-15,30,-30)')

# ...and a env light

env=RMLightSource(name = "env01",shader= RMShader("envlight"))
env.shader.declare('uniform color lightcolor=(.9,.9,1)')
env.shader.declare('uniform color shadowcolor=(.05,.05,0)')

# ...no indirect

# models and darktree shader

r=RIBArchive(
name ="butu_center",
filename = './butu.rib',
pos = (0,0,0)
)

r.rib='Attribute "visibility" "trace" [1]\nAttribute "visibility" "int transmission" [1]\nSurface "DarkTreeSurface"\n "string DarkTreeShader" ["C:/Users/yokamak/Documents/cgkit/DTRep_thumb/tx_stone/pvStone_Tan_Brown.dsts"]\n "float Diffuse" [1]\n "float Specular" [1]\n "float Reflection" [1]\n "float ReflectionSamples" [1]\n "float ReflectionBlur" [0]\n "string ReflectionName" ["raytrace"]\n "string ReflectionSpace" ["current"]\n "float Incandescence" [1]\n "float Use2DCoordinates" [0]\n "float[2] Texture2dSize" [1 1]\n "float[2] Texture2dOrigin" [0 0]\n "float Texture2dAngle" [0]\n "float Pattern3dSize" [1]\n "float[3] Pattern3dOrigin" [0 0 0]\n "string Pattern3dSpace" ["shader"]\n "float BumpScale" [1]\n "float TimeScale" [1]\n "string ColorTweak1Name" ["Color 1"]\n "color ColorTweak1" [0.682 0.556 0.513]\n "string ColorTweak2Name" ["Coor 2"]\n "color ColorTweak2" [0.545 0.466 0.439]\n "string ColorTweak3Name" ["Color 3"]\n "color ColorTweak3" [0.533 0.435 0.419]\n "string ColorTweak4Name" ["Color 4"]\n "color ColorTweak4" [0.654 0.65 0.545]\n "string ColorTweak5Name" ["Color 5"]\n "color ColorTweak5" [0.494 0.411 0.352]\n "string ColorTweak6Name" ["Water"]\n "color ColorTweak6" [0 0.192 0.388]\n "string FloatTweak1Name" ["Diffuse"]\n "float FloatTweak1" [1]\n "string FloatTweak2Name" ["Specular"]\n "float FloatTweak2" [0.75]\n "string FloatTweak3Name" ["Glossiness"]\n "float FloatTweak3" [0.35]\n "string FloatTweak4Name" ["Seed"]\n "float FloatTweak4" [1]\n "string FloatTweak5Name" ["Dark Specular"]\n "float FloatTweak5" [1]\n "string FloatTweak6Name" ["Light Specular"]\n "float FloatTweak6" [0]\n "string FloatTweak7Name" ["Dark Gloss"]\n "float FloatTweak7"\n'


t=RIBArchive(
name ="butu_left",
filename = './butu.rib',
pos = (0.5,0,0)
)

t.rib='Attribute "visibility" "trace" [1]\nAttribute "visibility" "int transmission" [1]\nSurface "DarkTreeSurface"\n "string DarkTreeShader" ["C:/Program Files (x86)/AIR/viztools/darktree/metalGoldTarnish.dsts"]\n "float Diffuse" [1]\n "float Specular" [1]\n "float Reflection" [1]\n "float ReflectionSamples" [1]\n "float ReflectionBlur" [0]\n "string ReflectionName" ["raytrace"]\n "string ReflectionSpace" ["current"]\n "float Incandescence" [1]\n "float Use2DCoordinates" [0]\n "float[2] Texture2dSize" [1 1]\n "float[2] Texture2dOrigin" [0 0]\n "float Texture2dAngle" [0]\n "float Pattern3dSize" [1]\n "float[3] Pattern3dOrigin" [0 0 0]\n "string Pattern3dSpace" ["shader"]\n "float BumpScale" [1]\n "float TimeScale" [1]\n "string ColorTweak1Name" ["Gold 1"]\n "color ColorTweak1" [0.913 0.85 0.615]\n "string ColorTweak2Name" ["Gold 2"]\n "color ColorTweak2" [0.878 0.701 0.349]\n "string ColorTweak3Name" ["Rust 1"]\n "color ColorTweak3" [0.294 0.211 0.172]\n "string FloatTweak1Name" ["Tarnish"]\n "float FloatTweak1" [0]\n "string FloatTweak2Name" ["Reflectivity"]\n "float FloatTweak2" [0.2]\n "string FloatTweak3Name" ["Input Seed"]\n "float FloatTweak3" [133]\n "string FloatTweak4Name" ["Glossiness"]\n "float FloatTweak4" [0.05]\n "string FloatTweak5Name" ["Metal Hightlight"]\n "float FloatTweak5" [0.75]\n "string FloatTweak6Name" [""]\n "float FloatTweak6" [0.5]\n "string FloatTweak7Name" [""]\n "float FloatTweak7" [0.5]\n'



s=RIBArchive(
name ="butu_right",
filename = './butu.rib',
pos = (-0.5,0,0)
)

s.rib='Attribute "visibility" "trace" [1]\nAttribute "visibility" "int transmission" [1]\n Surface "DarkTreeSurface"\n "string DarkTreeShader" ["C:/Users/yokamak/Documents/cgkit/DTRep_thumb/ba_shader/MetallicPaintShader.dsts"]\n "float Diffuse" [1]\n "float Specular" [1]\n "float Reflection" [1]\n "float ReflectionSamples" [1]\n "float ReflectionBlur" [0]\n "string ReflectionName" ["raytrace"]\n "string ReflectionSpace" ["current"]\n "float Incandescence" [1]\n "float Use2DCoordinates" [0]\n "float[2] Texture2dSize" [1 1]\n "float[2] Texture2dOrigin" [0 0]\n "float Texture2dAngle" [0]\n "float Pattern3dSize" [1]\n "float[3] Pattern3dOrigin" [0 0 0]\n "string Pattern3dSpace" ["shader"]\n "float BumpScale" [1]\n "float TimeScale" [1]\n "string ColorTweak1Name" ["Paint Color"]\n "color ColorTweak1" [0.247 0.572 0.929]\n "string ColorTweak2Name" ["Paint Color 2"]\n "color ColorTweak2" [0 0.289 1]\n "string ColorTweak3Name" ["Rust 1"]\n "color ColorTweak3" [0.294 0.211 0.172]\n "string ColorTweak4Name" ["Rust 2"]\n "color ColorTweak4" [0.439 0.239 0.203]\n "string ColorTweak5Name" ["Rust 3"]\n "color ColorTweak5" [0.313 0.266 0.239]\n "string ColorTweak6Name" ["Rust 4"]\n "color ColorTweak6" [0.556 0.301 0.066]\n "string FloatTweak1Name" ["Reflectivity"]\n "float FloatTweak1" [0.35]\n "string FloatTweak2Name" ["Metallic Specular"]\n "float FloatTweak2" [0.55]\n "string FloatTweak3Name" ["CC Specular"]\n "float FloatTweak3" [0.5]\n "string FloatTweak4Name" ["CC Gloss"]\n "float FloatTweak4" [0.9]\n "string FloatTweak5Name" ["Random Seed"]\n "float FloatTweak5" [95]\n "string FloatTweak6Name" ["Glossiness"]\n "float FloatTweak6" [0.15]\n "string FloatTweak7Name" ["Seed"]\n "float FloatTweak7" [6]\n'

pl = RMMaterial(
surface = RMShader("VWood"),
color = (1, 1, 1))

pl2 = RMMaterial(
surface = RMShader("VPhysicalMetal"),
color = (1, 1, 1))

glm=GLMaterial(diffuse=(0.8, 0.7, 0.7))

p01=Plane(
lx = 50,
ly = 50,
pos = (0,0,0.6),
rot= mat3().fromEulerXYZ(0, radians(180), 0)
)
p01.rib='Attribute "visibility" "trace" [1]\nAttribute "visibility" "shadow" [1]\n Surface "VShinyTile2D"\n "float Diffuse" [0.9]\n "float DiffuseRoughness" [0.3]\n "float Specular" [0.5]\n "float SpecularRoughness" [0.01]\n "float SpecularSharpness" [0.8]\n "float Reflection" [4.0]\n "float ReflectionSamples" [2]\n "float ReflectionBlur" [0]\n "string ReflectionName" ["raytrace"]\n "string ReflectionSpace" ["current"]\n "float[2] TileSize" [0.01 0.01]\n "float TileStagger" [0]\n "float TileColorVary" [0.1]\n "float GrooveWidth" [0.001]\n "float GrooveDepth" [0.008]\n "color GrooveColor" [0.98 0.98 0.98]\n "float BumpHeight" [0]\n "float BumpWidth" [0.0005]\n "float[2] TextureSizeXY" [0.25 0.25]\n "float[2] TextureOriginXY" [0 0]\n "float TextureAngle" [0]\n "string Projection" ["st"]\n "string ProjectionSpace" ["shader"]\n "float[16] ProjectionTransform" [1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1]'

#p01.rib='Attribute "visibility" "trace" [1]\nAttribute "visibility" "shadow" [1]\nSurface "VMetal"\n'

p02=Plane(
lx = 50,
ly = 50,
pos = (0,-0.44,0),
rot= mat3().fromEulerXYZ(radians(-90), 0, 0),
material = pl2
)
p02.rib='Attribute "visibility" "trace" [1]\nAttribute "visibility" "shadow" [1]\n'

  • -
  • -

To switch python2 under Linux Fedora 32

How to change default Python version on Linux/Fedora 28

under Fedora32

# alternatives --install /usr/bin/python python /usr/bin/python3.7 2
# alternatives --install /usr/bin/python python /usr/bin/python2.7 1

sudo alternatives --config python

2 プログラムがあり 'python' を提供します。

選択 コマンド
-----------------------------------------------
* 1 /usr/bin/python3.7
+ 2 /usr/bin/python2.7

Enter を押して現在の選択 [+] を保持するか、選択番号を入力します:1

$ alternatives --list | grep -i python
python manual /usr/bin/python3.7


------------------------------------------------------
setup.pyを用いてインストールしたモジュールのアンインストール方法

python setup.py install --record install.txt

sudo cat inst.txt | sudo xargs rm -rf
------------------------------------------------------
to burn ISO image example:

samp:出力例
$ mkisofs -r -J -V "airCD" -o air_image.iso /run/media/mac/A12C-3EDA/

------------------------------------------------------
to edit gnome boxes example:

$ cd .config
$ cd libvirt/qemu/
samp:出力例
$ virsh edit centos6.8
-----------------------------------------------------
glibc version check

$ /lib/x86_64-linux-gnu/libc.so.6
or
# rpm -q glibc
# yum list installed | grep glibc

Thank You.
  • -
  • -

Sitex Air14 has been installed under CentOS 6.10

I installed CentOS6.10 64bit on virtualbox.
I have sitex air 14 for linux.
--------------------------------------------------
Sitex air renderer has airshow.
airshow is a 32bit application.
it includes the old 1.2 libraries for GTK and GDK.
it needs gtk1.2.

airshow works.


---------------------------------------------
$ airshow
bash: /home/mak/air/bin/airshow: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

# yum install ld-linux.so.2

Downloading Packages:
(1/2): glibc-2.12-1.212.el6_10.3.i686.rpm | 4.4 MB 00:01
(2/2): nss-softokn-freebl-3.44.0-6.el6_10.i686.rpm | 201 kB 00:00
Installed:
glibc.i686 0:2.12-1.212.el6_10.3

Dependency Installed:
nss-softokn-freebl.i686 0:3.44.0-6.el6_10

$ airshow
airshow: error while loading shared libraries: libglib-1.2.so.0: cannot open shared object file: No such file or directory

libglib-1.2.so.0

https://download-ib01.fedoraproject.org/pub/epel/6/x86_64/Packages/g/glib-1.2.10-33.el6.i686.rpm

# rpm -ivh glib-1.2.10-33.el6.i686.rpm
warning: glib-1.2.10-33.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Preparing... ########################################### [100%]
1:glib ########################################### [100%]


$ airshow simple.tif
airshow: error while loading shared libraries: libgdk-1.2.so.0: cannot open shared object file: No such file or directory

https://download-ib01.fedoraproject.org/pub/epel/6/i386/Packages/g/gtk+-1.2.10-70.el6.i686.rpm

# rpm -ivh gtk+-1.2.10-70.el6.i686.rpm
warning: gtk+-1.2.10-70.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
error: Failed dependencies:
libX11.so.6 is needed by gtk+-1:1.2.10-70.el6.i686
libXext.so.6 is needed by gtk+-1:1.2.10-70.el6.i686
libXi.so.6 is needed by gtk+-1:1.2.10-70.el6.i686

# yum install libX11-1.6.4-3.el6.i686
Downloading Packages:
(1/3): libX11-1.6.4-3.el6.i686.rpm | 594 kB 00:00
(2/3): libXau-1.0.6-4.el6.i686.rpm | 24 kB 00:00
(3/3): libxcb-1.12-4.el6.i686.rpm

# yum install libXext-1.3.3-1.el6.i686
# yum install libXi-1.7.8-1.el6.i686

# rpm -ivh gtk+-1.2.10-70.el6.i686.rpm
warning: gtk+-1.2.10-70.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Preparing... ########################################### [100%]
1:gtk+ ########################################### [100%]


$ airshow simple.tif
airshow: error while loading shared libraries: libgdk_pixbuf.so.2: cannot open shared object file: No such file or directory


# yum install gdk-pixbuf2-2.24.1-6.el6_7.i686

Installed:
gdk-pixbuf2.i686 0:2.24.1-6.el6_7

Dependency Installed:
gamin.i686 0:0.1.10-9.el6 glib2.i686 0:2.28.8-10.el6
jasper-libs.i686 0:1.900.1-22.el6 libgcc.i686 0:4.4.7-23.el6
libjpeg-turbo.i686 0:1.2.1-3.el6_5 libpng.i686 2:1.2.49-2.el6_7
libselinux.i686 0:2.0.94-7.el6 libstdc++.i686 0:4.4.7-23.el6
libtiff.i686 0:3.9.4-21.el6_8 zlib.i686 0:1.2.3-29.el6

$ airshow simple.tif
airshow: error while loading shared libraries: libgdk_pixbuf.so.2: cannot open shared object file: No such file or directory


https://li.nux.ro/download/nux/dextop/el6/i386/gdk-pixbuf-0.22.0-38.el6.nux.i686.rpm

# rpm -Uvh gdk-pixbuf-0.22.0-38.el6.nux.i686.rpm
warning: gdk-pixbuf-0.22.0-38.el6.nux.i686.rpm: Header V4 RSA/SHA1 Signature, key ID 85c6cd8a: NOKEY
Preparing... ########################################### [100%]
1:gdk-pixbuf ########################################### [100%]


$ airshow simple.tif
QPainter::begin: Widget painting can only begin as a result of a paintEvent
QPainter::translate: Painter not active
QPainter::setClipRect: Painter not active
QPainter::begin: Widget painting can only begin as a result of a paintEvent
QPainter::translate: Painter not active
QPainter::setClipRect: Painter not active
QPainter::font: Painter not active
QPainter::setFont: Painter not active
QPainter::setPen: Painter not active

Gtk-CRITICAL **: file gtkobject.c: line 1179 (gtk_object_unref): assertion `object->ref_count > 0' failed.

The error message comes from the user interface library used by those programs.

airshow works.
Thank you for your support.

vshade works.


installed fonts.

# yum provides xorg-x11-fonts-75dpi
# yum install xorg-x11-fonts-75dpi-7.2-11.el6.noarch
# yum provides xorg-x11-fonts-ISO8859-1-75dpi
# yum install xorg-x11-fonts-ISO8859-1-75dpi-7.2-11.el6.noarch

$ vshade
It works.
following are error messages.

Gtk-CRITICAL **: file gtkwidget.c: line 3357 (gtk_widget_set_parent): assertion `widget->parent == NULL' failed.

Gtk-CRITICAL **: file gtkwidget.c: line 3357 (gtk_widget_set_parent): assertion `widget->parent == NULL' failed.

Gtk-CRITICAL **: file gtkwidget.c: line 3357 (gtk_widget_set_parent): assertion `widget->parent == NULL' failed.

Gtk-CRITICAL **: file gtkwidget.c: line 3357 (gtk_widget_set_parent): assertion `widget->parent == NULL' failed.
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
kbuildsycoca4 running...
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
QPainter::begin: Widget painting can only begin as a result of a paintEvent
QPainter::translate: Painter not active
QPainter::setClipRect: Painter not active
QPainter::font: Painter not active
QPainter::setFont: Painter not active
QPainter::setPen: Painter not active
QPainter::begin: Widget painting can only begin as a result of a paintEvent
QPainter::translate: Painter not active
QPainter::setClipRect: Painter not active
QPainter::begin: Widget painting can only begin as a result of a paintEvent
QPainter::translate: Painter not active
QPainter::setClipRect: Painter not active
QPainter::font: Painter not active
QPainter::setFont: Painter not active
QPainter::setPen: Painter not active
QPainter::font: Painter not active
QPainter::setFont: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::worldTransform: Painter not active

Gtk-CRITICAL **: file gtkwidget.c: line 1388 (gtk_widget_destroy): assertion `GTK_IS_WIDGET (widget)' failed.

Gtk-CRITICAL **: file gtkwidget.c: line 1388 (gtk_widget_destroy): assertion `GTK_IS_WIDGET (widget)' failed.

Gtk-CRITICAL **: file gtkwidget.c: line 1388 (gtk_widget_destroy): assertion `GTK_IS_WIDGET (widget)' failed.

Gtk-CRITICAL **: file gtkwidget.c: line 1388 (gtk_widget_destroy): assertion `GTK_IS_WIDGET (widget)' failed.

Gtk-CRITICAL **: file gtkobject.c: line 1179 (gtk_object_unref): assertion `object->ref_count > 0' failed.

The error message comes from the user interface library used by those programs.

vshade works.
Thank you for your support.
  • -
  • -

1/1