Where to set the HEADER and LIBRARY paths

for REQUIRES something from here:

For BUILD_REQUIRES something from here:

FLTK was found but it looks for OpenGL?

– Found Fltk
– Using fltk-config script for Fltk 1.3
– Found ONELAB
– Found ONELABMetamodel
– Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
– Found ZLIB: /boot/system/develop/lib/libz.so (found version “1.2.11”)
– Found Zlib
– Found PNG: /boot/system/develop/lib/libpng.so (found version “1.6.37”)
– Found Png
– Found Mpeg
CMake Error at /boot/system/data/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY
OPENGL_INCLUDE_DIR)

Perhaps, still a long a way to go to get OpenGL libs into the ports…And for now gmsh compiles without GUI :frowning:

You have to add the OpenGL libs also to the recipe. Grep other recipes to find hints.

Keyword: libgl

Next time do research instead of assumpting about the existence of libs.

I am not disappointed rather learned a bit.

Nevertheless, libgl is not there yet.

Thats still not true:

But keep in mind, gl is disabled for FLTK for now at least (notice the # ) : haikuports/fltk-1.3~git.recipe at 14c2cab5428145b93232cb69683a67bbe68a9f06 · haikuports/haikuports · GitHub
So maybe you need to enable that first in the FLTK recipe, rebuild and test it, and if it works, then add gl to the gmsh recipe too, and build it again.
But be prepared for bugs and not implemented features.

Configure failed with – Performing Test WCAST - Failed

-- Found Fltk
-- Using fltk-config script for Fltk 1.3
-- Found ONELAB
-- Found ONELABMetamodel
-- Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) 
-- Found ZLIB: /boot/system/develop/lib/libz.so (found version "1.2.11") 
-- Found Zlib
-- Found PNG: /boot/system/develop/lib/libpng.so (found version "1.6.37") 
-- Found Png
-- Found Mpeg
-- Found OpenGL: /boot/system/lib/libGL.so   
CMake Error at CMakeLists.txt:769 (message):
  Could not find GLU: disabling OpenGL support


-- Found ANN
-- Found ALGLIB
-- Found DIntegration
-- Found OptHom
-- Found DomHex
-- Found QuadTri
-- Found Kbipack
-- Found GMP
-- Found MathEx
-- Found Metis
-- Found TetGen/BR
-- Found Voro++
-- Found Blossom
-- Found Netgen
-- Found Bamg
-- HDF5 C compiler wrapper is unable to compile a minimal HDF5 program.
-- Found HDF5: /boot/system/develop/lib/libhdf5.so (found version "1.12.0")  
-- Found Gmm
-- Found Hxt
-- Found Freetype: /boot/system/develop/lib/libfreetype.so (found version "2.10.4") 
-- OCC CAF lib TKXDESTEP not Found
-- OCC CAF lib TKXDEIGES not Found
-- OCC CAF lib TKXCAF not Found
-- OCC CAF lib TKLCAF not Found
-- OCC CAF lib TKVCAF not Found
-- OCC CAF lib TKCAF not Found
-- OCC CAF lib TKV3d not Found
-- OCC CAF lib TKService not Found
-- OCC CAF lib TKCDF not Found
-- Looking for vsnprintf
-- Looking for vsnprintf - found
-- Looking for sys/socket.h
-- Looking for sys/socket.h - found
-- Check size of socklen_t
-- Check size of socklen_t - done
-- Check size of intptr_t
-- Check size of intptr_t - done
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Found Dlopen
-- Performing Test WALL
-- Performing Test WALL - Success
-- Performing Test WCAST
-- Performing Test WCAST - Failed
-- Performing Test WDEPREC
-- Performing Test WDEPREC - Success
-- Performing Test WIND
-- Performing Test WIND - Success
-- Performing Test WATTR
-- Performing Test WATTR - Success
-- Performing Test NOWARN
-- Performing Test NOWARN - Success
-- Performing Test NOOPT
-- Performing Test NOOPT - Success
Skipping test /sources/gmsh-4.8.4-source/demos/api/square.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/baffles.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/boolean.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/chamfer.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/coherence.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/compsolid.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/compsolid2.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/extrude.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/extrude2.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/fillet.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/fillet2.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/fillet3.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/fillet4.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/fillet_chamfer.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/fragment_numbering.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/import.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/import2.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/intersect_line_volume.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/neuron.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/periodic.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/periodic_embedded.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/pipe.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/primitives.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/revolve.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/revolve2.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/shell_sewing.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/simple.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/simple2.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/simple3.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/simple4.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/simple5.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/simple6.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/simple7.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/slicer.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/slicer_surfaces.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/spherical_surf.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/spline.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/step_assembly.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/surface_filling.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/thicksolid.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/thrusections.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/transfinite.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/transform.geo
Skipping test /sources/gmsh-4.8.4-source/demos/boolean/twist.geo
Skipping test /sources/gmsh-4.8.4-source/demos/post_processing/compute_area_volume.geo
Skipping test /sources/gmsh-4.8.4-source/tutorial/t16.geo
Skipping test /sources/gmsh-4.8.4-source/tutorial/t17.geo
Skipping test /sources/gmsh-4.8.4-source/tutorial/t18.geo
Skipping test /sources/gmsh-4.8.4-source/tutorial/t19.geo
Skipping test /sources/gmsh-4.8.4-source/tutorial/t20.geo
Skipping test /sources/gmsh-4.8.4-source/tutorial/t21.geo
Skipping test /sources/gmsh-4.8.4-source/tutorial/c++/t1.cpp
Skipping test /sources/gmsh-4.8.4-source/tutorial/c++/t16.cpp
Skipping test /sources/gmsh-4.8.4-source/tutorial/c++/t17.cpp
Skipping test /sources/gmsh-4.8.4-source/tutorial/c++/t18.cpp
Skipping test /sources/gmsh-4.8.4-source/tutorial/c++/t19.cpp
Skipping test /sources/gmsh-4.8.4-source/tutorial/c++/t20.cpp
Skipping test /sources/gmsh-4.8.4-source/tutorial/c++/t21.cpp
Skipping test /sources/gmsh-4.8.4-source/tutorial/c++/x4.cpp
-- 
-- Gmsh 4.8.4 has been configured for Haiku64-sdk
-- 
--  * Build options: 64Bit ALGLIB ANN Bamg Blossom DIntegration Dlopen DomHex Eigen Fltk GMP Gmm Hxt Kbipack MathEx Mesh Metis Mpeg Netgen ONELAB ONELABMetamodel OptHom Parser Plugins Png Post QuadTri Solver TetGen/BR Voro++ Zlib
--  * Build type: Release
--  * C compiler: /bin/cc
--  * C++ compiler: /bin/c++
--  * Install prefix: /packages/gmsh-4.8.4-1/.self
-- 
-- Configuring incomplete, errors occurred!
See also "/sources/gmsh-4.8.4-source/build/CMakeFiles/CMakeOutput.log".
See also "/sources/gmsh-4.8.4-source/build/CMakeFiles/CMakeError.log".
Warning: Command '['bash', '-c', '. /wrapper-script']' returned non-zero exit status 1.
Error: Build has failed - stopping.

Add libglu to the recipe.

Btw: it seems you dont have too much experience with porting applications or with compiling them.
You shoul consider to not use haikuporter for your experimenting sessions.It is like you trying to learn to fly but keeping the robot-pilot on all the time.

Read some books about the topic, read the haikuporter wiki, and try to use your preferred search engine. Also use grep or the search function at github to get hints. And try to avoid to post unnecessary noise, like complete configure outputs.

1 Like

That’s a bit gatekeeping.

Using haikuporter is a good idea even in this case, as it provides an isolated environment for experimenting. You don’t risk breaking too much of your Haiku install this way.

It’s useful to have logs sometimes. I have fixed the formatting of the message so now it has a scrollbox and you don’t have to scroll down for a few kilometers.

3 Likes

True. I never ported anything and learning by doing generates a lot of noise. :wink:

Any progress made? If you still need some help just let us know :slight_smile:

1 Like

You’ve gotta walk before you can run, keep trying!