On Mon, Jul 8, 2013 at 5:34 PM, Kornel Benko <kor...@lyx.org> wrote: > Am Montag, 8. Juli 2013 um 14:49:11, schrieb Scott Kostyshak > <skost...@lyx.org> > >> On Mon, Jul 8, 2013 at 4:13 AM, Kornel Benko <kor...@lyx.org> wrote: > >> > Am Sonntag, 7. Juli 2013 um 16:14:27, schrieb Scott Kostyshak > >> > <skost...@lyx.org> > >> > > >> > Maybe, the gcc-option '-fvisibility=visible" could help. > >> How do I specify this in the CMakeLists.txt file? > > > > add_definitions("-fvisibility=visible") > > should do.
I added that after add_definitions(-DUSE_XTEST -DUSE_I18N) and I got the following errors: cd /home/scott/lyxbuilds/master/CMakeBuild/autotests/xvkbd && /usr/bin/cc -DUSE_I18N -DUSE_XTEST -g -I/home/scott/lyxbuilds/master/CMakeBuild -I/home/scott/lyxbuilds/master/repo/src -I/usr/include/enchant -I/home/scott/lyxbuilds/master/repo/boost -DBOOST_USER_CONFIG="<config.h>" -fvisibility=visible -o CMakeFiles/xvkbd.dir/xvkbd.c.o -c /home/scott/lyxbuilds/master/repo/development/autotests/xvkbd/xvkbd.c cc: error: unrecognized visibility value ‘visible’ cc: note: valid arguments to ‘-fvisibility=’ are: default hidden internal protected make[2]: *** [autotests/xvkbd/CMakeFiles/xvkbd.dir/xvkbd.c.o] Error 1 make[2]: Leaving directory `/home/scott/lyxbuilds/master/CMakeBuild' make[1]: *** [autotests/xvkbd/CMakeFiles/xvkbd.dir/all] Error 2 make[1]: /usr/bin/cmake -E cmake_progress_report /home/scott/lyxbuilds/master/CMakeBuild/CMakeFiles I then tried all of "default", "hidden", "internal", and "protected" (although I did not do a clean make each time, I just changed it in CMakeLists.txt and ran make. Let me know if I should do a clean make). >> The strange thing is that if I build it directly by running (as the > >> instructions say): > >> xmkmf > >> make > > > > You mean libxmu6 built with xmkmf? I was ambiguous. I meant xvkbd. If I go to the directory development/autotests/xvkbd and I run xmkmf and then make, it builds without error. >> Then it builds without error. Is the difference necessarily different >> flags? > > > > No clue, this is confusing. Could you elaborate the flag differences This was just a guess. Now I'm guessing that running xmkmf is what causes the difference. Scott