How to create a web server on Nitrogen6x

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

How to create a web server on Nitrogen6x

1,852 次查看
jmiller
Contributor I

Hey, i am new to this, so it may sound noobish.

I am using Nitrogen6x Lite from Boundary Devices for my project (no WLAN). I builded an image using this tutorial:

Freescale/fsl-community-bsp-platform · GitHub

So, the next step i want to do is to install a webserver on the board. How I do it?

If I type like:

apt-get install apache2 apache2-doc apache2-utils,

it responds with:

-sh: apt-get: not found

标签 (1)
0 项奖励
回复
3 回复数

1,467 次查看
jmiller
Contributor I

Hey again, Thank you for your help.

now I know something about Yocto. My task has changed. I used the fsl-image-multimedia-full recipe for Gstreamer and added OpencCV libraries and headers.

I want to test a webcam on the board. For that purpose i have a small programm gstapp.cpp I want to compile it using:

g++ -hello -c gstapp.cpp -o gstapp

I get an error:

In file included from gstapp.cpp:7:0:

/gst/gst.h:27:18: fatal error: glib.h: No such file or directory

#include <glib.h>

I checked that I have libglib2.0-dev and libgtk2.0-0-dev installed.

0 项奖励
回复

1,467 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Juri

probably may help

https://community.freescale.com/ideas/1066

~igor

0 项奖励
回复

1,467 次查看
EricNelson
Senior Contributor II

Hello Juri,

I think you're missing something fundamental. Yocto is a cross-build system for creating embedded
systems and doesn't have an inherent repository of packages for use with tools like 'apt-get'.

I strongly recommend checking out the book for background.

     http://www.amazon.com/Embedded-Development-Salvador-Angolini-Paperback/dp/B00QD9B4S4/

There are web-servers available for the platform. I'm not sure about Apache, but Node.JS builds nicely and you can add it

to your image by adding <tt>nodejs</tt> into your IMAGE with IMAGE_INSTALL_append:

IMAGE_INSTALL_append = " \

    nodejs \

"