'Programming'에 해당되는 글 1795건

  1. 2015.01.20 qt 4.x/5.x INSTALL_PATH
  2. 2015.01.20 qt font path
  3. 2015.01.20 qt websocket support
  4. 2015.01.19 xquery / qt
  5. 2015.01.15 qt 4.8.5 neon / cross compile
  6. 2015.01.15 qt 4.8.5 neon 활성화 하기 1
  7. 2015.01.13 php 콘솔 디버깅
  8. 2015.01.12 qt 5.4 cross compile 시도!!
  9. 2015.01.07 웹소켓(websocket)
  10. 2015.01.06 html / input type radio에서의 reset 처리
Programming/qt2015. 1. 20. 10:42



Usually, to cross-compile autotools-based packages, one do:

./configure --prefix=/usr --host=arm-linux-gnueabi

make

make DESTDIR=/embedded/target install

make DESTDIR=/embedded/staging install


You typically install things twice because in /embedded/target you want

to have only the files useful for execution, completely stripped, while

in /embedded/staging you want to keep all debugging symbols to help in

debugging. /embedded/target goes in your target embedded system,

while /embedded/staging is kept on your development machine, and is

used to build more applications and to do remote debugging.


Within Qt5, this could be translated as:


./configure -prefix /usr -device <something>

make

make INSTALL_ROOT=/embedded/target install

make INSTALL_ROOT=/embedded/staging install


But Qt5 has host utilities, not only tools for the target. And instead

of having to build Qt twice, it nicely allows to do the build of host

tools and target libraries in just one build, which is really nice. So,

one typically does:


./configure -prefix /usr -hostprefix /embedded/host -device <something>

make

make INSTALL_ROOT=/embedded/target install

make INSTALL_ROOT=/embedded/staging install


Unfortunately, the INSTALL_ROOT does not only impact target libraries,

but also the host utilities. So they end up

in /embedded/target/embedded/host which obviously isn't correct.


For the moment, I am solving this by doing:


./configure -prefix /usr -hostprefix /embedded/host -sysroot /embedded/staging -device <something>

make

make install


[링크 : http://lists.qt-project.org/pipermail/interest/2013-January/005447.html] 


4.7 에서 hostprefix로는 안되었고

make INSTALL_ROOT install을 통해서 했다는 건데..

-hostprefix, but it doesn't work like I hoped. With "make install INSTALL_ROOT=..." it will install everything even the host tools under this install root


[링크 : http://www.qtcentre.org/.../30449-How-to-build-and-install-Qt-apps-on-cross-compiled-embedded-targets] 

'Programming > qt' 카테고리의 다른 글

qt - ts / qm  (0) 2015.02.24
qt 5.3 cross compile 조사  (0) 2015.01.21
qt font path  (0) 2015.01.20
qt websocket support  (0) 2015.01.20
xquery / qt  (0) 2015.01.19
Posted by 구차니
Programming/qt2015. 1. 20. 10:32

크로스 컴파일로 하는 바람에

prefix를 잘못 붙여서 QT에서 rootfs 경로 포함하여 찾는 바람에 헤매는데..

configure 옵션을 조금더 찾아 봐야 편하게 쓸 수 있을듯..



아무튼 환경변수는 QT_QWS_FONTDIR 로 정해줄수 있으며

:를 이용해 여러개의 디렉토리를 지정해 줄 수 는 없다.


export QT_QWS_FONTDIR=/usr/local/Qt/lib/fonts

[링크 : http://qt-project.org/forums/viewthread/30575]

'Programming > qt' 카테고리의 다른 글

qt 5.3 cross compile 조사  (0) 2015.01.21
qt 4.x/5.x INSTALL_PATH  (0) 2015.01.20
qt websocket support  (0) 2015.01.20
xquery / qt  (0) 2015.01.19
qt 4.8.5 neon / cross compile  (0) 2015.01.15
Posted by 구차니
Programming/qt2015. 1. 20. 09:10

2009년도에 추가 되어 있어서

4.8.5 버전에 흔적은 남아있는데 활성화 할 방법을 찾지 못해 쥐쥐..

[링크 : http://trac.webkit.org/changeset/46021]

[링크 : https://bugs.webkit.org/show_bug.cgi?id=27206]


릴리즈 노트에서는 Qt5.3 에서 web socket언급이 나온다.

[링크 : http://qt-project.org/qt5/qt53]

[링크 : http://blog.qt.digia.com/blog/2014/05/20/qt-5-3-released/]


websocket class 니까.. webkit 브라우저에는 상관없는건가?

[링크 : http://doc.qt.io/qt-5/qwebsocket.html]

'Programming > qt' 카테고리의 다른 글

qt 4.x/5.x INSTALL_PATH  (0) 2015.01.20
qt font path  (0) 2015.01.20
xquery / qt  (0) 2015.01.19
qt 4.8.5 neon / cross compile  (0) 2015.01.15
qt 4.8.5 neon 활성화 하기  (1) 2015.01.15
Posted by 구차니
Programming/qt2015. 1. 19. 22:41

xquery는 XML에 대해서 SQL 처럼

쿼리를 통해 원하는 데이터를 추출하는 방식으로 w3c에서 관리하는 기술이다.


[링크 : http://en.wikipedia.org/wiki/XQuery]

[링크 : http://www.w3.org/XML/Query/]

[링크 : http://www.w3schools.com/xquery/]


QT에서도 지원하는데.. SQL 문처럼 쿼리에 의존하다 보니

DoS 공격에 취약하고(과도한 쿼리를 처리하도록 한다거나)

SQL 처럼 코드 인젝션을 통해 의도하지 않은 공격을 당할수도 있으니 주의해야 한다고 한다.

[링크 : http://qt-project.org/doc/qt-4.8/xmlprocessing.html]

[링크 : http://qt-project.org/wiki/XQuery_Tutorials]

'Programming > qt' 카테고리의 다른 글

qt font path  (0) 2015.01.20
qt websocket support  (0) 2015.01.20
qt 4.8.5 neon / cross compile  (0) 2015.01.15
qt 4.8.5 neon 활성화 하기  (1) 2015.01.15
qt 5.4 cross compile 시도!!  (0) 2015.01.12
Posted by 구차니
Programming/qt2015. 1. 15. 15:10

qt-4.8.5


$ ./configure

Basic XLib functionality test failed!

$ sudo apt-get install libx11-dev libfreetype6-dev libavahi-gobject-dev libSM-dev libXrender-dev libfontconfig-dev libXext-dev


[링크 : http://qt-project.org/forums/viewthread/21953]




QMAKE_CFLAGS_RELEASE = -O3 -march=armv7-a -mfpu=neon -mfloat-abi=softfp 

QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE


[링크 : http://e2e.ti.com/support/embedded/linux/f/354/p/285868/998236]

2015/01/15 - [Programming/qt] - qt 4.8.5 neon 활성화 하기



----

2015.01.19

아래 문제는 오염되었거나 손상된 소스코드였기 때문임


QtGui 없다고 에러나면

arm-none-linux-gnueabi-gcc -c -include .pch/release-shared-emb-arm/QtGui -pipe -O3 -march=armv7-a -mfpu=neon -mfloat-abi=softfp -fvisibility=hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_USE_BUNDLED_LIBPNG -DPNG_NO_ASSEMBLER_CODE -DQT_NO_FONTCONFIG -DFT2_BUILD_LIBRARY -DFT_CONFIG_OPTION_SYSTEM_ZLIB -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_GTK -DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_S60 -DQ_INTERNAL_QAPP_SRC -DQT_HAVE_NEON -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/qws/linux-arm-gnueabi-g++ -I. -I../../include/QtCore -I../../include/QtNetwork -I../../include -I../../include/QtGui -I.rcc/release-shared-emb-arm -Iimage -I../3rdparty/libpng -I../3rdparty/zlib -I../3rdparty/zlib -I../3rdparty/freetype/builds/unix -I../3rdparty/freetype/src -I../3rdparty/freetype/include -I../3rdparty/harfbuzz/src -Idialogs -I.moc/release-shared-emb-arm -I.uic/release-shared-emb-arm -I/home/interm/repos/6000pro/ICM/imx515/build/ltib/rootfs/usr/include -o .obj/release-shared-emb-arm/pixman-arm-neon-asm.o ../3rdparty/pixman/pixman-arm-neon-asm.S

cc1: error: .pch/release-shared-emb-arm/QtGui: No such file or directory

make[1]: *** [.obj/release-shared-emb-arm/pixman-arm-neon-asm.o] Error 1


QtGui는 -no-pch로 회피가능하나... 근본적인 해결책은 아님

-no-pch

[링크 : http://qt-project.org/forums/viewthread/26781]

[링크 : https://qt-project.org/forums/viewthread/24633]


컴파일시 어셈블리 오류가 날 경우

(armv7-a로 했으나 armv5 계열로 뜬금없이 특정 어셈블리 명렁어를 인식할수 없다고 나는 경우)

'Programming > qt' 카테고리의 다른 글

qt websocket support  (0) 2015.01.20
xquery / qt  (0) 2015.01.19
qt 4.8.5 neon 활성화 하기  (1) 2015.01.15
qt 5.4 cross compile 시도!!  (0) 2015.01.12
qt dom  (0) 2014.12.22
Posted by 구차니
Programming/qt2015. 1. 15. 14:47

mkspec 의 원하는 파일중

qmake.conf에 아래를 추가


QMAKE_CFLAGS_RELEASE = -O3 -march=armv7-a -mfpu=neon -mfloat-abi=softfp 

QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE


[링크 : http://e2e.ti.com/support/embedded/linux/f/354/p/285868/998236]



그나저나.. cortex-a8이 armv7인줄 알았는데 armv7-a

A/M/R 시리즈로 나뉘니까

아키텍쳐도

armv7-a/m/r ... -_-


어전지.. armv7-a가 아니라 armv7, 하니 안켜지더라!!!!



[링크 : http://en.wikipedia.org/wiki/ARM_architecture]

'Programming > qt' 카테고리의 다른 글

xquery / qt  (0) 2015.01.19
qt 4.8.5 neon / cross compile  (0) 2015.01.15
qt 5.4 cross compile 시도!!  (0) 2015.01.12
qt dom  (0) 2014.12.22
qt 4.8.5 임베디드 빌드 옵션  (0) 2014.12.16
Posted by 구차니
Programming/php2015. 1. 13. 15:18

php 콘솔명령어를 이용하여


$ php file.php 


를 실행하면

결과를 뱉어내서 에러 라인을 확인할 수 있다.


우오옹!!

'Programming > php' 카테고리의 다른 글

php chunked encdoing  (0) 2015.02.02
PHP 웹 다국어 지원 트릭  (0) 2015.02.02
php simpleXML saveXML 정렬하기 (well-formed XML)  (0) 2014.12.23
php simpleXML  (0) 2014.12.22
xcache 1.3.2 for php 5.3.22 for ARM  (0) 2014.11.11
Posted by 구차니
Programming/qt2015. 1. 12. 14:31

mkspecs로 어떻게 하는거 같은데

4.8대 내용만 보이고 5.x 대 내용은 잘 안보이는것 같다...


[링크 : http://doc.qt.io/qt-5/supported-platforms.html]

    [링크 : http://qt-project.org/wiki/Category:Devices]

    [링크 : http://qt-project.org/wiki/AddDevice]

[링크 : http://www.qt.io/download-open-source/#]

    [링크 : http://download.qt-project.org/.../qt/5.4/5.4.0/single/qt-everywhere-opensource-src-5.4.0.tar.gz]



아.. 몰라몰라 일단 중단

'Programming > qt' 카테고리의 다른 글

qt 4.8.5 neon / cross compile  (0) 2015.01.15
qt 4.8.5 neon 활성화 하기  (1) 2015.01.15
qt dom  (0) 2014.12.22
qt 4.8.5 임베디드 빌드 옵션  (0) 2014.12.16
qt 5.3 html5 v8  (0) 2014.12.16
Posted by 구차니
Programming/web 관련2015. 1. 7. 09:12

web socket은 웹 서버/클라이언트에서 socket을 열어

ajax 보다 편하고 가볍고 빠르게 통신하는 표준규약으로 현재 표준은 아니며 draft 상태이다.


node.js에서는

조금은 더 자동화 시킨 Socket.io 를 제공하지만, node.js 서버 외에는 구현체가 없어서 사용이 용이하지 않다.


web socket은

http, 80번 포트를 사용하며

Protocol Overhead 라는 방식으로 동일 프로토콜 / 커넥션을 이용해

헤더로 구분 복수개의 커넥션을 처리하는 식으로 처리하게 된다.


websocket 헤더는 "Upgrade"로 붙는다.



[링크 : http://helloworld.naver.com/helloworld/textyle/1336]

[링크 : http://caniuse.com/#search=websocket] 지원현황

[링크 : http://en.wikipedia.org/wiki/WebSocket]

'Programming > web 관련' 카테고리의 다른 글

웹 서버별 특징  (0) 2015.09.11
DASH - Dynamic Adaptive Streaming over HTTP  (0) 2015.09.11
html / input type radio에서의 reset 처리  (0) 2015.01.06
HTML META cache  (0) 2014.10.20
aptana / eclipse  (0) 2014.08.25
Posted by 구차니
Programming/web 관련2015. 1. 6. 09:26

checker 어트리뷰트를 통해 설정해두면

reset시 그 값으로 설정된다.


[링크 : http://www.homejjang.com/05/RadioButton.php]

'Programming > web 관련' 카테고리의 다른 글

DASH - Dynamic Adaptive Streaming over HTTP  (0) 2015.09.11
웹소켓(websocket)  (0) 2015.01.07
HTML META cache  (0) 2014.10.20
aptana / eclipse  (0) 2014.08.25
node.js  (0) 2014.07.07
Posted by 구차니