Creating a multi purpose node editor, if there is none available
-
What shell are you starting when you want to compile the application ?
-
@joejoo
Hi
Powershell sound wrong to me. Normally visual studio have a developer cmd prompt link that
set all the environment variables etc. (not tried 2017)https://docs.microsoft.com/en-us/dotnet/framework/tools/developer-command-prompt-for-vs
did they make it a powershell thing in 2017 ?
-
@mrjj said in Creating a multi purpose node editor, if there is none available:
@joejoo
Hi
Powershell sound wrong to me. Normally visual studio have a developer cmd prompt link that
set all the environment variables etc. (not tried 2017)https://docs.microsoft.com/en-us/dotnet/framework/tools/developer-command-prompt-for-vs
did they make it a powershell thing in 2017 ?
Well, I don't even get to the point where VS is in the picture; I am running Cmake; to create the VS files that I will open in that environment. Instead I get nothing because cmake error out saying that it can't create a folder.
On windows I know no other shell, beside powershell. I use that also to build and run VS project if I don't need the IDE launched.
At this point I shall try with OSX; since there it seems to build without problems, and see if there is any difference. -
@mrjj said in Creating a multi purpose node editor, if there is none available:
@joejoo
Its a bit odd.
Just downloaded , unpacked and build it with vs2015
with
cmake .. -DCMAKE_PREFIX_PATH="C:\Qt\5.7\msvc2015\lib\cmake\Qt5"
No issues what so ever.
I see, you are using a different command prompt, I never ever heard of that; but it is installed with VS somehow.
I did build with the same string you used (I have a different QT version though, but it is building!
Now I did run the solution and I get a build error because I am building in X64 instead of x86, trying to change the project configuration. In the worst case I have to re-install QT since I have only X64 folder installed; I didn't think that I may need the x86, but if this project require it, then I have to install and build using that version.
-
Finally I was successful in building the solution!
The trick was that I needed the VS2017 QT install that support x86, once used that for DCMAKE_PREFIX_PATH it did build the solution and VS2017 was happy to build all the various examples and items in the solution.
Now the problem is that each exe is complaing because
QT5Widgets.dll
cannot be found. I thought that cmake and VS would be able to find all the required DLL; do I need to import something before build the solution, or do I have to set some global variables?Sorry for the hassle; but the QT environment, when you work outside QT designer is quite daunting for a beginner.
-
@joejoo said in Creating a multi purpose node editor, if there is none available:
exe is complaing because QT5Widgets.dll
Hi
That is normal.
You need to make a deployment folder for it with the needed dlls.http://www.tripleboot.org/?p=138
note there is the windeploy tool to help
-
cmake file is easy to read
https://github.com/paceholder/nodeeditor/blob/master/CMakeLists.txttake all source from https://github.com/paceholder/nodeeditor
remove example folder move in other dir …
target_link_libraries(nodes
Qt5::Core
Qt5::Widgets
Qt5::Gui
Qt5::OpenGL)at top dir one console
qmake -project after you have a pro filefill pro file Qt5::Core Qt5::Widgets Qt5::Gui Qt5::OpenGL as module frameworks
template static libstake example set pro file to static lib and dir…
and you build one sample… -
So the last post was done in august, it's now November, this issue is still not fixed! Who is to blame here? Is the CMakeLists provided in the repo crap?
I just installed Qt 5.9.2 and VS2017, and with this library I am running into exactly the same problem as the OP. I have tried all the solutions here, but none of them are working, it still complains about
CMake Error at D:/Qt/5.9.2/msvc2017_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:63 (file):
attempting to create a directory, and I cannot get this project to build.
I would like to add this project as a sub project to our main Qt project, but as it seems, the developer will not put pro files on the github repository and I am not going to make all of them manually.
-
I have the similar
klaus@linux-8rwt:~/Workbench/QT5/3rdparty/nodeeditor-master> cmake CMakeLists.txt
CMake Error at /usr/lib64/cmake/Qt5Core/Qt5CoreMacros.cmake:63 (file):
file attempted to create a directory:
/home/klaus/Workbench/QT5/3rdparty/nodeeditor-master/resources into a
source directory.
Call Stack (most recent call first):
/usr/lib64/cmake/Qt5Core/Qt5CoreMacros.cmake:214 (qt5_make_output_file)
/usr/lib64/cmake/Qt5Core/Qt5CoreMacros.cmake:285 (_QT5_PARSE_QRC_FILE)
CMakeLists.txt:49 (qt5_add_resources) -
I have the similar problem under linux
klaus@linux-8rwt:~/Workbench/QT5/3rdparty/nodeeditor-master> cmake CMakeLists.txt
CMake Error at /usr/lib64/cmake/Qt5Core/Qt5CoreMacros.cmake:63 (file):
file attempted to create a directory:
/home/klaus/Workbench/QT5/3rdparty/nodeeditor-master/resources into a
source directory.
Call Stack (most recent call first):
/usr/lib64/cmake/Qt5Core/Qt5CoreMacros.cmake:214 (qt5_make_output_file)
/usr/lib64/cmake/Qt5Core/Qt5CoreMacros.cmake:285 (_QT5_PARSE_QRC_FILE)
CMakeLists.txt:49 (qt5_add_resources)Has some one an idea that helps?
-
Have you been able to resolve the issue? I have the exact same (with different paths) on mac os with Q1 5.9.1.
server:build sr$ cmake .. -DCMAKE_PREFIX_PATH="/Users/sr/Qt/5.9.1"
CMake Error at /Users/sr/Software/Qt/5.9.1/clang_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:63 (file):
file attempted to create a directory:
/Users/sr/c++/nodeeditor-master/resources into a source directory.
Call Stack (most recent call first):
/Users/sr/Software/Qt/5.9.1/clang_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:214 (qt5_make_output_file)
/Users/sr/Software/Qt/5.9.1/clang_64/lib/cmake/Qt5Core/Qt5CoreMacros.cmake:285 (_QT5_PARSE_QRC_FILE)
CMakeLists.txt:53 (qt5_add_resources) -
In case you want to go with your own implementation, I've spent several months preparing 50 programming tutorials with PyQt5 on writing your own Node Editor. I wanted them to be free for all, so they are posted on youtube. I hope you will like it. All can be found here: https://www.blenderfreak.com/tutorials/node-editor-tutorial-series/