From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: How to link new libraries when building emacs Date: Wed, 03 Apr 2024 13:52:03 +0800 Message-ID: <87le5v2dto.fsf@yahoo.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11665"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Elijah G Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 03 07:53:28 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rrtYt-0002nd-Tn for ged-emacs-devel@m.gmane-mx.org; Wed, 03 Apr 2024 07:53:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rrtYA-0008MK-1x; Wed, 03 Apr 2024 01:52:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rrtY8-0008LY-6c for emacs-devel@gnu.org; Wed, 03 Apr 2024 01:52:40 -0400 Original-Received: from sonic314-22.consmr.mail.ne1.yahoo.com ([66.163.189.148]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rrtY6-0005vq-02 for emacs-devel@gnu.org; Wed, 03 Apr 2024 01:52:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1712123555; bh=osVft2No4oXG5qTBkhllz8WOvTj0LY7ZU5+PncXhprY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=EUsWY7OQfljBWVvoVeOzGaAEnNgBjoNKLO6mEtS9o5KU/Z5ZkHK/amL4DvIAX8mGMZfr5pexW5SdBOE/2v3w49bEHgpNl+cK2CQsYGVepqWl9/XnJ3bMGLEv/lOL4PxlkeAlgz6YrctzaEYZehwk3a87RBy94JoUf+9+HieovkPgzPaxfuLfT0zdiHz+McCulpUk/SXtFFb5gnYCdecAvI3GLQJwMOH+V1WnfclI9SIHsVYUcycQBtoc+/Eql1ngweeausCZ0ArDIgrLx+jMucSauMZXwJ4AQ3aXWEhBdHTRVx1x09wcvc0mK4uHggPPthmm9kIeMIi29QRS/fUz0g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1712123555; bh=3L+Gl6MMSZi4CS5N/93UIs5LIxWC5GGjEL6nISGG9Cx=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=dpcd1sQuvNNIVe/JNL8W1wZC8P2EVKhnil3a046FzJzddOPwrDO15YzPS5nYxNViK7rrv/PsOQvyVc7trHFCsyqLRsXfPmmmwNV7pmjJZxm1osfgaTicnIIpRPOTY1SboPHHXJffM84D8IreFHDarr20nH2f/1W/Oqs+IroWLgFRfSFpQbiz5pITO4v368LGonMXrUwsdDB22AsLpRApZDhSKWtPl0Q8CXzi8hJquH+K+puoDdqx+3Gbgn3CpBZWZkJ4UoiQdfZXqo+6YgpmxilJHoGJ32B3K9z2jpDvFj3B+E2gg8K4CerSq5QS74Wwg7MNo5+pLpaUnE37j1O9gA== X-YMail-OSG: q9xACV4VM1lw0_bkS0f_r3eeo71Sl5YiNVn864Y_RIQBFlOwpDgBOvLynxXnjKb tZFzpNhACcVIWw3Zx911gej5GHuNWj.4BIP2BfCjR895JA1.UhQB7FPUVFbgwWAZHg4PUiBB_S3h ZLgzIQW55qOHxj4Mc_28eeN4.3JeK0KTr.2h7Gap6ijMEbeZlToYdOFjBh5.gyTj_RqkwqHZ5Ylg 2aNgBE0fpZ9S.SOgljHpAW76C.E6cZvd1S4_ZdPdHYlroB4tqoGZqGXIrsKhT_Rz_wzsI3EWNqL. 0iqy7h6dwDrTzYTRiK3iTywxlLFvjue8sQuKrmhxciE6XYoILd5YGYJsFxPSsqemULYs1swbO.81 KB4s04u_xjXB22jHR0gAD.zt16nfQGJEJvOxIAJ_oe0eV2LpWoF8kc3lVaX9fB2XQo6Xf6B.9mtf qqiO8s2_Q0PU3EzX8lMnC1dLtgl9hwO7JVnNI.obNtgoHfvZxX.Sx5H6xdz9g7gihmxWsqPH2jvg jMhGMF3CQg.EtgQQ8MpwrYb9o0aHmWHBncVEed58q4JO6r_znO6tBSttBNQ_xlb_1MLPQK.eoleb FkOxBRMbdavqV6DJNb3rdULqx5zx.JTd8AMB9eChoKUoKbYYe6cMQa5ldpXHBEKCfmvGA0W6WIJG g3eX8qiv9fy9SoZoi7wpdWFWJHc.vOoMmFTjvUTKQREP1RdFnBuo5aw1MXKaGaZgTVtcTxkiBElh PIL15KtV3yXKaOR.996RzgXnENKnYE4RYzzlp8gNSTj7oftDtFHzapEjzEjFaUuVIRk561As9BCH 07dduB3i4zK072k54.ayTxMQ3pZoXnGTeU86Gqj1G6 X-Sonic-MF: X-Sonic-ID: 7c8f7d97-3b57-4adc-ab32-2a3805b4aad4 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ne1.yahoo.com with HTTP; Wed, 3 Apr 2024 05:52:35 +0000 Original-Received: by hermes--production-sg3-6dc75bc8fb-7f5mm (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 433412c4f57b8a79b0a96fbad371ebec; Wed, 03 Apr 2024 05:52:28 +0000 (UTC) In-Reply-To: (Elijah G.'s message of "Tue, 2 Apr 2024 21:11:27 -0600") X-Mailer: WebService/1.1.22205 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.189.148; envelope-from=luangruo@yahoo.com; helo=sonic314-22.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:317474 Archived-At: Elijah G writes: > Hello, i don't know if this is a good place to ask this, i'm building > emacs with an additional library (exactly d2d1.h), however i'm getting > errors that library isn't linking, I have been looking for how to > solve it, but nothing, even i've tried searching in commits about > other libraries imported but I ended up getting lost. So If anyone > knows I would greatly appreciate it. Unless this library exists in Windows 9X, merely linking with the library will not suffice; it must be dynamically loaded, and its functions avoided on systems that predate their introduction. Grepping for "LoadLibrary" should return plenty of examples. Also, reading https://github.com/apitrace/dxsdk/blob/master/Include/d2d1.h d2d1 is also a C++ library, while Emacs headers expect a C compiler and probably cannot be made to compile otherwise without substantial effort and creating a new burden on the rest of us, so it's not possible to make use of its functionality unless we decide to require a C++ compiler for the MS Windows port, and even then not without restricting calls to C++ functions in files isolated from Emacs facilities which in turn export C interfaces to such functionality. I'm not confident that MinGW's C++ ABI is stable enough to support loading C++ libraries at runtime either. > Also I would like to know where the font display source is stored, It's divided among w32font.c, w32uniscribe.c and hbfont.c, AFAIK. > specifically emoji support in Windows NT port. There's no specific support for Emoji in any of those files, I think. Finally, emacs-devel@gnu.org is a far more suitable venue for questions regarding Emacs development.