Results 1 to 2 of 2

Thread: make install problem with (back)slashes

  1. #1
    Join Date
    Oct 2008
    Location
    Budapest, Hungary
    Posts
    11
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default make install problem with (back)slashes

    I wish to use "make install" to export files from my built project to an external directory. Inserting INSTALLS to my pro file, target.path works flawlessly, my application executable file is copied there. However inserting my translations rules generates error.

    ...
    INSTALLDIR_WIN32 = ../installer/win32_test
    TS_DIR = ../translations
    ...
    win32 {
    translations.files = $$TS_DIR/*.qm
    translations.path = $${INSTALLDIR_WIN32}/translations
    INSTALLS += translations
    }
    ...

    ...
    cp d:\Users\Brazso\work\qmp3gain\translations\qmp3gai n_hu.qm d:/Users/Brazso/work/qmp3gain/src/../installer/win32_test/translations/
    cp: cannot create regular file `d:/Users/Brazso/work/qmp3gain/src/../installer/win32_test/translations/d:\\Users\\Brazso\\work\\qmp3gain\\translations\\q mp3gain_hu.qm': No such file or directory
    make[2]: [install_translations] Error 1 (ignored)
    cp "../bin/qmp3gain.exe" "d:/Users/Brazso/work/qmp3gain/installer/win32_test/qmp3gain.exe"
    ...

    Of course the generated Makefile already contains the backslashes:
    ...
    install_translations: first FORCE
    @$(CHK_DIR_EXISTS) d:$(INSTALL_ROOT)/Users/Brazso/work/qmp3gain/src/../installer/win32_test/translations/ || $(MKDIR) d:$(INSTALL_ROOT)/Users/Brazso/work/qmp3gain/src/../installer/win32_test/translations/
    -$(INSTALL_FILE) d:\Users\Brazso\work\qmp3gain\translations\qmp3gai n_hu.qm d:$(INSTALL_ROOT)/Users/Brazso/work/qmp3gain/src/../installer/win32_test/translations/
    ...

    I use mingw32(-make) and its cp (copy) command expects slashes in file names, but unfortunately the first (source) parameter contains a filename with backslashes. This first parameter comes from the translations.files setting. It's strange the translations.path appears in unix style but translations.files appears in windows.
    How can I use own INSTALLS rules with mingw32?

  2. #2
    Join Date
    Oct 2008
    Location
    Budapest, Hungary
    Posts
    11
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Thumbs up Re: make install problem with (back)slashes

    This problem is already solved in QT repository:
    http://qt.gitorious.org/qt/qt/commit...c628970b88ac2a
    My problem is related to the git client placed into the windows path. Installed git client contains sh.exe, and before the afore-mentioned bug patch, qmake generates filenames containing slashes for separation except filenames from (INSTALLS) rule.files inside the Makefile. As a quick solution (until the update of my installed QT), removing git client from the path, the generated Makefile contains backslashes everywhere.

Similar Threads

  1. Replies: 4
    Last Post: 18th April 2010, 00:37
  2. make install ... no headers?
    By ucntcme in forum Qwt
    Replies: 4
    Last Post: 22nd January 2008, 07:39
  3. How install fonts with make install
    By jiveaxe in forum Qt Programming
    Replies: 1
    Last Post: 2nd January 2008, 19:38
  4. "make install" doesn't install binary
    By jiveaxe in forum Newbie
    Replies: 2
    Last Post: 2nd January 2008, 12:00
  5. make install with debug_and_release_target
    By aba in forum Qt Programming
    Replies: 0
    Last Post: 17th April 2006, 19:28

Tags for this Thread

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.