spaghetti icon indicating copy to clipboard operation
spaghetti copied to clipboard

Build tutorial request

Open Muph0 opened this issue 6 years ago • 12 comments

Hello, I know this is probably an inappropriate place to ask, but I'm struggling to build this project with visual studio cmake.

Could you maybe include a small tutorial how to do it from start to finish, @aljen? That would be great so I could finally tinker with your marvellous creation.

Muph0 avatar Apr 26 '18 07:04 Muph0

Hi, it's the best place to ask, that's what the issues are for. Sorry for long time in response, I was on vacation :smiley:

Sure, I'll try to do this on the weekend

aljen avatar May 08 '18 13:05 aljen

Hello Aljen, are you still able to do a tutorial about using cmake to build the project. I also am having problems with cmake on windows. Are there any other alternatives to cmake?

ramadom908 avatar Sep 23 '18 11:09 ramadom908

Hello, I'm sorry, I'm still a little busy at work, that's why it's been going on for so long.

I'm using Qt Creator on Linux and on Windows as an IDE.

  • Install Visual Studio 2017, CMake & Qt5 (make sure to select MSVC 2017 64-bit in Qt -> Qt 5.11.2 and to select Qt Charts)

  • Configure MSVC as a compiler in Qt Creator

  • And just open CMakeLists.txt in the root directory of the repo (select only Debug & Release)

aljen avatar Sep 23 '18 21:09 aljen

OK, so I build the project but when I run it, I get SpaghettiEditor.exe has stoped working... and in QT editor SpaghettiEditor.exe has exited with code 3.

I did run windeployqt app from QT bin and also searched for some other dlls like msvcp140.dll and added them to the bin folder of my project... but still i get the same result the app simply closes. Am i missing something? I can't eve run in from QT editor....

ramadom908 avatar Sep 24 '18 21:09 ramadom908

My bad :D In build directory like build-spaghetti-Desktop_Qt_5_11_2_MSVC2017_64bit-Debug all you need to do is create Packages directory, that should do it :)

aljen avatar Sep 24 '18 21:09 aljen

And make an installer? Shouldn't i be able to open the spaghettieditor with QTCreator? Should I get this librarys installed on my pc? https://github.com/nlohmann/json , https://github.com/cameron314/concurrentqueue, https://github.com/greg7mdp/sparsepp, http://www.boost.org .

I run the debuger and i got all sorts of errors regarding json.hpp

ramadom908 avatar Sep 25 '18 07:09 ramadom908

Nope, everything needed is already in the tree, except spdlog, which is pulled as a git submodule. On the release page there are a few old releases, packed as .7z, so installer is not an option for now - I simply don't have time to make one.

aljen avatar Sep 25 '18 07:09 aljen

Come on really????? all i had to do was put a simple empty folder called "packages" in the release folder??? That worked, i didn't really understood you the first the since it was a simple thing....(now it's obvious) I was strugling for 2 days with this.... good thing I figured it out

ramadom908 avatar Sep 25 '18 15:09 ramadom908

Thank you for your answers Aljen!

ramadom908 avatar Sep 25 '18 15:09 ramadom908

Yeah, that simple :) In the hindsight I should check if it exists before using it like every other directory, I'll try to add it in the weekend :)

Np, thanks for valuable input and for the interest in this project! :)

aljen avatar Sep 25 '18 17:09 aljen

Hi Aljen, from what I can see there is the ability to pack certain circuits in a package, is this fully implemented and I don't know how to use it? or it's not yet working? If it is how can I make it work ?

Never mind found it :D bottom left under packages (for anyone wondering the same thing). Just have to input the path close editor and open again.

ramadom908 avatar Sep 28 '18 16:09 ramadom908

Hey,

yes it's fully implemented, all you need to do is to set a path in a package properties, save it and after restart it should be available in the Packages section on the left panel :)

There is no live reload at the moment, so you must restart it to see it in Packages section :/

Glad you found it by yourself :)

aljen avatar Sep 28 '18 18:09 aljen