From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15620 invoked by alias); 6 Feb 2014 12:21:35 -0000 Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org Received: (qmail 15610 invoked by uid 89); 6 Feb 2014 12:21:35 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ob0-f177.google.com Received: from mail-ob0-f177.google.com (HELO mail-ob0-f177.google.com) (209.85.214.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 06 Feb 2014 12:21:34 +0000 Received: by mail-ob0-f177.google.com with SMTP id wp18so2059068obc.8 for ; Thu, 06 Feb 2014 04:21:32 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.60.67.1 with SMTP id j1mr1495686oet.72.1391689292100; Thu, 06 Feb 2014 04:21:32 -0800 (PST) Received: by 10.182.250.162 with HTTP; Thu, 6 Feb 2014 04:21:32 -0800 (PST) Date: Thu, 06 Feb 2014 12:21:00 -0000 Message-ID: Subject: Graphic lib port From: Samuel Charnet To: ecos-devel@ecos.sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00000.txt.bz2 Hi, I want to port the =B5GFX graphic library BUT I have some troubles to make = it. I know there is NanoX as a package but it is too big for stm32. For instance, I have my first eCos compiled (with some ugly config patch), I have no conflicts. I must have missed something because I need to redefine all MACRO to compile my main code. Is there a solution to export all needed MACRO in a header file ? Or another method to do it ? Another thing : My =B5GFX header file are not in the 'ggg_install' directory, is it normal ? And for finishing, if I want to specify a value for a 'define' command in my CDL script, like : define GFX_USE_GDISP TRUE but it seems don't work, I don't find anything about this in documentation. This is some piece of config : ssd1289_cortexm_stm32.cdl : cdl_package CYGPKG_DEVS_UGFX_SSD1289_CORTEXM_STM32 { display "STM32 SSD1289 graphic device support" parent CYGPKG_GFX_UGFX active_if CYGPKG_GFX_UGFX implements CYGHWR_GFX_UGFX_GDISP_DEVICE #define GFX_NEED_GDISP compile gdisp_lld_SSD1289.c description " TODO later." (...and many options) } gfx_ugfx.cdl : cdl_package CYGPKG_GFX_UGFX { display "uGFX graphic library" #include_dir cyg/io #doc ref/io-flash.html description " This package provides support for the graphic devices on the current platform." define GFX_USE_GDISP TRUE parent CYGPKG_GFX_UGFX_GDISP_DEVICES #active_if CYGPKG_GFX_UGFX active_if CYGPKG_HAL_CORTEXM_STM32 include_dir . include_dir boards include_dir gdisp include_dir gwin include_dir gos # Main compile \ src/gfx.c \ src/ecos/ecos.c (...and many files to compile) cdl_interface CYGHWR_GFX_UGFX_GDISP_DEVICE { display "Hardware FLASH device drivers" no_define requires { CYGHWR_GFX_UGFX_GDISP_DEVICE >=3D 1 } description " This calculated option gives the number of graphics devices dri= vers on the current platform. The generic ugfx graphic support requi= res at least one device." (...and many options) } Another thing : If I don't add 'include_dir .' in the gfx_ugfx.cdl file, only header from subdirectory are found. I have nothing in documentation about this. I hope I don't ask silly questions :D Thanks in advance for help.