Re: Trouble building 2.1 on OS X

2012-06-06 Thread Jerry

On Jun 4, 2012, at 5:10 AM, Vincent van Ravesteijn wrote:

 Op 4-6-2012 14:05, Jerry schreef:
 I'm trying to build the 2.1 development branch on OS X and having some 
 trouble. After
 
   git clone git://git.lyx.org/lyx
   ./autogen.sh
   ./configure
   make
 
 this happened and I don't understand why:
 
 
 snip
   CXX  Dimension.o
   CXX  PrinterParams.o
   CXX  Thesaurus.o
   CXXLDlyx
 Undefined symbols for architecture x86_64:
   _iconv_open, referenced from:
   __nl_find_msg in libintl.a(dcigettext.o)
   _iconv, referenced from:
   __nl_find_msg in libintl.a(dcigettext.o)
  (maybe you meant: lyx::from_iconv_encoding(std::basic_stringchar, 
 std::char_traitschar, std::allocatorcharconst, 
 std::basic_stringchar, std::char_traitschar, std::allocatorchar
 const), lyx::to_iconv_encoding(std::basic_stringwchar_t, 
 std::char_traitswchar_t, std::allocatorwchar_tconst, 
 std::basic_stringchar, std::char_traitschar, std::allocatorchar
 const))
 ld: symbol(s) not found for architecture x86_64
 collect2: ld returned 1 exit status
 make[4]: *** [lyx] Error 1
 make[3]: *** [all-recursive] Error 1
 make[2]: *** [all] Error 2
 make[1]: *** [all-recursive] Error 1
 make: *** [all] Error 2
 MBPro:lyx jb$
 
 
 Looks like the linker can't find libiconv which is needed by libintl 
 (gettext).
 
 Vincent

With help from Benjamin on this list and Ryan from the Macports list, I 
discovered that I need to include 
-liconv in the LDFLAGS variable. That fixed the problem.

Jerry

Re: #8188: CMake and Info.plist

2012-06-06 Thread Stephan Witt
Am 07.06.2012 um 00:30 schrieb LyX Ticket Tracker:

 #8188: CMake and Info.plist
 --+-
 Reporter:  bpiwowar  |   Owner:  lasgouttes
 Type:  defect|  Status:  new
 Priority:  normal|   Milestone:
 Component:  build | Version:  2.1.0svn
 Severity:  normal|  Resolution:
 Keywords:  macosx|
 --+-
 
 Comment (by bpiwowar):
 
 Replying to [comment:8 stwitt]:
 How do you call configure? The patch does not work for me.
 Did you run `./autogen.sh` after having applied the patch?

Sorry, no. My build script checks for changes of configure.ac and 
Makefile.am and runs autogen.sh automatically. 
It does not detect changed .m4 files and I forgot it.

But the resulting application is broken when building in release mode.

$ open lyx-build/LyX-2.1.0svn.app
The application cannot be opened because its executable is missing.
$ ls lyx-build/LyX-2.1.0svn.app/Contents/MacOS/
lyx lyxclient   lyxeditor   tex2lyx
$ head lyx-build/LyX-2.1.0svn.app/Contents/Info.plist
?xml version=1.0 encoding=UTF-8?
!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN 
http://www.apple.com/DTDs/PropertyList-1.0.dtd;
plist version=1.0
dict
keyCFBundleExecutable/key
stringlyx-2.1/string
keyCFBundleDocumentTypes/key
$

The program suffix is not part of the executable name.

I'm using the cmake build for working (debugging) with Xcode only.
All the packages are built with auto tools. Building the bundle with
cmake never worked for me. At the time I tried this it was a known
problem with the cmake tool. Maybe these days the situation has changed.

Stephan

 -- 
 Ticket URL: http://www.lyx.org/trac/ticket/8188#comment:9
 The LyX Project http://www.lyx.org/
 LyX -- The Document Processor



Git version; scrolling again

2012-06-06 Thread Jerry
How can I tell which version of LyX I am building? I _think_ I'm building from 
git master but then there's this:

  $ ./lyx --versionLyX 2.1.0svn (2011-04-29)

I'm still learning git but I'm building from the directory that resulted from 
this:

  git clone git://git.lyx.org/lyx

The binary responds to -E on the command line so I'm guessing that it is some 
version of 2.1 since this is said to be new in 2.1.

Anyway, the scrolling for this newly-built version for OS X is, frankly, very 
bad. Worse than 2.0.3. In January, in a version of 2.1 that I built from SVN, 
and after a discussion on this list, I was told that if I enter

  \force_paint_single_char 0

into /Users/me/Library/Application Support/LyX-2.1/preferences

that the scrolling speed would improve and in fact it did, to a very usable 
level. However, the new build is not seeing this preferences file.

So:

* Which preference file is the new build using?

* Has the scrolling really regressed badly since early January 2012?

Thanks,
Jerry

Re: Git version; scrolling again

2012-06-06 Thread Stephan Witt
Am 07.06.2012 um 07:35 schrieb Jerry:

 How can I tell which version of LyX I am building? I _think_ I'm building 
 from git master but then there's this:
 
  $ ./lyx --versionLyX 2.1.0svn (2011-04-29)
 
 I'm still learning git but I'm building from the directory that resulted from 
 this:
 
  git clone git://git.lyx.org/lyx
 
 The binary responds to -E on the command line so I'm guessing that it is some 
 version of 2.1 since this is said to be new in 2.1.
 
 Anyway, the scrolling for this newly-built version for OS X is, frankly, very 
 bad. Worse than 2.0.3. In January, in a version of 2.1 that I built from SVN, 
 and after a discussion on this list, I was told that if I enter
 
  \force_paint_single_char 0
 
 into /Users/me/Library/Application Support/LyX-2.1/preferences
 
 that the scrolling speed would improve and in fact it did, to a very usable 
 level. However, the new build is not seeing this preferences file.
 
 So:
 
 * Which preference file is the new build using?

The version number and the path of your preferences directory is presented by 
LyX = About LyX.
Use the Activity Monitor.app to investigate the used files of your running LyX 
instance
if you want to know what binary, frameworks and libraries it is using.

 * Has the scrolling really regressed badly since early January 2012?

Perhaps. IMHO, the problem is caused by the text drawing algorithm of LyX. 
The program does finger-painting the text and has to compute all the 
positions of the
text parts and lines itself. I think it is drawing too much to be fast. To 
solve that
problem is not an easy task.

What do you want to do? Do you want to solve that? Do you want to develop new 
features?
Or are you looking for existing new features and want to use a recent 2.1 LyX 
app only?

Regards,
Stephan

Re: Trouble building 2.1 on OS X

2012-06-06 Thread Jerry

On Jun 4, 2012, at 5:10 AM, Vincent van Ravesteijn wrote:

> Op 4-6-2012 14:05, Jerry schreef:
>> I'm trying to build the 2.1 development branch on OS X and having some 
>> trouble. After
>> 
>>   git clone git://git.lyx.org/lyx
>>   ./autogen.sh
>>   ./configure
>>   make
>> 
>> this happened and I don't understand why:
>> 
>> 
>> 
>>   CXX  Dimension.o
>>   CXX  PrinterParams.o
>>   CXX  Thesaurus.o
>>   CXXLDlyx
>> Undefined symbols for architecture x86_64:
>>   "_iconv_open", referenced from:
>>   __nl_find_msg in libintl.a(dcigettext.o)
>>   "_iconv", referenced from:
>>   __nl_find_msg in libintl.a(dcigettext.o)
>>  (maybe you meant: lyx::from_iconv_encoding(std::basic_string> std::char_traits, std::allocator  >  const&, 
>> std::basic_string  
>> const&), lyx::to_iconv_encoding(std::basic_string> std::char_traits, std::allocator  >  const&, 
>> std::basic_string  
>> const&))
>> ld: symbol(s) not found for architecture x86_64
>> collect2: ld returned 1 exit status
>> make[4]: *** [lyx] Error 1
>> make[3]: *** [all-recursive] Error 1
>> make[2]: *** [all] Error 2
>> make[1]: *** [all-recursive] Error 1
>> make: *** [all] Error 2
>> MBPro:lyx jb$
>> 
> 
> Looks like the linker can't find libiconv which is needed by libintl 
> (gettext).
> 
> Vincent

With help from Benjamin on this list and Ryan from the Macports list, I 
discovered that I need to include 
"-liconv" in the LDFLAGS variable. That fixed the problem.

Jerry

Re: #8188: CMake and Info.plist

2012-06-06 Thread Stephan Witt
Am 07.06.2012 um 00:30 schrieb LyX Ticket Tracker:

> #8188: CMake and Info.plist
> --+-
> Reporter:  bpiwowar  |   Owner:  lasgouttes
> Type:  defect|  Status:  new
> Priority:  normal|   Milestone:
> Component:  build | Version:  2.1.0svn
> Severity:  normal|  Resolution:
> Keywords:  macosx|
> --+-
> 
> Comment (by bpiwowar):
> 
> Replying to [comment:8 stwitt]:
>> How do you call configure? The patch does not work for me.
> Did you run `./autogen.sh` after having applied the patch?

Sorry, no. My build script checks for changes of configure.ac and 
Makefile.am and runs autogen.sh automatically. 
It does not detect changed .m4 files and I forgot it.

But the resulting application is broken when building in release mode.

$ open lyx-build/LyX-2.1.0svn.app
The application cannot be opened because its executable is missing.
$ ls lyx-build/LyX-2.1.0svn.app/Contents/MacOS/
lyx lyxclient   lyxeditor   tex2lyx
$ head lyx-build/LyX-2.1.0svn.app/Contents/Info.plist

http://www.apple.com/DTDs/PropertyList-1.0.dtd;>


CFBundleExecutable
lyx-2.1
CFBundleDocumentTypes
$

The program suffix is not part of the executable name.

I'm using the cmake build for working (debugging) with Xcode only.
All the packages are built with auto tools. Building the bundle with
cmake never worked for me. At the time I tried this it was a known
problem with the cmake tool. Maybe these days the situation has changed.

Stephan

> -- 
> Ticket URL: 
> The LyX Project 
> LyX -- The Document Processor



Git version; scrolling again

2012-06-06 Thread Jerry
How can I tell which version of LyX I am building? I _think_ I'm building from 
git master but then there's this:

  $ ./lyx --versionLyX 2.1.0svn (2011-04-29)

I'm still learning git but I'm building from the directory that resulted from 
this:

  git clone git://git.lyx.org/lyx

The binary responds to -E on the command line so I'm guessing that it is some 
version of 2.1 since this is said to be new in 2.1.

Anyway, the scrolling for this newly-built version for OS X is, frankly, very 
bad. Worse than 2.0.3. In January, in a version of 2.1 that I built from SVN, 
and after a discussion on this list, I was told that if I enter

  \force_paint_single_char "0"

into /Users/me/Library/Application Support/LyX-2.1/preferences

that the scrolling speed would improve and in fact it did, to a very usable 
level. However, the new build is not seeing this preferences file.

So:

* Which preference file is the new build using?

* Has the scrolling really regressed badly since early January 2012?

Thanks,
Jerry

Re: Git version; scrolling again

2012-06-06 Thread Stephan Witt
Am 07.06.2012 um 07:35 schrieb Jerry:

> How can I tell which version of LyX I am building? I _think_ I'm building 
> from git master but then there's this:
> 
>  $ ./lyx --versionLyX 2.1.0svn (2011-04-29)
> 
> I'm still learning git but I'm building from the directory that resulted from 
> this:
> 
>  git clone git://git.lyx.org/lyx
> 
> The binary responds to -E on the command line so I'm guessing that it is some 
> version of 2.1 since this is said to be new in 2.1.
> 
> Anyway, the scrolling for this newly-built version for OS X is, frankly, very 
> bad. Worse than 2.0.3. In January, in a version of 2.1 that I built from SVN, 
> and after a discussion on this list, I was told that if I enter
> 
>  \force_paint_single_char "0"
> 
> into /Users/me/Library/Application Support/LyX-2.1/preferences
> 
> that the scrolling speed would improve and in fact it did, to a very usable 
> level. However, the new build is not seeing this preferences file.
> 
> So:
> 
> * Which preference file is the new build using?

The version number and the path of your preferences directory is presented by 
LyX => About LyX.
Use the Activity Monitor.app to investigate the used files of your running LyX 
instance
if you want to know what binary, frameworks and libraries it is using.

> * Has the scrolling really regressed badly since early January 2012?

Perhaps. IMHO, the problem is caused by the text drawing algorithm of LyX. 
The program does "finger-painting" the text and has to compute all the 
positions of the
text parts and lines itself. I think it is drawing too much to be fast. To 
solve that
problem is not an easy task.

What do you want to do? Do you want to solve that? Do you want to develop new 
features?
Or are you looking for existing new features and want to use a recent 2.1 LyX 
app only?

Regards,
Stephan