-
Notifications
You must be signed in to change notification settings - Fork 61
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
Does this project support building on Windows with msys2/gcc? #159
Comments
Hi, Tim, thanks for the reply. I haven't tried it. In-fact, I'm not a cmake expert, it maybe hard for me to build this project. It looks like msys2 also supplied the opencl related library. |
Cmake makes things very easy indeed when it all works as intended,
definitely worth a try! Granted there can be more complexity when it
doesn't work but I think it even helps a bit there too in most cases, I
guess have a crack eh? Hopefully you'll be pleasantly surprised :)
…On Fri, 20 Oct 2023, 11:49 am ollydbg, ***@***.***> wrote:
Hi, Tim, thanks for the reply. I haven't tried it. In-fact, I'm not a
cmake expert, it maybe hard for me to build this project. It looks like
msys2 also supplied the opencl related library.
—
Reply to this email directly, view it on GitHub
<#159 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEDSJTCOKNYTNUMWGQM7ADYAHGSXAVCNFSM6AAAAAA6GNZWLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZRHEZDMNRWHE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Here is my steps: I have clone the repo in my folder: In the msys2's mingw64.exe shell, I just type:
In-fact, I have
|
It looks like some library is not found, so I try to install some libraries. Here is the command I used, once I found a missing library, I just install it, luckily, msys2 supplies most of the libraries.
After that, I got the result below:
Do I need to install QT? It looks like I need wxWidgets. So, I need to disable QT? |
I looked at the source file
I'm not sure that some libraries are needed or not. |
When I looked at this page: Package: mingw-w64-x86_64-vtk - MSYS2 Packages It mentioned that QT is only an optional library, but it looks like when the
with this line, many packages will be searched by cmake, if it can't find on in I'm not sure how to "disable" or "skip" the "QT" check in this file. |
I just comment out the line 152 in the file
So, I don't see such error report, since vtk does not try to find every component. But I still got errors:
When I looked at the ready's own cmakefile.txt, I see that it has its own FindOpenCL.cmake. For me, I'm using the latest msys2's gcc(mingw64), and it does have a
So, maybe some of the devs can help to try it, I just stalled here. Thanks. |
To tweak the opencl related issue, I just comment out the line 462 of the Now, let me continue:
Those message means that some components needed by vtk was not found, that's true, because I have commented out the line 152 of the file:
When I enable this line, I just need to install QT or QTQuick, which I think I don't need to build this project, otherwise I got cmake error. Any ideas? |
Hi Ollydbg,
Wow, nice work getting through all of that! You definitely made progress!
I'm sorry to have led you down what now seems to be a rather difficult path
(I've been down a similar way a few times myself, but in a Gentoo Linux
context and there's no portage "ebuild" for Ready yet
(auto-build-and-install script for Gentoo) that would make it generally
very easy to build.. that reminds me I wanted to talk to some Gentoo peeps
about making one!).
I'm afraid I don't have a windows environment to try building it in myself,
otherwise I'd definitely have a go.
I wondered whether Qt might mainly be there because VTK needs it.. yes
Ready seems to use VTK with the wxWidgets bindings so you'd think it
wouldn't be needed but maybe it still needs Qt to be there for some reason?
I do see that some of Ready's help-documentation-generator seems like it
might use qhelpgenerator so it is probably worth getting it installed
anyway I'd say (even tho it's large!).
I'd love to hear what brings you to Ready (what a bloody amazingly cool
project eh?), and particularly what makes you want to build it yourself?
Not trying to discourage you at all - definitely a noble goal for sure but
there are prebuilt windows binaries available IIUC? (indeed if/when you do
get it working it'd be great to add some notes about building Ready with
mysys2/mingw to the BUILD.txt in Ready for future builders : )
Fingers crossed for the next bit!
Have an ace one,
Dan
…On Sat, Oct 21, 2023 at 12:26 PM ollydbg ***@***.***> wrote:
To tweak the opencl related issue, I just comment out the line 462 of the
E:\code\ready\CMakeLists.txt, this means that I don't need to use ready's
own FindOpenCL script.
Now, let me continue:
# cmake ../
-- Looking for CL_VERSION_3_0
-- Looking for CL_VERSION_3_0 - found
-- Found OpenCL: F:/msys2/mingw64/lib/libOpenCL.dll.a (found version "3.0")
-- Found Doxygen: F:/msys2/mingw64/bin/doxygen.exe (found version "1.9.8") found components: doxygen missing components: dot
-- Configuring done (11.2s)
CMake Error at F:/msys2/mingw64/lib/cmake/vtk/VTK-targets.cmake:120 (set_target_properties):
The link interface of target "VTK::CommonCore" contains:
Threads::Threads
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
Call Stack (most recent call first):
F:/msys2/mingw64/lib/cmake/vtk/vtk-config.cmake:138 (include)
CMakeLists.txt:333 (find_package)
CMake Error at F:/msys2/mingw64/lib/cmake/vtk/VTK-targets.cmake:334 (set_target_properties):
The link interface of target "VTK::glew" contains:
GLEW::GLEW
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
Call Stack (most recent call first):
F:/msys2/mingw64/lib/cmake/vtk/vtk-config.cmake:138 (include)
CMakeLists.txt:333 (find_package)
CMake Error at F:/msys2/mingw64/lib/cmake/vtk/VTK-targets.cmake:362 (set_target_properties):
The link interface of target "VTK::freetype" contains:
Freetype::Freetype
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
Call Stack (most recent call first):
F:/msys2/mingw64/lib/cmake/vtk/vtk-config.cmake:138 (include)
CMakeLists.txt:333 (find_package)
CMake Error at F:/msys2/mingw64/lib/cmake/vtk/VTK-targets.cmake:1224 (set_target_properties):
The link interface of target "VTK::nlohmannjson" contains:
nlohmann_json::nlohmann_json
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
Call Stack (most recent call first):
F:/msys2/mingw64/lib/cmake/vtk/vtk-config.cmake:138 (include)
CMakeLists.txt:333 (find_package)
-- Generating done (0.1s)
CMake Generate step failed. Build files cannot be regenerated correctly.
Those message means that some components needed by vtk was not found,
that's true, because I have commented out the line 152 of the file:
F:\msys2\mingw64\lib\cmake\vtk\vtk-config.cmake
# include("${CMAKE_CURRENT_LIST_DIR}/${CMAKE_FIND_PACKAGE_NAME}-vtk-module-find-packages.cmake")
When I enable this line, I just need to install QT or QTQuick, which I
think I don't need to build this project, otherwise I got cmake error.
Any ideas?
—
Reply to this email directly, view it on GitHub
<#159 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEDSJQQGHTOK63FWJHRS53YAMTUNAVCNFSM6AAAAAA6GNZWLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZTGU4TSNZVGM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I think my goal to try the project Ready is very simple. I'm a wxWidgets fan, and I would like to try a 3D library such as VTK to running in the wxWidgets' framework. I'm not a QT fan. So, I come from the wx forum, and I see some one is discussing the combination of wxWidgets and VTK. Also, I'm a msys2 user, and install software and packages are very easy by using the pacman command under msys2. There are a lot of users who using msys2/gcc, so it is great if we can build Ready under msys2/gcc. |
Hi, I comes from this wxWidgets forum discussion: Showing a VTK view as a wxPanel - wxWidgets Discussion Forum
Basically, I see in msys2, the vtk library is supplied: Package: mingw-w64-x86_64-vtk - MSYS2 Packages
Also, the wxWidgets library is also supplied: Base Package: mingw-w64-wxwidgets3.2 - MSYS2 Packages
Thanks.
The text was updated successfully, but these errors were encountered: