Re: Beamer goto buttons and text hyperlinks
Scott Kostyshak wrote: I find this very interesting. If I understand correctly, it would work like this: When I go to insert label, it inserts a button and everything works exactly as it does now, except that if I click on the hypertarget checkbox in the label settings dialog, the button is now a collapsable inset. And if there is a selection, insert label can default to having the hypertarget checkbox checked and having that text put in the collapsable box. The current behavior when there is text selected is for the text to be deleted. Yes, this kind of inset could be useful for many other tasks, I suppose. Would we also want to do this for the cross ref inset? It could work in a similar way: there is a checkbox for hyperlink. If checked, the inset becomes a collapsable inset. Note that in this case more is done if hyperlinkCB is checked: the hypertargets would be shown along with the labels, either in the same tree widget (perhaps we could give the hypertargets a prefix so that when grouped it's easy to navigate) or there could be a split tree widget, more clearly separating labels from hypertargets. Jürgen, do you still prefer to have the cross ref code copied over to the hyperref inset? My hesitation is that there would be a lot of duplicate code. Also, I think that the text hyperlinks have more in common with references than they do with hrefs to web, emails, and files. However, I think your argument is that overloading the cross ref dialog would make the user experience more complicated and there would be a larger chance of a regression for this important part of the code. This makes sense to me also. I think both solutions make sense in a way. Just go with what you see fit. Jürgen
Re: [PATCH] CPack, NSIS: CPACK_SET_DESTDIR not compatible with NSIS
On Thu, 25 Apr 2013 21:08:01 +0200, Vincent van Ravesteijn wrote: I can't find why you would need regex2.dll .. I don't have it and I don't need it. Where did you see that this was a problem. I built and ran LyX (thanks for your fixes) and it does not need regex2.dll any more (cannot say since when). As I wrote before, I do not know where the requirement for it came from. Could it be that one of the GNU(Win32) dependencies caused that? Kind regards, Hugo
Introducing myself to the community
Hello world! Sorry for filling you're inbox with this, but I would like to introduce myself properly, because I'm hoping for a long term relationship. My name is Daan Janssens and I'm in my 4th year of university majoring software engineering at the university of Antwerp, located in tiny Belgium. I won't start summing up all courses that I took, because I guess it's rather equivalent to any other first master year I guess. I do have 3 years of extinsive c++ learning experience and I'm also up to date with the majority of the new features of the c++11 standard. Perhaps the thing worth mentioning is my bachelor thesis, which was a project together with 4 other students, where we had to write increments on an already existing program that simulated virtual leaves, namely, how cells evolved in leafs. This was a project for the Biology department. And however the topic doesn't seem to match to Lyx, but the technology used did! We used Qt for GUI and threading, boost libraries and CMake, also GIT. So I guess the experience I got out of this could be very useful now! So what do I want to do as project? I want to write a 'Fast and useful toolbar customization dialog' For more information about the project, my motivation and driving force: please read my draft proposal, which I uploaded already. I'm hoping to get feedback on it soon, thanks in advance for reading it, cause I know it's quite big, but I really spend a lot of work on it :) If you got any question, feel free to ask. kind regards, Daan Janssens PS: is there a way to contact mentors without filling everyone's mailbox for every small question that I have, because irc seems quite dead to me.
Compiling LyX on Mac OS 10.7.5
Hello, before diving into coding I need to learn how to compile LyX. The documentation for Mac is a little out-of-date, so I try to find my own way. I compiled Qt4 and LyX. The first build did break immediately upon start. Currently I try to compile both with export CPPFLAGS=-arch i386 export LDFLAGS=-arch i386 This will take some time. Any further suggestions required for a contemporary Mac? Regards Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n...@.g.m.a.i.l.dot.c.o.m
Re: Compiling LyX on Mac OS 10.7.5
Hi, here is the command line I use (with cmake, out of source build) in a build directory (different from LyX main directory). It works with QT installed via the QT installer package (not from source): cmake -DLYX_BUNDLE=ON -DLYX_COCOA=ON -DLYX_INSTALL=ON -DLYX_RELEASE=OFF -DLYX_DEBUG=ON PATH_TO_LYX_MAIN_DIRECTORY and then make LyX2.1 (to build the binary only) or make package (to get a mac bundle) Best, Benjamin On Apr 26, 2013, at 13:39 , Elmar Hinz t3el...@googlemail.com wrote: Hello, before diving into coding I need to learn how to compile LyX. The documentation for Mac is a little out-of-date, so I try to find my own way. I compiled Qt4 and LyX. The first build did break immediately upon start. Currently I try to compile both with export CPPFLAGS=-arch i386 export LDFLAGS=-arch i386 This will take some time. Any further suggestions required for a contemporary Mac? Regards Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n...@.g.m.a.i.l.dot.c.o.m
Can't compile lyx-outline
Hi all, I was trying to compile the existing code for corkboard and outline view. I followed instructions on this post: http://blog.oak-tree.us/index.php/2010/06/25/lyx-outline02-1 I installed all programs as instructed (Qt 5.0.2, CMake, Bazaar), and when I try to open that CMakeList.txt project, I have some problems: 1. There are a lot of CMakeList.txt in different directories within document/cmake. There is one in the man folder and another in the doc folder. And I found another one in the same directory as document folder. 2. Can't run cmake. Error messages: CMake Error at development/cmake/modules/FindQt4.cmake:859 (message): Qt libraries, includes, moc, uic or/and rcc NOT found! Call Stack (most recent call first): CMakeLists.txt:466 (find_package) -- -- Building out-of-source -- -- Using GCC version 4.2.1 -- Configuring incomplete, errors occurred! Any suggestions? Thank you in advance. Xueqing Shan *Xueqing Shan* Vanderbilt University, '16
Re: Can't compile lyx-outline
- Original Message - From: Ashley Shan Hi all, I was trying to compile the existing code for corkboard and outline view. I followed instructions on this post: http://blog.oak-tree.us/index.php/2010/06/25/lyx-outline02-1 I installed all programs as instructed (Qt 5.0.2, CMake, Bazaar), and when I try to open that CMakeList.txt project, I have some problems: 1. There are a lot of CMakeList.txt in different directories within document/cmake. There is one in the man folder and another in the doc folder. And I found another one in the same directory as document folder. 2. Can't run cmake. Error messages: CMake Error at development/cmake/modules/FindQt4.cmake:859 (message): Qt libraries, includes, moc, uic or/and rcc NOT found! Call Stack (most recent call first): CMakeLists.txt:466 (find_package) -- -- Building out-of-source -- -- Using GCC version 4.2.1 -- Configuring incomplete, errors occurred! Any suggestions? Thank you in advance. Xueqing Shan Xueqing Shan Vanderbilt University, '16 yeah! run cmake just in the base directory, this would link the rest. But you have also another problem, you doesn´t have all the dependencies you need try to figure out if you install the packages moc, uic or/and rcc ! HTH Alex
Re: Re: Can't compile lyx-outline
Am Freitag, 26. April 2013 um 09:41:17, schrieb Alex Vergara Gil a...@cphr.edu.cu - Original Message - From: Ashley Shan Hi all, I was trying to compile the existing code for corkboard and outline view. I followed instructions on this post: http://blog.oak-tree.us/index.php/2010/06/25/lyx-outline02-1 I installed all programs as instructed (Qt 5.0.2, CMake, Bazaar), and when I try to open that CMakeList.txt project, I have some problems: 1. There are a lot of CMakeList.txt in different directories within document/cmake. There is one in the man folder and another in the doc folder. And I found another one in the same directory as document folder. Only the CMakeLists.txt in top-source directory the main cmake file used for compiling LyX. 2. Can't run cmake. Error messages: CMake Error at development/cmake/modules/FindQt4.cmake:859 (message): Qt libraries, includes, moc, uic or/and rcc NOT found! This means, you have not the development packages for Qt installed. Call Stack (most recent call first): CMakeLists.txt:466 (find_package) Kornel signature.asc Description: This is a digitally signed message part.
Re: Customizing Lyx
On 04/25/2013 07:14 PM, Elmar Hinz wrote: Exporting the markup syntax is a different issue. I can think of a couple ways to do it. The first, and most involved, would be to write export routines, in the LyX source itself, similar to the LyXHTML export routines. Another would be to write some kind of simple converter that would convert some format LyX already exports (perhaps the plaintext format?) to Markdown. Hello Richard, if I would like to transform LyXHTML to Markdown, I would need an XSL library or at least an XML parser. Is there already something like this contained in the sources? If not, what is your suggestion to use? The solution here is to rely upon an external parser, etc, being available, much as LyX relies upon LaTeX to be available. This can be checked for in the LyX (not autotools) configuration process. The best thing would be if there is some python library that provides what you need. LyX already uses python pretty extensively. Richard
Re: [LyX master] Audit all the LASSERT calls, and try to do something sensible at each failure.
On 04/25/2013 09:19 PM, Scott Kostyshak wrote: On Thu, Apr 25, 2013 at 5:29 PM, Richard Heck rgh...@lyx.org wrote: The branch, master, has been updated. - Log - commit 1b1f8dd235ba8e168348cd23c824063f2595a0c5 Author: Richard Heck rgh...@lyx.org Date: Thu Apr 25 17:27:10 2013 -0400 Audit all the LASSERT calls, and try to do something sensible at each failure. There are several places I was not sure what to do. These are marked by comments beginning LASSERT: so they can be found easily. At the moment, they are at: Author.cpp:105: // LASSERT: What should we do here? Author.cpp:121: // LASSERT: What should we do here? Buffer.cpp:4525:// LASSERT: Is it safe to continue here, or should we just return? Cursor.cpp:345: // LASSERT: Is it safe to continue here, or should we return? Cursor.cpp:403: // LASSERT: Is it safe to continue here, or should we return? Cursor.cpp:1143:// LASSERT: There have been several bugs around this code, that seem CursorSlice.cpp:83: // LASSERT: This should only ever be called from an InsetMath. CursorSlice.cpp:92: // LASSERT: This should only ever be called from an InsetMath. LayoutFile.cpp:303: // LASSERT: Why would this fail? Text.cpp:995: // LASSERT: Is it safe to continue here? I'm getting an assertion now whenever I try to insert a table or graphics or float: ASSERTION false VIOLATED IN /home/scott/lyxbuilds/master/build/src/Paragraph.cpp:1853 Hmm. I'm not sure what I did there. I somehow managed to add an assertion that wasn't previously there. That said, if you look at the code, it says: This is not supposed to happen. I'll fix it, but someone who understands this stuff should figure out whether there is a problem. Richard
Re: [PATCH] CPack, NSIS: CPACK_SET_DESTDIR not compatible with NSIS
Op 26-4-2013 10:16, Hugo Hinterberger schreef: On Thu, 25 Apr 2013 21:08:01 +0200, Vincent van Ravesteijn wrote: I can't find why you would need regex2.dll .. I don't have it and I don't need it. Where did you see that this was a problem. I built and ran LyX (thanks for your fixes) and it does not need regex2.dll any more (cannot say since when). As I wrote before, I do not know where the requirement for it came from. Could it be that one of the GNU(Win32) dependencies caused that? Yes, that could be. Vincent
Re: Compiling LyX on Mac OS 10.7.5
here is the command line I use (with cmake, out of source build) in a build directory (different from LyX main directory). It works with QT installed via the QT installer package (not from source): cmake -DLYX_BUNDLE=ON -DLYX_COCOA=ON -DLYX_INSTALL=ON -DLYX_RELEASE=OFF -DLYX_DEBUG=ON PATH_TO_LYX_MAIN_DIRECTORY and then make LyX2.1 (to build the binary only) or make package (to get a mac bundle) Best, Benjamin Hello Benjamin, I did: brew install cmake cmake -DLYX_BUNDLE=ON -DLYX_COCOA=ON -DLYX_INSTALL=ON -DLYX_RELEASE=OFF -DLYX_DEBUG=ON . # = DOT, current dir It is missing libintl.h. Sie issue is mentioned here: http://www.gnu.org/software/gnulib/manual/html_node/libintl_002eh.html It tried to fix it with brew install gettext unforutnatly without success. Any other workaround? Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n...@.g.m.a.i.l.dot.c.o.m
Re: \centerline{} support for wide graphics and tables
Op 26-4-2013 4:10, Scott Kostyshak schreef: On Thu, Apr 25, 2013 at 3:33 PM, Vincent van Ravesteijn v...@lyx.org wrote: Op 19-3-2013 4:35, Scott Kostyshak schreef: The option could be labelled one of the following: (1) center across both margins (2) center on page across both margins (3) center a wide table / center a wide graphic It should be clear that this option is only used when the image is too wide. If you want to implement this, you need to detect when an image is too wide.. How do you plan to dot that ? I was not planning on doing that. I was thinking that in many cases the user knows when it is too large and would manually set this option. There has been some very preliminary discussion (in the email thread on the GSoC horizontal scrollbar project) of parsing the log for specific overfull hboxes; but I do not think it makes sense to automatically detect this and set \centerline without the user knowing. Scott Usually we center images by centering the paragraph. This would then be another option that would confuse people, and I'm not overly enthusiastic about adding another option for a rare case that the user should try to avoid in the first place. Vincent
Re: [PATCH] (Incomplete) Nonexistent debug flag now throws an error
Op 26-4-2013 4:05, Scott Kostyshak schreef: On Thu, Apr 25, 2013 at 4:49 PM, Vincent van Ravesteijn v...@lyx.org wrote: Op 1-4-2013 6:07, Scott Kostyshak schreef: I think this is something I need to get used to: I would not have thought that this duplication of code (e.g. reparsing the string in the same way) was a good solution but I do see this a lot in C++ so it's something I need learn. What do you mean ? Checking whether a debug flag is valid and then setting that debug flag both involve looping through all the debug flags. When initially looking at this, the most natural thing seemed to me that there should be only one loop. But I think this separation of validation and processing is common in C++ and that I should learn to not worry about looping twice instead of once. Especially for such a small vector, this does not have any real performance issue. Besides performance though it still seems to me that the code could be more simple if there were just one loop. Is there a reason why it would be bad in this case to have one loop and throw an exception if a debug flag does not exist? Would it be reasonable to do a try/catch around lyxerr.setLevel(Debug::value(arg)) and obviate the need for Debug::isKnownValue(tmp) ? I hate throwing exceptions. What is not simple about what I proposed ? You shouldn't be worrying about performance in this kind of UI cases. It really doesn't care to do 40 checks compared to 20. The same holds for the issue in another thread about disabling controls on every character entered. In that box you typically enter a few characters, so a few extra loops are really not an issue.. never. Vincent
Re: Re: Can't compile lyx-outline
Hi Kornel and Alex, Thank you for your help. The thing is I think I have installed everything I need but it still reports can't find library. So I first installed Qt 5.0.2, which says that it will install both the libraries and the creator ( http://qt-project.org/downloads = Qt 5.0.2 for Mac). I ran CMake (the first time it worked) but I couldn't compile the file (but I forgot the error message was). Then I closed and reopened and tried to run CMake and saw the error messages. I thought I missed some libraries, but I was confused because the libraries should be included in the package. I still downloaded Qt 4.8.4 libraries and installed, and the error message is still there. I'm a very inexperienced programmer and this is the first time I use Qt. So please forgive me if I made some silly mistakes. Ashley *Xueqing Shan* Vanderbilt University, '16 On Fri, Apr 26, 2013 at 9:01 AM, Kornel Benko kor...@lyx.org wrote: ** Am Freitag, 26. April 2013 um 09:41:17, schrieb Alex Vergara Gil a...@cphr.edu.cu - Original Message - From: Ashley Shan Hi all, I was trying to compile the existing code for corkboard and outline view. I followed instructions on this post: http://blog.oak-tree.us/index.php/2010/06/25/lyx-outline02-1 I installed all programs as instructed (Qt 5.0.2, CMake, Bazaar), and when I try to open that CMakeList.txt project, I have some problems: 1. There are a lot of CMakeList.txt in different directories within document/cmake. There is one in the man folder and another in the doc folder. And I found another one in the same directory as document folder. Only the CMakeLists.txt in top-source directory the main cmake file used for compiling LyX. 2. Can't run cmake. Error messages: CMake Error at development/cmake/modules/FindQt4.cmake:859 (message): Qt libraries, includes, moc, uic or/and rcc NOT found! This means, you have not the development packages for Qt installed. Call Stack (most recent call first): CMakeLists.txt:466 (find_package) Kornel
Re: [LyX master] Remove assertion accidentally added during the audit.
Am Freitag, 26. April 2013 um 16:43:15, schrieb Richard Heck rgh...@lyx.org The branch, master, has been updated. - Log - commit 78652c98c8af2290492d969570a084ad58ec0c02 Author: Richard Heck rgh...@lyx.org Date: Fri Apr 26 10:42:45 2013 -0400 Remove assertion accidentally added during the audit. diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 2a4d4e7..e5a469f 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -1850,9 +1850,8 @@ FontSpan Paragraph::fontSpan(pos_type pos) const } // This should not happen, but if so, we take no chances. - LBUFERR(false, _(Invalid position.)); - // Squash warning - return FontSpan(); + LYXERR0(Paragraph::getEndPosOfFontSpan: This should not happen!); + return FontSpan(pos, pos); } Richard, BTW, should these messages really be translatable? The all refer to source code, this is at least very difficult to translate. Kornel signature.asc Description: This is a digitally signed message part.
Re: Compiling LyX on Mac OS 10.7.5
Summary: * QT 4.8.4 installed via the QT installer package (not from source) * brew install cmake * cmake -DLYX_NLS=OFF -DLYX_BUNDLE=ON -DLYX_COCOA=ON -DLYX_INSTALL=ON -DLYX_RELEASE=OFF -DLYX_DEBUG=ON -DLYX_EXTERNAL_LIBINTL=OFF . * make * make install Errors from cmake: CMake Error: Target LyX Info.plist template /Users/elmar/lyx/build/src/../Info.plist could not be found. Errors from make install: -- fixup_bundle -- app='/Users/elmar/lyx/LyX/LyX.app' -- libs='' -- dirs='' -- warning: *NOT* handled - .app directory case... CMake Error at /usr/local/Cellar/cmake/ 2.8.10.2/share/cmake/Modules/BundleUtilities.cmake:668 (message): error: fixup_bundle: not a valid bundle The second one seems to be cased by the first one. The application LyX/LyX.app/Contents/MacOS/LyX is running an looks fine. Regards Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n...@.g.m.a.i.l.dot.c.o.m
Re: Re: Re: Can't compile lyx-outline
Am Freitag, 26. April 2013 um 09:56:59, schrieb Ashley Shan xueqing.s...@vanderbilt.edu Hi Kornel and Alex, Thank you for your help. The thing is I think I have installed everything I need but it still reports can't find library. So I first installed Qt 5.0.2, which says that it will install both the libraries and the creator ( http://qt-project.org/downloads = Qt 5.0.2 for Mac). I ran CMake (the first time it worked) but I couldn't compile the file (but I forgot the error message was). Then I closed and reopened and tried to run CMake and saw the error messages. I thought I missed some libraries, but I was confused because the libraries should be included in the package. I still downloaded Qt 4.8.4 libraries and installed, and the error message is still there. I was not saying, you had not installed Qt (which you apparently did), but that you did not install Qt-devel. (The name of this package may be different on MAC, on ubuntu it is e.g. libqt4-dev) I'm a very inexperienced programmer and this is the first time I use Qt. So please forgive me if I made some silly mistakes. No problem, but since I do not own a MAC, I can't help enough. Quick google for qt4 devel mac gives some answers though. (A candidate would be qt4-mac-devel, don't know) Ashley Kornel signature.asc Description: This is a digitally signed message part.
Re: Re: Compiling LyX on Mac OS 10.7.5
Am Freitag, 26. April 2013 um 16:44:22, schrieb Elmar Hinz t3el...@googlemail.com here is the command line I use (with cmake, out of source build) in a build directory (different from LyX main directory). It works with QT installed via the QT installer package (not from source): cmake -DLYX_BUNDLE=ON -DLYX_COCOA=ON -DLYX_INSTALL=ON -DLYX_RELEASE=OFF -DLYX_DEBUG=ON PATH_TO_LYX_MAIN_DIRECTORY and then make LyX2.1 (to build the binary only) or make package (to get a mac bundle) Best, Benjamin Hello Benjamin, I did: brew install cmake cmake -DLYX_BUNDLE=ON -DLYX_COCOA=ON -DLYX_INSTALL=ON -DLYX_RELEASE=OFF -DLYX_DEBUG=ON . # = DOT, current dir It is missing libintl.h. Sie issue is mentioned here: http://www.gnu.org/software/gnulib/manual/html_node/libintl_002eh.html It tried to fix it with brew install gettext unforutnatly without success. Any other workaround? Sure. a.) You could use the lyx-provided libintl with cmake ... -DLYX_EXTERNAL_LIBINTL=OFF ... or prefered: b.) Install the devel package for libc6 (on ubuntu libc6-dev) Elmar Kornel signature.asc Description: This is a digitally signed message part.
Re: [LyX master] Remove assertion accidentally added during the audit.
On 04/26/2013 11:39 AM, Kornel Benko wrote: Am Freitag, 26. April 2013 um 16:43:15, schrieb Richard Heck rgh...@lyx.org The branch, master, has been updated. - Log - commit 78652c98c8af2290492d969570a084ad58ec0c02 Author: Richard Heck rgh...@lyx.org Date: Fri Apr 26 10:42:45 2013 -0400 Remove assertion accidentally added during the audit. diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 2a4d4e7..e5a469f 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -1850,9 +1850,8 @@ FontSpan Paragraph::fontSpan(pos_type pos) const } // This should not happen, but if so, we take no chances. - LBUFERR(false, _(Invalid position.)); - // Squash warning - return FontSpan(); + LYXERR0(Paragraph::getEndPosOfFontSpan: This should not happen!); + return FontSpan(pos, pos); } Richard, BTW, should these messages really be translatable? The all refer to source code, this is at least very difficult to translate. Do you mean the Invalid position stuff? I made them translatable in case anyone wanted them to be---they do turn up in a dialog box---but it is easy enough to make them not translatable, if you think that is better. Richard
Re: Compiling LyX on Mac OS 10.7.5
The second one seems to be cased by the first one. OK didn't follow the instruction: make LyX2.1 (to build the binary only) or make package (to get a mac bundle) Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n...@.g.m.a.i.l.dot.c.o.m
Re: [LyX master] Remove assertion accidentally added during the audit.
26/04/2013 17:55, Richard Heck: Do you mean the Invalid position stuff? I made them translatable in case anyone wanted them to be---they do turn up in a dialog box---but it is easy enough to make them not translatable, if you think that is better. I think it is a lot of translation work for messages that we actually want to avoid. I'd remove the _(). JMarc
Re: Re: [LyX master] Remove assertion accidentally added during the audit.
Am Freitag, 26. April 2013 um 11:55:18, schrieb Richard Heck rgh...@lyx.org On 04/26/2013 11:39 AM, Kornel Benko wrote: Am Freitag, 26. April 2013 um 16:43:15, schrieb Richard Heck rgh...@lyx.org The branch, master, has been updated. - Log - commit 78652c98c8af2290492d969570a084ad58ec0c02 Author: Richard Heck rgh...@lyx.org Date: Fri Apr 26 10:42:45 2013 -0400 Remove assertion accidentally added during the audit. diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 2a4d4e7..e5a469f 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -1850,9 +1850,8 @@ FontSpan Paragraph::fontSpan(pos_type pos) const } // This should not happen, but if so, we take no chances. - LBUFERR(false, _(Invalid position.)); - // Squash warning - return FontSpan(); + LYXERR0(Paragraph::getEndPosOfFontSpan: This should not happen!); + return FontSpan(pos, pos); } Richard, BTW, should these messages really be translatable? The all refer to source code, this is at least very difficult to translate. Do you mean the Invalid position stuff? I made them translatable in case anyone wanted them to be---they do turn up in a dialog box---but it is easy enough to make them not translatable, if you think that is better. Yes. Although this is easy to translate, it refers to the variable position, which therefore should not be translated. But there are plenty of other messages like ... Unable to find WorkArea for Buffer! Attempting to clone non-existent BufferParams! Cursor has no BufferView! ... Richard Kornel signature.asc Description: This is a digitally signed message part.
Re: [LyX master] Remove assertion accidentally added during the audit.
26/04/2013 17:55, Richard Heck: Do you mean the Invalid position stuff? I made them translatable in case anyone wanted them to be---they do turn up in a dialog box---but it is easy enough to make them not translatable, if you think that is better. I would say that this is not supposed to be understandable by the users, but only by the developers. And we all know english. We should spend our efforts in making sure that these messages do not appear in practice. JMarc
Re: Re: Compiling LyX on Mac OS 10.7.5
or prefered: b.) Install the devel package for libc6 (on ubuntu libc6-dev) Elmar Kornel Hello, IMHO there is no libc6 for mac. There is a /usr/lib/libSystem.dylib - libSystem.B.dylib Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n...@.g.m.a.i.l.dot.c.o.m
Re: Re: Re: Compiling LyX on Mac OS 10.7.5
Am Freitag, 26. April 2013 um 18:23:56, schrieb Elmar Hinz t3el...@googlemail.com Hello, IMHO there is no libc6 for mac. There is a /usr/lib/libSystem.dylib - libSystem.B.dylib Elmar Is there also a appropriate devel *package*? Kornel signature.asc Description: This is a digitally signed message part.
Re: Compiling LyX on Mac OS 10.7.5
OK didn't follow the instruction: make LyX2.1 (to build the binary only) or make package (to get a mac bundle) Anyway, That doesn't bring in the missing Info.plist. Question: Why is there no Info.plist in the source? -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n...@.g.m.a.i.l.dot.c.o.m
Re: Re: Re: Compiling LyX on Mac OS 10.7.5
On Fri, Apr 26, 2013 at 6:29 PM, Kornel Benko kor...@lyx.org wrote: ** Am Freitag, 26. April 2013 um 18:23:56, schrieb Elmar Hinz t3el...@googlemail.com Hello, IMHO there is no libc6 for mac. There is a /usr/lib/libSystem.dylib - libSystem.B.dylib Elmar Is there also a appropriate devel *package*? Kornel I find a _debug* and a _profile* variant: -r-xr-xr-x 1 root wheel 475K 22 Mär 2012 /usr/lib/libSystem.B.dylib -r-xr-xr-x 1 root wheel 475K 12 Apr 2012 /usr/lib/libSystem.B_debug.dylib -r-xr-xr-x 1 root wheel 475K 12 Apr 2012 /usr/lib/libSystem.B_profile.dylib lrwxr-xr-x 1 root wheel17B 22 Mär 2012 /usr/lib/libSystem.dylib - libSystem.B.dylib lrwxr-xr-x 1 root wheel23B 2 Mär 13:51 /usr/lib/libSystem_debug.dylib - libSystem.B_debug.dylib lrwxr-xr-x 1 root wheel25B 2 Mär 13:51 /usr/lib/libSystem_profile.dylib - libSystem.B_profile.dylib However I am new with Mac OS and still can't explain how it handles the stuff we know as libc6 and libc6-dev. This gives start: http://docstore.mik.ua/orelly/unix3/mac/ch05_02.htm For today I wanted to learn how to compile LyX and succeded largeley. Next step is to bring in a patch to learn the workflow of the project. Regards Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n...@.g.m.a.i.l.dot.c.o.m
Re: Re: Compiling LyX on Mac OS 10.7.5
Am Freitag, 26. April 2013 um 18:31:11, schrieb Elmar Hinz t3el...@googlemail.com Anyway, That doesn't bring in the missing Info.plist. Question: Why is there no Info.plist in the source? There is. It should be created from Info.plist.in at configure time. That file itself is in the build-directory. (See main-CMakeLists.txt:308) Kornel signature.asc Description: This is a digitally signed message part.
Re: Re: Re: Re: Compiling LyX on Mac OS 10.7.5
Am Freitag, 26. April 2013 um 18:46:17, schrieb Elmar Hinz t3el...@googlemail.com I find a _debug* and a _profile* variant: No, what you found are files, not packages. Check please to which package belongs a specified file. (I don't know how, sorry) Kornel signature.asc Description: This is a digitally signed message part.
Re: Re: Re: Can't compile lyx-outline
Hi Kornel, I checked the installation log of my Qt 5.0.2, I searched for moc, uic, and rcc, and it seems I did have installed them: Relocator calling otool -l for /Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/moc END - Relocator calling otool -l for /Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/moc Got the following information(fileName: /Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/moc, frameworkId: , frameworks: /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices|/usr/lib/libz.1.dylib|/usr/lib/libstdc++.6.dylib|/usr/lib/libSystem.B.dylib|/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation,orginalBuildDir: ) Relocator calling otool -l for /Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/* rcc* END - Relocator calling otool -l for /Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/*rcc* Got the following information(fileName: /Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/*rcc*, frameworkId: , frameworks: /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices|/usr/lib/libz.1.dylib|/usr/lib/libstdc++.6.dylib|/usr/lib/libSystem.B.dylib|/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation,orginalBuildDir: ) Relocator calling otool -l for /Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/syncqt END - Relocator calling otool -l for /Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/syncqt Got the following information(fileName: /Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/syncqt, frameworkId: , frameworks: ,orginalBuildDir: ) Relocator calling otool -l for /Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/* uic* END - Relocator calling otool -l for /Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/*uic* Got the following information(fileName: /Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/*uic*, frameworkId: , frameworks: /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices|/usr/lib/libz.1.dylib|/usr/lib/libstdc++.6.dylib|/usr/lib/libSystem.B.dylib|/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation,orginalBuildDir: ) I ran CMake again and it said uic, moc, and rcc not found. So I installed Macports, installed qt4-mac (I tried to install qt4-mac-devel, but it said this port has been temporarily replaced by 'qt4-mac'; it will be updated to 5.0 beta or a release candidate hopefully soon. So I typed in sudo port install qt4-mac and it seemed to be installed. I ran QCreator and ran CMake and it still said moc, uic and rcc not found. I'm so confused... Ashley *Xueqing Shan* Vanderbilt University, '16 On Fri, Apr 26, 2013 at 10:48 AM, Kornel Benko kor...@lyx.org wrote: ** Am Freitag, 26. April 2013 um 09:56:59, schrieb Ashley Shan xueqing.s...@vanderbilt.edu Hi Kornel and Alex, Thank you for your help. The thing is I think I have installed everything I need but it still reports can't find library. So I first installed Qt 5.0.2, which says that it will install both the libraries and the creator ( http://qt-project.org/downloads = Qt 5.0.2 for Mac). I ran CMake (the first time it worked) but I couldn't compile the file (but I forgot the error message was). Then I closed and reopened and tried to run CMake and saw the error messages. I thought I missed some libraries, but I was confused because the libraries should be included in the package. I still downloaded Qt 4.8.4 libraries and installed, and the error message is still there. I was not saying, you had not installed Qt (which you apparently did), but that you did not install Qt-devel. (The name of this package may be different on MAC, on ubuntu it is e.g. libqt4-dev) I'm a very inexperienced programmer and this is the first time I use Qt. So please forgive me if I made some silly mistakes. No problem, but since I do not own a MAC, I can't help enough. Quick google for qt4 devel mac gives some answers though. (A candidate would be qt4-mac-devel, don't know) Ashley Kornel
Re: Re: Re: Re: Can't compile lyx-outline
Am Freitag, 26. April 2013 um 12:00:17, schrieb Ashley Shan xueqing.s...@vanderbilt.edu I ran CMake again and it said uic, moc, and rcc not found. So I installed Macports, installed qt4-mac (I tried to install qt4-mac-devel, but it said this port has been temporarily replaced by 'qt4-mac'; it will be updated to 5.0 beta or a release candidate hopefully soon. So I typed in sudo port install qt4-mac and it seemed to be installed. I ran QCreator and ran CMake and it still said moc, uic and rcc not found. I'm so confused... Ashley Me too. I fear, we have to wait for someone (Stephan Witt? st.w...@gmx.net) for more help. Kornel signature.asc Description: This is a digitally signed message part.
Git Cloning Error
Hello I'm having problem on cloning git through the command git clone git://git.lyx.org/lyxas mentioned on the official site. the error I get is this $ git clone git://git.lyx.org/lyx Cloning into 'lyx'... error: Proxy CONNECT aborted while accessing https://git.lyx.org/lyx/info/refs fatal: HTTP request failed My college uses cyberoam as a filter to web. Also, we work through a proxy: http://172.16.73.12:3128 Hence, I tried adding this proxy to git as follows: $ export http_proxy=http://172.16.73.12:3128 $ git config --global http.proxy $http_proxy But still the same error remains. Kindly help me with this issue. Yours sincerely Abhishek
Re: Introducing myself to the community
On Fri, Apr 26, 2013 at 5:08 AM, Daan Janssens daan.co...@gmail.com wrote: Hello world! Sorry for filling you're inbox with this, but I would like to introduce myself properly, because I'm hoping for a long term relationship. My name is Daan Janssens and I'm in my 4th year of university majoring software engineering at the university of Antwerp, located in tiny Belgium. I won't start summing up all courses that I took, because I guess it's rather equivalent to any other first master year I guess. I do have 3 years of extinsive c++ learning experience and I'm also up to date with the majority of the new features of the c++11 standard. Perhaps the thing worth mentioning is my bachelor thesis, which was a project together with 4 other students, where we had to write increments on an already existing program that simulated virtual leaves, namely, how cells evolved in leafs. This was a project for the Biology department. And however the topic doesn't seem to match to Lyx, but the technology used did! We used Qt for GUI and threading, boost libraries and CMake, also GIT. So I guess the experience I got out of this could be very useful now! So what do I want to do as project? I want to write a 'Fast and useful toolbar customization dialog' For more information about the project, my motivation and driving force: please read my draft proposal, which I uploaded already. I'm hoping to get feedback on it soon, thanks in advance for reading it, cause I know it's quite big, but I really spend a lot of work on it :) If you got any question, feel free to ask. kind regards, Hi Daan, welcome! PS: is there a way to contact mentors without filling everyone's mailbox for every small question that I have, because irc seems quite dead to me. I think it is preferred to just send to the list. Even small questions are OK and others will probably benefit from the answers. Best, Scott
Re: \centerline{} support for wide graphics and tables
On Fri, Apr 26, 2013 at 10:46 AM, Vincent van Ravesteijn v...@lyx.org wrote: Op 26-4-2013 4:10, Scott Kostyshak schreef: On Thu, Apr 25, 2013 at 3:33 PM, Vincent van Ravesteijn v...@lyx.org wrote: Op 19-3-2013 4:35, Scott Kostyshak schreef: The option could be labelled one of the following: (1) center across both margins (2) center on page across both margins (3) center a wide table / center a wide graphic It should be clear that this option is only used when the image is too wide. If you want to implement this, you need to detect when an image is too wide.. How do you plan to dot that ? I was not planning on doing that. I was thinking that in many cases the user knows when it is too large and would manually set this option. There has been some very preliminary discussion (in the email thread on the GSoC horizontal scrollbar project) of parsing the log for specific overfull hboxes; but I do not think it makes sense to automatically detect this and set \centerline without the user knowing. Scott Usually we center images by centering the paragraph. This would then be another option that would confuse people, and I'm not overly enthusiastic about adding another option for a rare case that the user should try to avoid in the first place. Makes sense. A module would be a solution if someone wanted this built-in. Otherwise, I will forget about it. Scott
Re: [PATCH] (Incomplete) Nonexistent debug flag now throws an error
On Fri, Apr 26, 2013 at 10:54 AM, Vincent van Ravesteijn v...@lyx.org wrote: Op 26-4-2013 4:05, Scott Kostyshak schreef: On Thu, Apr 25, 2013 at 4:49 PM, Vincent van Ravesteijn v...@lyx.org wrote: Op 1-4-2013 6:07, Scott Kostyshak schreef: I think this is something I need to get used to: I would not have thought that this duplication of code (e.g. reparsing the string in the same way) was a good solution but I do see this a lot in C++ so it's something I need learn. What do you mean ? Checking whether a debug flag is valid and then setting that debug flag both involve looping through all the debug flags. When initially looking at this, the most natural thing seemed to me that there should be only one loop. But I think this separation of validation and processing is common in C++ and that I should learn to not worry about looping twice instead of once. Especially for such a small vector, this does not have any real performance issue. Besides performance though it still seems to me that the code could be more simple if there were just one loop. Is there a reason why it would be bad in this case to have one loop and throw an exception if a debug flag does not exist? Would it be reasonable to do a try/catch around lyxerr.setLevel(Debug::value(arg)) and obviate the need for Debug::isKnownValue(tmp) ? I hate throwing exceptions. Why? I have little experience with them so I don't know their disadvantages. If you can point me to a discussion of their faults, that would be great. I found some results by googling don't use exceptions c++ but I thought that you might have something in mind that's specific for this case. From what I remember, the authors of the Professional C++ book are in love with exceptions. I have no idea how highly/lowly regarded their opinions are. What is not simple about what I proposed ? simple wasn't the correct word. It is simple. It's just not what I would have first imagined because it duplicates code. What if how we loop through debug flags changes or there is a bug that is found in one of the loops? The other loop doesn't automatically change. Again, I'm not saying this is bad. I'm just trying to learn that this is not bad so that next time I come across such a problem I will recognize what the correct approach is. You shouldn't be worrying about performance in this kind of UI cases. It really doesn't care to do 40 checks compared to 20. The same holds for the issue in another thread about disabling controls on every character entered. In that box you typically enter a few characters, so a few extra loops are really not an issue.. never. I'm now convinced that performance is not an issue. I'm less convinced that readability and maintainability are better than using exceptions. I trust that you're right (and I see that what you're recommending here is common in many other parts of the code). I'm just trying to figure out why. What do you think of the most recent patch I posted? I think I implemented the important part of what you proposed. (http://permalink.gmane.org/gmane.editors.lyx.devel/145483) Thanks for the help, Scott
Re: \centerline{} support for wide graphics and tables
On Fri, Apr 26, 2013 at 8:07 PM, Scott Kostyshak skost...@lyx.org wrote: Usually we center images by centering the paragraph. This would then be another option that would confuse people, and I'm not overly enthusiastic about adding another option for a rare case that the user should try to avoid in the first place. Makes sense. A module would be a solution if someone wanted this built-in. Otherwise, I will forget about it. Personally I think this would be useful. This happens quite often, and having a GUI solution for this, built-in or module, would be nice. If you come up with a module it could be published on the wiki. Liviu
Proposal Submitted
Hi all, I just submitted a proposal for UI Enhancement and Non-linear writing improvement. I would appreciate if anyone can take a look and give me some feedback. Thank you. Xueqing Shan *Xueqing Shan* Vanderbilt University, '16
Re: Beamer goto buttons and text hyperlinks
Scott Kostyshak wrote: > I find this very interesting. If I understand correctly, it would work > like this: > > When I go to insert > label, it inserts a button and everything works > exactly as it does now, except that if I click on the "hypertarget" > checkbox in the label settings dialog, the button is now a collapsable > inset. And if there is a selection, insert > label can default to > having the hypertarget checkbox checked and having that text put in > the collapsable box. The current behavior when there is text selected > is for the text to be deleted. Yes, this kind of inset could be useful for many other tasks, I suppose. > Would we also want to do this for the cross ref inset? It could work > in a similar way: there is a checkbox for "hyperlink". If checked, the > inset becomes a collapsable inset. Note that in this case more is done > if hyperlinkCB is checked: the hypertargets would be shown along with > the labels, either in the same tree widget (perhaps we could give the > hypertargets a prefix so that when grouped it's easy to navigate) or > there could be a split tree widget, more clearly separating labels > from hypertargets. > > Jürgen, do you still prefer to have the cross ref code copied over to > the hyperref inset? My hesitation is that there would be a lot of > duplicate code. Also, I think that the text hyperlinks have more in > common with references than they do with hrefs to web, emails, and > files. However, I think your argument is that overloading the cross > ref dialog would make the user experience more complicated and there > would be a larger chance of a regression for this important part of > the code. This makes sense to me also. I think both solutions make sense in a way. Just go with what you see fit. Jürgen
Re: [PATCH] CPack, NSIS: CPACK_SET_DESTDIR not compatible with NSIS
On Thu, 25 Apr 2013 21:08:01 +0200, Vincent van Ravesteijn wrote: > I can't find why you would need regex2.dll .. I don't have it and I > don't need it. Where did you see that this was a problem. I built and ran LyX (thanks for your fixes) and it does not need regex2.dll any more (cannot say since when). As I wrote before, I do not know where the requirement for it came from. Could it be that one of the GNU(Win32) dependencies caused that? Kind regards, Hugo
Introducing myself to the community
Hello world! Sorry for filling you're inbox with this, but I would like to introduce myself properly, because I'm hoping for a long term relationship. My name is Daan Janssens and I'm in my 4th year of university majoring software engineering at the university of Antwerp, located in tiny Belgium. I won't start summing up all courses that I took, because I guess it's rather equivalent to any other first master year I guess. I do have 3 years of extinsive c++ learning experience and I'm also up to date with the majority of the new features of the c++11 standard. Perhaps the thing worth mentioning is my bachelor thesis, which was a project together with 4 other students, where we had to write increments on an already existing program that simulated virtual leaves, namely, how cells evolved in leafs. This was a project for the Biology department. And however the topic doesn't seem to match to Lyx, but the technology used did! We used Qt for GUI and threading, boost libraries and CMake, also GIT. So I guess the experience I got out of this could be very useful now! So what do I want to do as project? I want to write a 'Fast and useful toolbar customization dialog' For more information about the project, my motivation and driving force: please read my draft proposal, which I uploaded already. I'm hoping to get feedback on it soon, thanks in advance for reading it, cause I know it's quite big, but I really spend a lot of work on it :) If you got any question, feel free to ask. kind regards, Daan Janssens PS: is there a way to contact mentors without filling everyone's mailbox for every small question that I have, because irc seems quite dead to me.
Compiling LyX on Mac OS 10.7.5
Hello, before diving into coding I need to learn how to compile LyX. The documentation for Mac is a little out-of-date, so I try to find my own way. I compiled Qt4 and LyX. The first build did break immediately upon start. Currently I try to compile both with export CPPFLAGS="-arch i386" export LDFLAGS="-arch i386" This will take some time. Any further suggestions required for a contemporary Mac? Regards Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n...@.g.m.a.i.l.dot.c.o.m
Re: Compiling LyX on Mac OS 10.7.5
Hi, here is the command line I use (with cmake, out of source build) in a build directory (different from LyX main directory). It works with QT installed via the QT installer package (not from source): cmake -DLYX_BUNDLE=ON -DLYX_COCOA=ON -DLYX_INSTALL=ON -DLYX_RELEASE=OFF -DLYX_DEBUG=ON PATH_TO_LYX_MAIN_DIRECTORY and then make LyX2.1 (to build the binary only) or make package (to get a mac bundle) Best, Benjamin On Apr 26, 2013, at 13:39 , Elmar Hinzwrote: > Hello, > > before diving into coding I need to learn how to compile LyX. > The documentation for Mac is a little out-of-date, so I try to > find my own way. > > I compiled Qt4 and LyX. The first build did break immediately upon start. > Currently I try to compile both with > > export CPPFLAGS="-arch i386" > export LDFLAGS="-arch i386" > > This will take some time. Any further suggestions required for a contemporary > Mac? > > Regards > > Elmar > > -- > Elmar Hinz > Freiherr-vom-Stein-Str. 1 > 33014 Bad Driburg > > TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m > personal contact: e.l.m.a.r.dot.h.i.n...@.g.m.a.i.l.dot.c.o.m >
Can't compile lyx-outline
Hi all, I was trying to compile the existing code for corkboard and outline view. I followed instructions on this post: http://blog.oak-tree.us/index.php/2010/06/25/lyx-outline02-1 I installed all programs as instructed (Qt 5.0.2, CMake, Bazaar), and when I try to open that CMakeList.txt project, I have some problems: 1. There are a lot of CMakeList.txt in different directories within document/cmake. There is one in the man folder and another in the doc folder. And I found another one in the same directory as document folder. 2. Can't run cmake. Error messages: CMake Error at development/cmake/modules/FindQt4.cmake:859 (message): Qt libraries, includes, moc, uic or/and rcc NOT found! Call Stack (most recent call first): CMakeLists.txt:466 (find_package) -- -- Building out-of-source -- -- Using GCC version 4.2.1 -- Configuring incomplete, errors occurred! Any suggestions? Thank you in advance. Xueqing Shan *Xueqing Shan* Vanderbilt University, '16
Re: Can't compile lyx-outline
- Original Message - From: Ashley Shan Hi all, I was trying to compile the existing code for corkboard and outline view. I followed instructions on this post: http://blog.oak-tree.us/index.php/2010/06/25/lyx-outline02-1 I installed all programs as instructed (Qt 5.0.2, CMake, Bazaar), and when I try to open that CMakeList.txt project, I have some problems: 1. There are a lot of CMakeList.txt in different directories within document/cmake. There is one in the man folder and another in the doc folder. And I found another one in the same directory as document folder. 2. Can't run cmake. Error messages: CMake Error at development/cmake/modules/FindQt4.cmake:859 (message): Qt libraries, includes, moc, uic or/and rcc NOT found! Call Stack (most recent call first): CMakeLists.txt:466 (find_package) -- -- Building out-of-source -- -- Using GCC version 4.2.1 -- Configuring incomplete, errors occurred! Any suggestions? Thank you in advance. Xueqing Shan Xueqing Shan Vanderbilt University, '16 yeah! run cmake just in the base directory, this would link the rest. But you have also another problem, you doesn´t have all the dependencies you need try to figure out if you install the packages moc, uic or/and rcc ! HTH Alex
Re: Re: Can't compile lyx-outline
Am Freitag, 26. April 2013 um 09:41:17, schrieb Alex Vergara Gil> - Original Message - > From: Ashley Shan > > > Hi all, > > > I was trying to compile the existing code for corkboard and outline view. I > followed instructions on this post: > http://blog.oak-tree.us/index.php/2010/06/25/lyx-outline02-1 > > I installed all programs as instructed (Qt 5.0.2, CMake, Bazaar), and when > I try to open that CMakeList.txt project, I have some problems: > > > 1. There are a lot of CMakeList.txt in different directories within > document/cmake. There is one in the man folder and another in the doc folder. > And I found another one in the same directory as document folder. Only the CMakeLists.txt in top-source directory the main cmake file used for compiling LyX. > > 2. Can't run cmake. Error messages: > > > CMake Error at development/cmake/modules/FindQt4.cmake:859 (message): > > Qt libraries, includes, moc, uic or/and rcc NOT found! This means, you have not the development packages for Qt installed. > Call Stack (most recent call first): > > CMakeLists.txt:466 (find_package) > Kornel signature.asc Description: This is a digitally signed message part.
Re: Customizing Lyx
On 04/25/2013 07:14 PM, Elmar Hinz wrote: Exporting the markup syntax is a different issue. I can think of a couple ways to do it. The first, and most involved, would be to write export routines, in the LyX source itself, similar to the LyXHTML export routines. Another would be to write some kind of simple converter that would convert some format LyX already exports (perhaps the plaintext format?) to Markdown. Hello Richard, if I would like to transform LyXHTML to Markdown, I would need an XSL library or at least an XML parser. Is there already something like this contained in the sources? If not, what is your suggestion to use? The solution here is to rely upon an external parser, etc, being available, much as LyX relies upon LaTeX to be available. This can be checked for in the LyX (not autotools) configuration process. The best thing would be if there is some python library that provides what you need. LyX already uses python pretty extensively. Richard
Re: [LyX master] Audit all the LASSERT calls, and try to do something sensible at each failure.
On 04/25/2013 09:19 PM, Scott Kostyshak wrote: On Thu, Apr 25, 2013 at 5:29 PM, Richard Heckwrote: The branch, master, has been updated. - Log - commit 1b1f8dd235ba8e168348cd23c824063f2595a0c5 Author: Richard Heck Date: Thu Apr 25 17:27:10 2013 -0400 Audit all the LASSERT calls, and try to do something sensible at each failure. There are several places I was not sure what to do. These are marked by comments beginning "LASSERT:" so they can be found easily. At the moment, they are at: Author.cpp:105: // LASSERT: What should we do here? Author.cpp:121: // LASSERT: What should we do here? Buffer.cpp:4525:// LASSERT: Is it safe to continue here, or should we just return? Cursor.cpp:345: // LASSERT: Is it safe to continue here, or should we return? Cursor.cpp:403: // LASSERT: Is it safe to continue here, or should we return? Cursor.cpp:1143:// LASSERT: There have been several bugs around this code, that seem CursorSlice.cpp:83: // LASSERT: This should only ever be called from an InsetMath. CursorSlice.cpp:92: // LASSERT: This should only ever be called from an InsetMath. LayoutFile.cpp:303: // LASSERT: Why would this fail? Text.cpp:995: // LASSERT: Is it safe to continue here? I'm getting an assertion now whenever I try to insert a table or graphics or float: ASSERTION false VIOLATED IN /home/scott/lyxbuilds/master/build/src/Paragraph.cpp:1853 Hmm. I'm not sure what I did there. I somehow managed to add an assertion that wasn't previously there. That said, if you look at the code, it says: This is not supposed to happen. I'll fix it, but someone who understands this stuff should figure out whether there is a problem. Richard
Re: [PATCH] CPack, NSIS: CPACK_SET_DESTDIR not compatible with NSIS
Op 26-4-2013 10:16, Hugo Hinterberger schreef: On Thu, 25 Apr 2013 21:08:01 +0200, Vincent van Ravesteijn wrote: I can't find why you would need regex2.dll .. I don't have it and I don't need it. Where did you see that this was a problem. I built and ran LyX (thanks for your fixes) and it does not need regex2.dll any more (cannot say since when). As I wrote before, I do not know where the requirement for it came from. Could it be that one of the GNU(Win32) dependencies caused that? Yes, that could be. Vincent
Re: Compiling LyX on Mac OS 10.7.5
here is the command line I use (with cmake, out of source build) in a build directory (different from LyX main directory). It works with QT installed via the QT installer package (not from source): > > cmake -DLYX_BUNDLE=ON -DLYX_COCOA=ON -DLYX_INSTALL=ON -DLYX_RELEASE=OFF > -DLYX_DEBUG=ON PATH_TO_LYX_MAIN_DIRECTORY > > and then > > make LyX2.1 (to build the binary only) > or > make package (to get a mac bundle) > > Best, > Benjamin > Hello Benjamin, I did: > brew install cmake > cmake -DLYX_BUNDLE=ON -DLYX_COCOA=ON -DLYX_INSTALL=ON -DLYX_RELEASE=OFF -DLYX_DEBUG=ON . # <= DOT, current dir It is missing "libintl.h". Sie issue is mentioned here: http://www.gnu.org/software/gnulib/manual/html_node/libintl_002eh.html It tried to fix it with "> brew install gettext" unforutnatly without success. Any other workaround? Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n...@.g.m.a.i.l.dot.c.o.m
Re: \centerline{} support for wide graphics and tables
Op 26-4-2013 4:10, Scott Kostyshak schreef: On Thu, Apr 25, 2013 at 3:33 PM, Vincent van Ravesteijnwrote: Op 19-3-2013 4:35, Scott Kostyshak schreef: The option could be labelled one of the following: (1) "center across both margins" (2) "center on page across both margins" (3) "center a wide table" / "center a wide graphic" It should be clear that this option is only used when the image is too wide. If you want to implement this, you need to detect when an image is too wide.. How do you plan to dot that ? I was not planning on doing that. I was thinking that in many cases the user knows when it is too large and would manually set this option. There has been some very preliminary discussion (in the email thread on the GSoC horizontal scrollbar project) of parsing the log for specific overfull hboxes; but I do not think it makes sense to automatically detect this and set \centerline without the user knowing. Scott Usually we center images by centering the paragraph. This would then be another option that would confuse people, and I'm not overly enthusiastic about adding another option for a rare case that the user should try to avoid in the first place. Vincent
Re: [PATCH] (Incomplete) Nonexistent debug flag now throws an error
Op 26-4-2013 4:05, Scott Kostyshak schreef: On Thu, Apr 25, 2013 at 4:49 PM, Vincent van Ravesteijnwrote: Op 1-4-2013 6:07, Scott Kostyshak schreef: I think this is something I need to get used to: I would not have thought that this duplication of code (e.g. reparsing the string in the same way) was a good solution but I do see this a lot in C++ so it's something I need learn. What do you mean ? Checking whether a debug flag is valid and then setting that debug flag both involve looping through all the debug flags. When initially looking at this, the most natural thing seemed to me that there should be only one loop. But I think this separation of validation and processing is common in C++ and that I should learn to not worry about looping twice instead of once. Especially for such a small vector, this does not have any real performance issue. Besides performance though it still seems to me that the code could be more simple if there were just one loop. Is there a reason why it would be bad in this case to have one loop and throw an exception if a debug flag does not exist? Would it be reasonable to do a try/catch around lyxerr.setLevel(Debug::value(arg)) and obviate the need for Debug::isKnownValue(tmp) ? I hate throwing exceptions. What is not simple about what I proposed ? You shouldn't be worrying about performance in this kind of UI cases. It really doesn't care to do 40 checks compared to 20. The same holds for the issue in another thread about disabling controls on every character entered. In that box you typically enter a few characters, so a few extra loops are really not an issue.. never. Vincent
Re: Re: Can't compile lyx-outline
Hi Kornel and Alex, Thank you for your help. The thing is I think I have installed everything I need but it still reports can't find library. So I first installed Qt 5.0.2, which says that it will install both the libraries and the creator ( http://qt-project.org/downloads => Qt 5.0.2 for Mac). I ran CMake (the first time it worked) but I couldn't compile the file (but I forgot the error message was). Then I closed and reopened and tried to run CMake and saw the error messages. I thought I missed some libraries, but I was confused because the libraries should be included in the package. I still downloaded Qt 4.8.4 libraries and installed, and the error message is still there. I'm a very inexperienced programmer and this is the first time I use Qt. So please forgive me if I made some silly mistakes. Ashley *Xueqing Shan* Vanderbilt University, '16 On Fri, Apr 26, 2013 at 9:01 AM, Kornel Benkowrote: > ** > > Am Freitag, 26. April 2013 um 09:41:17, schrieb Alex Vergara Gil < > a...@cphr.edu.cu> > > > - Original Message - > > > From: Ashley Shan > > > > > > > > > Hi all, > > > > > > > > > I was trying to compile the existing code for corkboard and outline > view. I followed instructions on this post: > > > http://blog.oak-tree.us/index.php/2010/06/25/lyx-outline02-1 > > > > > > I installed all programs as instructed (Qt 5.0.2, CMake, Bazaar), and > when I try to open that CMakeList.txt project, I have some problems: > > > > > > > > > 1. There are a lot of CMakeList.txt in different directories within > document/cmake. There is one in the man folder and another in the doc > folder. > > > And I found another one in the same directory as document folder. > > > > Only the CMakeLists.txt in top-source directory the main cmake file used > for compiling LyX. > > > > > > > > 2. Can't run cmake. Error messages: > > > > > > > > > CMake Error at development/cmake/modules/FindQt4.cmake:859 (message): > > > > > > Qt libraries, includes, moc, uic or/and rcc NOT found! > > > > This means, you have not the development packages for Qt installed. > > > > > Call Stack (most recent call first): > > > > > > CMakeLists.txt:466 (find_package) > > > > > > > Kornel >
Re: [LyX master] Remove assertion accidentally added during the audit.
Am Freitag, 26. April 2013 um 16:43:15, schrieb Richard Heck> The branch, master, has been updated. > > - Log - > > commit 78652c98c8af2290492d969570a084ad58ec0c02 > Author: Richard Heck > Date: Fri Apr 26 10:42:45 2013 -0400 > > Remove assertion accidentally added during the audit. > > diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp > index 2a4d4e7..e5a469f 100644 > --- a/src/Paragraph.cpp > +++ b/src/Paragraph.cpp > @@ -1850,9 +1850,8 @@ FontSpan Paragraph::fontSpan(pos_type pos) const > } > > // This should not happen, but if so, we take no chances. > - LBUFERR(false, _("Invalid position.")); > - // Squash warning > - return FontSpan(); > + LYXERR0("Paragraph::getEndPosOfFontSpan: This should not happen!"); > + return FontSpan(pos, pos); > } > > Richard, BTW, should these messages really be translatable? The all refer to source code, this is at least very difficult to translate. Kornel signature.asc Description: This is a digitally signed message part.
Re: Compiling LyX on Mac OS 10.7.5
Summary: * QT 4.8.4 installed via the QT installer package (not from source) * brew install cmake * cmake -DLYX_NLS=OFF -DLYX_BUNDLE=ON -DLYX_COCOA=ON -DLYX_INSTALL=ON -DLYX_RELEASE=OFF -DLYX_DEBUG=ON -DLYX_EXTERNAL_LIBINTL=OFF . * make * make install Errors from cmake: CMake Error: Target LyX Info.plist template "/Users/elmar/lyx/build/src/../Info.plist" could not be found. Errors from make install: -- fixup_bundle -- app='/Users/elmar/lyx/LyX/LyX.app' -- libs='' -- dirs='' -- warning: *NOT* handled - .app directory case... CMake Error at /usr/local/Cellar/cmake/ 2.8.10.2/share/cmake/Modules/BundleUtilities.cmake:668 (message): error: fixup_bundle: not a valid bundle The second one seems to be cased by the first one. The application LyX/LyX.app/Contents/MacOS/LyX is running an looks fine. Regards Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n...@.g.m.a.i.l.dot.c.o.m
Re: Re: Re: Can't compile lyx-outline
Am Freitag, 26. April 2013 um 09:56:59, schrieb Ashley Shan> Hi Kornel and Alex, > > Thank you for your help. The thing is I think I have installed everything I > need but it still reports can't find library. So I first installed Qt > 5.0.2, which says that it will install both the libraries and the creator ( > http://qt-project.org/downloads => Qt 5.0.2 for Mac). I ran CMake (the > first time it worked) but I couldn't compile the file (but I forgot the > error message was). Then I closed and reopened and tried to run CMake and > saw the error messages. I thought I missed some libraries, but I was > confused because the libraries should be included in the package. I still > downloaded Qt 4.8.4 libraries and installed, and the error message is still > there. I was not saying, you had not installed Qt (which you apparently did), but that you did not install Qt-devel. (The name of this package may be different on MAC, on ubuntu it is e.g. libqt4-dev) > I'm a very inexperienced programmer and this is the first time I use Qt. So > please forgive me if I made some silly mistakes. No problem, but since I do not own a MAC, I can't help enough. Quick google for qt4 devel mac gives some answers though. (A candidate would be qt4-mac-devel, don't know) > Ashley Kornel signature.asc Description: This is a digitally signed message part.
Re: Re: Compiling LyX on Mac OS 10.7.5
Am Freitag, 26. April 2013 um 16:44:22, schrieb Elmar Hinz> here is the command line I use (with cmake, out of source build) in a build > directory (different from LyX main directory). It works with QT installed > via the QT installer package (not from source): > > > > > cmake -DLYX_BUNDLE=ON -DLYX_COCOA=ON -DLYX_INSTALL=ON -DLYX_RELEASE=OFF > > -DLYX_DEBUG=ON PATH_TO_LYX_MAIN_DIRECTORY > > > > and then > > > > make LyX2.1 (to build the binary only) > > or > > make package (to get a mac bundle) > > > > Best, > > Benjamin > > > > Hello Benjamin, > > I did: > > > brew install cmake > > cmake -DLYX_BUNDLE=ON -DLYX_COCOA=ON -DLYX_INSTALL=ON -DLYX_RELEASE=OFF > -DLYX_DEBUG=ON . # <= DOT, current dir > > It is missing "libintl.h". Sie issue is mentioned here: > http://www.gnu.org/software/gnulib/manual/html_node/libintl_002eh.html > > It tried to fix it with "> brew install gettext" unforutnatly without > success. > > Any other workaround? Sure. a.) You could use the lyx-provided libintl with cmake ... -DLYX_EXTERNAL_LIBINTL=OFF ... or prefered: b.) Install the devel package for libc6 (on ubuntu libc6-dev) > Elmar > Kornel signature.asc Description: This is a digitally signed message part.
Re: [LyX master] Remove assertion accidentally added during the audit.
On 04/26/2013 11:39 AM, Kornel Benko wrote: Am Freitag, 26. April 2013 um 16:43:15, schrieb Richard Heck> The branch, master, has been updated. > > - Log - > > commit 78652c98c8af2290492d969570a084ad58ec0c02 > Author: Richard Heck > Date: Fri Apr 26 10:42:45 2013 -0400 > > Remove assertion accidentally added during the audit. > > diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp > index 2a4d4e7..e5a469f 100644 > --- a/src/Paragraph.cpp > +++ b/src/Paragraph.cpp > @@ -1850,9 +1850,8 @@ FontSpan Paragraph::fontSpan(pos_type pos) const > } > > // This should not happen, but if so, we take no chances. > - LBUFERR(false, _("Invalid position.")); > - // Squash warning > - return FontSpan(); > + LYXERR0("Paragraph::getEndPosOfFontSpan: This should not happen!"); > + return FontSpan(pos, pos); > } > > Richard, BTW, should these messages really be translatable? The all refer to source code, this is at least very difficult to translate. Do you mean the "Invalid position" stuff? I made them translatable in case anyone wanted them to be---they do turn up in a dialog box---but it is easy enough to make them not translatable, if you think that is better. Richard
Re: Compiling LyX on Mac OS 10.7.5
> The second one seems to be cased by the first one. > OK didn't follow the instruction: make LyX2.1 (to build the binary only) or make package (to get a mac bundle) Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n...@.g.m.a.i.l.dot.c.o.m
Re: [LyX master] Remove assertion accidentally added during the audit.
26/04/2013 17:55, Richard Heck: Do you mean the "Invalid position" stuff? I made them translatable in case anyone wanted them to be---they do turn up in a dialog box---but it is easy enough to make them not translatable, if you think that is better. I think it is a lot of translation work for messages that we actually want to avoid. I'd remove the _(). JMarc
Re: Re: [LyX master] Remove assertion accidentally added during the audit.
Am Freitag, 26. April 2013 um 11:55:18, schrieb Richard Heck> On 04/26/2013 11:39 AM, Kornel Benko wrote: > > > > Am Freitag, 26. April 2013 um 16:43:15, schrieb Richard Heck > > > > > > > The branch, master, has been updated. > > > > > > > > > > - Log - > > > > > > > > > > commit 78652c98c8af2290492d969570a084ad58ec0c02 > > > > > Author: Richard Heck > > > > > Date: Fri Apr 26 10:42:45 2013 -0400 > > > > > > > > > > Remove assertion accidentally added during the audit. > > > > > > > > > > diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp > > > > > index 2a4d4e7..e5a469f 100644 > > > > > --- a/src/Paragraph.cpp > > > > > +++ b/src/Paragraph.cpp > > > > > @@ -1850,9 +1850,8 @@ FontSpan Paragraph::fontSpan(pos_type pos) const > > > > > } > > > > > > > > > > // This should not happen, but if so, we take no chances. > > > > > - LBUFERR(false, _("Invalid position.")); > > > > > - // Squash warning > > > > > - return FontSpan(); > > > > > + LYXERR0("Paragraph::getEndPosOfFontSpan: This should not happen!"); > > > > > + return FontSpan(pos, pos); > > > > > } > > > > > > > > > > > > > > Richard, BTW, should these messages really be translatable? > > > > The all refer to source code, this is at least very difficult to > > translate. > > > > Do you mean the "Invalid position" stuff? I made them translatable in > case anyone wanted them to be---they do turn up in a dialog box---but it > is easy enough to make them not translatable, if you think that is better. Yes. Although this is easy to translate, it refers to the variable "position", which therefore should not be translated. But there are plenty of other messages like ... Unable to find WorkArea for Buffer! Attempting to clone non-existent BufferParams! Cursor has no BufferView! ... > Richard Kornel signature.asc Description: This is a digitally signed message part.
Re: [LyX master] Remove assertion accidentally added during the audit.
26/04/2013 17:55, Richard Heck: Do you mean the "Invalid position" stuff? I made them translatable in case anyone wanted them to be---they do turn up in a dialog box---but it is easy enough to make them not translatable, if you think that is better. I would say that this is not supposed to be understandable by the users, but only by the developers. And we all know english. We should spend our efforts in making sure that these messages do not appear in practice. JMarc
Re: Re: Compiling LyX on Mac OS 10.7.5
> or prefered: > > b.) Install the devel package for libc6 (on ubuntu libc6-dev) > > > > > Elmar > > > > > Kornel > Hello, IMHO there is no libc6 for mac. There is a /usr/lib/libSystem.dylib -> libSystem.B.dylib Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n...@.g.m.a.i.l.dot.c.o.m
Re: Re: Re: Compiling LyX on Mac OS 10.7.5
Am Freitag, 26. April 2013 um 18:23:56, schrieb Elmar Hinz> Hello, > > IMHO there is no libc6 for mac. There is a > > /usr/lib/libSystem.dylib -> libSystem.B.dylib > > Elmar > Is there also a appropriate devel *package*? Kornel signature.asc Description: This is a digitally signed message part.
Re: Compiling LyX on Mac OS 10.7.5
> OK didn't follow the instruction: > make LyX2.1 (to build the binary only) > or > make package (to get a mac bundle) > Anyway, That doesn't bring in the missing Info.plist. Question: Why is there no Info.plist in the source? -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n...@.g.m.a.i.l.dot.c.o.m
Re: Re: Re: Compiling LyX on Mac OS 10.7.5
On Fri, Apr 26, 2013 at 6:29 PM, Kornel Benkowrote: > ** > > Am Freitag, 26. April 2013 um 18:23:56, schrieb Elmar Hinz < > t3el...@googlemail.com> > > > Hello, > > > > > > IMHO there is no libc6 for mac. There is a > > > > > > /usr/lib/libSystem.dylib -> libSystem.B.dylib > > > > > > Elmar > > > > > > > Is there also a appropriate devel *package*? > > > > Kornel > I find a _debug* and a _profile* variant: -r-xr-xr-x 1 root wheel 475K 22 Mär 2012 /usr/lib/libSystem.B.dylib -r-xr-xr-x 1 root wheel 475K 12 Apr 2012 /usr/lib/libSystem.B_debug.dylib -r-xr-xr-x 1 root wheel 475K 12 Apr 2012 /usr/lib/libSystem.B_profile.dylib lrwxr-xr-x 1 root wheel17B 22 Mär 2012 /usr/lib/libSystem.dylib -> libSystem.B.dylib lrwxr-xr-x 1 root wheel23B 2 Mär 13:51 /usr/lib/libSystem_debug.dylib -> libSystem.B_debug.dylib lrwxr-xr-x 1 root wheel25B 2 Mär 13:51 /usr/lib/libSystem_profile.dylib -> libSystem.B_profile.dylib However I am new with Mac OS and still can't explain how it handles the stuff we know as libc6 and libc6-dev. This gives start: http://docstore.mik.ua/orelly/unix3/mac/ch05_02.htm For today I wanted to learn how to compile LyX and succeded largeley. Next step is to bring in a patch to learn the workflow of the project. Regards Elmar -- Elmar Hinz Freiherr-vom-Stein-Str. 1 33014 Bad Driburg TYPO3 community contact: t.3.e.l.m.a...@.g.m.a.i.l.dot.c.o.m personal contact: e.l.m.a.r.dot.h.i.n...@.g.m.a.i.l.dot.c.o.m
Re: Re: Compiling LyX on Mac OS 10.7.5
Am Freitag, 26. April 2013 um 18:31:11, schrieb Elmar Hinz> > Anyway, That doesn't bring in the missing Info.plist. > > Question: Why is there no Info.plist in the source? There is. It should be created from Info.plist.in at configure time. That file itself is in the build-directory. (See main-CMakeLists.txt:308) Kornel signature.asc Description: This is a digitally signed message part.
Re: Re: Re: Re: Compiling LyX on Mac OS 10.7.5
Am Freitag, 26. April 2013 um 18:46:17, schrieb Elmar Hinz> > I find a _debug* and a _profile* variant: No, what you found are files, not packages. Check please to which package belongs a specified file. (I don't know how, sorry) Kornel signature.asc Description: This is a digitally signed message part.
Re: Re: Re: Can't compile lyx-outline
Hi Kornel, I checked the installation log of my Qt 5.0.2, I searched for "moc", "uic", and "rcc", and it seems I did have installed them: Relocator calling otool -l for "/Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/moc" END - Relocator calling otool -l for "/Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/moc" Got the following information(fileName: /Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/moc, frameworkId: , frameworks: /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices|/usr/lib/libz.1.dylib|/usr/lib/libstdc++.6.dylib|/usr/lib/libSystem.B.dylib|/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation,orginalBuildDir: ) Relocator calling otool -l for "/Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/* rcc*" END - Relocator calling otool -l for "/Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/*rcc*" Got the following information(fileName: /Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/*rcc*, frameworkId: , frameworks: /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices|/usr/lib/libz.1.dylib|/usr/lib/libstdc++.6.dylib|/usr/lib/libSystem.B.dylib|/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation,orginalBuildDir: ) Relocator calling otool -l for "/Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/syncqt" END - Relocator calling otool -l for "/Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/syncqt" Got the following information(fileName: /Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/syncqt, frameworkId: , frameworks: ,orginalBuildDir: ) Relocator calling otool -l for "/Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/* uic*" END - Relocator calling otool -l for "/Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/*uic*" Got the following information(fileName: /Users/Ashley/Qt5.0.2/5.0.2/clang_64/bin/*uic*, frameworkId: , frameworks: /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices|/usr/lib/libz.1.dylib|/usr/lib/libstdc++.6.dylib|/usr/lib/libSystem.B.dylib|/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation,orginalBuildDir: ) I ran CMake again and it said uic, moc, and rcc not found. So I installed Macports, installed qt4-mac (I tried to install qt4-mac-devel, but it said "this port has been temporarily replaced by 'qt4-mac'; it will be updated to 5.0 beta or a release candidate hopefully soon." So I typed in "sudo port install qt4-mac" and it seemed to be installed. I ran QCreator and ran CMake and it still said moc, uic and rcc not found. I'm so confused... Ashley *Xueqing Shan* Vanderbilt University, '16 On Fri, Apr 26, 2013 at 10:48 AM, Kornel Benkowrote: > ** > > Am Freitag, 26. April 2013 um 09:56:59, schrieb Ashley Shan < > xueqing.s...@vanderbilt.edu> > > > Hi Kornel and Alex, > > > > > > Thank you for your help. The thing is I think I have installed > everything I > > > need but it still reports can't find library. So I first installed Qt > > > 5.0.2, which says that it will install both the libraries and the > creator ( > > > http://qt-project.org/downloads => Qt 5.0.2 for Mac). I ran CMake (the > > > first time it worked) but I couldn't compile the file (but I forgot the > > > error message was). Then I closed and reopened and tried to run CMake and > > > saw the error messages. I thought I missed some libraries, but I was > > > confused because the libraries should be included in the package. I still > > > downloaded Qt 4.8.4 libraries and installed, and the error message is > still > > > there. > > > > I was not saying, you had not installed Qt (which you apparently did), but > that you did not install Qt-devel. > > (The name of this package may be different on MAC, on ubuntu it is e.g. > libqt4-dev) > > > > > I'm a very inexperienced programmer and this is the first time I use Qt. > So > > > please forgive me if I made some silly mistakes. > > > > No problem, but since I do not own a MAC, I can't help enough. > > Quick google for > > qt4 devel mac > > gives some answers though. (A candidate would be qt4-mac-devel, don't know) > > > > > Ashley > > > > Kornel >
Re: Re: Re: Re: Can't compile lyx-outline
Am Freitag, 26. April 2013 um 12:00:17, schrieb Ashley Shan> > I ran CMake again and it said uic, moc, and rcc not found. So I installed > Macports, installed qt4-mac (I tried to install qt4-mac-devel, but it said > "this port has been temporarily replaced by 'qt4-mac'; it will be updated > to 5.0 beta or a release candidate hopefully soon." So I typed in "sudo > port install qt4-mac" and it seemed to be installed. I ran QCreator and ran > CMake and it still said moc, uic and rcc not found. I'm so confused... > > Ashley > Me too. I fear, we have to wait for someone (Stephan Witt? ) for more help. Kornel signature.asc Description: This is a digitally signed message part.
Git Cloning Error
Hello I'm having problem on cloning git through the command git clone git://git.lyx.org/lyxas mentioned on the official site. the error I get is this $ git clone git://git.lyx.org/lyx Cloning into 'lyx'... error: Proxy CONNECT aborted while accessing https://git.lyx.org/lyx/info/refs fatal: HTTP request failed My college uses cyberoam as a filter to web. Also, we work through a proxy: http://172.16.73.12:3128 Hence, I tried adding this proxy to git as follows: $ export http_proxy=http://172.16.73.12:3128 $ git config --global http.proxy $http_proxy But still the same error remains. Kindly help me with this issue. Yours sincerely Abhishek
Re: Introducing myself to the community
On Fri, Apr 26, 2013 at 5:08 AM, Daan Janssenswrote: > Hello world! > > Sorry for filling you're inbox with this, but I would like to introduce > myself properly, because I'm hoping for a long term relationship. > > My name is Daan Janssens and I'm in my 4th year of university majoring > software engineering at the university of Antwerp, located in tiny Belgium. > I won't start summing up all courses that I took, because I guess it's > rather equivalent to any other first master year I guess. I do have 3 years > of extinsive c++ learning experience and I'm also up to date with the > majority of the new features of the c++11 standard. > > Perhaps the thing worth mentioning is my bachelor thesis, which was a > project together with 4 other students, where we had to write increments on > an already existing program that simulated virtual leaves, namely, how cells > evolved in leafs. This was a project for the Biology department. And however > the topic doesn't seem to match to Lyx, but the technology used did! We used > Qt for GUI and threading, boost libraries and CMake, also GIT. So I guess > the experience I got out of this could be very useful now! > > So what do I want to do as project? > I want to write a 'Fast and useful toolbar customization dialog' > For more information about the project, my motivation and driving force: > please read my draft proposal, which I uploaded already. I'm hoping to get > feedback on it soon, thanks in advance for reading it, cause I know it's > quite big, but I really spend a lot of work on it :) > > If you got any question, feel free to ask. > > kind regards, > Hi Daan, welcome! > PS: is there a way to contact mentors without filling everyone's mailbox for > every small question that I have, because irc seems quite dead to me. I think it is preferred to just send to the list. Even small questions are OK and others will probably benefit from the answers. Best, Scott
Re: \centerline{} support for wide graphics and tables
On Fri, Apr 26, 2013 at 10:46 AM, Vincent van Ravesteijnwrote: > Op 26-4-2013 4:10, Scott Kostyshak schreef: >> >> On Thu, Apr 25, 2013 at 3:33 PM, Vincent van Ravesteijn >> wrote: >>> >>> Op 19-3-2013 4:35, Scott Kostyshak schreef: >>> The option could be labelled one of the following: (1) "center across both margins" (2) "center on page across both margins" (3) "center a wide table" / "center a wide graphic" >>> It should be clear that this option is only used when the image is too >>> wide. >>> >>> If you want to implement this, you need to detect when an image is too >>> wide.. How do you plan to dot that ? >> >> I was not planning on doing that. I was thinking that in many cases >> the user knows when it is too large and would manually set this >> option. There has been some very preliminary discussion (in the email >> thread on the GSoC horizontal scrollbar project) of parsing the log >> for specific overfull hboxes; but I do not think it makes sense to >> automatically detect this and set \centerline without the user >> knowing. >> >> Scott > > Usually we center images by centering the paragraph. This would then be > another option that would confuse people, and I'm not overly enthusiastic > about adding another option for a rare case that the user should try to > avoid in the first place. Makes sense. A module would be a solution if someone wanted this built-in. Otherwise, I will forget about it. Scott
Re: [PATCH] (Incomplete) Nonexistent debug flag now throws an error
On Fri, Apr 26, 2013 at 10:54 AM, Vincent van Ravesteijnwrote: > Op 26-4-2013 4:05, Scott Kostyshak schreef: > >> On Thu, Apr 25, 2013 at 4:49 PM, Vincent van Ravesteijn >> wrote: >>> >>> Op 1-4-2013 6:07, Scott Kostyshak schreef: I think this is something I need to get used to: I would not have thought that this duplication of code (e.g. reparsing the string in the same way) was a good solution but I do see this a lot in C++ so it's something I need learn. >>> >>> >>> What do you mean ? >> >> Checking whether a debug flag is valid and then setting that debug >> flag both involve looping through all the debug flags. When initially >> looking at this, the most natural thing seemed to me that there should >> be only one loop. But I think this separation of validation and >> processing is common in C++ and that I should learn to not worry about >> looping twice instead of once. Especially for such a small vector, >> this does not have any real performance issue. >> >> Besides performance though it still seems to me that the code could be >> more simple if there were just one loop. Is there a reason why it >> would be bad in this case to have one loop and throw an exception if a >> debug flag does not exist? Would it be reasonable to do a try/catch >> around lyxerr.setLevel(Debug::value(arg)) and obviate the need for >> Debug::isKnownValue(tmp) ? >> > > I hate throwing exceptions. Why? I have little experience with them so I don't know their disadvantages. If you can point me to a discussion of their faults, that would be great. I found some results by googling "don't use exceptions c++" but I thought that you might have something in mind that's specific for this case. From what I remember, the authors of the "Professional C++" book are in love with exceptions. I have no idea how highly/lowly regarded their opinions are. >What is not simple about what I proposed ? "simple" wasn't the correct word. It is simple. It's just not what I would have first imagined because it duplicates code. What if how we loop through debug flags changes or there is a bug that is found in one of the loops? The other loop doesn't automatically change. Again, I'm not saying this is bad. I'm just trying to learn that this is not bad so that next time I come across such a problem I will recognize what the correct approach is. > You shouldn't be worrying about performance in this kind of UI cases. It > really doesn't care to do 40 checks compared to 20. The same holds for the > issue in another thread about disabling controls on every character entered. > In that box you typically enter a few characters, so a few extra loops are > really not an issue.. never. I'm now convinced that performance is not an issue. I'm less convinced that readability and maintainability are better than using exceptions. I trust that you're right (and I see that what you're recommending here is common in many other parts of the code). I'm just trying to figure out why. What do you think of the most recent patch I posted? I think I implemented the important part of what you proposed. (http://permalink.gmane.org/gmane.editors.lyx.devel/145483) Thanks for the help, Scott
Re: \centerline{} support for wide graphics and tables
On Fri, Apr 26, 2013 at 8:07 PM, Scott Kostyshakwrote: >> Usually we center images by centering the paragraph. This would then be >> another option that would confuse people, and I'm not overly enthusiastic >> about adding another option for a rare case that the user should try to >> avoid in the first place. > > Makes sense. A module would be a solution if someone wanted this > built-in. Otherwise, I will forget about it. > Personally I think this would be useful. This happens quite often, and having a GUI solution for this, built-in or module, would be nice. If you come up with a module it could be published on the wiki. Liviu
Proposal Submitted
Hi all, I just submitted a proposal for "UI Enhancement and Non-linear writing improvement". I would appreciate if anyone can take a look and give me some feedback. Thank you. Xueqing Shan *Xueqing Shan* Vanderbilt University, '16