Building lyx-1.5.2 fails with:

environment.cpp:82:2: error: #error No environment-setting function has 
been defined.


This is because the configure originally failed detecting both setenv and 
putenv.

configure:29975: checking for putenv

configure:30031: cc -o conftest -O2 -I/usr/pkg/include/python2.4 
-I/usr/include -I/usr/pkg/include -I/usr/pkg/qt4/include 
-DGLX_GLXEXT_LEGACY -I/usr/pkg/include/freetype2 
-I/usr/pkg/include/python2.4 -I/usr/include -I/usr/pkg/include 
-I/usr/pkg/qt4/include -DGLX_GLXEXT_LEGACY -I/usr/pkg/include/freetype2 
-I/usr/pkg/include -s -L/usr/pkg/lib/python2.4/config 
-Wl,-R/usr/pkg/lib/python2.4/config -L/usr/lib -Wl,-R/usr/lib 
-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/qt4/lib 
-Wl,-R/usr/pkg/qt4/lib -L/usr/pkg/lib conftest.c -lSM -lICE -lm -lz -lX11 
-Wl,-R/usr/pkg/qt4/lib -pthread /usr/pkg/qt4/lib/libQtCore.la >&5
/usr/pkg/qt4/lib/libQtCore.la: file not recognized: File format not 
recognized
configure:30037: $? = 1


So that error is direct from gcc. But .la file should be handled by 
libtool not gcc.

So my QT4 pc (pkgconfig) files have libtool .la references.

Does anyone else have that problem? Is this a problem with broken QT4 
install? Or lyx configure? Or my build environment?


  Jeremy C. Reed

Reply via email to