Results 1 to 3 of 3

Thread: qt creator and cross compiler

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2012
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default qt creator and cross compiler

    HI, is my first time using qt creator and I need to create a graphical interface to use in an Arm 11 board.
    I have installed in my Linux (Debian) the cross compiler and the arm-linux-gcc to compile my projects but my main problem is that I don't understand to configure the qt creator to compile using the cross compiler or arm-linux-gcc libreries.
    I red about qmake, cmake... but I don't know somethnig about this.
    I don't know if I have to reference the lib's, include's in the qt creator or if I have to put the ref's in the command line when I try to compile.
    Could somebdy explain me how to configure the qt creatorto compile the projects using cross compile and how to compile the projects?
    I red a lot of information but I don't understand because I'm very inexpert.
    Thanks very much.

    I find the Makefile in a project,
    CC = gcc
    CXX = g++
    DEFINES = -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
    CFLAGS = -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES)
    CXXFLAGS = -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES)
    INCPATH = -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -I.
    LINK = g++

    and I edit this Makefile changing:

    CC = /usr/local/arm/4.3.2/bin/arm-linux-gcc
    CXX = /usr/local/arm/4.3.2/bin/arm-linux-g++
    DEFINES = -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
    CFLAGS = -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES)
    CXXFLAGS = -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES)
    INCPATH = -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -I.
    LINK = /usr/local/arm/4.3.2/bin/arm-linux-g++


    and when I run make, the error output is:
    make: arm-linux-g++: Program not found
    Last edited by RAI32; 18th January 2012 at 11:37.

Similar Threads

  1. Cross-compiler Qt4 app from ubuntu to windows xp
    By tiho_bg in forum Qt Programming
    Replies: 3
    Last Post: 1st December 2011, 17:52
  2. change compiler for cross compiling
    By Mr Bean in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 17th February 2011, 13:35
  3. problems with making cross compiler
    By nataly in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 15th December 2009, 06:44
  4. Qt Embedded cross compiler make fails
    By quado player in forum Installation and Deployment
    Replies: 0
    Last Post: 1st September 2009, 14:22
  5. Cross compiler in Linux
    By vincat in forum Qt Programming
    Replies: 1
    Last Post: 11th June 2009, 07:14

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.