Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
10 years ago

Compiling Extra Libraries for Arm Processor

Hello All,

I'm a few months into my learning of OpenCL/non-verilog FPGA development and am running across an issue while trying to compile code.

Some background specs are as follows:

Quartus 15.0 with OpenCL License from Altera

NIOS 2, EDS, and Altera OpenCL SDK all 15.0 from Altera

Computer to Compile on:

Windows 7 Ultimate, 16GB RAM, Intel Core i7-4900MQ @ 2.80GHz

FPGA Board:

Altera/Terasic DE1-SOC Education board

de1soc_sharedonly <- Board package used for OCL compiling

Simple Statement of Problem:

Using my setup, I am not able to compile code that uses external libraries because I use a linux-like environment but it does not support Linux libraries.

Detailed Breakdown:

With my setup, Windows PC running Altera Embedded Command Shell to simulate a Linux-like environment, which I then use to cross-compile into ARM32 for use on embedded Linux on my FPGA board. I am unable to compile external libraries of any kind to use in these programs. Using Linux type libraries gives the error that the file type is not accepted, and using windows-accepted libraries doesn't work either. The libraries I am trying to use on my board is mainly SDL 2.0, but others are included. They are not small self-made libraries that I have made myself, but huge multi-part libraries that I couldn't even hope to replicate. Downloading the Linux package from Altera Sample code page gives me Linux library files, and using Windows download gives me Visual Studio Project. My main goal is just to cross-compile these libraries for use with my OpenCL code on my embedded linux system with my FPGA. Could I compile them separately and then drop them onto the embedded system separately and attempt to access them there? I cannot compile on my board as it is a stripped down version of linux, and I cannot compile on a native linux system as I do not have one.

Any help would be appreciated!

~Chris
No RepliesBe the first to reply