On 2020-08-01 09:56, Richard Kimberly Heck wrote:
On 8/1/20 3:48 AM, Daniel wrote:
I am trying to fix Ticket #9376. My attempt so far is attached.
However, I have hit a little road block in that the clang compiler
does not give me useful information (for me at least):

CXXLD    lyx
Undefined symbols for architecture x86_64:
   "std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> > lyx::convert<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> >,
lyx::Length>(lyx::Length)", referenced from:
       lyx::LyXRC::write(std::__1::basic_ostream<char,
std::__1::char_traits<char> >&, bool, std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > const&) const
in liblyxcore.a(LyXRC.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[4]: *** [lyx] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
ERROR: Cannot build and install lyx for x86_64.


Maybe someone knows what I might be doing wrong? My suspicion is that
the error is at

Length screen_width = Length(7, Length::CM);

But I am not sure.

I find linker errors totally maddening and do not understand them. But
it is suspicious that it says the symbol is not found for x86_64. Maybe
some system header?

I don't know what system header it could be.

I have found some reference to Qt (https://stackoverflow.com/questions/18973042/symbols-not-found-for-architecture-x86-64-on-qtcreator-project).

And I am sure that I do not fully understand how this length stuff works. I am using a line edit and combo to set the width and unit of the limit screen width. I just copied the combo over from another ui file in Qt Designer. How do they both get connected to each other and how is the unit "LengthCombo" populated with the right units? As often there are several files with different implementations. I am not sure which one is right in the Prefs situation.

Daniel

--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to