alanjfs / sequentity

A single-file, immediate-mode sequencer widget for C++17, Dear ImGui and EnTT
235 stars 22 forks source link

Newbie question... How to generate the VS project...? #15

Closed moebiussurfing closed 1 year ago

moebiussurfing commented 3 years ago

Hey @alanjfs , thanks for sharing this. It looks really cool.

Sorry for this silly question, Just learning to compile the project. But could you write some lines about generating the projects?

What I am doing wrong?

From the sequentity-master/example folder I run cmake -G Ninja, and I am getting this errors:

PS F:\openFrameworks\addons\ofxSurfingImGui\examples\5_Sequentity\MISC\sequentity-master\sequentity-master\Example> cmake -G Ninja

CMake Warning:
  No source or binary directory provided.  Both will be assumed to be the
  same as the current working directory, but note that this warning will
  become a fatal error in future CMake releases.

-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:3 (project):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred!
See also "F:/openFrameworks/addons/ofxSurfingImGui/examples/5_Sequentity/MISC/sequentity-master/sequentity-master/Example/CMakeFiles/CMakeOutput.log".
See also "F:/openFrameworks/addons/ofxSurfingImGui/examples/5_Sequentity/MISC/sequentity-master/sequentity-master/Example/CMakeFiles/CMakeError.log".
PS F:\openFrameworks\addons\ofxSurfingImGui\examples\5_Sequentity\MISC\sequentity-master\sequentity-master\Example>

seq1

seq2

seq3

alanjfs commented 3 years ago

Hi @moebiussurfing, sorry for the late reply.

The example ships with pre-compiled binaries, but they are for Visual Studio 2015. Try that, and it should work.

cd sequentity
mkdir build
cd build
vcvarsall.bat
cmake .. -GNinja
ninja

Alternatively:

cmake .. -G "Visual Studio 14 2015" -T v140

Alternatively alternatively, grab the original projects like Magnum and build them all under the same roof. The example is only an example, Sequentity does not depend on it. If you just want to try it, there's the pre-compiled exe you can download as well.

alanjfs commented 3 years ago

Actually come to think of it, the example doesn't need building, you can open it as-is in Visual Studio 2017/2019 as a CMakeProject. You'll just need to have the VS2015 runtime (called v140) installed, and all should be well.

moebiussurfing commented 3 years ago

Thanks @alanjfs for your reply. I'll check what you say. I am installing that VS2015 stuff and I'll report here.

I already tried the exe binary and I liked it.

What I want to do is a kind of "isolate" the ImGui part to build inside my openFrameworks projects. I usually use ImGui stuff inside oF perfectly. (I "ported" ImSequencer, ImGuizmo, DearWidgets...etc)

But I see that you use entt and never used Magnum, neither. So I need to remove all the window/GL stuff and so on. Not sure how much dependent could be sequentity to all this... Do you think this could be so hard? I will report back about my progress.

moebiussurfing commented 1 year ago

I just made it work in openFrameworks, nightly builds that enables C++17. just in case some one interested: https://github.com/moebiussurfing/ofxSurfingImGuiExtra/tree/master/5_Timeline/5_3_Sequentity3