aljen / spaghetti

Graphical logic editor/simulator
MIT License
105 stars 16 forks source link

Build tutorial request #51

Open Muph0 opened 6 years ago

Muph0 commented 6 years ago

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.

aljen commented 6 years ago

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

ramadom908 commented 6 years ago

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?

aljen commented 6 years ago

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.

ramadom908 commented 6 years ago

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....

aljen commented 6 years ago

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 :)

ramadom908 commented 6 years ago

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

aljen commented 6 years ago

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.

ramadom908 commented 6 years ago

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 commented 6 years ago

Thank you for your answers Aljen!

aljen commented 6 years ago

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! :)

ramadom908 commented 6 years ago

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.

aljen commented 6 years ago

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 :)