Compiling GPU SDK Samples

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Compiling GPU SDK Samples

跳至解决方案
2,279 次查看
bcompter
Contributor II

Hi there,

I'm having some issues compiling the GPU SDK 1.0 samples.

For reference I am using a Nitrogen MX6 board from Boundary Devices. 

i.MX6Q rev 1.2

Linux kernel 3.0.35

Oneiric rootfs

Ubuntu

From what I can see all of the gpu libraries and symbolic links are preset (libGAL.so->libGAL-fb.so etc...).

I've tried to compile on the target (make -f Makefile-fbdev) and ran into the following error:

Cannot find bits/predefs.h No such file or directory.

Any ideas what could be the issue?  I don't see any bits/predefs.h on my system.  Where does the file come from?

Thanks,

Brian

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
1,853 次查看
bcompter
Contributor II

In the end I've downloaded the LinuxLink timesys demo and used their installer script to get a working toolchain.

The demos cross compile correctly on my host machine now.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,854 次查看
bcompter
Contributor II

In the end I've downloaded the LinuxLink timesys demo and used their installer script to get a working toolchain.

The demos cross compile correctly on my host machine now.

0 项奖励
回复
1,853 次查看
PrabhuSundarara
NXP Employee
NXP Employee

In Ubuntu, the bit/predefs.h is in /usr/lib/arm-linux-gnueabi. So create a softlink like below will help

cd /usr/lib

ln -s /usr/lib/arm-linux-gnueabi/bits bits

1,853 次查看
bcompter
Contributor II

Thank you for the reply.  Interestingly I do not see a /usr/lib/arm-linux-gnueabi folder on my system.

I do see /usr/lib/arm-linux-gnueabihf but it does not contain a bits folder.

I did a search on my machine and found predefs.h in /usr/include/arm-linux-gnueabihf/bits.  I will try out setting a soft link as you suggested when I get a chance later today.  Let me know if there is something terribly wrong for the predefs.h file to be where it is.  I worry that I do not have my system set up correctly.

Thanks again.

0 项奖励
回复