(Python) lyx2lyx linking to (C++) LyX?

2022-04-09 Thread Scott Kostyshak
I know nothing of lyx2lyx but have a question that recently came up. Is it common when exporting to older LyX formats to convert some insets to ERT? It seems common, e.g., when adding a feature in a new version of LyX that does not exist in an older version of LyX. If it is common, from what I un

Re: Linking error

2020-10-14 Thread Richard Kimberly Heck
On 10/14/20 3:25 PM, Yuriy Skalko wrote: >> It's the other way that's needed here: >> >> template<> >> unsigned long long convert(string const & s) >> >> { >> >> return strtoull(s); >> >> } >> >> >> I assume that will fix it. >> >> >> Riki > Thanks, it helps. Great, fixed then. Riki -- lyx-dev

Re: Linking error

2020-10-14 Thread Yuriy Skalko
> It's the other way that's needed here: > > template<> > unsigned long long convert(string const & s) > > { > > return strtoull(s); > > } > > > I assume that will fix it. > > > Riki Thanks, it helps. Yuriy diff --git a/src/support/convert.cpp b/src/support/convert.cpp index af0ad62f2b..7

Re: Linking error

2020-10-14 Thread Richard Kimberly Heck
On 10/14/20 12:50 PM, José Abílio Matos wrote: On Wednesday, October 14, 2020 4:37:18 PM WEST Richard Kimberly Heck wrote: > I guess size_t must be unsigned long long on your machine? Can you try > adding a template declaration for convert to > support/convert.cpp? > > Riki It is alread

Re: Linking error

2020-10-14 Thread Yuriy Skalko
> I guess size_t must be unsigned long long on your machine? Can you try adding > a template declaration for convert to support/convert.cpp? > > Riki As José said it is already defined on my 64-bit system. Probably CMake files (I use it for build) should be updated. Yuriy -- lyx-devel mailing

Re: Linking error

2020-10-14 Thread José Abílio Matos
On Wednesday, October 14, 2020 4:37:18 PM WEST Richard Kimberly Heck wrote: > I guess size_t must be unsigned long long on your machine? Can you try > adding a template declaration for convert to > support/convert.cpp? > > Riki My first joke would be to replace all the code by: #include auto

Re: Linking error

2020-10-14 Thread José Abílio Matos
On Wednesday, October 14, 2020 4:37:18 PM WEST Richard Kimberly Heck wrote: > I guess size_t must be unsigned long long on your machine? Can you try > adding a template declaration for convert to > support/convert.cpp? > > Riki It is already there: #ifdef HAVE_LONG_LONG_INT template<> string con

Re: Linking error

2020-10-14 Thread Richard Kimberly Heck
On 10/14/20 11:12 AM, Yuriy Skalko wrote: I have linking error after commit 28ae543a (Fix signed-ness warnings): src/CMakeFiles/LyX2.4.dir/output_latex.cpp.obj:output_latex.cpp:(.text+0x1b1a): undefined reference to `unsigned long long lyx::convert, std::allocator > >(std::__cxx11::basic_

Linking error

2020-10-14 Thread Yuriy Skalko
I have linking error after commit 28ae543a (Fix signed-ness warnings): src/CMakeFiles/LyX2.4.dir/output_latex.cpp.obj:output_latex.cpp:(.text+0x1b1a): undefined reference to `unsigned long long lyx::convert, std::allocator > >(std::__cxx11::basic_string, std::allocator >)' Yuriy

Re: linking error due to missing boost::assertion_failed_msg()

2019-09-09 Thread pdv
On 08/09/2019 20:47, pdv wrote: On 08/09/2019 17:47, Kornel Benko wrote: Am Sonntag, 8. September 2019, 14:14:15 CEST schrieb Patrick De Visschere: In the source files (ConverterCache.cpp, Application.cpp, FileName.cpp and GuiClipboard.cpp) I don’t see macro’s which could optionally include th

Re: linking error due to missing boost::assertion_failed_msg()

2019-09-09 Thread pdv
On 09/09/2019 11:49, pdv wrote: On 08/09/2019 21:12, Jean-Marc Lasgouttes wrote: Le 08/09/2019 à 14:14, Patrick De Visschere a écrit : LyX includes a 3thparty boost-version (1.68), but I don’t find any references to it in my XCode project and I think I’m actually using my macports boost (which

Re: linking error due to missing boost::assertion_failed_msg()

2019-09-09 Thread pdv
On 08/09/2019 21:12, Jean-Marc Lasgouttes wrote: Le 08/09/2019 à 14:14, Patrick De Visschere a écrit : LyX includes a 3thparty boost-version (1.68), but I don’t find any references to it in my XCode project and I think I’m actually using my macports boost (which is 1.71). This might explain it:

Re: linking error due to missing boost::assertion_failed_msg()

2019-09-09 Thread Patrick De Visschere
> On 9 Sep 2019, at 00:41, Stephan Witt wrote: > > Am 08.09.2019 um 22:44 schrieb Patrick De Visschere : >> >> >> >>> On 8 Sep 2019, at 21:03, Stephan Witt wrote: >>> >>> Am 08.09.2019 um 20:47 schrieb pdv : On 08/09/2019 17:47, Kornel Benko wrote: > Am Sonntag, 8. September

Re: linking error due to missing boost::assertion_failed_msg()

2019-09-08 Thread Stephan Witt
Am 08.09.2019 um 22:44 schrieb Patrick De Visschere : > > > >> On 8 Sep 2019, at 21:03, Stephan Witt wrote: >> >> Am 08.09.2019 um 20:47 schrieb pdv : >>> >>> On 08/09/2019 17:47, Kornel Benko wrote: Am Sonntag, 8. September 2019, 14:14:15 CEST schrieb Patrick De Visschere: > In the

Re: linking error due to missing boost::assertion_failed_msg()

2019-09-08 Thread Patrick De Visschere
> On 8 Sep 2019, at 21:03, Stephan Witt wrote: > > Am 08.09.2019 um 20:47 schrieb pdv : >> >> On 08/09/2019 17:47, Kornel Benko wrote: >>> Am Sonntag, 8. September 2019, 14:14:15 CEST schrieb Patrick De Visschere: In the source files (ConverterCache.cpp, Application.cpp, FileName.cpp and

Re: linking error due to missing boost::assertion_failed_msg()

2019-09-08 Thread Jean-Marc Lasgouttes
Le 08/09/2019 à 14:14, Patrick De Visschere a écrit : LyX includes a 3thparty boost-version (1.68), but I don’t find any references to it in my XCode project and I think I’m actually using my macports boost (which is 1.71). This might explain it: I’ve upgraded my macports boost and this breaks

Re: linking error due to missing boost::assertion_failed_msg()

2019-09-08 Thread Stephan Witt
Am 08.09.2019 um 20:47 schrieb pdv : > > On 08/09/2019 17:47, Kornel Benko wrote: >> Am Sonntag, 8. September 2019, 14:14:15 CEST schrieb Patrick De Visschere: >>> In the source files (ConverterCache.cpp, Application.cpp, FileName.cpp and >>> GuiClipboard.cpp) I don’t see macro’s which could opti

Re: linking error due to missing boost::assertion_failed_msg()

2019-09-08 Thread pdv
On 08/09/2019 17:47, Kornel Benko wrote: Am Sonntag, 8. September 2019, 14:14:15 CEST schrieb Patrick De Visschere: In the source files (ConverterCache.cpp, Application.cpp, FileName.cpp and GuiClipboard.cpp) I don’t see macro’s which could optionally include the relevant code which is probabl

Re: linking error due to missing boost::assertion_failed_msg()

2019-09-08 Thread Stephan Witt
Am 08.09.2019 um 14:14 schrieb Patrick De Visschere : > > Yes, I have a few different settings (but I didn’t change them recently as > far as I know) and I’m using (gui) CMake 3.15.1 > and XCode = Version 10.3 (10G8) I’m using - cmake version 3.12.0 - Xcode 10.3, Build version 10G8 ATM, I’m una

Re: linking error due to missing boost::assertion_failed_msg()

2019-09-08 Thread Kornel Benko
Am Sonntag, 8. September 2019, 14:14:15 CEST schrieb Patrick De Visschere: > In the source files (ConverterCache.cpp, Application.cpp, FileName.cpp and > GuiClipboard.cpp) I don’t see macro’s which could optionally include the > relevant code which is probably in the boost::crc module. I suppose

Re: linking error due to missing boost::assertion_failed_msg()

2019-09-08 Thread Patrick De Visschere
Yes, I have a few different settings (but I didn’t change them recently as far as I know) and I’m using (gui) CMake 3.15.1 and XCode = Version 10.3 (10G8) LYX_CPACK = ON : Use the CPack management (Implies LYX_INSTALL option) LYX_LOCALVERSIONING = OFF : Add version info to created package name (o

Re: linking error due to missing boost::assertion_failed_msg()

2019-09-08 Thread Stephan Witt
Am 08.09.2019 um 10:02 schrieb Patrick De Visschere : > > Sorry, mistyped the last “f”: it should have been 01ee3bf1e5, the master > branch on 5 sept. I see. Yes, this is HEAD for me too. This is what works for me. Perhaps you have different cmake flags? I have: -- LYX_CPACK

Re: linking error due to missing boost::assertion_failed_msg()

2019-09-08 Thread Patrick De Visschere
Sorry, mistyped the last “f”: it should have been 01ee3bf1e5, the master branch on 5 sept. > On 8 Sep 2019, at 09:34, Stephan Witt wrote: > > Am 07.09.2019 um 10:14 schrieb pdv : >> >> LyX fails to build on macos (Mojave, CMake, XCode) with the latest commit >> (01ee3bf1f5) with message: >>

Re: linking error due to missing boost::assertion_failed_msg()

2019-09-08 Thread Stephan Witt
Am 07.09.2019 um 10:14 schrieb pdv : > > LyX fails to build on macos (Mojave, CMake, XCode) with the latest commit > (01ee3bf1f5) with message: > > Undefined symbols for architecture x86_64: > "boost::assertion_failed_msg(char const*, char const*, char const*, char > const*, long)", referenced

linking error due to missing boost::assertion_failed_msg()

2019-09-07 Thread pdv
LyX fails to build on macos (Mojave, CMake, XCode) with the latest commit (01ee3bf1f5) with message: Undefined symbols for architecture x86_64: "boost::assertion_failed_msg(char const*, char const*, char const*, char const*, long)", referenced from: boost::array::operator[](unsigned lon

Re: master linking errors

2016-10-16 Thread Kornel Benko
Am Sonntag, 16. Oktober 2016 um 17:05:03, schrieb Jürgen Spitzmüller > Am Sonntag, den 16.10.2016, 16:55 +0200 schrieb Kornel Benko: > > OK. Have you enabled std:regex? > > Yes. > > > If yes, you could try to find > > bold 'foo' from the home position, while setting 'don't ignore > > format' i

Re: master linking errors

2016-10-16 Thread Jürgen Spitzmüller
Am Sonntag, den 16.10.2016, 16:55 +0200 schrieb Kornel Benko: > OK. Have you enabled std:regex? Yes. > If yes, you could try to find > bold 'foo' from the home position, while setting 'don't ignore > format' in adv search settings? > > Expected: the first 'foo', but with std:regex the second 'f

Re: master linking errors

2016-10-16 Thread Kornel Benko
Am Sonntag, 16. Oktober 2016 um 16:13:20, schrieb Jürgen Spitzmüller > Am Sonntag, den 16.10.2016, 15:02 +0200 schrieb Kornel Benko: > > It took ages to compile gcc6.2.0 ... > > The test with this compiler (+cmake and again without '-std=c++14') > > does compile and link everything. > > Could y

Re: master linking errors

2016-10-16 Thread Jürgen Spitzmüller
Am Sonntag, den 16.10.2016, 15:02 +0200 schrieb Kornel Benko: > It took ages to compile gcc6.2.0 ... > The test with this compiler (+cmake  and again without  '-std=c++14') > does compile and link everything. > Could you give cmake a chance? I tried again with a clean build and now succeeded. The

Re: master linking errors

2016-10-16 Thread Kornel Benko
Am Sonntag, 16. Oktober 2016 um 13:13:38, schrieb Jürgen Spitzmüller > Am Sonntag, den 16.10.2016, 04:08 -0700 schrieb Kornel Benko: > > Am Sonntag, 16. Oktober 2016 um 12:46:28, schrieb Jürgen Spitzmüller > > > > > As of today (probably related to a system update), > > > > > > This means prob

Re: master linking errors

2016-10-16 Thread Jean-Marc Lasgouttes
Le 16/10/2016 à 12:46, Jürgen Spitzmüller a écrit : As of today (probably related to a system update), master does not link any longer. I get: BiblioInfo.o: In function Less intimidating version (hand made) is: BiblioInfo.o: In function `lyx::BibTeXInfo::getValueForKey(string const&, lyx::Buf

Re: master linking errors

2016-10-16 Thread Jürgen Spitzmüller
Am Sonntag, den 16.10.2016, 04:08 -0700 schrieb Kornel Benko: > Am Sonntag, 16. Oktober 2016 um 12:46:28, schrieb Jürgen Spitzmüller > > > As of today (probably related to a system update), > > > This means probably also c++-compiler update. Yes. > > What about trying with a clean build tree?

Re: master linking errors

2016-10-16 Thread Kornel Benko
Am Sonntag, 16. Oktober 2016 um 12:46:28, schrieb Jürgen Spitzmüller > As of today (probably related to a system update), This means probably also c++-compiler update. What about trying with a clean build tree? > master does not link > any longer. I get: > > BiblioInfo.o: In function > `lyx::

master linking errors

2016-10-16 Thread Jürgen Spitzmüller
As of today (probably related to a system update), master does not link any longer. I get: BiblioInfo.o: In function `lyx::BibTeXInfo::getValueForKey(std::__cxx11::basic_string, std::allocator > const&, lyx::Buffer const&, std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_st

Re: [LyX/master] Cmake build: Symplify use of linking optional libraries found via find_package

2014-06-12 Thread Stephan Witt
Am 12.06.2014 um 19:03 schrieb Kornel Benko : > commit 3b14de740df6b5733e65c5d0fe850cb24b1a8cd1 > Author: Kornel Benko > Date: Thu Jun 12 19:02:29 2014 +0200 > >Cmake build: Symplify use of linking optional libraries found via > find_package This change solved

Re: Linking without qxmpp fails for branch features/chat

2013-11-10 Thread Tommaso Cucinotta
On 10/11/13 15:02, Jean-Marc Lasgouttes wrote: > The best to make it work is to have a look at getStatus in > frontends/qt4/GuiView.cpp. There you can expand the current handling > of LFUN_DIALOG_SHOW to mark the function as disabled as needed. > > Then, the patch you sent should just work. I jus

Re: Linking without qxmpp fails for branch features/chat

2013-11-10 Thread Jean-Marc Lasgouttes
Le 10/11/2013 14:19, Tommaso Cucinotta a écrit : On 10/11/13 13:09, Jean-Marc Lasgouttes wrote: Or mark the lfun "unknown" when not supported. how do I do this marking ? For now, the chat is activated via A-x dialog-show chat The best to make it work is to have a look at getStatus in fr

Re: Linking without qxmpp fails for branch features/chat

2013-11-10 Thread Tommaso Cucinotta
On 10/11/13 13:09, Jean-Marc Lasgouttes wrote: > Or mark the lfun "unknown" when not supported. how do I do this marking ? For now, the chat is activated via A-x dialog-show chat it's not a real LFUN, just a request to show a specific dialog. Is OptItem going to work in such case ? Is the on

Re: Linking without qxmpp fails for branch features/chat

2013-11-10 Thread Jean-Marc Lasgouttes
Or mark the lfun "unknown" when not supported. Jmarc Georg Baum a écrit : >Tommaso Cucinotta wrote: > >> One tiny issue, though: the "LyX Chat" menu in stdmenus.inc: that is >going >> to be added anyway, even though the "dialog-show lyx-chat" is not >going to >> be anyway meaningful without US

Re: Linking without qxmpp fails for branch features/chat

2013-11-10 Thread Georg Baum
Tommaso Cucinotta wrote: > One tiny issue, though: the "LyX Chat" menu in stdmenus.inc: that is going > to be added anyway, even though the "dialog-show lyx-chat" is not going to > be anyway meaningful without USE_QXMPP ? > > Is there a way to get rid of the menu entry as well, in such case ? Ye

Re: Linking without qxmpp fails for branch features/chat

2013-11-10 Thread Kornel Benko
Am Samstag, 9. November 2013 um 23:25:27, schrieb Tommaso Cucinotta > On 09/11/13 18:56, Kornel Benko wrote: > > /usr/src/lyx/lyx/src/frontends/qt4/GuiView.cpp:4177: undefined reference to > > `lyx::frontend::createGuiBuddies(lyx::frontend::GuiView&)' > > /usr/src/lyx/lyx/src/frontends/qt4/GuiVi

Re: Linking without qxmpp fails for branch features/chat

2013-11-09 Thread Tommaso Cucinotta
On 09/11/13 18:56, Kornel Benko wrote: > /usr/src/lyx/lyx/src/frontends/qt4/GuiView.cpp:4177: undefined reference to > `lyx::frontend::createGuiBuddies(lyx::frontend::GuiView&)' > /usr/src/lyx/lyx/src/frontends/qt4/GuiView.cpp:4183: undefined reference to > `lyx::frontend::createGuiChat(lyx::fron

Linking without qxmpp fails for branch features/chat

2013-11-09 Thread Kornel Benko
... /usr/src/lyx/lyx/src/frontends/qt4/GuiView.cpp:4177: undefined reference to `lyx::frontend::createGuiBuddies(lyx::frontend::GuiView&)' /usr/src/lyx/lyx/src/frontends/qt4/GuiView.cpp:4183: undefined reference to `lyx::frontend::createGuiChat(lyx::frontend::GuiView&)' ... Kornel sign

Re: Linking issue

2012-08-15 Thread Jürgen Spitzmüller
2012/8/15 Abdelrazak Younes: > Yes, same idiom should be used: theLaTeXFonts() > As a matter of fact, all singletons are gathered in a single class, > maybe you should also follow this trend. Thanks. I've implemented the function now to LyX.cpp following the model of the other singleton access fun

Re: Linking issue

2012-08-14 Thread Abdelrazak Younes
On Tue, Aug 14, 2012 at 10:10 PM, Pavel Sanda wrote: > Abdelrazak Younes wrote: >> Maybe it was optimized out by the linker. > > Yes this will the problem. If object is in library without being called it > would be omitted > unless you use --whole-archive for ld. So either one need to use it in c

Re: Linking issue

2012-08-14 Thread Pavel Sanda
Abdelrazak Younes wrote: > Maybe it was optimized out by the linker. Yes this will the problem. If object is in library without being called it would be omitted unless you use --whole-archive for ld. So either one need to use it in core or move the definition to qt4 library. Or use function to o

Re: Linking issue

2012-08-14 Thread Abdelrazak Younes
On 14/08/2012 16:54, Jürgen Spitzmüller wrote: I seem to be blind. Why does the attached patch fail to link with autotools? The error I get is CXXLD lyx frontends/qt4/liblyxqt4.a(GuiDocument.o): In function `lyx::frontend::GuiDocument::updateFontlist()': /home/jspitzm/lyx/lyx-devel/src/frontend

Re: Linking issue

2012-08-14 Thread Richard Heck
On 08/14/2012 10:54 AM, Jürgen Spitzmüller wrote: I seem to be blind. Why does the attached patch fail to link with autotools? The error I get is CXXLD lyx frontends/qt4/liblyxqt4.a(GuiDocument.o): In function `lyx::frontend::GuiDocument::updateFontlist()': /home/jspitzm/lyx/lyx-devel/src/front

Re: [BRANCH] fix linking with autotools on mac

2011-11-30 Thread Jean-Marc Lasgouttes
Le 29/11/2011 16:10, Jean-Marc Lasgouttes a écrit : Richard, The following patch has not been baclported to branch (r39772+r39791). The changes are in now. Stephan, I did not update the mac compiling script, since there are many other changes between trunk and branch. JMarc

Re: [BRANCH] fix linking with autotools on mac

2011-11-29 Thread Richard Heck
On 11/29/2011 10:45 AM, Kornel Benko wrote: > Am Dienstag, 29. November 2011 um 10:17:37, schrieb Richard Heck > >> On 11/29/2011 10:10 AM, Jean-Marc Lasgouttes wrote: >>> Richard, >>> >>> The following patch has not been baclported to branch (r39772+r39791). >>> >>> OK? >>> >> Sure. Did you see

Re: Re: [BRANCH] fix linking with autotools on mac

2011-11-29 Thread Kornel Benko
Am Dienstag, 29. November 2011 um 10:17:37, schrieb Richard Heck > On 11/29/2011 10:10 AM, Jean-Marc Lasgouttes wrote: > > Richard, > > > > The following patch has not been baclported to branch (r39772+r39791). > > > > OK? > > > Sure. Did you see the message about CMake, as well? Does this cover

Re: [BRANCH] fix linking with autotools on mac

2011-11-29 Thread Jean-Marc Lasgouttes
Le 29/11/11 16:17, Richard Heck a écrit : On 11/29/2011 10:10 AM, Jean-Marc Lasgouttes wrote: Richard, The following patch has not been backported to branch (r39772+r39791). OK? Sure. Did you see the message about CMake, as well? Does this cover that? It is its cousin of some sort :) I'll

Re: [BRANCH] fix linking with autotools on mac

2011-11-29 Thread Richard Heck
On 11/29/2011 10:10 AM, Jean-Marc Lasgouttes wrote: > Richard, > > The following patch has not been baclported to branch (r39772+r39791). > > OK? > Sure. Did you see the message about CMake, as well? Does this cover that? Richard

[BRANCH] fix linking with autotools on mac

2011-11-29 Thread Jean-Marc Lasgouttes
AppKit +endif + # everything below the line containing the single backslashs # an ugly hack and needed because of the # linking problems described in ../Makefile.am Index: src/tex2lyx/Makefile.am === --- src/tex2lyx/Makefile.am (r

Re: [Pkg-lyx-devel] Linking with gold

2009-12-10 Thread Per Olofsson
Jean-Marc Lasgouttes skrev: BTW, is linking with gold a win with LyX? It's supposed to be faster, although I haven't tried it. I don't think it affects runtime speed though, only build speed. -- Pelle

Re: [Pkg-lyx-devel] Linking with gold

2009-12-10 Thread Per Olofsson
Hi, Jean-Marc Lasgouttes skrev: Abdelrazak Younes writes: Because QtGui is a dynamic library it handles its dependency alone. What you say would be try if we did static linking. It seems to me that, in the old days, dynamic libraries requires extra -lFoo too. I think it depends on which

Re: [Pkg-lyx-devel] Linking with gold

2009-12-10 Thread Jean-Marc Lasgouttes
Abdelrazak Younes writes: > Because QtGui is a dynamic library it handles its dependency alone. > What you say would be try if we did static linking. It seems to me that, in the old days, dynamic libraries requires extra -lFoo too. BTW, are we sure we cannot get rid of the X11 code?

Re: [Pkg-lyx-devel] Linking with gold

2009-12-10 Thread Abdelrazak Younes
pendency alone. What you say would be try if we did static linking. Abdel.

Re: [Pkg-lyx-devel] Linking with gold

2009-12-10 Thread Jean-Marc Lasgouttes
uses X11 libs directly in at least one place: > src/frontends/qt4/GuiApplication.cpp Could someone explain to me how this works? QtGui has to link to X11 somewhere, right? How come pkg-config does not need to specify an explicit -lX11? BTW, is linking with gold a win with LyX? JMarc

Re: [Pkg-lyx-devel] Linking with gold

2009-12-06 Thread Per Olofsson
Hi Sven, Sven Hoexter skrev: Oh and I've no profound knowledge of the issue so it's possible that the better solution would be to fix something in Qt's pkg-config in Debian. It's not Qt's fault -- lyx uses X11 libs directly in at least one place: src/frontends/qt4/GuiApplication.cpp -- Pelle

Linking with gold

2009-12-06 Thread Sven Hoexter
y and easy to work around with explicitly linking against Xlib (added -lX11 via LDCONFIG enviroment variable). It would be more interestingly to know if other distributions or people here experimented with gold so far and what the results where? Oh and I've no profound knowledge of the iss

Re: Problems Linking to Boost in Trunk

2009-08-17 Thread Pavel Sanda
Rob Oakes wrote: > Any guidance or feedback would be greatly appreciated. if its not gcc 4.4 then try to clean checkout from svn tree. there are some linking issues from time to time. pavel

Re: Problems Linking to Boost in Trunk

2009-08-16 Thread rgheck
On 08/16/2009 03:35 PM, Peter Kümmel wrote: Rob Oakes wrote: Dear LyX-Developers, After taking a bit of a break from LyX development for summer projects at work and vacations, I was rather eager to jump back in but have encountered a bit of a problem. When I checked out the most revision o

Re: Problems Linking to Boost in Trunk

2009-08-16 Thread Peter Kümmel
Rob Oakes wrote: > Dear LyX-Developers, > > After taking a bit of a break from LyX development for summer projects > at work and vacations, I was rather eager to jump back in but have > encountered a bit of a problem. When I checked out the most revision of > LyX, I am not able to compile it. In

Problems Linking to Boost in Trunk

2009-08-16 Thread Rob Oakes
Dear LyX-Developers, After taking a bit of a break from LyX development for summer projects at work and vacations, I was rather eager to jump back in but have encountered a bit of a problem. When I checked out the most revision of LyX, I am not able to compile it. Instead, I get a slew of ra

Re: problem compiling (linking) trunk

2008-08-02 Thread Abdelrazak Younes
Kornel Benko wrote: Am Saturday 02 August 2008 schrieb Dov Feldstern: OK, the problem is this: it doesn't compile with the --disable-nls flag; without this flag it compiles cleanly. I always compile with this flag, though I don't know if it still has any significance? But I guess it should

Re: problem compiling (linking) trunk

2008-08-02 Thread Kornel Benko
Am Saturday 02 August 2008 schrieb Dov Feldstern: > Pavel Sanda wrote: > > Dov Feldstern wrote: > >> Abdelrazak Younes wrote: > >>> Dov Feldstern wrote: > Hi! > > Linux, Qt 4.2.1: > > frontends/qt4/.libs/liblyxqt4.a(GuiApplication.o): In function > `lyx::frontend::GuiA

Re: problem compiling (linking) trunk

2008-08-02 Thread Dov Feldstern
Pavel Sanda wrote: Dov Feldstern wrote: Abdelrazak Younes wrote: Dov Feldstern wrote: Hi! Linux, Qt 4.2.1: frontends/qt4/.libs/liblyxqt4.a(GuiApplication.o): In function `lyx::frontend::GuiApplication::setGuiLanguage()': /home/dovf/lyx-trunk-new/src/frontends/qt4/GuiApplication.cpp:1031: u

Re: problem compiling (linking) trunk

2008-08-01 Thread Kornel Benko
Am Friday 01 August 2008 schrieb Kornel Benko: > You have to define somewhere (in e.g. GuiApplication.cpp) > namespace lyx { >     std::string Message::main_lang_; > } > > because this variable is declared static in class mMessage Grrrm ... I meant class Messages of cours

Re: problem compiling (linking) trunk

2008-08-01 Thread Kornel Benko
Am Friday 01 August 2008 schrieb Pavel Sanda: > Dov Feldstern wrote: > > Abdelrazak Younes wrote: > >> Dov Feldstern wrote: > >>> Hi! > >>> > >>> Linux, Qt 4.2.1: > >>> > >>> frontends/qt4/.libs/liblyxqt4.a(GuiApplication.o): In function > >>> `lyx::frontend::GuiApplication::setGuiLanguage()': > >>

Re: problem compiling (linking) trunk

2008-08-01 Thread Pavel Sanda
Dov Feldstern wrote: > Abdelrazak Younes wrote: >> Dov Feldstern wrote: >>> Hi! >>> >>> Linux, Qt 4.2.1: >>> >>> frontends/qt4/.libs/liblyxqt4.a(GuiApplication.o): In function >>> `lyx::frontend::GuiApplication::setGuiLanguage()': >>> /home/dovf/lyx-trunk-new/src/frontends/qt4/GuiApplication.cpp:1

Re: problem compiling (linking) trunk

2008-08-01 Thread Dov Feldstern
Abdelrazak Younes wrote: Dov Feldstern wrote: Hi! Linux, Qt 4.2.1: frontends/qt4/.libs/liblyxqt4.a(GuiApplication.o): In function `lyx::frontend::GuiApplication::setGuiLanguage()': /home/dovf/lyx-trunk-new/src/frontends/qt4/GuiApplication.cpp:1031: undefined reference to `lyx::Messages::main

problem compiling (linking) trunk

2008-08-01 Thread Dov Feldstern
Hi! Linux, Qt 4.2.1: frontends/qt4/.libs/liblyxqt4.a(GuiApplication.o): In function `lyx::frontend::GuiApplication::setGuiLanguage()': /home/dovf/lyx-trunk-new/src/frontends/qt4/GuiApplication.cpp:1031: undefined reference to `lyx::Messages::main_lang_' collect2: ld returned 1 exit status mak

Re: Compile (Linking) Error in Client

2008-04-17 Thread rgheck
Pavel Sanda wrote: here too. bisect leads me here: http://www.lyx.org/trac/changeset/24249 Andre'? Well, it's not exactly surprising that replacing an empty assert macro with one that actually barks increases the noise level ;-) And no, that change is not the problem... i'm no

Re: Compile (Linking) Error in Client

2008-04-17 Thread Pavel Sanda
> > > > Well, it's not exactly surprising that replacing an empty assert macro > > > > with one that actually barks increases the noise level ;-) > > > > > > > > And no, that change is not the problem... > > > > > > i'm not claiming that it is the root of the problem. just that before > > > this

Re: Compile (Linking) Error in Client

2008-04-17 Thread Andre Poenitz
On Thu, Apr 17, 2008 at 10:51:25PM +0200, Pavel Sanda wrote: > > > > here too. > > > > > > > > bisect leads me here: > > > > http://www.lyx.org/trac/changeset/24249 > > > > Andre'? > > > > > > Well, it's not exactly surprising that replacing an empty assert macro > > > with one that actually bark

Re: Compile (Linking) Error in Client

2008-04-17 Thread Pavel Sanda
> > > here too. > > > > > > bisect leads me here: > > > http://www.lyx.org/trac/changeset/24249 > > > Andre'? > > > > Well, it's not exactly surprising that replacing an empty assert macro > > with one that actually barks increases the noise level ;-) > > > > And no, that change is not the probl

Re: Compile (Linking) Error in Client

2008-04-16 Thread Pavel Sanda
> > here too. > > > > bisect leads me here: > > http://www.lyx.org/trac/changeset/24249 > > Andre'? > > Well, it's not exactly surprising that replacing an empty assert macro > with one that actually barks increases the noise level ;-) > > And no, that change is not the problem... i'm not claim

Re: Compile (Linking) Error in Client

2008-04-16 Thread Andre Poenitz
On Wed, Apr 16, 2008 at 09:09:40AM +0200, Pavel Sanda wrote: > > g++ -g -O2 -o lyxclient boost.o client.o debug.o gettext.o Messages.o > > ../../src/support/.libs/liblyxsupport.a -L/usr/lib -lQtCore > > ../../boost/.libs/liblyxboost.a -lSM -lICE -lz -L/usr/lib64 -lX11 > > ../../src/support/.libs

Re: Compile (Linking) Error in Client

2008-04-16 Thread Pavel Sanda
> g++ -g -O2 -o lyxclient boost.o client.o debug.o gettext.o Messages.o > ../../src/support/.libs/liblyxsupport.a -L/usr/lib -lQtCore > ../../boost/.libs/liblyxboost.a -lSM -lICE -lz -L/usr/lib64 -lX11 > ../../src/support/.libs/liblyxsupport.a(debug.o): In function here too. bisect leads me h

Compile (Linking) Error in Client

2008-04-15 Thread rgheck
g++ -g -O2 -o lyxclient boost.o client.o debug.o gettext.o Messages.o ../../src/support/.libs/liblyxsupport.a -L/usr/lib -lQtCore ../../boost/.libs/liblyxboost.a -lSM -lICE -lz -L/usr/lib64 -lX11 ../../src/support/.libs/liblyxsupport.a(debug.o): In function `lyx::LyXErr::disable()': /cvs/lyx-

Re: monolithic build linking problems

2008-03-02 Thread Pavel Sanda
> > Right, all files are included in the same file with monolithic builds so > the anonymous namespace will not solve Pavel's problem. > >> why dont we put it in header Abdel ? > > I just put them inside the functions. This should solve your problem. yes this will solve it too. thanks, pavel

Re: monolithic build linking problems

2008-03-02 Thread Abdelrazak Younes
Pavel Sanda wrote: Try putting both of these variables in an anonymous namespace. hm, dont understand why this should help. Same variable in the same namespace. That's what causes the conflict. yes. Anonymous namespace, I think, has file scope. but thats where i dont follow you.

Re: monolithic build linking problems

2008-03-02 Thread Pavel Sanda
>>> Try putting both of these variables in an anonymous namespace. >>> >> >> hm, dont understand why this should help. >> >> > Same variable in the same namespace. That's what causes the conflict. yes. > Anonymous namespace, I think, has file scope. but thats where i dont follow you. to

Re: monolithic build linking problems

2008-03-01 Thread rgheck
Pavel Sanda wrote: GuiPainter.cpp: At global scope: GuiPainter.cpp:433: error: redefinition of 'const int lyx::frontend::d' GuiFontMetrics.cpp:180: error: 'const int lyx::frontend::d' previously defined here Try putting both of these variables in an anonymous namespace. hm, d

Re: monolithic build linking problems

2008-03-01 Thread Pavel Sanda
>> GuiPainter.cpp: At global scope: >> GuiPainter.cpp:433: error: redefinition of 'const int lyx::frontend::d' >> GuiFontMetrics.cpp:180: error: 'const int lyx::frontend::d' previously >> defined here >> >> > Try putting both of these variables in an anonymous namespace. hm, dont understand wh

Re: monolithic build linking problems

2008-03-01 Thread rgheck
i fixed this. anyway there is still problem: GuiPainter.cpp: At global scope: GuiPainter.cpp:433: error: redefinition of 'const int lyx::frontend::d' GuiFontMetrics.cpp:180: error: 'const int lyx::frontend::d' previously defined here Try putting both of these variables in an anonymous nam

Re: monolithic build linking problems

2008-03-01 Thread Pavel Sanda
> This is probably a consequence of some change I made, but I don't know > anything about monolithic builds (do I do them?) or where information no, unless you use --enable-monolithic options in configure, you dont. they are more speedy in case you want to build lyx from a clean tree - all cpp

Re: monolithic build linking problems

2008-03-01 Thread rgheck
Pavel Sanda wrote: hi, i started having these linking errs when using monolithic builds... This is probably a consequence of some change I made, but I don't know anything about monolithic builds (do I do them?) or where information regarding them is contained. It looks as though

monolithic build linking problems

2008-02-29 Thread Pavel Sanda
hi, i started having these linking errs when using monolithic builds... ./.libs/liblyxcore.a(TextClass.o): In function `__static_initialization_and_destruction_0': /home/installer/lyx/dbg_1.6/src/TextClass.cpp:112: undefined reference to `lyx::InsetLayout::InsetLayout()' ./.libs/li

make static linking default

2007-08-18 Thread Andre Poenitz
I guess, dynamic should be default on Linux, and static only default on Mac and Windows, but this way it compiles at least out-of-the-box. Andre' Index: configure.ac === --- configure.ac(revision 19626) +++ configure.ac

Re: [patch] linking source view with text

2007-06-27 Thread Mael Hilléreau
Le 27 juin 07 à 12:24, Alfredo Braunstein a écrit : Mael Hilléreau wrote: Thanks for the suggestion. How do you think would it help error handling? Right now we don't show latex errors line numbers at all. In fact, I was thinking of non blocking errors or warnings, which are indicated into t

Re: [patch] linking source view with text

2007-06-27 Thread Alfredo Braunstein
Mael Hilléreau wrote: >> Thanks for the suggestion. How do you think would it help error >> handling? Right now we don't show latex errors line numbers at all. > > In fact, I was thinking of non blocking errors or warnings, which are > indicated into the LaTeX log and often come with a line numbe

Re: [patch] linking source view with text

2007-06-27 Thread Mael Hilléreau
Le 27 juin 07 à 11:51, Alfredo Braunstein a écrit : On 6/27/07, Mael Hilléreau <[EMAIL PROTECTED]> wrote: What about displaying line numbers in the source view? This may not be hard to do and could help error handling as well... But it would Thanks for the suggestion. How do you think would it

Re: [patch] linking source view with text

2007-06-27 Thread Alfredo Braunstein
On 6/27/07, Mael Hilléreau <[EMAIL PROTECTED]> wrote: What about displaying line numbers in the source view? This may not be hard to do and could help error handling as well... But it would be needed to consider child documents separately (offset due to preamble skipping). Thanks for the sugg

Re: [patch] linking source view with text

2007-06-27 Thread Mael Hilléreau
Le 20 juin 07 à 17:06, Alfredo Braunstein a écrit : The following short patch is a links the source view window with the work area: now when navigating with the cursor the line of the latex source which should contain the corresponding position of the cursor position is selected. The patch

Re: [patch] linking source view with text

2007-06-26 Thread Bo Peng
I'm not sure I'll be able to follow closely in the next days, so unless someone else wants to take care of it I prefer to leave it for 1.5.x (soon I hope ;-)) I agree. Let us just push 1.5.0 out... Bo

Re: [patch] linking source view with text

2007-06-26 Thread Alfredo Braunstein
José Matos wrote: > On Monday 25 June 2007 19:50:41 Bo Peng wrote: >> >> Then you have a combined OK from Abdel and me, you need to wait for >> Jose's. >> >> Jose: This looks like 1.5.x stuff but showing where the cursor is in >> the view source window is a nice thing to have. > > I was tempted

Re: [patch] linking source view with text

2007-06-26 Thread José Matos
On Monday 25 June 2007 19:50:41 Bo Peng wrote: > > Then you have a combined OK from Abdel and me, you need to wait for Jose's. > > Jose: This looks like 1.5.x stuff but showing where the cursor is in > the view source window is a nice thing to have. I was tempted to say yes, but then I saw Alfre

Re: [patch] linking source view with text

2007-06-25 Thread Alfredo Braunstein
thing that would be nice to have is the reverse linking: implementing it is trivial, but then the combination of the two would interfere with the selection of text in the source view window, and that's very bad. So the best would be to have an independent selection, but I don't know how

  1   2   3   4   >