I'm trying to build the "hugin" package (https://launchpad.net/hugin) with 
emscripten.
The cmake command runs fine in native Linux, but the equivalent emscripten 
command returns errors.

With g++ the following command finishes successfully (and following that I 
can build the executables with "make all")
cmake ../




With emscripten, the following command:
cmake --trace-expand \
 -DCMAKE_TOOLCHAIN_FILE=/home/avnerm/avner/emscripten/emsdk-portable/
emscripten/1.37.28/cmake/Modules/Platform/Emscripten.cmake \
 ../ \
 2>&1 | tee /tmp/tmp4.txt



gives an error:
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.
cmake:148 (message):
  Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES
  wxWidgets_INCLUDE_DIRS)



I actually need to build a portion of the hugin package that does not 
rquire wxwidgets, but I did not find a way to do that.
I tried substituting em++ for g++ in the build command:

/usr/bin/g++ \
 -DGLEW_STATIC -DHUGIN_HSI -I/home/avnerm/Downloads/hugin-2017.0.0/mybuild/src 
\
 -I/home/avnerm/Downloads/hugin-2017.0.0/src/hugin_base \
 -I/home/avnerm/Downloads/hugin-2017.0.0/src/celeste \
 -I/home/avnerm/Downloads/hugin-2017.0.0/mybuild/src/celeste \
 -I/home/avnerm/Downloads/hugin-2017.0.0/src \
 -I/home/avnerm/anaconda3/include \
 -I/usr/include/OpenEXR \
 -I/usr/local/include \
 -I/home/avnerm/anaconda3/include/python3.6m \
 -O2 -g -DNDEBUG   -fopenmp -pthread -std=gnu++11 \
 -c /home/avnerm/Downloads/hugin-2017.0.0/src/tools/pano_trafo.cpp \
 -o CMakeFiles/pano_trafo.dir/pano_trafo.cpp.o

which gives an error:
fatal error: 'lcms2.h' file not found
(the file is located in /usr/include/ and I cannot add the it to the 
include path according to this 
<https://github.com/kripken/emscripten/issues/5435>)


What can I do to fix the build error?

Thanks,
Avner


-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to emscripten-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to