Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Manual changes in .pro-file cause qmake to throw a "Parse Error"...
QtWS25 Last Chance

Manual changes in .pro-file cause qmake to throw a "Parse Error"...

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 2.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    joergpauly
    wrote on 22 May 2013, 18:06 last edited by
    #1

    The title says it:

    If I edited any .pro-file the next time calling qmake ends with an error saying "Parse error".
    Qt-Creator then shows the first line in the file as the source of that error, because there is no line information in this error message.

    It makes no difference what I edited: even adding a white space and removing it causes this behavior. The only way to get qmake working again is to to reject all changes i.e. by recalling svn's repository copy.
    Also it makes no difference what Qt version on which platform I use: it shows up on 4.8.4 for MinGW and also on 4.8.1 for Linux x64.

    I'm a little confused about that, so does anyone know a solution or a workaround?

    Thank you all in advance
    Joerg

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on 22 May 2013, 18:26 last edited by
      #2

      What are you using to change the .pro file, qt creator?
      Are you using a special character set?
      What do you mean with white space?
      White space means a space as introduced by the space bar of your key board, but also some other stuff.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • J Offline
        J Offline
        joergpauly
        wrote on 22 May 2013, 19:20 last edited by
        #3

        I use the VERSION tag to name my .so's with a version link. This sometimes must be changed.
        I use QtCreator to edit it and the encoding is UTF8.

        You're right, I ment the white spaces produced by the space bar.

        1 Reply Last reply
        0
        • K Offline
          K Offline
          koahnig
          wrote on 22 May 2013, 19:35 last edited by
          #4

          In general I would assume that qt creator does the right thing.
          I had issues with the encoding in the past on windows, but I could not edit the source files and had to choose explicitly the encoding for some source files. After being annoyed too many times I have decided to choose the system encoding for all source files.

          May be that this is the problem. However, this is using a stick and trying to hit something in the fog.

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          0

          1/4

          22 May 2013, 18:06

          • Login

          • Login or register to search.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved