What I realy need to build my own GUI Prgramm

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What I realy need to build my own GUI Prgramm

Jump to solution
2,920 Views
Joerg-SH
Contributor III

Hello community,

after I make some experience with different images of Linux I want to do the next step.

I think there a a lot of ways of programming a application.

I just want a simple graphic user interface, gpio and other hardware programming  and not to much overhead.

My preferred language is C. My Hardware is a Sabrelite.

I have made experience with Cortex M3/M4 programming, so it is not easy to get the right way on this new land :smileyhappy:

Be free and outer what you think.


regards

Joerg

Labels (2)
0 Kudos
Reply
1 Solution
2,240 Views
LeonardoSandova
Specialist I

1. Download latest BSP (for to the main MX6 page on freescale.com)

2. Follow the User Guide. Basically you install LTIB and do a build

3. Follow the QT page you sent me.

4. Flash the resulting image into a SD.

Leo

View solution in original post

0 Kudos
Reply
15 Replies
2,240 Views
LeonardoSandova
Specialist I

Hi Joerg,

I am not a programmer but I believe for scalability, you should use QT. Search on the community about ways to install QT4/5. In case you want an image with QT installed, try Yocto,

Leo

2,240 Views
Joerg-SH
Contributor III

Hello Leo,

I have tried Yocto on the Board. It is nice, but I didn't find a working How To to set up the Host PC.

This one Building QT for i.MX6 looks good and it worked for me till I should set the Path:

$ export PATH=$PATH:/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/

I don´t find where to download that.

regards

Joerg

0 Kudos
Reply
2,240 Views
LeonardoSandova
Specialist I

Do a LTIB build (try the minimal profile) with latest BSP (400). I have it on my PATH

b42214@vfae-server:~/fsl/BSP/src/linux/L3.0.35_4.0.0_130424/ltib$ ./ltib -m shell

Entering ltib shell mode, type 'exit' to quit

LTIB> echo $PATH

/home/b42214/fsl/BSP/src/linux/L3.0.35_4.0.0_130424/ltib/bin:/opt/freescale/ltib/usr/spoof:/home/b42214/fsl/BSP/src/linux/L3.0.35_4.0.0_130424/ltib/bin:/opt/freescale/ltib/usr/bin:/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin

LTIB>

0 Kudos
Reply
2,240 Views
Joerg-SH
Contributor III

I'm  not sure to do that. I read now for a while on the ltip.org side. There is a lot of things I have to understand and to do before I could do that.  Or there is a How To for i.mx6 that I don't find on search the freescale forum?

regards

Joerg

0 Kudos
Reply
2,241 Views
LeonardoSandova
Specialist I

1. Download latest BSP (for to the main MX6 page on freescale.com)

2. Follow the User Guide. Basically you install LTIB and do a build

3. Follow the QT page you sent me.

4. Flash the resulting image into a SD.

Leo

0 Kudos
Reply
2,240 Views
Joerg-SH
Contributor III

Hello Leo,

I still struggle on building Ltip.

For the first errors I find a solution on google but for this I don't find anything.

Processing platform: Host support packages

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

using /home/joerg/ltib/config/platform/host/ltib.preconfig

Processing: fake-provides

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

Processing: mkspooflinks

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

Processing: distcc

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

Processing: ccache

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

Processing: bison

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

Processing: flex

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

Processing: texinfo

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

Processing: autoconf

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

Processing: libtool

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

Processing: lkc

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

Processing: patch

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

Processing: wget-ssl

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

can't find spec file for wget-ssl

traceback:

main::build_rpm:783

  main::f_buildrpms:1077

   main::build_host_rpms:1492

    main::host_checks:1554

     main:562

Started: Tue Jun 25 07:07:52 2013

Ended:   Tue Jun 25 07:07:52 2013

Elapsed: 0 seconds

VERSION          : 13.2.1

CVS_VERSION      : $Revision: 1.91 $ (Savannah)

PLATFORM         : host

GNUTARCH         : x86_64

TOOLCHAIN        :

TOOLCHAIN_CFLAGS :

Build Failed



Joerg

0 Kudos
Reply
2,240 Views
LeonardoSandova
Specialist I

Which profile are you trying to compile? try the minimal profile first (to select this, just type ./ltib -m selectype) or deselect the failed pkg (./ltib -m config). In both cases, run ./ltib again.

Leo

0 Kudos
Reply
2,240 Views
Joerg-SH
Contributor III

joerg@joergwenglish:~/ltib$ ./ltib -m selectype

Installing host support packages.

This only needs to be done once per host, but may take up to
an hour to complete ...

If an error occurs, a log file with the full output may be found in:
/home/joerg/ltib/host_config.log

If you would like to see the log messages as the host packages are built and
installed:

   * Open another terminal in the same directory
   * Run the command: tail -f host_config.log
   * When you're done with the tail, use CTRL+C to exit

Exiting on error or interrupt
Please see >> /home/joerg/ltib/host_config.log for details

Both ends with the same result.   can find spec file wget-ssl

Joerg

0 Kudos
Reply
2,240 Views
LeonardoSandova
Specialist I

have you installed all needed HOST packages for ltib?

Leo

0 Kudos
Reply
2,240 Views
Joerg-SH
Contributor III

My mistake, I used the ltip from ltip.org

I have to use that  one from BSP Package.

Thank You Leo for help

Joerg

0 Kudos
Reply
2,240 Views
Joerg-SH
Contributor III

/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/bin/ld: cannot find /lib/libc.so.6

/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/bin/ld: cannot find /usr/lib/libc_nonshared.a

/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/bin/ld: cannot find /lib/ld-linux.so.3

collect2: ld returned 1 exit status

make: *** [busybox_unstripped] Error 1

error: Bad exit status from /home/joerg/ltib/tmp/rpm-tmp.12076 (%build)

RPM build errors:

    Bad exit status from /home/joerg/ltib/tmp/rpm-tmp.12076 (%build)

Build time for busybox: 5 seconds

Failed building busybox

f_buildrpms() returned an error, exiting

traceback:

main:572

Started: Wed Jun 26 14:31:14 2013

Ended:   Wed Jun 26 14:31:19 2013

Elapsed: 5 seconds

These packages failed to build:

busybox

Build Failed

Exiting on error or interrupt

joerg@joergwenglish:~/ltib$


Now I think I have done  everything right but it fails again...


0 Kudos
Reply
2,240 Views
LeonardoSandova
Specialist I

What Linux OS are you using?

ltib.org, not ltip.org :smileyhappy:

Leo

0 Kudos
Reply
2,240 Views
Joerg-SH
Contributor III

Ubuntu 12.04.2

0 Kudos
Reply
2,240 Views
LeonardoSandova
Specialist I

Hi,

Not sure how to solve your issue. One thing you can try, is to download prebuild images, then mount the rootfs.ext2 on your host, and use that rootfs when compiling QT. This way you do not need to deal with compilation issues.

Leo

0 Kudos
Reply
2,240 Views
Joerg-SH
Contributor III
0 Kudos
Reply