thennequin / ImWindow

Window and GUI system based on Dear ImGui from OCornut
MIT License
828 stars 119 forks source link

Cannot build #13

Closed elect86 closed 6 years ago

elect86 commented 6 years ago

Hi,

I'm not experienced with C/C++ environments.. however whenever I tried to execute a build script, I get always the following:


PS C:\Users\elect\Documents\Visual Studio 2017\Projects\ImWindow\scripts> & '.\build 2017 and single file format.bat'

C:\Users\elect\Documents\Visual Studio 2017\Projects\ImWindow\scripts>build --with-sff vs2017
Downloading genie...
Invoke-WebRequest : A positional parameter cannot be found that accepts argument 'Studio'.
At line:1 char:1
+ Invoke-WebRequest -Uri https://github.com/bkaradzic/bx/raw/master/too ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Invoke-WebRequest], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

'genie.exe' is not recognized as an internal or external command,

Any idea?

thennequin commented 6 years ago

I think it's because of spaces in the project path, i reproduced it, but not resolving it yet.

thennequin commented 6 years ago

FIxed in 0616a65bb58ff4b129c495e2d1dff3d376b781a9, say me if it's ok for you.

thennequin commented 6 years ago

And the build script is only for generate the Visual Studio solution. After you need to open it from the folder .project

elect86 commented 6 years ago

Ok, I successfully run build 2017.bat

Opened the solution, changed the sdk, 32 or 64 bits doesn't mind, I always get the following:

1>------ Build started: Project: ImWindow, Configuration: Debug Win32 ------
1>ImwContainer.cpp
1>ImwMenu.cpp
1>ImwPlatformWindow.cpp
1>ImwStatusBar.cpp
1>c:\users\elect\documents\visual studio 2017\projects\imwindow\imwindow\imwconfig.h(50): fatal error C1083: Cannot open include file: 'imgui.h': No such file or directory (compiling source file ..\..\ImWindow\ImwPlatformWindow.cpp)
1>c:\users\elect\documents\visual studio 2017\projects\imwindow\imwindow\imwconfig.h(50): fatal error C1083: Cannot open include file: 'imgui.h': No such file or directory (compiling source file ..\..\ImWindow\ImwContainer.cpp)
1>c:\users\elect\documents\visual studio 2017\projects\imwindow\imwindow\imwconfig.h(50): fatal error C1083: Cannot open include file: 'imgui.h': No such file or directory (compiling source file ..\..\ImWindow\ImwStatusBar.cpp)
1>c:\users\elect\documents\visual studio 2017\projects\imwindow\imwindow\imwconfig.h(50): fatal error C1083: Cannot open include file: 'imgui.h': No such file or directory (compiling source file ..\..\ImWindow\ImwMenu.cpp)
1>ImwToolBar.cpp
1>ImwWindow.cpp
1>ImwWindowManager.cpp
1>JsonValue.cpp
1>c:\users\elect\documents\visual studio 2017\projects\imwindow\imwindow\imwconfig.h(50): fatal error C1083: Cannot open include file: 'imgui.h': No such file or directory (compiling source file ..\..\ImWindow\JsonValue.cpp)
1>c:\users\elect\documents\visual studio 2017\projects\imwindow\imwindow\imwconfig.h(50): fatal error C1083: Cannot open include file: 'imgui.h': No such file or directory (compiling source file ..\..\ImWindow\ImwWindow.cpp)
1>c:\users\elect\documents\visual studio 2017\projects\imwindow\imwindow\imwconfig.h(50): fatal error C1083: Cannot open include file: 'imgui.h': No such file or directory (compiling source file ..\..\ImWindow\ImwToolBar.cpp)
1>c:\users\elect\documents\visual studio 2017\projects\imwindow\imwindow\imwconfig.h(50): fatal error C1083: Cannot open include file: 'imgui.h': No such file or directory (compiling source file ..\..\ImWindow\ImwWindowManager.cpp)
1>Done building project "ImWindow.vcxproj" -- FAILED.
2>------ Build started: Project: ImWindowDX11, Configuration: Debug Win32 ------
2>ImwPlatformWindowDX11.cpp
2>ImwWindowManagerDX11.cpp
2>main.cpp
2>NodeWindow.cpp
2>c:\users\elect\documents\visual studio 2017\projects\imwindow\imwindow\imwconfig.h(50): fatal error C1083: Cannot open include file: 'imgui.h': No such file or directory (compiling source file ..\..\ImWindowDX11\main.cpp)
2>c:\users\elect\documents\visual studio 2017\projects\imwindow\imwindow\imwconfig.h(50): fatal error C1083: Cannot open include file: 'imgui.h': No such file or directory (compiling source file ..\..\ImWindowDX11\ImwWindowManagerDX11.cpp)
2>c:\users\elect\documents\visual studio 2017\projects\imwindow\imwindow\imwconfig.h(50): fatal error C1083: Cannot open include file: 'imgui.h': No such file or directory (compiling source file ..\..\ImWindowDX11\ImwPlatformWindowDX11.cpp)
2>c:\users\elect\documents\visual studio 2017\projects\imwindow\imwindow\imwconfig.h(50): fatal error C1083: Cannot open include file: 'imgui.h': No such file or directory (compiling source file ..\..\ImWindowDX11\NodeWindow.cpp)
2>Win32MessageHelper.cpp
2>Done building project "ImWindowDX11.vcxproj" -- FAILED.
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========
thennequin commented 6 years ago

You probably don't initialize imgui submodule.

elect86 commented 6 years ago

and how am I suppose to do that?

thennequin commented 6 years ago

Search on Google how to initialize submodule of git repository.

elect86 commented 6 years ago

thanks, fixed, I created a pull request for adding a little howto in the readme :)