View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010089CMakeCMakepublic2010-01-04 03:542010-05-10 20:51
ReporterTimour 
Assigned ToMiguel Figueroa 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionFixed in Version 
Summary0010089: wxWidgets compilation problem with MinGW
DescriptionHello,
I tried to compile the wxWidgets Minimal project (located at <wxWidgetsDir>/samples/minimal) using the attached CMakeLists.txt file.
CMake generator succeeded but when I invoked make it failed with multiple errors like

libwxmsw28_core.a(corelib_window.o):window.cpp:(.text+0x1a7b): undefined reference to `wxSystemOptions::GetOptionInt(wxString const&)'

However when I changed line 27 of CMakeLists.txt from
  find_package(wxWidgets COMPONENTS base core REQUIRED)
to
  find_package(wxWidgets COMPONENTS core base REQUIRED)
build succeeded.

I spent a lot of time in attempts to fix the problem until I finally tried this permutation and that was frustrating.

This CMakeLists.txt file was not invented by myself, it was taken from http://wiki.wxwidgets.org/CMake. [^]

I think that the FindwxWidgets module must, if necessary, change the order of components chosen in find_package or indicate an error.

System information:
Windows XP SP3
MinGW 5.1.6 with gcc 3.4.5
wxWidgets 2.8.10
CMake 2.8
TagsNo tags attached.
Attached Filestxt file icon CMakeLists.txt [^] (2,193 bytes) 2010-01-04 03:54 [Show Content]

 Relationships

  Notes
(0020705)
Miguel Figueroa (developer)
2010-05-10 20:51

I have created a patch that specifies the importance of the order for MinGW users.

A mechanism for dealing with dependency issues is another issue I have been contemplating, but haven't had the time or access to diverse platforms for testing.

I will apply the patch and will close this issue as it is addressed somewhat with the comment and the dependency checking is discussed in issue 0009775.

 Issue History
Date Modified Username Field Change
2010-01-04 03:54 Timour New Issue
2010-01-04 03:54 Timour File Added: CMakeLists.txt
2010-05-10 16:06 Miguel Figueroa Status new => assigned
2010-05-10 16:06 Miguel Figueroa Assigned To => Miguel Figueroa
2010-05-10 20:51 Miguel Figueroa Note Added: 0020705
2010-05-10 20:51 Miguel Figueroa Status assigned => closed
2010-05-10 20:51 Miguel Figueroa Resolution open => fixed


Copyright © 2000 - 2018 MantisBT Team