Failed in installing pfstmo on windows

23 views
Skip to first unread message

Jack

unread,
Jul 29, 2008, 8:39:29 PM7/29/08
to pfstools
Hi experts,

I encountered errors when I "make" the pfttmo package:

Error message is as follows:
********************************************************************
make[3]: Entering directory `/cygdrive/c/workspace/HDRSoft/pfstmo-1.3/
src/drago0
3'
/bin/sh ../../libtool --tag=CXX --mode=link g++ -O3 -o
pfstmo_drago03.ex
e pfstmo_drago03.o tmo_drago03.o -L/usr/local/lib
g++ -O3 -o pfstmo_drago03.exe pfstmo_drago03.o tmo_drago03.o -L/usr/
local/lib

pfstmo_drago03.o:pfstmo_drago03.cpp:(.text+0x73): undefined reference
to `pfs::D
OMIO::DOMIO()'
pfstmo_drago03.o:pfstmo_drago03.cpp:(.text+0x15a): undefined reference
to `pfs::
DOMIO::~DOMIO()'
pfstmo_drago03.o:pfstmo_drago03.cpp:(.text+0x26d): undefined reference
to `pfs::
DOMIO::readFrame(__sFILE64*)'
pfstmo_drago03.o:pfstmo_drago03.cpp:(.text+0x625): undefined reference
to `pfs::
DOMIO::~DOMIO()'
pfstmo_drago03.o:pfstmo_drago03.cpp:(.text+0x69b): undefined reference
to `pfs::
DOMIO::writeFrame(pfs::Frame*, __sFILE64*)'
pfstmo_drago03.o:pfstmo_drago03.cpp:(.text+0x6b0): undefined reference
to `pfs::
DOMIO::freeFrame(pfs::Frame*)'
collect2: ld returned 1 exit status
make[3]: *** [pfstmo_drago03.exe] Error 1
make[3]: Leaving directory `/cygdrive/c/workspace/HDRSoft/pfstmo-1.3/
src/drago03
'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/cygdrive/c/workspace/HDRSoft/pfstmo-1.3/
src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/workspace/HDRSoft/pfstmo-1.3'
make: *** [all] Error 2
*************************************************************************

Thanks so much,

Jack

Rafal

unread,
Jul 30, 2008, 2:26:26 PM7/30/08
to pfstools
> g++ -O3 -o pfstmo_drago03.exe pfstmo_drago03.o tmo_drago03.o -L/usr/
> local/lib
>
> pfstmo_drago03.o:pfstmo_drago03.cpp:(.text+0x73): undefined reference
> to `pfs::DOMIO::DOMIO()'

This looks like the pfs library is not included in the compiler
options (LIBS variable). ./configure script should set LIBS
automatically based on the pfs.pc file.

Please execute on your computer (from cygwin):
> pkg-config --cflags --libs pfs
and send back the output of this command.

One possible reason is that pfs.pc is not in the PKG_CONFIG_PATH, but
in such case the ./configure script should fail.

Rafal

Jack

unread,
Jul 30, 2008, 2:32:36 PM7/30/08
to pfstools
Hi Rafal,

The output of the command is:

*********************************
pkg-config --cflags --libs pfs
*********************************

Many thanks,

Jack

Rafal

unread,
Jul 30, 2008, 2:42:25 PM7/30/08
to pfstools
If there is no output, it means that pkg-config cannot find pfs.pc.
You can find solution for this in this thread:

http://groups.google.com/group/pfstools/browse_thread/thread/f1ec688d20a1fb77/78adc97b2e1eed28?hl=en

Let us know it this fixes your problem.

Cheers,

Rafal

Jack

unread,
Jul 30, 2008, 5:12:37 PM7/30/08
to pfstools
I tried under the instruction in the provided thread, but it doesn't
really help.

The error message I got is kind of the same as the previous one:

*****************************************************************************
make all-recursive
make[1]: Entering directory `/cygdrive/c/workspace/HDRSoft/pfstmo-1.3'
Making all in src
make[2]: Entering directory `/cygdrive/c/workspace/HDRSoft/pfstmo-1.3/
src'
Making all in drago03
make[3]: Entering directory `/cygdrive/c/workspace/HDRSoft/pfstmo-1.3/
src/drago0
3'
/bin/sh ../../libtool --tag=CXX --mode=link g++ -O3 -o
pfstmo_drago03.ex
e pfstmo_drago03.o tmo_drago03.o -L/usr/local/lib
g++ -O3 -o pfstmo_drago03.exe pfstmo_drago03.o tmo_drago03.o -L/usr/
local/lib

pfstmo_drago03.o:pfstmo_drago03.cpp:(.text+0x73): undefined reference
to `pfs::D
OMIO::DOMIO()'
pfstmo_drago03.o:pfstmo_drago03.cpp:(.text+0x15a): undefined reference
to `pfs::
DOMIO::~DOMIO()'
pfstmo_drago03.o:pfstmo_drago03.cpp:(.text+0x26d): undefined reference
to `pfs::
DOMIO::readFrame(__sFILE64*)'
pfstmo_drago03.o:pfstmo_drago03.cpp:(.text+0x625): undefined reference
to `pfs::
DOMIO::~DOMIO()'
pfstmo_drago03.o:pfstmo_drago03.cpp:(.text+0x69b): undefined reference
to `pfs::
DOMIO::writeFrame(pfs::Frame*, __sFILE64*)'
pfstmo_drago03.o:pfstmo_drago03.cpp:(.text+0x6b0): undefined reference
to `pfs::
DOMIO::freeFrame(pfs::Frame*)'
collect2: ld returned 1 exit status
make[3]: *** [pfstmo_drago03.exe] Error 1
make[3]: Leaving directory `/cygdrive/c/workspace/HDRSoft/pfstmo-1.3/
src/drago03
'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/cygdrive/c/workspace/HDRSoft/pfstmo-1.3/
src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/workspace/HDRSoft/pfstmo-1.3'
make: *** [all] Error 2
*************************************************************************************************

Thanks,

Jack

On Jul 30, 11:42 am, Rafal <mant...@googlemail.com> wrote:
> If there is no output, it means that pkg-config cannot find pfs.pc.
> You can find solution for this in this thread:
>
> http://groups.google.com/group/pfstools/browse_thread/thread/f1ec688d...

Rafal

unread,
Jul 30, 2008, 8:15:47 PM7/30/08
to pfstools
> I tried under the instruction in the provided thread, but it doesn't
> really help.

Did you run ./configure script after setting PKG_CONFIG_PATH? pkg-
config is executed from ./configure.

What is the output of "pkg-config --cflags --libs pfs" after setting
PKG_CONFIG_PATH. Is pfs.pc in one of the directories listed in
PKG_CONFIG_PATH?

Rafal

Jack

unread,
Jul 30, 2008, 9:04:36 PM7/30/08
to pfstools
>Did you run ./configure script after setting PKG_CONFIG_PATH? pkg-
>config is executed from ./configure.

Yes, I run "./configure" after setting PKG_CONFIG_PATH.

>What is the output of "pkg-config --cflags --libs pfs" after setting
>PKG_CONFIG_PATH.

The output of "pkg-config --cflags --libs pfs" after setting
PKG_CONFIG_PATH is
************************************************************
-I/usr/local/include/pfs-1.2 -L/usr/local/lib -lpfs-1.2
************************************************************

>Is pfs.pc in one of the directories listed in PKG_CONFIG_PATH?
Yes. pfs.pc is in the directory:
C:\cygwin\usr\local\lib\pkgconfig

The directories listed in PKG_CONFIG_PATH are:
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/X11R6/lib/pkgconfig:/usr/
local/lib
/pkgconfig:/usr/local/lib/pkgconfig (kind of redundant...)

Many thanks,

Jack



Reply all
Reply to author
Forward
0 new messages