{"id":2064,"date":"2025-10-07T18:14:40","date_gmt":"2025-10-07T09:14:40","guid":{"rendered":"https:\/\/www.freelifemakers.org\/wordpress\/?p=2064"},"modified":"2025-10-07T19:33:36","modified_gmt":"2025-10-07T10:33:36","slug":"creating-an-exe-file","status":"publish","type":"post","link":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/2025\/10\/07\/creating-an-exe-file\/","title":{"rendered":"\ubc30\ud3ec\uc6a9EXE\ud30c\uc77c \ub9cc\ub4e4\uae30(\ub3d9\uc801\ub77c\uc774\ube0c\ub7ec\ub9ac)\/Creating an EXE file for distribution (dynamic library)"},"content":{"rendered":"\n<p>&#8212; QT\uc758 \ucee4\ubba4\ub2c8\ud2f0\ubc84\uc804 \uc0ac\uc6a9\uc2dc LGPL\ub77c\uc774\uc120\uc2a4\ub85c \uc778\ud574\uc11c \uc218\uc775\ucc3d\ucd9c \ubd80\ubd84\uc774 \uc874\uc7ac\ud558\uba74 \ub3d9\uc801\ub77c\uc774\ube0c\ub7ec\ub9ac\ub85c \ube4c\ub4dc\ub97c \ud574\uc11c<br>\ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uad50\uccb4 \ud560 \uc218 \uc788\uac8c \ud574\uc57c \ud569\ub2c8\ub2e4.  <br>When using the community version of QT, if there is a monetization component due to the LGPL license, you must build it as a dynamic library to allow replacement of the library.<\/p>\n\n\n\n<p>&#8212; \uc544\ub798\ub294 \ub3d9\uc801\ub77c\uc774\ube0c\ub7ec\ub9ac\ub85c \ube4c\ub4dc\ud558\ub294 \ubc29\ubc95\uc785\ub2c8\ub2e4.<br>Below is how to build it as a dynamic library.<\/p>\n\n\n\n<p>&#8212;  \uae30\ubcf8\uc801\uc73c\ub85c \ub3d9\uc801\ub77c\uc774\ube0c\ub7ec\ub9ac \uc14b\ud305\uc774\ub418\uc5b4 \uc788\uae30\ub54c\ubb38\uc5d0 \uc544\ub798 \uacfc\uc815\ub300\ub85c \ube4c\ub4dc\ub9cc \ud558\uc2dc\uba74 \ub429\ub2c8\ub2e4.<br>Since the dynamic library setting is set by default, you can simply build it by following the steps below.<\/p>\n\n\n\n<p><br>1.\ube4c\ub4dc\uc2e4\ud589 \/ Run build<br>&#8212; QT Creator\uc5d0\uc11c \uc88c\uce21\ud558\ub2e8\uc5d0 \uc138\ubaa8\ub098 \ub9dd\uce58\ubaa8\uc591 \ud074\ub9ad\ud558\uba74 \ube4c\ub4dc\ub098 \ud504\ub85c\uadf8\ub7a8 \uc2e4\ud589\uc774 \ub429\ub2c8\ub2e4.<br>In QT Creator, you can build or run a program by clicking the triangle or hammer shape in the lower left corner.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"614\" height=\"404\" src=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-qtcreator-1.png\" alt=\"\" class=\"wp-image-2068\" srcset=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-qtcreator-1.png 614w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-qtcreator-1-300x197.png 300w\" sizes=\"auto, (max-width: 614px) 100vw, 614px\" \/><\/figure>\n\n\n\n<p>2.\ud504\ub85c\uc81d\ud2b8 \ud3f4\ub354\uc758 build \ub514\ub809\ud1a0\ub9ac\ub0b4\uc5d0 \uc0dd\uc131\ub41c  exe\ud30c\uc77c \ubcf5\uc0ac<br>Copy the generated exe file into the build directory of the project folder.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"684\" height=\"451\" src=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-exe-1.png\" alt=\"\" class=\"wp-image-2078\" srcset=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-exe-1.png 684w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-exe-1-300x198.png 300w\" sizes=\"auto, (max-width: 684px) 100vw, 684px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"649\" height=\"364\" src=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-exe-2.png\" alt=\"\" class=\"wp-image-2077\" srcset=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-exe-2.png 649w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-exe-2-300x168.png 300w\" sizes=\"auto, (max-width: 649px) 100vw, 649px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"661\" height=\"571\" src=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-exe-3.png\" alt=\"\" class=\"wp-image-2070\" srcset=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-exe-3.png 661w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-exe-3-300x259.png 300w\" sizes=\"auto, (max-width: 661px) 100vw, 661px\" \/><\/figure>\n\n\n\n<p>3.\ube4c\ub4dc\uc6a9 \ud3f4\ub354 \ub9cc\ub4e4\uc5b4\uc11c EXE\ud30c\uc77c \ubd99\uc5ec\ub123\uae30<br>Create a build folder and paste the EXE file into it.<br>&#8212; \uc5ec\uae30\ub294 untitled2\uac00 \ubc30\ud3ec\ud3f4\ub354\uc784.<br>Here, untitled2 is the distribution folder.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"670\" height=\"359\" src=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-exe-4.png\" alt=\"\" class=\"wp-image-2071\" srcset=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-exe-4.png 670w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-exe-4-300x161.png 300w\" sizes=\"auto, (max-width: 670px) 100vw, 670px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"666\" height=\"385\" src=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-exe-5.png\" alt=\"\" class=\"wp-image-2072\" srcset=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-exe-5.png 666w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-exe-5-300x173.png 300w\" sizes=\"auto, (max-width: 666px) 100vw, 666px\" \/><\/figure>\n\n\n\n<p>4.\ud130\ubbf8\ub110\uc5d0\uc11c dll\ud30c\uc77c \uc0dd\uc131\ud558\uae30<br>Creating a DLL file in the terminal<br>&#8212; \ud658\uacbd\ubcc0\uc218\uc5d0 \uba85\ub839\uc5b4\uac00 \ub4f1\ub85d\ub418\uc9c0 \uc54a\uc544\uc11c \uc544\ub798\uc640 \uac19\uc774 \uc2e4\ud589\ud568.<br>Since the command is not registered in the environment variable, execute it as follows.<br>&#8212; \uc0ac\uc6a9\uc790\ub9c8\ub2e4 \ud658\uacbd\uc774 \uc57d\uac04 \ub2e4\ub97c \uc218 \uc788\uc74c.<br>Each user&#8217;s environment may vary slightly.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PS C:\\Qt\\6.9.3\\mingw_64\\bin&gt; .\/windeployqt.exe \"C:\\Users\\User\\OneDrive\\Desktop\\cpp\\QT\\exports\\untitled2\\untitled.exe\"<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"346\" src=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-exe-6-1024x346.png\" alt=\"\" class=\"wp-image-2073\" srcset=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-exe-6-1024x346.png 1024w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-exe-6-300x101.png 300w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-exe-6-768x259.png 768w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-exe-6.png 1111w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"646\" src=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-exe-7-1024x646.png\" alt=\"\" class=\"wp-image-2074\" srcset=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-exe-7-1024x646.png 1024w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-exe-7-300x189.png 300w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-exe-7-768x485.png 768w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-exe-7.png 1085w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>5.\uc0dd\uc131\ub41c dll\ud30c\uc77c \ud655\uc778<br>Check the generated dll file<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"685\" height=\"718\" src=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-exe-8.png\" alt=\"\" class=\"wp-image-2075\" srcset=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-exe-8.png 685w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-exe-8-286x300.png 286w\" sizes=\"auto, (max-width: 685px) 100vw, 685px\" \/><\/figure>\n\n\n\n<p>5.EXE\ud30c\uc77c \uc2e4\ud589 \/ Run EXE file<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"916\" height=\"734\" src=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-exe-9.png\" alt=\"\" class=\"wp-image-2076\" srcset=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-exe-9.png 916w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-exe-9-300x240.png 300w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2025\/10\/qt-exe-9-768x615.png 768w\" sizes=\"auto, (max-width: 916px) 100vw, 916px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>&#8212; QT\uc758 \ucee4\ubba4\ub2c8\ud2f0\ubc84\uc804 \uc0ac\uc6a9\uc2dc LGPL\ub77c\uc774\uc120\uc2a4\ub85c \uc778\ud574\uc11c \uc218\uc775\ucc3d\ucd9c \ubd80\ubd84\uc774 \uc874\uc7ac\ud558\uba74 \ub3d9\uc801\ub77c\uc774\ube0c\ub7ec\ub9ac\ub85c \ube4c\ub4dc\ub97c \ud574\uc11c\ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uad50\uccb4 \ud560 \uc218 \uc788\uac8c \ud574\uc57c \ud569\ub2c8\ub2e4. When using the community version of QT, if there is a monetization component due to the LGPL license, you must build it as a dynamic library to allow replacement of the library. &#8212; \uc544\ub798\ub294 \ub3d9\uc801\ub77c\uc774\ube0c\ub7ec\ub9ac\ub85c \ube4c\ub4dc\ud558\ub294 \ubc29\ubc95\uc785\ub2c8\ub2e4.Below [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,1],"tags":[],"class_list":["post-2064","post","type-post","status-publish","format-standard","hentry","category-qt","category-uncategorized","missing-thumbnail"],"_links":{"self":[{"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/2064","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=2064"}],"version-history":[{"count":15,"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/2064\/revisions"}],"predecessor-version":[{"id":2099,"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/2064\/revisions\/2099"}],"wp:attachment":[{"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=2064"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=2064"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=2064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}