rlancaste / stellarsolver

GNU General Public License v3.0
88 stars 47 forks source link

how to build stellarsolver tester and stellarbatchsolver with QtCreator ? #133

Closed taurushappy closed 5 months ago

taurushappy commented 9 months ago

I am newer to Craft , follow the instruction build on winodows , already build stellarsolver ,but don not known how to build stellarsolver tester and stellarbatchsolver ,and package stellarsolver tester and stellarbatchsolver to .exe file, can you give me how to do this

rlancaste commented 9 months ago

If you are using qt creator to edit and build, there is a checkbox to turn on the options of building those applications in addition to the library. If you are using craft, you can set the options in the recipe. In this repo I have modified craft recipes for building those with those options turned on so you can see how it’s done. If you build from the command line you can turn the options on in the cmake configure step

taurushappy commented 9 months ago

thank you very much, I use craft don not known how to set the options , can tell how to set options to build stellarsolver

taurushappy commented 9 months ago

If you are using qt creator to edit and build, there is a checkbox to turn on the options of building those applications in addition to the library. If you are using craft, you can set the options in the recipe. In this repo I have modified craft recipes for building those with those options turned on so you can see how it’s done. If you build from the command line you can turn the options on in the cmake configure step

thank you very much ,your reply! I try the command line is "craft --compile --options BUILD_TESTER=ON stellarsolver" is right?

rlancaste commented 5 months ago

I am assuming this worked out for you? It sounded right. Please let me know if you need more help.

taurushappy commented 5 months ago

thanks,  I finally  direct use  stellarsolver 's lib   libstellarsolver in qt creator instead of build the stellarsolver source  windows   mscv2019 + qt creator 5.15 INCLUDEPATH += D:\qt_projects\astrocamera\libstellarsolver LIBS += D:\CraftRoot\lib\stellarsolver.lib

------------------ 原始邮件 ------------------ 发件人: "rlancaste/stellarsolver" @.>; 发送时间: 2024年2月25日(星期天) 中午11:33 @.>; @.**@.>; 主题: Re: [rlancaste/stellarsolver] how to build stellarsolver tester and stellarbatchsolver with QtCreator ? (Issue #133)

I am assuming this worked out for you? It sounded right. Please let me know if you need more help.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

rlancaste commented 5 months ago

Nice, smart!