On Sun, Jan 13, 2019 at 2:21 PM Larry Gritz <[email protected]> wrote:

> I'm concerned that the pybind11 it's getting from /usr/include is too old
> (or too new?).
>
> Can you try an experiment?
>
> Edit src/cmake/externalpackages.cmake, and change BUILD_PYBIND11_FORCE
> option to ON? Then do a totally fresh build, and this option will force it
> to download its own pybind11 source and select the version it wants, rather
> than pick up whatever you have in /usr/include. Sorry, it seems I haven't
> exposed that in the Makefile wrapper, that's why you need to edit.
>

I think that did it! My make ended with:

Install the project...
/usr/bin/cmake -P cmake_install.cmake
-- Install configuration: "Release"
make[1]: Leaving directory
'/mnt/d/Users/svhwan/developer_builds/oiio_2.0.4/oiio/build/linux64'

Now, (sorry, maybe a stupid question but) where did it actually install?
I have VERBOSE=1, but I didn't catch it.

Also note that if you don't need the python bindings at all, you could just
> `make USE_PYTHON=0` to skip that part. But I think even if that's worth the
> case, we should figure out what's going wrong here.
>

I was hoping to have the python bindings - as much of the full package as
possible.
I'll have to dig through to try to figure out which image libraries I still
need to download.

And if downloading its own pybind11 *does* fix things, then I'd be curious
> to hear if you can look at the pybind11 in your /usr/include and see if you
> can figure out what version it is. I think I currently don't enforce any
> minimum version, but perhaps I should.
>

I believe it's 2.0.1, what I get using apt-get.

I have the following installed according to apt:
svhwan@DESKTOP-QM6M9UR:/mnt/d/Users/svhwan/developer/ubuntu_setup$ apt list
--installed | grep pybind

WARNING: apt does not have a stable CLI interface. Use with caution in
scripts.

pybind11-dev/bionic,now 2.0.1-4 all [installed]
pybind11-doc/bionic,now 2.0.1-4 all [installed]
python-pybind11/bionic,now 2.0.1-4 all [installed]
python3-pybind11/bionic,now 2.0.1-4 all [installed]

comfirmed by
svhwan@DESKTOP-QM6M9UR:/mnt/d/Users/svhwan/developer/ubuntu_setup$ grep
PYBIND11_VERSION /usr/include/pybind11/common.h
#define PYBIND11_VERSION_MAJOR 2
#define PYBIND11_VERSION_MINOR 0
#define PYBIND11_VERSION_PATCH 1

-- lg
>

Thanks for all the help, Larry!
-Steve


>
> On Jan 13, 2019, at 1:30 PM, Steve Hwan <[email protected]> wrote:
>
> It looks like my attachment got scrubbed, so cut-and-paste it is...
>
> platform=linux64, hw=x86_64
> OPENIMAGEIO_SITE = DESKTOP-QM6M9UR
> dist_dir = dist/linux64
> INSTALL_PREFIX =
> /mnt/d/Users/svhwan/developer_builds/oiio_2.0.4/oiio/dist/linux64
> Re-run cmake no build system arguments
> -- The CXX compiler identification is GNU 7.3.0
> -- The C compiler identification is GNU 7.3.0
> -- Check for working CXX compiler: /usr/bin/c++
> -- Check for working CXX compiler: /usr/bin/c++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> -- Check for working C compiler: /usr/bin/cc
> -- Check for working C compiler: /usr/bin/cc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Detecting C compile features
> -- Detecting C compile features - done
> -- CMake version is 3.10.2
> -- Project source dir =
> /mnt/d/Users/svhwan/developer_builds/oiio_2.0.4/oiio
> -- Project build dir   =
> /mnt/d/Users/svhwan/developer_builds/oiio_2.0.4/oiio/build/linux64
> -- Project install dir =
> /mnt/d/Users/svhwan/developer_builds/oiio_2.0.4/oiio/dist/linux64
> -- CMAKE_SYSTEM_NAME = Linux
> -- CMAKE_SYSTEM_VERSION = 4.4.0-43-Microsoft
> -- SYSTEM_PROCESSOR = x86_64
> -- Unix! Linux
> -- platform = linux64
> -- CMAKE_CXX_COMPILER is /usr/bin/c++
> -- CMAKE_CXX_COMPILER_ID is GNU
> -- Using gcc 7 as the compiler
> -- Building for C++11
> -- Performing Test USE_STD_REGEX
> -- Performing Test USE_STD_REGEX - Success
> -- clang-format not found.
> -- Setting Namespace to: OpenImageIO_v2_0
> -- Found TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (found suitable
> version "4.0.9", minimum required is "3.9")
> -- Found ZLIB: /usr/local/lib/libz.so (found version "1.2.11")
> -- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.6.34")
> -- Looking for pthread.h
> -- Looking for pthread.h - found
> -- Looking for pthread_create
> -- Looking for pthread_create - not found
> -- Looking for pthread_create in pthreads
> -- Looking for pthread_create in pthreads - not found
> -- Looking for pthread_create in pthread
> -- Looking for pthread_create in pthread - found
> -- Found Threads: TRUE
> -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
> -- Found OpenEXR: /usr/include (found suitable version "2.2.0", minimum
> required is "2.0")
> -- OPENEXR_INCLUDE_DIR = /usr/include
> -- OPENEXR_LIBRARIES =
> /usr/lib/x86_64-linux-gnu/libIlmImf.so;/usr/lib/x86_64-linux-gnu/libImath.so;/usr/lib/x86_64-linux-gnu/libIex.so;/usr/lib/x86_64-linux-gnu/libHalf.so;/usr/lib/x86_64-linux
> -gnu/libIlmThread.so;-lpthread;/usr/local/lib/libz.so
> -- BOOST_ROOT
> -- Boost version: 1.65.1
> -- Found the following Boost libraries:
> --   filesystem
> --   system
> --   thread
> --   chrono
> --   date_time
> --   atomic
> -- BOOST_ROOT
> -- Boost found 1
> -- Boost version      106501
> -- Boost include dirs /usr/include
> -- Boost library dirs /usr/lib/x86_64-linux-gnu
> -- Boost libraries
> /usr/lib/x86_64-linux-gnu/libboost_filesystem.so;/usr/lib/x86_64-linux-gnu/libboost_system.so;/usr/lib/x86_64-linux-gnu/libboost_thread.so;/usr/lib/x86_64-linux-gnu/libboos
>
> t_chrono.so;/usr/lib/x86_64-linux-gnu/libboost_date_time.so;/usr/lib/x86_64-linux-gnu/libboost_atomic.so;/usr/lib/x86_64-linux-gnu/libpthread.so;rt
> -- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so
> -- OPENGL_FOUND=TRUE USE_OPENGL=ON
> -- OCIO not found. Specify OCIO_PATH to locate it
> -- Skipping OpenColorIO support
> -- No Qt5 -- skipping components that need Qt5.
> -- Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
> -- FFMPEG not found
> -- HDF5_FOUND=
> -- HDF5_LIBRARIES=HDF5_LIBRARIES-NOTFOUND
> -- Field3d will not be used
> -- Could NOT find TBB (missing: TBB_INCLUDE_DIRS TBB_LIBRARIES) (Required
> is at least version "2017")
> -- Intel TBB not found, TBB_ROOT_DIR=''
> -- OpenVDB will not be used, could not find Intel TBB
> -- Could NOT find JPEG (missing: JPEG_INCLUDE_DIR)
> -- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so
> -- Could NOT find OpenJpeg (missing: OPENJPEG_INCLUDE_DIR
> OPENJPEG_OPENJPEG_LIBRARIES)
> -- Looking for LibRaw with
> -- Found LibRaw: /usr/lib/x86_64-linux-gnu/libraw.so (found version
> "0.18.8")
> -- Found LibRaw, include /usr/include
> -- WEBP_HOME=
> -- WebP library not found
> -- Could NOT find OpenCV (missing: OpenCV_LIBS OpenCV_INCLUDE_DIR
> OpenCV_VERSION)
> -- OpenCV library not found
> -- Could NOT find Freetype (missing: FREETYPE_LIBRARY
> FREETYPE_INCLUDE_DIRS)
> -- Freetype library not found
> -- Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR)
> -- Found PTex: /usr/local/include (found version "4.1.4")
> -- DCMTK_INCLUDE_DIR = DCMTK_INCLUDE_DIR-NOTFOUND
> -- DCMTK not found. Specify DCMTK_PATH to locate it
> -- Could NOT find DCMTK (missing: DCMTK_INCLUDE_DIR DCMTK_LIBRARIES)
> (Required is at least version "3.6.1")
> -- CMAKE_INSTALL_RPATH =
> /mnt/d/Users/svhwan/developer_builds/oiio_2.0.4/oiio/dist/linux64/lib
> -- Setting SOVERSION to: 2.0
> -- Downloading local Tessil/robin-map
> -- robin-map include dir:
> /mnt/d/Users/svhwan/developer_builds/oiio_2.0.4/oiio/ext/robin-map
> -- FFmpeg not found: ffmpeg plugin will not be built
> -- WebP plugin will not be built
> -- Create imagio_pvt.h from imageio_pvt.h.in
> -- Setting SOVERSION to: 2.0
> --
>
>    WARNING: Qt or OpenGL not found -- 'iv' will not be built!
>
> -- pybind11 include dir: /usr/include
> -- Found PythonInterp: /usr/bin/python2.7 (found suitable version
> "2.7.15", minimum required is "2.7")
> -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found
> suitable version "2.7.15rc1", minimum required is "2.7")
> -- Python version 2.7.15
> -- Python found TRUE
> -- Python include dirs /usr/include/python2.7
> -- Python libraries    /usr/lib/x86_64-linux-gnu/libpython2.7.so
> -- Python site packages dir lib/python2.7/site-packages
> -- Python to include 'lib' prefix: OFF
> -- Python to include SO version: OFF
> -- Python version major: 2 minor: 7
> -- pybind11 headers /usr/include
> -- Create oiioversion.h from oiioversion.h.in
> -- Found PythonInterp: /usr/bin/python2.7 (found version "2.7.15")
> -- Could NOT find Nuke (missing: NUKE_DDIMAGE_LIBRARY NUKE_INCLUDE_DIRS
> NUKE_LIBRARY_DIRS NUKE_EXECUTABLE) (Required is at least version "7.0")
> -- Could not Find Nuke. Skipping build of Nuke plugins.
> --
>
> Did not find
> /mnt/d/Users/svhwan/developer_builds/oiio_2.0.4/oiio/../oiio-images
> --   -> Will not run tests
> gpsread;oiiotool;oiiotool-attribs;oiiotool-readerror;oiiotool-xform;oiiotool-fixnan;maketx;oiiotool-maketx;misnamed-file;dpx;ico;iff;png;psd;rla;sgi;zfile;texture-inte
>
> rp-bicubic;texture-blurtube;texture-crop;texture-cropover;texture-derivs;texture-fill;texture-filtersize;texture-flipt;texture-gettexels;texture-gray;texture-mip-nomip;texture-mip-trilinear;text
>
> ure-overscan;texture-pointsample;texture-uint8;texture-width0blur;texture-fat;texture-skinny;texture-wrapfill;texture-missing;texture-res;texture-udim;texture-udim2
> --   -> You can find it at
>
> --
>
> Did not find
> /mnt/d/Users/svhwan/developer_builds/oiio_2.0.4/oiio/../openexr-images
> --   -> Will not run tests oiiotool-deep
> --   -> You can find it at
>
> -- TESTS:
> nonwhole-tiles;oiiotool-composite;oiiotool-copy;oiiotool-pattern;oiiotool-subimage;oiiotool-text;diff;dither;dup-channels;jpeg-corrupt;null;psd-colormodes;rational
> -- TESTS: jpeg-corrupt-header
> --
>
> Did not find
> /mnt/d/Users/svhwan/developer_builds/oiio_2.0.4/oiio/../oiio-images
> --   -> Will not run tests
> python-typedesc;python-imagespec;python-roi;python-deep;python-imageinput;python-imageoutput;python-imagebuf;python-imagebufalgo
> --   -> You can find it at
>
> -- TESTS:
> texture-half;texture-uint16;texture-interp-bilinear;texture-interp-closest;texture-mip-onelevel;texture-icwrite
> --
>
> Did not find
> /mnt/d/Users/svhwan/developer_builds/oiio_2.0.4/oiio/../bmpsuite
> --   -> Will not run tests bmp
> --   -> You can find it at
> http://entropymine.com/jason/bmpsuite/bmpsuite.zip
>
> --
>
> Did not find
> /mnt/d/Users/svhwan/developer_builds/oiio_2.0.4/oiio/../libtiffpic
> --   -> Will not run tests tiff-suite;tiff-depths;tiff-misc
> --   -> You can find it at
> http://www.simplesystems.org/libtiff/images.html
>
> --
>
> Did not find
> /mnt/d/Users/svhwan/developer_builds/oiio_2.0.4/oiio/../openexr-images
> --   -> Will not run tests
> openexr-suite;openexr-multires;openexr-chroma;openexr-v2;perchannel
> --   -> You can find it at http://www.openexr.com/downloads.html
>
> --
>
> Did not find
> /mnt/d/Users/svhwan/developer_builds/oiio_2.0.4/oiio/../oiio-images
> --   -> Will not run tests gif
> --   -> You can find it at Recent checkout of oiio-images
>
> --
>
> Did not find
> /mnt/d/Users/svhwan/developer_builds/oiio_2.0.4/oiio/../j2kp4files_v1_5
> --   -> Will not run tests jpeg2000
> --   -> You can find it at
> http://www.itu.int/net/ITU-T/sigdb/speimage/ImageForm-s.aspx?val=10100803
>
> --
>
> Did not find
> /mnt/d/Users/svhwan/developer_builds/oiio_2.0.4/oiio/../oiio-images/pnm
> --   -> Will not run tests pnm
> --   -> You can find it at Recent checkout of oiio-images
>
> --
>
> Did not find
> /mnt/d/Users/svhwan/developer_builds/oiio_2.0.4/oiio/../oiio-images/raw
> --   -> Will not run tests raw
> --   -> You can find it at Recent checkout of oiio-images
>
> --
>
> Did not find
> /mnt/d/Users/svhwan/developer_builds/oiio_2.0.4/oiio/../TGAUTILS
> --   -> Will not run tests targa-tgautils
> --   -> You can find it at http://tgautils.inequation.org/
>
> --
>
> Did not find
> /mnt/d/Users/svhwan/developer_builds/oiio_2.0.4/oiio/../fits-images
> --   -> Will not run tests fits
> --   -> You can find it at http://www.cv.nrao.edu/fits/data/tests/
>
> --
>
> Did not find
> /mnt/d/Users/svhwan/developer_builds/oiio_2.0.4/oiio/../oiio-images/webp
> --   -> Will not run tests webp
> --   -> You can find it at Recent checkout of oiio-images
>
> -- TESTS: ptex
> -- TESTS: texture-field3d;field3d
> -- TESTS: openvdb
> -- Configuring done
> -- Generating done
> -- Build files have been written to:
> /mnt/d/Users/svhwan/developer_builds/oiio_2.0.4/oiio/build/linux64
>
> On Sun, Jan 13, 2019 at 1:27 PM Steve Hwan <[email protected]>
> wrote:
>
>> I was doing a straight "make VERBOSE=1".
>> I did the nuke, and I'll attach my setup.log.
>> BTW, despite my saying in my original post, that was from 2.0.4, I can
>> tell that was from 2.1.0 (cut and pasted from wrong window).
>> But I'm more confident the attached setup.log is from 2.0.4.
>>
>>
>> On Sun, Jan 13, 2019 at 1:16 PM Larry Gritz <[email protected]> wrote:
>>
>>> Are you building from the 'makefile' wrapper, or straight cmake?
>>>
>>> If the former, how about this:
>>>
>>> make nuke
>>> make VERBOSE=1 cmakesetup > setup.log
>>>
>>> and post the results. That will give a lot of info about different
>>> software versions.
>>>
>>>
>>> On Jan 13, 2019, at 7:46 AM, Steve Hwan <[email protected]>
>>> wrote:
>>>
>>> Hello, I just joined this list. I'm not sure what the appropriate level
>>> of "can't build" is, but I did try poking around google a little first and
>>> didn't see anything.
>>>
>>> I'm having trouble building both 2.0.4(release) and 2.1.0(master).
>>> Originally, I actually grabbed 2.1.0 by accident, but it's the same problem
>>> in both versions. For the rest of this email, I'll be referring to my 2.0.4
>>> build (just git cloned and attepted building "today"/yesterday)..
>>>
>>> The build is 95% in and I get:
>>>
>>> [ 95%] Building CXX object
>>> src/python/CMakeFiles/PyOpenImageIO.dir/py_imageinput.cpp.o
>>> cd /mnt/d/Users/svhwan/developer_builds/oiio/build/linux64/src/python &&
>>> /usr/bin/c++  -DOIIO_PYMODULE_NAME=OpenImageIO -DPyOpenImageIO_EXPORTS
>>> -DUSE_STD_REGEX -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS
>>> -I/mnt/d/Users/svhwan/developer_builds/oiio/build/linux64/include
>>> -I/mnt/d/Users/svhwan/developer_builds/oiio/src/include
>>> -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/usr/include/OpenEXR
>>> -I/usr/include/python2.7  -O3 -DNDEBUG -fPIC   -Wall -Werror
>>> -fno-math-errno -Wno-error=unused-local-typedefs -Wno-unused-local-typedefs
>>> -Wno-unused-result -Wno-error=misleading-indentation -Wno-aligned-new
>>> -Wno-error=noexcept-type -std=c++11 -UUSE_FIELD3D  -Wno-macro-redefined  -o
>>> CMakeFiles/PyOpenImageIO.dir/py_imageinput.cpp.o -c
>>> /mnt/d/Users/svhwan/developer_builds/oiio/src/python/py_imageinput.cpp
>>> In file included from
>>> /mnt/d/Users/svhwan/developer_builds/oiio/src/python/py_imageinput.cpp:31:0:
>>> /mnt/d/Users/svhwan/developer_builds/oiio/src/python/py_oiio.h: In
>>> instantiation of ‘pybind11::array_t<T> PyOpenImageIO::make_numpy_array(T*,
>>> int, size_t, size_t, size_t, size_t) [with T = float; size_t = long
>>> unsigned int]’:
>>> /mnt/d/Users/svhwan/developer_builds/oiio/src/python/py_oiio.h:446:38:
>>> required from here
>>> /mnt/d/Users/svhwan/developer_builds/oiio/src/python/py_oiio.h:413:17:
>>> error: invalid user-defined conversion from
>>> ‘PyOpenImageIO::make_numpy_array(T*, int, size_t, size_t, size_t, size_t)
>>> [with T = float; size_t = long unsigned int]::<lambda(void*)>’ to ‘void
>>> (*)(PyObject*) {aka void (*)(_object*)}’ [-fpermissive]
>>>      py::capsule free_when_done(mem, [](void* f) {
>>>                  ^~~~~~~~~~~~~~
>>> /mnt/d/Users/svhwan/developer_builds/oiio/src/python/py_oiio.h:413:47:
>>> note: candidate is: PyOpenImageIO::make_numpy_array(T*, int, size_t,
>>> size_t, size_t, size_t) [with T = float; size_t = long unsigned
>>> int]::<lambda(void*)>::operator void (*)(void*)() const <near match>
>>>      py::capsule free_when_done(mem, [](void* f) {
>>>                                                ^
>>> /mnt/d/Users/svhwan/developer_builds/oiio/src/python/py_oiio.h:413:47:
>>> note:   no known conversion from ‘void (*)(void*
>>> ’ to ‘void (*)(PyObject*) {aka void (*)(_object*)}’
>>> In file included from /usr/include/pybind11/cast.h:13:0,
>>>                  from /usr/include/pybind11/attr.h:13,
>>>                  from /usr/include/pybind11/pybind11.h:36,
>>>                  from /usr/include/pybind11/numpy.h:12,
>>>                  from
>>> /mnt/d/Users/svhwan/developer_builds/oiio/src/python/py_oiio.h:57,
>>>                  from
>>> /mnt/d/Users/svhwan/developer_builds/oiio/src/python/py_imageinput.cpp:31:
>>>
>>> Actually, I think that's only about half of it.
>>> Should I post the whole thing? I have one log file that is the last 166
>>> lines of that build (starting at the same place, but going to the very end)
>>> and I have another one that is 1029 lines long, but only has stdout, not
>>> stderr(oops!).
>>>
>>> I'm not sure what all info is useful. Here's a bits of info about my
>>> build environment::
>>>
>>> svhwan@DESKTOP-QM6M9UR:/mnt/d/Users/svhwan/developer_builds/oiio$ cmake
>>> --version
>>> *cmake version 3.10.2*
>>>
>>> CMake suite maintained and supported by Kitware (kitware.com/cmake).
>>> svhwan@DESKTOP-QM6M9UR:/mnt/d/Users/svhwan/developer_builds/oiio$
>>> /usr/bin/c++ --version
>>> *c++ (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0*
>>> Copyright (C) 2017 Free Software Foundation, Inc.
>>> This is free software; see the source for copying conditions.  There is
>>> NO
>>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
>>> PURPOSE.
>>>
>>> svhwan@DESKTOP-QM6M9UR:/mnt/d/Users/svhwan/developer_builds/oiio$
>>> lsb_release -a
>>> No LSB modules are available.
>>> Distributor ID: Ubuntu
>>> *Description:    Ubuntu 18.04.1 LTS*
>>> Release:        18.04
>>> Codename:       bionic
>>>
>>> And I should probably fess up and say: this ubuntu is being run as
>>> Windows Subsystem for Linux (WSL). I'm using an ubuntu shell though.
>>>
>>> Thanks in advance for any suggestions,
>>> -Steve
>>>
>>> PS
>>> On
>>> https://github.com/OpenImageIO/oiio/blob/master/INSTALL.md
>>> there is a link for:
>>>
>>> https://sites.google.com/site/openimageio/checking-out-and-building-openimageio
>>> but when I try to go there, that address looks like it's an OpenImageIO
>>> area, but says "Page Not Found."
>>>
>>> Similarly, on
>>> https://sites.google.com/site/openimageio/home
>>> There is a link for:
>>> Checking out and building OpenImageIO
>>> <https://sites.google.com/site/openimageio/system/errors/NodeNotFound?suri=wuid:gx:6598fc468a1d3f10>
>>> and even the link itself points to
>>>
>>> https://sites.google.com/site/openimageio/system/errors/NodeNotFound?suri=wuid:gx:6598fc468a1d3f10
>>> And sure enough, it takes me to a "Page Not Found" page.
>>>
>>>
>>> _______________________________________________
>>> Oiio-dev mailing list
>>> [email protected]
>>> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
>>>
>>>
>>> --
>>> Larry Gritz
>>> [email protected]
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Oiio-dev mailing list
>>> [email protected]
>>> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
>>>
>> _______________________________________________
> Oiio-dev mailing list
> [email protected]
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
>
>
> --
> Larry Gritz
> [email protected]
>
>
>
>
> _______________________________________________
> Oiio-dev mailing list
> [email protected]
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
>
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to