2014年11月22日 星期六

2014年11月18日 星期二

linux ubuntu12.04上opencv2.4.7 cmake2.8.12.1 qt4环境搭建

Installation in Linux

http://blogs.wcode.org/2014/10/howto-install-build-and-use-opencv-macosx-10-10/

linux ubuntu12.04上opencv2.4.7 cmake2.8.12.1 qt4环境搭建


"Error in configuration process, project files may be invalid".
  • QT_QMAKE_EXECUTABLE; For this one, you need to search inside the Qt installation folder for the /bin directory. On it, you' ll find the qmake.exe. In my case it was C:/Qt/5.3/winrt_x64/bin/qmake.exe
    All the following ones are in the Qt's /lib/cmake directory. In my case: C:/Qt/5.3/winrt_x64/lib/cmake :
  • Qt5Concurrent_DIR;
    C:/Qt/5.3/winrt_x64/lib/cmake/Qt5Concurrent
  • QT5Core_DIR;
    C:/Qt/5.3/winrt_x64/lib/cmake/Qt5Core
  • QT5Gui_DIR;
    C:/Qt/5.3/winrt_x64/lib/cmake/Qt5Gui
  • QT5Test_DIR;
    C:/Qt/5.3/winrt_x64/lib/cmake/Qt5Test
  • QT5Widgets_DIR.
    C:/Qt/5.3/winrt_x64/lib/cmake/Qt5Widgets

win7上qt5.1.1 opencv2.4.7 cmake2.8.12.1环境搭建(关键在环境变量)

win7上qt5.1.1 opencv2.4.7 cmake2.8.12.1环境搭建(关键在环境变量)

2014年11月17日 星期一

arm-linux下qt + opencv开发环境的搭建(Altera DE1 Soc)

  • Installation Guide

    • Download
    • Visit Qt downloads page an download a 32-bit or 64-bit Linux installation [qt-project.org] depending your version of Ubuntu. The installation file can be also downloaded through the command line using wget.
      Example:
      1. wget http://download.qt-project.org/official_releases/qt/5.0/5.0.2/qt-linux-opensource-5.0.2-x86-offline.run
    • qt install
Adjust permission, run the installer and follow the instruction to complete the installation.
  1. sudo chmod +x qt-linux-opensource-5.0.2-x86-offline.run
  2. ./qt-linux-opensource-5.0.2-x86-offline.run





Qt: Creating a new project


This document describes how to install Qt for Embedded Linux in your development environment:
Please see the cross compiling and deployment documentation for details on how to install Qt for Embedded Linux on your target device.
Note also that this installation procedure is written for Linux, and that it may need to be modified for other platforms.









=======================================================================
original
./configure -prefix/usr/local/qt-4.8.6-altera-soc -release -shared -nomake examples-nomake tools -nomake docs -make demos -xplatformqws/linux-arm-gnueabihf-g++ -embedded arm -little-endian -no-pch-v 
corrected
./configure -prefix /usr/local/qt-4.8.6-altera-soc -release -shared -nomake examples -nomake tools 
-nomake docs -make demos -xplatform qws/linux-arm-gnueabihf-g++ -embedded arm -little-endian 
-no-pch -v 
=======================================================================

QT5 Cross Compiled from linux-x86 to linux-arm


./configure -prefix /opt/qt5.1.1-arm -release -make libs -make examples -make tools -xplatform linux-arm-gnueabihf-g++ -no-opengl -confirm-license -opensource -xcb -no-pch -no-kms -v -no-icu

=======================================================================

[Qt-creator] Cross-compiling for ARM with qt creator

==============================================

Linaro toolchain


ARM CONTEST

http://www.arm-designcontest.com.tw/cortexm/?menu=03

=======================================================================

Cross-Compiling Qt for Embedded Linux Applications



./configure -embedded arm -xplatform qws/linux-arm-g++ <other options>

Qt Cross Compiling for ARM platforms


Create new mkspec

We can create a new mkspec using linux-g++ as template.
$ cd qt/mkspecs
$ cp -R linux-g++ linux-arm-g++

Then edit the qmake.conf in the linux-arm-g++ directory, add following settings before "load(qt_config)".

Build Qt

A shadow build directory can be created to make the source directory clean.
$ cd qt && mkdir build
$ cd build && ./buildqt.sh
The content of buildqt.sh is given below:
#!/bin/bash
export CROSS_COMPILE=arm-linux-gnueabi
export ROOTFS=<path to the armel rootfs>
export QTDIR=<path to the qt source tree>
export PKG_CONFIG_PATH=$ROOTFS/usr/lib/pkgconfig
export PKG_CONFIG_SYSROOT=$ROOTFS
$QTDIR/configure -arch arm -xplatform linux-arm-g++ -force-pkg-config -prefix <install_prefix> -prefix-install -opengl es2
make
Note:
The "-prefix" and "-prefix-install" configure options are used for development build, and if you want to enable OpenGL ES2.0 for the opengl graphics system, please add "-opengl es2" option.


===============================================================================
安装Synaptic PackageManager
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install synaptic

启动Synaptic (sudo synaptic)

使用Synaptic 管理套件

  • Ubuntu - 『系統』(System) -> 『管理』(Administrative) -> 『Synaptic 套件管理程式』(Synaptic Package Manager)





 3.安装zlib,png,jpeg      在搜索栏中输入png,mark libpng 12-0 为安装,点击apply,



[root@localhost softs]# tar xf libpng-1.6.6.tar.gz -C /usr/src/
[root@localhost softs]# cd /usr/src/libpng-1.6.6/
[root@localhost libpng-1.6.6]# ./configure --prefix=/usr/local/png --enable-shared
[root@localhost libpng-1.6.6]# make  && make  install 


Howto Install OpenGL Development Environment

Howto Install OpenGL Development Environment



libglut3-dev can not find

Your instructions seem to be old (sudo apt-get install libglut-dev)
please use the instruction as follow.
sudo apt-get install freeglut3-dev



2014年11月15日 星期六

pzt control c# program


======================================================================


======================================================================
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

//参考文章

//http://forum.fibaro.com/viewtopic.php?t=4130

//https://ispyconnect.googlecode.com/svn-history/r4/trunk/iSpyApplication/XML/PTZ2.xml

//http://felenasoft.com/forum/viewtopic.php?f=8&t=479

//http://blog.csdn.net/bournes/article/details/8447086

//http://www.cnblogs.com/cgli/archive/2011/04/09/2010497.html

//http://www.cnblogs.com/sufei/archive/2011/05/22/2053642.html


// C# Tutorial #1 Simple Web Browser https://www.youtube.com/watch?v=1X8soxq2aaw

//imgSrc="http://"+Addr+":"+Port+"/videostream.cgi?user="+Usr+"&password="+Password+"&usr="+Usr+"&pwd="+Password;
//ipad.htm

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
         
        }

        private void button1_Click(object sender, EventArgs e)
        {
            webBrowser1.Navigate(textBox1.Text);
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            webBrowser1.Width = 720;
            webBrowser1.Height = 480;
     
        }

        private void button2_Click(object sender, EventArgs e)
        {

            webBrowser2.Navigate("http://192.168.20.6/moveptz.xml?dir=up& Position=90");
           //webBrowser1.Navigate(textBox1.Text);
         }

        private void button3_Click(object sender, EventArgs e)
        {
            webBrowser2.Navigate("http://192.168.20.6/moveptz.xml?dir=down& Position=90");
            //webBrowser1.Navigate(textBox1.Text);
        }

        private void button4_Click(object sender, EventArgs e)
        {
            webBrowser2.Navigate("http://192.168.20.6/moveptz.xml?dir=updown& Position=90");
        }

        private void button5_Click(object sender, EventArgs e)
        {
            webBrowser2.Navigate("http://192.168.20.6/moveptz.xml?dir=stop");
        }

        private void button6_Click(object sender, EventArgs e)
        {
            webBrowser2.Navigate("http://192.168.20.6/moveptz.xml?dir=left& Position=90");
        }

        private void button7_Click(object sender, EventArgs e)
        {
            webBrowser2.Navigate("http://192.168.20.6/moveptz.xml?dir=right& Position=90");
        }
                   
    }
}

Gsoap based ONVIF C++ lib, support ProfileS and ProfileG

Gsoap based ONVIF C++ lib, support ProfileS and ProfileG