[Marble-bugs] [marble] [Bug 333765] New: Building marble-qt fails because of wrong entry point

Aleksei Aleshin alalexey at gmail.com
Wed Apr 23 11:32:43 UTC 2014


https://bugs.kde.org/show_bug.cgi?id=333765

            Bug ID: 333765
           Summary: Building marble-qt fails because of wrong entry point
    Classification: Unclassified
           Product: marble
           Version: unspecified
          Platform: MS Windows
                OS: MS Windows
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: marble-bugs at kde.org
          Reporter: alalexey at gmail.com

src/CMakeLists.txt:151 is
add_executable (marble-qt WIN32 ${marble_SRCS} ${marble_HDRS})

So cmake generates project that has SUBSYSTEM:WINDOWS. This assumes that
marble-qt's entry point is WinMain (). But it is "int main(...)" and linking
fails with error
unresolved external symbol WinMain referenced in function __tmainCRTStartup

Reproducible: Always

Steps to Reproduce:
1. Clone qt branch from git repository
2. Run cmake -DQTONLY=ON -DQT5BUILD=ON -DCMAKE_INSTALL_PREFIX=../marble-bin
-DPACKAGE_ROOT_PREFIX=../marble-bin -G "Visual Studio 11 Win64" ../marble
3. Build ALL_BUILD project
Actual Results:  
Build fails

Expected Results:  
Successful build

Versions:
Windws 8.1
Visual Studion 2012
Qt 5.1.2 x64

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Marble-bugs mailing list