-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wxwidgets use script issues #210
Comments
commit diff ignoring whitespace 3be2406?w=1 |
a current scenario is to build externpro on CentOS 6 and then use the built-on-CentOS-6 version of externpro to build other projects on CentOS 7 -- not really a supported scenario, but something that's currently happening anyway we're now seeing link errors on CentOS 7
https://isrhub.usurf.usu.edu/petemace/VantageSuper/pull/2777#issuecomment-114074 |
explanation of the cause of the link errorthe recent changes 0072ddd#diff-1fd8734340c4afa901342dce6ea97a39 to the wx use script (to set IMPORTED targets) basically changed us from using
$ {smanders@lin-compile2} /opt/extern/externpro-18.08.3-gcc621-64-Linux
08/21 10:56:13 > ./bin/wx-config --prefix=. --libs
-L./lib -pthread
./lib/libwx_gtk2u_xrc-3.1.a
./lib/libwx_gtk2u_qa-3.1.a
./lib/libwx_baseu_net-3.1.a
./lib/libwx_gtk2u_html-3.1.a
./lib/libwx_gtk2u_adv-3.1.a
./lib/libwx_gtk2u_core-3.1.a
./lib/libwx_baseu_xml-3.1.a
./lib/libwx_baseu-3.1.a
-pthread -lX11 -lXxf86vm -lSM -pthread -lgtk-x11-2.0 -lgdk-x11-2.0
-latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0
-lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0
-lgthread-2.0 -lrt -lglib-2.0
-lwxregexu-3.1 -lwxexpat-3.1 -lwxtiff-3.1 -lwxjpeg-3.1 -lwxpng-3.1 -lwxzlib-3.1
-ldl -lm the problem was that the paths to the wx libraries were absolute and specific to the build system - which would mess up cmake-generated targets files of internpro projects that depend on wx and boost (see issue #194) so to get the gtk libraries (that you see in however, it appears that there are differences here between CentOS 6 and 7 CentOS 6
CentOS 7
notice that gthread-2.0 is missing from CentOS 7? hence the link error |
* continue to use pkg-config to find GTK3 (there is no FindGTK3.cmake provided by cmake) * the FindGTK2.cmake appears to find all the correct gtk2 libraries * using pkg-config to find GTK2 resulted in differences between CentOS 6 and 7 * issue #210 (comment)
commit diff ignoring whitespace c99b555?w=1 |
I held this issue open for a little while to see if I was going to need to somehow detect whether GL and GLU needed to be specified as dependencies for the wx gl library https://github.com/smanders/externpro/blob/18.08.3/projects/use/usexp-wxwidgets-config.cmake#L109 -- everything and everywhere I've built and linked (Ubuntu, CentOS) hasn't required GL and GLU, but that isn't too say that it won't be needed at some point... I just have hesitated to require them and I'm not even sure the best way to detect that they're on the system and required wx.cmake does require that OpenGL is found (during cmake-step of externpro build) https://github.com/smanders/externpro/blob/18.08.3/projects/wx.cmake#L59-L68 - it just seems heavy-handed to require projects using wxWidgets from externpro to also have OpenGL development packages installed when they may not even need the wx gl library
the VANTAGE RPM doesn't specify any of it's runtime dependencies... yet somehow it appears that yum was detecting libglu1-mesa as a dependency and was installing it with VANTAGE -- until the externpro 18.08 releases which stopped using now it appears that the DRACO plugin (which uses externpro 17.05.1 and VantageShared from the VANTAGE_3-46-1 tag) requires libglu1-mesa (probably because of wx...) |
completed with commits (to the dev branch) referenced above |
the use script should only add an imported wx library if the target doesn't already exist
The text was updated successfully, but these errors were encountered: