Am 17.08.2012 um 20:02 schrieb Pedro Romero A:

> Hi Stephan
> I was doing this
> 
> cd /Applications/lyx-2.0.4
> then ./configure
> I also tried ./configure with options for libraries for qt4 in the
> directories that I´ve found in my machine
> I i´ve got the same result
> 
> I did what you told me and read the Install macOSX, I run CPPFLAGS and
> QTCORE…and i´ve got a worst result, the compiler did not work.
> 
> Then, I use autogen.sh
> then ./configure --with-qt4-dir=/path/to/Qt4
> 
> and I still got the same message
> 
> "qt4 library not found"
> 
> I do not really know what to do now!
> 

Hi Pedro,

why do you want to compile LyX yourself in /Applications/lyx-2.0.4?

1. You should consider to use the ready to run package from www.lyx.org

2. If you want LyX compile yourself you should work in your home dir

3. This is working for me (with Mac OS X 10.6):
- Download Qt4 (I did it with 4.7.4 when this was current)
  I'm using the 32bit developer version for Leopard (10.5).
  The tools are installed here: /Developer/Tools/Qt
  The Headers are here: /Developer/SDKs/MacOSX10.5.sdk/Library/Frameworks
  If you've grabbed another version you have to look for the correct values.
- Checkout the LyX sources (the source tree is in my home dir)
  Run autogen.sh there.
- Create a build directory to separate source and build results.
- Prepare the environment
 export QT4_CORE_CFLAGS=-FQtCore
 export QT4_CORE_LIBS="-framework QtCore"
 export QT4_FRONTEND_CFLAGS=-FQtGui
 export QT4_FRONTEND_LIBS="-framework QtGui"
 export PKG_CONFIG=
 export LDFLAGS="-isysroot /Developer/SDKs/MacOSX10.5.sdk -arch i386 
-mmacosx-version-min=10.5"
 export CPPFLAGS="$LDFLAGS 
-I/Developer/SDKs/MacOSX10.5.sdk/Library/Frameworks/QtCore.framework/Headers 
-I/Developer/SDKs/MacOSX10.5.sdk/Library/Frameworks/QtGui.framework/Headers"
 export PATH="/Developer/Tools/Qt:$PATH"
- Run configure and make
 cd build-dir && ../lyx-dir/configure --with-included-gettext && make

Stephan


> 
> On Fri, Aug 17, 2012 at 11:37 AM, Stephan Witt <st.w...@gmx.net> wrote:
>> Am 17.08.2012 um 07:53 schrieb Pedro Romero A:
>> 
>>> Hi all
>>> 
>>> I have been trying for hours to install the latest version of lyx on
>>> my mac osx 10.7.4.
>>> and I keep getting this message
>>> 
>>> Configuration
>>> Host type:                    x86_64-apple-darwin11.4.0
>>> Special build flags:          build=release
>>> C   Compiler:                 gcc
>>> C   Compiler LyX flags:
>>> C   Compiler flags:             -O2
>>> C++ Compiler:                 g++ (4.2.1)
>>> C++ Compiler LyX flags:
>>> C++ Compiler flags:             -O2
>>> Linker flags:
>>> Linker user flags:
>>> Qt 4 Frontend:
>>>     Qt 4 version:
>>> Packaging:                    macosx
>>> LyX binary dir:               /Applications/LyX.app/Contents/MacOS
>>> LyX files dir:                /Applications/LyX.app/Contents/Resources
>>> 
>>> **** The following problems have been detected by configure.
>>> **** Please check the messages below before running 'make'.
>>> **** (see the section 'Problems' in the INSTALL file)
>>> 
>>> ** qt 4 library not found !
>>> 
>>> 
>>> I have installed the latest qtSDK, I also installed the libraries, and
>>> I even have installed from source from this site
>>> http://qt.nokia.com/downloads/qt-for-open-source-cpp-development-on-mac-os-x
>>> 
>>> and I am unable to fix this problem
>>> 
>>> please can you help me?
>> 
>> Hi Pedro,
>> 
>> how do you call configure? Did you read INSTALL.MacOSX?
>> 
>> Please try the following:
>> 
>> CPPFLAGS="-I/Library/Frameworks/QtCore.framework/Headers 
>> -I/Library/Frameworks/QtGui.framework/Headers" configure
>> 
>> Just in case the Qt headers are there... or change it accordingly.
>> 
>> Stephan
> 
> 
> 
> -- 
> My papers at:
> http://papers.ssrn.com/sol3/cf_dev/AbsByAuth.cfm?per_id=535638
> 
> "I confess that I prefer true but imperfect knowledge, even if it
> leaves much indetermined and unpredictable, to a pretence of exact
> knowledge that is likely to be false" F. Hayek, 1974.
> 
> "But it is not the popular movement, but the travelling of the minds
> of men who sit in the seat of Adam Smith that is really serious and
> worthy of all attention." Lord Acton

Reply via email to