Ultimaker / Uranium

A Python framework for building Desktop applications.
GNU Lesser General Public License v3.0
326 stars 185 forks source link

UraniumTranslationTools #880

Closed altinloshi closed 1 year ago

altinloshi commented 1 year ago

cmake_minimum_required() should be called prior to this top-level project() call. Please see the cmake-commands(7) manual for usage documentation of both commands. This warning is for project developers. Use -Wno-dev to suppress it.

-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.22621. CMake Error at CMakeLists.txt:25 (include): include could not find requested file:

UraniumTranslationTools

CMake Error at CMakeLists.txt:30 (CREATE_TRANSLATION_TARGETS): Unknown CMake command "CREATE_TRANSLATION_TARGETS".

-- Configuring incomplete, errors occurred!

I am getting this error everytime i try to run cmake .. in the terminal, can anyone help me fic it?

yhuangece7 commented 1 year ago

Hi altinloshi,

I have the same issue and have a method to move ahead, however, this may not be the right choice. When I checked the historical version, I found a folder called "cmake" (which contains cmake/UraniumTranslationTools.cmake) is removed when the branch was updated from 5.3 to 5.4. I tried to create a folder called cmake and then copy and past the UraniumTranslationTools.cmake file from version 5.3 to the latest build, so I can use cmake ..

However, once I did cmake ..and tried "cmake --build . --config Release" in Uranium/build, I never got the exe file generated. I am not sure if it is related to my operation above (create a cmake folder and then copy and paste the UraniumTranslationTools.cmake file). If you can generate the exe file successfully, can you let me know and let me ask you more questions?

In case anyone else who has gone through the same issues and knows what can we do using the latest branch to build the exe, please advise. Thank you!

jellespijker commented 1 year ago

cmake is no longer used in Uranium and Cura repo, the pot, po and mo files are automatically generated and/or building during the conan install and build steps.

with the help of this build conan recipe https://github.com/Ultimaker/conan-ultimaker-index/blob/main/recipes/translationextractor/conanfile.py the pot an po files are extracted and generated. While the build method in the conanfile.py in this repo builds the mo files.

altinloshi commented 1 year ago

On Thu 10. Aug 2023 at 21:42, Jelle Spijker @.***> wrote:

cmake is no longer used in Uranium and Cura repo, the pot, po and mo files are automatically generated and/or building during the conan install and build steps

— Reply to this email directly, view it on GitHub https://github.com/Ultimaker/Uranium/issues/880#issuecomment-1673809134, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAQDCHDIFQUD4OYVFFFUZMLXUU2TTANCNFSM6AAAAAAZEXO24U . You are receiving this because you authored the thread.Message ID: @.***>

I will try tomorrow

altinloshi commented 1 year ago

i passed the part with cmake as you suggested and went to qt creator part but the configuration just stops i am waiting for the past hour nothing changed.

On Thu, Aug 10, 2023 at 9:44 PM Altin Loshi @.***> wrote:

On Thu 10. Aug 2023 at 21:42, Jelle Spijker @.***> wrote:

cmake is no longer used in Uranium and Cura repo, the pot, po and mo files are automatically generated and/or building during the conan install and build steps

— Reply to this email directly, view it on GitHub https://github.com/Ultimaker/Uranium/issues/880#issuecomment-1673809134, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAQDCHDIFQUD4OYVFFFUZMLXUU2TTANCNFSM6AAAAAAZEXO24U . You are receiving this because you authored the thread.Message ID: @.***>

I will try tomorrow

jellespijker commented 1 year ago

can I ask what you want to do exactly? do you want to work on Cura as a whole or only on Uranium? Or do you want to work on CuraEngine.

Cura and Uranium or Python based, it doesn’t make sense to use Qt Creator for this, and CuraEngine is C++, which potentially could be developed in Qt Creator.

I think it might be best for you to read our wiki on Cura repository for setting up a development environment.

https://github.com/Ultimaker/Cura/wiki/Running-Cura-from-Source

or are you trying to compile a version older than 5.0?

altinloshi commented 1 year ago

On Wed 16. Aug 2023 at 20:02, Jelle Spijker @.***> wrote:

can I ask what you want to do exactly? do you want to work on Cura as a whole or only on Uranium? Or do you want to work on CuraEngine.

Cura and Uranium or Python based, it doesn’t make sense to use Qt Creator for this, and CuraEngine is C++, which potentially could be developed in Qt Creator.

I think it might be best for you to read our wiki on Cura repository for setting up a development environment.

https://github.com/Ultimaker/Cura/wiki/Running-Cura-from-Source

— Reply to this email directly, view it on GitHub https://github.com/Ultimaker/Uranium/issues/880#issuecomment-1681056470, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAQDCHATGMWLNGWTFTQCU7TXVUDL7ANCNFSM6AAAAAAZEXO24U . You are receiving this because you authored the thread.Message ID: @.***>

On cura as a whole to change some stuff and make it suitable for our printer.

jellespijker commented 1 year ago

then you should not be concerned with this repo and follow the build instructions in the Cura repository which I shared earlier.

I will close this issue here, since the translationtools are no longer being used by us. if you run into problems please open up a new ticket in the Cura repository.