While writing the procedures for building with QtCreator, some issues were discovered. The first was with running CMake on Windows. The first time it produces errors no matter which generator is selected. It also appeared that adding "‑G "MSYS Makefiles" caused it to work, but adding this before still caused errors. It turns out this was not necessary, simply clicking the Run CMake button a second time worked with no error. The previous post about this was updated.
The next problem was when trying to use the included MinGW (with GCC 4.4) in the Qt SDK. It was still trying to use the static linking, which is not supported in versions before GCC 4.5. It turns out there were two problems. First, the check to whether to add the static linking options should have been greater than 4.4, but was incorrectly less than 4.5. Second, the add_definitions command used in the CMake file adds compiler options, not linker options. The command add_target_properties should have been used with the LINK_FLAGS property option.
Due to these linking issues, the binaries posted on Sourceforge were not linked with static linking. This is not an issue with Linux since the required libraries will be present. However, for Windows, a missing DLL message will occur on a system without the required libraries. Therefore, a new binary zip file was updated (labels 0.1.16a). The update executable was actually tested on a Windows XP system without the require libraries this time. The sources and Linux binary were not updated. If building from source, the required libraries will be present. The repository on GitHub was updated with new tag release0.1.16a.
The final problem is in using the MinGW installed with the Qt SDK. Even though the static linking problems were corrected, the included MinGW cannot (alone) be used the build the project. The issue is that the awk utility is needed to create the auto-generated header files and there is not included awk utility with MinGW. It is included with the MSYS package.
Sunday, October 21, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
All comments and feedback welcomed, whether positive or negative.
(Anonymous comments are allowed, but comments with URL links or unrelated comments will be removed.)