编openVG缺少X11/Xlib.h及其它编译过程

I. 缺少X11/Xlib.h:

 

root@ubuntu-desktop:/mnt/nfs/openVG/cts_1.1/generation/make/linux# make
gcc -g -Iinclude -I../../source -DANSWER_DEFAULT_DIR=/"../../../../data/answer/" -DINFO_DEFAULT_DIR=/"../../../../data/info/" -DTEST_OPTION_VGU=1 ../../source/*.c ../../source/adopter/native/native_x.c ../../source/util/*.c ../../source/functions/*.c -o bin/generator.exe -Llib  -L/lib -L/usr/X11R6/lib -lOpenVG -lEGL -lX11


0. 编译是在ubuntu arm上进行的arm本地编译

1. Xlib.h: 普通系统上装libxfree86-devel,在ubuntu上装libx11-dev。

2. Set path OPENVG_LOC: 如果已经有了OpenVG的安装包,可以设为/usr

确保/usr/lib有libOpenVG.so

3. EGL: 保证/usr/lib下有libegl.so,或者作一个soft link到libEGL.so

4. # mkdir bin


Run:

# cd openVG/cts_1.1/generation/make/linux/bin

# ./generator -v 2

 

 

-----

There are a number of packages which contain a file named Xlib.h in different directories:

libxfree86-devel:/usr/X11R6/include/X11/Xlib.h
mozilla-devel:/usr/include/mozilla-1.6/widget/nsIDragSessionXlib.h
perl-Tk-devel:/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi/Tk/pTk/Xlib.h
xemacs-devel:/usr/lib/xemacs-21.4.14/i386-mandrake-linux/include/extw-Xlib.h

This list may not be conclusive, and since you haven't indicated which distro you are using, or the program you are trying to install, I don't know if anyone can provide much in the way of help without more information. The xlibfree86-devel package is probably the one you want installed. the perl-Tk-dev and xemacs-devel packages may be distro specific.

 

 

root@ubuntu-desktop:/mnt/nfs/openVG/cts_1.1/generation/make# apt-get install libx11-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libpthread-stubs0 libpthread-stubs0-dev libxau-dev libxcb1-dev libxdmcp-dev
  x11proto-core-dev x11proto-input-dev x11proto-kb-dev xtrans-dev
The following NEW packages will be installed:
  libpthread-stubs0 libpthread-stubs0-dev libx11-dev libxau-dev libxcb1-dev
  libxdmcp-dev x11proto-core-dev x11proto-input-dev x11proto-kb-dev xtrans-dev
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 2023kB of archives.
After this operation, 5784kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ports.ubuntu.com jaunty/main x11proto-core-dev 7.0.14-2 [92.4kB]
Get:2 http://ports.ubuntu.com jaunty/main libxau-dev 1:1.0.4-1 [16.3kB]
Get:3 http://ports.ubuntu.com jaunty/main libxdmcp-dev 1:1.0.2-3 [20.5kB]
Get:4 http://ports.ubuntu.com jaunty/main x11proto-input-dev 1.5.0-1ubuntu1 [12.0kB]
Get:5 http://ports.ubuntu.com jaunty/main x11proto-kb-dev 1.0.3-3ubuntu1 [27.4kB]
Get:6 http://ports.ubuntu.com jaunty/main xtrans-dev 1.2.3-1 [65.2kB]
Get:7 http://ports.ubuntu.com jaunty/main libpthread-stubs0 0.1-2 [2820B]
Get:8 http://ports.ubuntu.com jaunty/main libpthread-stubs0-dev 0.1-2 [2350B]
Get:9 http://ports.ubuntu.com jaunty-updates/main libxcb1-dev 1.1.93-0ubuntu3.1 [72.9kB]
Get:10 http://ports.ubuntu.com jaunty/main libx11-dev 2:1.1.99.2-1ubuntu2 [1711kB]
Fetched 2023kB in 9s (208kB/s)
Selecting previously deselected package x11proto-core-dev.
(Reading database ... 98872 files and directories currently installed.)
Unpacking x11proto-core-dev (from .../x11proto-core-dev_7.0.14-2_all.deb) ...
Selecting previously deselected package libxau-dev.
Unpacking libxau-dev (from .../libxau-dev_1%3a1.0.4-1_armel.deb) ...
Selecting previously deselected package libxdmcp-dev.
Unpacking libxdmcp-dev (from .../libxdmcp-dev_1%3a1.0.2-3_armel.deb) ...
Selecting previously deselected package x11proto-input-dev.
Unpacking x11proto-input-dev (from .../x11proto-input-dev_1.5.0-1ubuntu1_all.deb) ...
Selecting previously deselected package x11proto-kb-dev.
Unpacking x11proto-kb-dev (from .../x11proto-kb-dev_1.0.3-3ubuntu1_all.deb) ...
Selecting previously deselected package xtrans-dev.
Unpacking xtrans-dev (from .../xtrans-dev_1.2.3-1_all.deb) ...
Selecting previously deselected package libpthread-stubs0.
Unpacking libpthread-stubs0 (from .../libpthread-stubs0_0.1-2_armel.deb) ...
Selecting previously deselected package libpthread-stubs0-dev.
Unpacking libpthread-stubs0-dev (from .../libpthread-stubs0-dev_0.1-2_armel.deb) ...
Selecting previously deselected package libxcb1-dev.
Unpacking libxcb1-dev (from .../libxcb1-dev_1.1.93-0ubuntu3.1_armel.deb) ...
Selecting previously deselected package libx11-dev.
Unpacking libx11-dev (from .../libx11-dev_2%3a1.1.99.2-1ubuntu2_armel.deb) ...
Processing triggers for man-db ...
Setting up x11proto-core-dev (7.0.14-2) ...
Setting up libxau-dev (1:1.0.4-1) ...
Setting up libxdmcp-dev (1:1.0.2-3) ...
Setting up x11proto-input-dev (1.5.0-1ubuntu1) ...
Setting up x11proto-kb-dev (1.0.3-3ubuntu1) ...
Setting up xtrans-dev (1.2.3-1) ...
Setting up libpthread-stubs0 (0.1-2) ...
Setting up libpthread-stubs0-dev (0.1-2) ...
Setting up libxcb1-dev (1.1.93-0ubuntu3.1) ...
Setting up libx11-dev (2:1.1.99.2-1ubuntu2) ...
root@ubuntu-desktop:/mnt/nfs/openVG/cts_1.1/generation/make#

 

------------------

II. 缺少X11/extensions/Xcomposite.h, X11/extensions/Xrender.h

安装libxcomposite-dev, libxrender-dev

 

3DMMP.cpp:39:39: error: X11/extensions/Xcomposite.h: No such file or directory
3DMMP.cpp:41:36: error: X11/extensions/Xrender.h: No such file or directory



root@ubuntu-desktop:/mnt/nfs/util/gpu-sdkv0.1_3DMM_demo# apt-get install libxcomposite-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libxext-dev libxfixes-dev x11proto-composite-dev x11proto-fixes-dev
The following NEW packages will be installed:
  libxcomposite-dev libxext-dev libxfixes-dev x11proto-composite-dev
  x11proto-fixes-dev
0 upgraded, 5 newly installed, 0 to remove and 26 not upgraded.
Need to get 137kB of archives.
After this operation, 635kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ports.ubuntu.com karmic/main x11proto-fixes-dev 1:4.0-3 [13.9kB]
Get:2 http://ports.ubuntu.com karmic/main libxfixes-dev 1:4.0.3-2build1 [13.6kB]
Get:3 http://ports.ubuntu.com karmic/main x11proto-composite-dev 1:0.4-2 [12.4kB]
Get:4 http://ports.ubuntu.com karmic/main libxext-dev 2:1.0.99.1-0ubuntu4 [81.9kB]
Get:5 http://ports.ubuntu.com karmic/main libxcomposite-dev 1:0.4.0-4 [15.2kB]
Fetched 137kB in 3s (44.9kB/s)
Selecting previously deselected package x11proto-fixes-dev.
(Reading database ... 138090 files and directories currently installed.)
Unpacking x11proto-fixes-dev (from .../x11proto-fixes-dev_1%3a4.0-3_all.deb) ...
Selecting previously deselected package libxfixes-dev.
Unpacking libxfixes-dev (from .../libxfixes-dev_1%3a4.0.3-2build1_armel.deb) ...
Selecting previously deselected package x11proto-composite-dev.
Unpacking x11proto-composite-dev (from .../x11proto-composite-dev_1%3a0.4-2_all.deb) ...
Selecting previously deselected package libxext-dev.
Unpacking libxext-dev (from .../libxext-dev_2%3a1.0.99.1-0ubuntu4_armel.deb) ...
Selecting previously deselected package libxcomposite-dev.
Unpacking libxcomposite-dev (from .../libxcomposite-dev_1%3a0.4.0-4_armel.deb) ...
Processing triggers for man-db ...
Setting up x11proto-fixes-dev (1:4.0-3) ...
Setting up libxfixes-dev (1:4.0.3-2build1) ...
Setting up x11proto-composite-dev (1:0.4-2) ...
Setting up libxext-dev (2:1.0.99.1-0ubuntu4) ...
Setting up libxcomposite-dev (1:0.4.0-4) ...
root@ubuntu-desktop:/mnt/nfs/util/gpu-sdkv0.1_3DMM_demo#

root@ubuntu-desktop:/mnt/nfs/util/gpu-sdkv0.1_3DMM_demo# apt-get install libxrender-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  libxrender-dev
0 upgraded, 1 newly installed, 0 to remove and 26 not upgraded.
Need to get 29.8kB of archives.
After this operation, 127kB of additional disk space will be used.
Get:1 http://ports.ubuntu.com karmic/main libxrender-dev 1:0.9.4-2ubuntu1 [29.8kB]
Fetched 29.8kB in 1s (19.8kB/s)
Selecting previously deselected package libxrender-dev.
(Reading database ... 138202 files and directories currently installed.)
Unpacking libxrender-dev (from .../libxrender-dev_1%3a0.9.4-2ubuntu1_armel.deb) ...
Setting up libxrender-dev (1:0.9.4-2ubuntu1) ...
root@ubuntu-desktop:/mnt/nfs/util/gpu-sdkv0.1_3DMM_demo#

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值