Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build tutorial request #51

Open
Muph0 opened this issue Apr 26, 2018 · 12 comments
Open

Build tutorial request #51

Muph0 opened this issue Apr 26, 2018 · 12 comments
Assignees

Comments

@Muph0
Copy link

Muph0 commented Apr 26, 2018

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
Copy link
Owner

aljen commented May 8, 2018

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 😃

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

@aljen aljen self-assigned this May 8, 2018
@ramadom908
Copy link

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
Copy link
Owner

aljen commented Sep 23, 2018

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)

@ramadom908
Copy link

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
Copy link
Owner

aljen commented Sep 24, 2018

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
Copy link

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
Copy link
Owner

aljen commented Sep 25, 2018

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
Copy link

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
Copy link

Thank you for your answers Aljen!

@aljen
Copy link
Owner

aljen commented Sep 25, 2018

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
Copy link

ramadom908 commented Sep 28, 2018

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
Copy link
Owner

aljen commented Sep 28, 2018

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

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

No branches or pull requests

3 participants