Skip to content

Basic helloworld exmaple#465

Open
magres wants to merge 3 commits into
coin3d:masterfrom
magres:master
Open

Basic helloworld exmaple#465
magres wants to merge 3 commits into
coin3d:masterfrom
magres:master

Conversation

@magres

@magres magres commented Aug 23, 2021

Copy link
Copy Markdown

Could be useful for newbies.


Building instructions:

cmake -DQt5_DIR=<Qt5 path> -DCoin_DIR=<Coin3d path> -DSoQt_DIR=<SoQt path> <example source path>

@VolkerEnderlein VolkerEnderlein Oct 4, 2021

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to this CMake question on StackOverflow you should use either <package name>_ROOT variables as command line arguments or define the <package name>_DIR variables as environment variables. That's why I mostly recommend using the CMAKE_PREFIX_PATH argument on the command line call to CMake (for instance: cmake -S <sourcedir> -B <builddir> -DCMAKE_PREFIX_PATH="<Qt5 path>;<Coin3d path>;<SoQt path>" -G "<selected CMake generator>") You might omit the <SoQt path>, as in general SoQt will be installed in the Coin3d path.

The CMake build command should explicitly mention the config: cmake --build <builddir> --config Release

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@magres 👆

@VolkerEnderlein

Copy link
Copy Markdown
Member

Thanks for the example. I'll happily merge your PR if you adapt the build instructions.

@luzpaz

luzpaz commented Aug 27, 2022

Copy link
Copy Markdown
Contributor

bumping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants