Results 1 to 3 of 3

Thread: Failed on building qlalr submodule when compiling QT5 for VS2012

  1. #1
    Join Date
    Apr 2013
    Posts
    1
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Question Failed on building qlalr submodule when compiling QT5 for VS2012

    It seems that there is a constant enum in qt5/qlalr/src/grammar_p.h named "ERROR", and it causes a C2059 error "syntax error: constant". I tried to rename "ERROR" to "ERROR_", and this error disappeared, but other errors occured.

    Is there a constant named "ERROR" before this file be compiled? What should I do to solve this problem? Thanks in advance

  2. #2

    Default Re: Failed on building qlalr submodule when compiling QT5 for VS2012

    Did you ever solve this issue? I am running into exactly the same problem.

  3. #3

    Default Re: Failed on building qlalr submodule when compiling QT5 for VS2012

    I have resolved this. The submodule "qlalr" should NOT be downloaded when building Qt. It is intended only as an internal tool for Qt developers, and even then, it is intended only to be built by itself, not as part of a full Qt build. See http://stackoverflow.com/a/15893226/368896.

Similar Threads

  1. Help! Building Qt libraries for VS2012 runtime
    By gil_mo in forum Installation and Deployment
    Replies: 2
    Last Post: 31st March 2013, 12:02
  2. Replies: 2
    Last Post: 25th March 2013, 19:06
  3. QLALR examples
    By dennis in forum Newbie
    Replies: 5
    Last Post: 9th October 2010, 15:57
  4. Building Qtopia has failed
    By urkon in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 8th April 2007, 15:44
  5. Compiling Qtopia-Example failed
    By danielkr in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 10th October 2006, 23:42

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.