PFSTools or ILMBase compilation error

67 views
Skip to first unread message

Luis Gonçalves

unread,
Apr 4, 2017, 4:58:25 PM4/4/17
to pfstools
[ 13%] Linking CXX executable pfsinexr
/usr/local/lib/libIlmThread.so: referência indefinida a `pthread_create'
/usr/local/lib/libIlmThread.so: referência indefinida a `sem_wait'
/usr/local/lib/libIlmThread.so: referência indefinida a `sem_init'
/usr/local/lib/libIlmThread.so: referência indefinida a `sem_destroy'
/usr/local/lib/libIlmThread.so: referência indefinida a `sem_getvalue'
/usr/local/lib/libIlmThread.so: referência indefinida a `sem_post'
/usr/local/lib/libIlmThread.so: referência indefinida a `sem_trywait'
/usr/local/lib/libIlmThread.so: referência indefinida a `pthread_join'
collect2: error: ld returned 1 exit status
src/fileformat/CMakeFiles/pfsinexr.dir/build.make:101: recipe for target 'src/fileformat/pfsinexr' failed
make[2]: *** [src/fileformat/pfsinexr] Error 1
CMakeFiles/Makefile2:466: recipe for target 'src/fileformat/CMakeFiles/pfsinexr.dir/all' failed
make[1]: *** [src/fileformat/CMakeFiles/pfsinexr.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2

The text above when "referência indefinida" must read "indefined reference"

Error in pfstools compilation. Seems a error in previous "ilmbase" compilation (that is not shown)  that the pthread is not detected (or it is not installed in OS(Ubuntu 16.04)) by the configure 

Can you help me?

Thanks

Luis Gonçalves

Rafal

unread,
Apr 4, 2017, 5:06:34 PM4/4/17
to pfstools

On Tuesday, 4 April 2017 21:58:25 UTC+1, Luis Gonçalves wrote:
[ 13%] Linking CXX executable pfsinexr
/usr/local/lib/libIlmThread.so: referência indefinida a `pthread_create'
collect2: error: ld returned 1 exit status
src/fileformat/CMakeFiles/pfsinexr.dir/build.make:101: recipe for target 'src/fileformat/pfsinexr' failed


Which version of pfstools was that? 

Which OpenEXR packages are installed (dpkg -l "*openexr*")?

Rafal

 

Luis Gonçalves

unread,
Apr 4, 2017, 7:55:24 PM4/4/17
to pfstools
See attached image, please

Ubuntu 16.04

Thanks

Luis Gonçalves
openexr.png

Rafal

unread,
Apr 5, 2017, 1:13:53 PM4/5/17
to pfstools
You need to install 

libopenexr-dev

Rafal

Luis Gonçalves

unread,
Apr 5, 2017, 1:21:52 PM4/5/17
to pfst...@googlegroups.com

sudo apt install libopenexr-dev
[sudo] password for luisgo:
Reading package lists... Done
Building dependency tree      
Reading state information... Done
libopenexr-dev is already the newest version (2.2.0-10ubuntu2).
libopenexr-dev set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.

It already be done before

Luis Gonçalves

--
You received this message because you are subscribed to a topic in the Google Groups "pfstools" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pfstools/5HeAETXNORg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pfstools+u...@googlegroups.com.
To post to this group, send email to pfst...@googlegroups.com.
Visit this group at https://groups.google.com/group/pfstools.
For more options, visit https://groups.google.com/d/optout.

-- 
-- INESCTEC/UTAD, Portugal
PostDoc Researcher
http://luisgo.dyndns.org

Luis Gonçalves

unread,
Apr 5, 2017, 1:27:58 PM4/5/17
to pfst...@googlegroups.com

See attached files

openexr2.png
ilmbase.png

Rafal

unread,
Apr 11, 2017, 4:16:00 AM4/11/17
to pfstools
Something must be wrong with OpenEXR installation. 

You can run 

make VERBOSE=1

to see the full command line used to link the program. Then, you can compare the libraries used with what is returned by:

>  pkg-config --libs OpenEXR
-lIlmImf -lImath -lHalf -lIex -lIexMath -lIlmThread -lpthread

My guess is that -lpthread is missing. You may need to edit CMakeCache.txt to add the missing library.

Rafal
To unsubscribe from this group and all its topics, send an email to pfstools+unsubscribe@googlegroups.com.

To post to this group, send email to pfst...@googlegroups.com.
Visit this group at https://groups.google.com/group/pfstools.
For more options, visit https://groups.google.com/d/optout.

-- 
-- INESCTEC/UTAD, Portugal
PostDoc Researcher
http://luisgo.dyndns.org
--
You received this message because you are subscribed to a topic in the Google Groups "pfstools" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pfstools/5HeAETXNORg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pfstools+unsubscribe@googlegroups.com.

To post to this group, send email to pfst...@googlegroups.com.
Visit this group at https://groups.google.com/group/pfstools.
For more options, visit https://groups.google.com/d/optout.

Luis Gonçalves

unread,
Apr 11, 2017, 11:36:59 AM4/11/17
to pfst...@googlegroups.com

I had to replace -lpthread by -pthread (text) in "link.txt" files of ...inexr and ...outexr projects

It solved that problem. Now it is a problem in Mex files of Matlab. But I will try to solve myself before post something

Thanks

Luis Gonçalves
To unsubscribe from this group and all its topics, send an email to pfstools+u...@googlegroups.com.

Luis Gonçalves

unread,
Apr 12, 2017, 7:16:30 AM4/12/17
to pfst...@googlegroups.com

[ 99%] Building CXX object src/camera/CMakeFiles/pfsalign.dir/pfsalign.cpp.o
/home/massive/inesctec/pfstools-2.0.6/src/camera/pfsalign.cpp:46:42: fatal error: opencv2/nonfree/features2d.hpp: Ficheiro ou directoria inexistente
compilation terminated.
src/camera/CMakeFiles/pfsalign.dir/build.make:62: recipe for target 'src/camera/CMakeFiles/pfsalign.dir/pfsalign.cpp.o' failed
make[2]: *** [src/camera/CMakeFiles/pfsalign.dir/pfsalign.cpp.o] Error 1
CMakeFiles/Makefile2:2647: recipe for target 'src/camera/CMakeFiles/pfsalign.dir/all' failed
make[1]: *** [src/camera/CMakeFiles/pfsalign.dir/all] Error 2


Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2

Now, it is giving this problem. I did not found opencv_nonfree in any place with synaptic and apt-get and in my computer. I only found a libopencv_nonfreexxx (library) in my Matlab instalation

Despite I found "/usr/include/opencv2/features2d/features2d.hpp"

Can anyone give some clues?

Thanks

Luis Gonçalves

Rafal

unread,
Apr 18, 2017, 3:19:04 AM4/18/17
to pfstools

On Wednesday, 12 April 2017 12:16:30 UTC+1, Luis Gonçalves wrote:

[ 99%] Building CXX object src/camera/CMakeFiles/pfsalign.dir/pfsalign.cpp.o
/home/massive/inesctec/pfstools-2.0.6/src/camera/pfsalign.cpp:46:42: fatal error: opencv2/nonfree/features2d.hpp: Ficheiro ou directoria inexistente
compilation terminated.
src/camera/CMakeFiles/pfsalign.dir/build.make:62: recipe for target 'src/camera/CMakeFiles/pfsalign.dir/pfsalign.cpp.o' failed


Luis Gonçalves

unread,
Apr 20, 2017, 8:29:25 AM4/20/17
to pfst...@googlegroups.com

Thanks

I finished compiling

Reply all
Reply to author
Forward
0 new messages