Bugs item #3438654, was opened at 2011-11-15 23:44
Message generated for change (Tracker Item Submitted) made by ko1ia
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=102915&aid=3438654&group_id=2915

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nickolay Cherney (ko1ia)
Assigned to: Nobody/Anonymous (nobody)
Summary: wxWidgets link order breaks build

Initial Comment:
It looks like cmake\modules\wxwidgets.cmake contains command 
  find_package(wxWidgets COMPONENTS core base QUIET)
which results in wrong link order (al least for ld/MinGW/MSWin), That's because 
the given order of the wxWidgets libraries (i.e. core base) goes directly to 
the internals of cmake\modules\FindwxWidgets.cmake, where it is converted to 
linker's option string (showing archives), which is, in turn, fed to ld from 
command string, that results in unresolved symbols (from wx core lib). 
By the way, the comments in FindwxWidgets.cmake suggest different order (i.e. 
base core) which results in correct build (see attachment).

Built PLplot with command:
cmake -G "MinGW Makefiles" -DwxWidgets_ROOT_DIR=c:/wxWidgets 
-DwxWidgets_LIB_DIR=c:/wxWidgets/lib/gcc_lib -DCMAKE_INSTALL_PREFIX=c:/PLplot 
-DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=OFF ..

Other info:
- MinGW (get-inst-20110802);
- cmake 2.8.6;
- wxWidgets 2.9.2, built in directory c:\wxWidgets (for cmake's 
WIN32_FIND_STYLE) with command: cd build/msw & mingw32-make.exe -f makefile.gcc 
BUILD=release MONOLITHIC=0 UNICODE=1 SHARED=0


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=102915&aid=3438654&group_id=2915

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to