Results 1 to 4 of 4

Thread: make a file on qtopia errors

  1. #1
    Join Date
    Apr 2014
    Posts
    2
    Qt products
    Platforms
    MacOS X

    Default make a file on qtopia errors

    Im trying to compile a program on a friendlyARM qtopia 2.2.0 but i getting some errors and quite frankly i don't know what i'm doing

    Makefile code:
    Qt Code:
    1. IDIR =./
    2. CC=gcc
    3. CFLAGS=-I$(IDIR)
    4.  
    5. ODIR=obj
    6. LDIR =./
    7.  
    8. LIBS=-lgd -lrt
    9.  
    10. _DEPS = main.h Makefile
    11. DEPS = $(patsubst %,$(IDIR)/%,$(_DEPS))
    12.  
    13. _OBJ = main.o serial.o fb.o menu_main.o timer.o cmdin.o buzzer.o statemachine.o inout.o network.o text_file_input.o text_file_input_oven.o
    14. OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))
    15.  
    16.  
    17. $(ODIR)/%.o: %.c $(DEPS)
    18. $(CC) -c -o $@ $< $(CFLAGS)
    19.  
    20. main: $(OBJ)
    21. gcc -o $@ $^ $(CFLAGS) $(LIBS)
    22.  
    23. .PHONY: clean
    24.  
    25. clean:
    26. rm -f $(ODIR)/*.o *~ core $(INCDIR)/*~
    To copy to clipboard, switch view to plain text mode 

    error codes:
    Qt Code:
    1. /sdcard/images/makef # Makefile
    2. Makefile: line 1: IDIR: not found
    3. Makefile: line 3: IDIR: not found
    4. Makefile: line 6: LDIR: not found
    5. Makefile: line 8: -lrt: not found
    6. Makefile: line 10: _DEPS: not found
    7. Makefile: line 11: IDIR: not found
    8. Makefile: line 11: _DEPS: not found
    9. Makefile: line 11: patsubst: not found
    10. Makefile: line 11: DEPS: not found
    11. Makefile: line 13: _OBJ: not found
    12. Makefile: line 14: ODIR: not found
    13. Makefile: line 14: _OBJ: not found
    14. Makefile: line 14: patsubst: not found
    15. Makefile: line 14: OBJ: Permission denied
    16. Makefile: line 17: ODIR: not found
    17. Makefile: line 17: DEPS: not found
    18. Makefile: line 17: /%.o:: not found
    19. Makefile: line 18: CC: not found
    20. Makefile: line 18: CFLAGS: not found
    21. Makefile: line 18: can't open : no such file
    22. Makefile: line 18: -c: not found
    23. Makefile: line 20: OBJ: Permission denied
    24. Makefile: line 20: main:: not found
    25. Makefile: line 21: CFLAGS: not found
    26. Makefile: line 21: LIBS: not found
    27. Makefile: line 21: gcc: not found
    28. Makefile: line 23: .PHONY:: not found
    29. Makefile: line 25: clean:: not found
    30. Makefile: line 26: ODIR: not found
    31. Makefile: line 26: INCDIR: not found
    To copy to clipboard, switch view to plain text mode 

    when i use "make -f Makefile" i get this error "bin/sh: make: not found" there is a "sh" file in the bin folder but it look like i need to install some more stuff, any markers on this ?
    Last edited by mmkevin; 11th April 2014 at 18:51.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: make a file on qtopia errors

    The first bunch of errors are because you tried to run a Makefile as if it were a shell script. The shell tried to run each line... Most of them make no sense as a shell command.

    The second error is because you do not have make installed.

  3. #3
    Join Date
    Apr 2014
    Posts
    2
    Qt products
    Platforms
    MacOS X

    Default Re: make a file on qtopia errors

    ChrisW67 how can I install make?

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: make a file on qtopia errors

    It is part of whatever development (or cross-development) environment you install to build applications for your embedded system. I am not familiar with that system. It looks like they provide a cross-compiling GCC version that you use with your host Linux system's make. Install your host system make using your host system's packaging system.

Similar Threads

  1. nedd help on MAKE ERROR of qtopia opensource 4.2.4 PLZ
    By halloworld in forum Qt for Embedded and Mobile
    Replies: 5
    Last Post: 25th November 2008, 09:35
  2. How can we make multi views with Qtopia
    By learning_qt in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 23rd September 2008, 02:09
  3. make error when compile qtopia 4.2.4
    By evewei in forum Installation and Deployment
    Replies: 2
    Last Post: 22nd November 2007, 11:44
  4. Qtopia core 4 make problem on FC5
    By nousetest in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 8th April 2007, 10:44
  5. Qt4.1.4 make errors.
    By impeteperry in forum Installation and Deployment
    Replies: 11
    Last Post: 1st July 2006, 17:27

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.