Results 1 to 3 of 3

Thread: lupdate doesn't see any sources in subdirs

  1. #1
    Join Date
    Dec 2008
    Posts
    32
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    17

    Default lupdate doesn't see any sources in subdirs

    Hello!
    If i create a project like this
    Qt Code:
    1. TEMPLATE = app
    2. CONFIG += qt
    3. TARGET = aterm
    4. SOURCES += main.cpp mainwindow.cpp tabwidget.cpp colordialog.cpp commandsdialog.cpp
    5. HEADERS += mainwindow.h tabwidget.h config.h colordialog.h commandsdialog.h
    6. FORMS += mw.ui colorformbase.ui commands.ui
    7. include (qtermwidgetmod.pri)
    8. TRANSLATIONS=term_ru.ts
    To copy to clipboard, switch view to plain text mode 
    and include qtermwidgetmod.pri contents
    Qt Code:
    1. DEPENDPATH += qtermwidgetmod
    2. INCLUDEPATH += qtermwidgetmod
    3. VPATH += qtermwidgetmod
    4. SOURCES += TerminalCharacterDecoder.cpp KeyboardTranslator.cpp Screen.cpp History.cpp BlockArray.cpp (a lot of files skipped) konsole_wcwidth.cpp
    5. HEADERS += TerminalCharacterDecoder.h Character.h CharacterColor.h (a lot of files skipped) ShellCommand.h qtermwidget.h
    To copy to clipboard, switch view to plain text mode 
    Here is the problem with lupdate for all files in subdirectory "qtermwidgetmod":
    Qt Code:
    1. # lupdate term.pro
    2. lupdate error: Cannot open C++ source file: (filename): no such file or directory
    To copy to clipboard, switch view to plain text mode 

    The program itself compiles and works fine.
    Is there any way to force lupdate find these files except explicit definition of subdir to every file in qtermwidgetmod.pri (like SOURCES += qtermwidgetmod/Screen.cpp ... ) ?

    Thanks!

  2. #2
    Join Date
    Dec 2006
    Location
    Bangalore, India
    Posts
    38
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1
    Thanked 1 Time in 1 Post

    Post Re: lupdate doesn't see any sources in subdirs

    Even I don't have any idea but why don't you try the following method.

    Qt Code:
    1. HEADERS += qtermwidgetmod/Screen..h \
    2. qtermwidgetmod/TerminalCharacterDecoder.h \
    3. SOURCES += qtermwidgetmod/Screen.cpp \
    4. qtermwidgetmod/TerminalCharacterDecoder.cpp \
    To copy to clipboard, switch view to plain text mode 
    WINNERS DON`T D DIFFERENT THINGS THEY D THINGS differently.

  3. The following user says thank you to Cutey for this useful post:

    araglin (6th February 2009)

  4. #3
    Join Date
    Dec 2008
    Posts
    32
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    17

    Default Re: lupdate doesn't see any sources in subdirs

    Thanks for advice. This way will surely work out.
    But if we have some keywords such as INCLUDEPATH, VPATH... why we can't use it with lupdate? From my point of view it is rather strange.

Similar Threads

  1. Library and Subdirs building problem
    By herenbdy in forum Qt Programming
    Replies: 2
    Last Post: 10th July 2008, 03:10

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.