Re: Using DUB packages with Meson

2023-04-28 Thread Denis Feklushkin via Digitalmars-d-learn
nows exactly which versions of packages suit to build. Is it possible, for example, to get somehow packages list and then download using dub fetch? On dubs end yes, and yes. $ dub build package@version I guess I didn't express myself that way How to get list of packages that can be passed to

Re: Using DUB packages with Meson

2023-04-27 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
get somehow packages list and then download using dub fetch? On dubs end yes, and yes. $ dub build package@version ``` $ dub search knocker registry at https://code.dlang.org/ (fallbacks registry at https://codemirror.dlang.org/, registry at https://dub.byt ecraft.nl/, registry at https://

Re: Using DUB packages with Meson

2023-04-27 Thread Denis Feklushkin via Digitalmars-d-learn
On Wednesday, 12 April 2023 at 10:06:22 UTC, Dmitry Olshansky wrote: And I did fetch & build What are possible ways to automate such download? Meson knows exactly which versions of packages suit to build. Is it possible, for example, to get somehow packages list and then download using

Re: Using DUB packages with Meson

2023-04-12 Thread Dmitry Olshansky via Digitalmars-d-learn
On Wednesday, 12 April 2023 at 11:07:56 UTC, Richard (Rikki) Andrew Cattermole wrote: Did you compile the library with dub using ldc2? Yup, I do not have other compilers installed. -- Dmitry Olshansky

Re: Using DUB packages with Meson

2023-04-12 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
Did you compile the library with dub using ldc2?

Re: Using DUB packages with Meson

2023-04-12 Thread Dmitry Olshansky via Digitalmars-d-learn
On Wednesday, 12 April 2023 at 10:24:48 UTC, Richard (Rikki) Andrew Cattermole wrote: I'm going to guess that you need to use the version specifier in the package name. Because I'm not seeing anything there to handle it specifically.

Re: Using DUB packages with Meson

2023-04-12 Thread Dmitry Olshansky via Digitalmars-d-learn
On Wednesday, 12 April 2023 at 10:24:48 UTC, Richard (Rikki) Andrew Cattermole wrote: I'm going to guess that you need to use the version specifier in the package name. Because I'm not seeing anything there to handle it specifically.

Re: Using DUB packages with Meson

2023-04-12 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
I'm going to guess that you need to use the version specifier in the package name. Because I'm not seeing anything there to handle it specifically. https://github.com/mesonbuild/meson/blob/master/mesonbuild/dependencies/dub.py i.e. ``dub build [[@]] []`` So use ``package:sub@1.0.2``. Also I

Using DUB packages with Meson

2023-04-12 Thread Dmitry Olshansky via Digitalmars-d-learn
I'm trying to use my new DUB package from Photon, which is polyglot project and is built with Meson. Have anyone worked with DUB packages in Meson? I've found this bit of documentation: https://mesonbuild.com/Dependencies.html#dub And I did fetch & build but I do not understand how to

Re: Local module dependancy using dub

2021-10-01 Thread Winfred Raj via Digitalmars-d-learn
On Friday, 1 October 2021 at 20:59:40 UTC, Winfred Raj wrote: Hello all, I created a project using dub init and got it successfully built with main as the entry point. Dxml was a dependency which was used here. Now I have started another gtkd project using dub init and here I would like

Re: Local module dependancy using dub

2021-10-01 Thread Winfred Raj via Digitalmars-d-learn
On Friday, 1 October 2021 at 21:15:54 UTC, Imperatorn wrote: On Friday, 1 October 2021 at 20:59:40 UTC, Winfred Raj wrote: Hello all, I created a project using dub init and got it successfully built with main as the entry point. Dxml was a dependency which was used here. Now I have started

Re: Local module dependancy using dub

2021-10-01 Thread Imperatorn via Digitalmars-d-learn
On Friday, 1 October 2021 at 20:59:40 UTC, Winfred Raj wrote: Hello all, I created a project using dub init and got it successfully built with main as the entry point. Dxml was a dependency which was used here. Now I have started another gtkd project using dub init and here I would like

Local module dependancy using dub

2021-10-01 Thread Winfred Raj via Digitalmars-d-learn
Hello all, I created a project using dub init and got it successfully built with main as the entry point. Dxml was a dependency which was used here. Now I have started another gtkd project using dub init and here I would like to import the first project. How do I go about doing

Re: How Add Local modules mymodule.d using DUB?

2021-08-09 Thread Bastiaan Veelo via Digitalmars-d-learn
On Monday, 9 August 2021 at 16:32:13 UTC, Marcone wrote: My main program need import a local module called mymodule.d. How can I add this module using DUB? Thank you. Let’s assume you just created a dub project in `myproject` with `dub init`. Place `mymodule.d` alongside `app.d

Re: How Add Local modules mymodule.d using DUB?

2021-08-09 Thread Marcone via Digitalmars-d-learn
On Monday, 9 August 2021 at 16:37:10 UTC, Steven Schveighoffer wrote: On 8/9/21 12:32 PM, Marcone wrote: My main program need import a local module called mymodule.d. How can I add this module using DUB? Thank you. You mean how to add a local project (that isn't on code.dlang.org)? `dub

Re: How Add Local modules mymodule.d using DUB?

2021-08-09 Thread Marcone via Digitalmars-d-learn
On Monday, 9 August 2021 at 16:37:10 UTC, Steven Schveighoffer wrote: On 8/9/21 12:32 PM, Marcone wrote: My main program need import a local module called mymodule.d. How can I add this module using DUB? Thank you. You mean how to add a local project (that isn't on code.dlang.org)? `dub

Re: How Add Local modules mymodule.d using DUB?

2021-08-09 Thread Steven Schveighoffer via Digitalmars-d-learn
On 8/9/21 12:32 PM, Marcone wrote: My main program need import a local module called mymodule.d. How can I add this module using DUB? Thank you. You mean how to add a local project (that isn't on code.dlang.org)? `dub add-local .` inside the project directory. I don't think you can add

How Add Local modules mymodule.d using DUB?

2021-08-09 Thread Marcone via Digitalmars-d-learn
My main program need import a local module called mymodule.d. How can I add this module using DUB? Thank you.

Re: How send parameters to DMD when using DUB

2021-04-19 Thread Marcone via Digitalmars-d-learn
/+ dub.sdl: dependency "telega" version="~>0.2.0" lflags "C:\\Users\\Usuario\\Arquivos\\Sublime Text Build 3211\\Data\\Packages\\resources.res" platform="dmd" +/ Solved replaceing dflags to lflags

Re: How send parameters to DMD when using DUB

2021-04-19 Thread Marcone via Digitalmars-d-learn
I'm trying this code but do not work. /+ dub.sdl: dependency "telega" version="~>0.2.0" dflags "C:\\Users\\Usuario\\Arquivos\\Sublime Text Build 3211\\Data\\Packages\\resources.res" platform="dmd" +/

How send parameters to DMD when using DUB

2021-04-19 Thread Marcone via Digitalmars-d-learn
I need add resources. But how can I make it using DUB?

Re: using dub and -checkaction=context

2021-01-18 Thread Steven Schveighoffer via Digitalmars-d-learn
On 1/18/21 7:48 AM, Mathias LANG wrote: On Sunday, 17 January 2021 at 20:42:06 UTC, Steven Schveighoffer wrote: On 1/17/21 2:27 PM, Anonymouse wrote: On Sunday, 17 January 2021 at 15:41:45 UTC, Steven Schveighoffer wrote: I'm trying to run unittests using `dub test`, and I wanted to use

Re: using dub and -checkaction=context

2021-01-18 Thread Mathias LANG via Digitalmars-d-learn
On Sunday, 17 January 2021 at 20:42:06 UTC, Steven Schveighoffer wrote: On 1/17/21 2:27 PM, Anonymouse wrote: On Sunday, 17 January 2021 at 15:41:45 UTC, Steven Schveighoffer wrote: I'm trying to run unittests using `dub test`, and I wanted to use the new -checkaction=context feature to avoid

Re: using dub and -checkaction=context

2021-01-17 Thread Steven Schveighoffer via Digitalmars-d-learn
On 1/17/21 2:27 PM, Anonymouse wrote: On Sunday, 17 January 2021 at 15:41:45 UTC, Steven Schveighoffer wrote: I'm trying to run unittests using `dub test`, and I wanted to use the new -checkaction=context feature to avoid having to instrument my unittests to print out the string comparison

Re: using dub and -checkaction=context

2021-01-17 Thread Anonymouse via Digitalmars-d-learn
On Sunday, 17 January 2021 at 15:41:45 UTC, Steven Schveighoffer wrote: I'm trying to run unittests using `dub test`, and I wanted to use the new -checkaction=context feature to avoid having to instrument my unittests to print out the string comparison failure that's happening. But I tried

using dub and -checkaction=context

2021-01-17 Thread Steven Schveighoffer via Digitalmars-d-learn
I'm trying to run unittests using `dub test`, and I wanted to use the new -checkaction=context feature to avoid having to instrument my unittests to print out the string comparison failure that's happening. But I tried adding this to my dub.sdl file: dflags "-checkaction=context"

Re: How do I statically build a project using DUB?

2020-08-29 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 30 August 2020 at 02:38:52 UTC, Kirill wrote: I am trying to link the GTK library. I have the GTK Runtime installed on Windows 10 pc. Unless things have changed in the last few years, GTK is not intended to be linked statically on Windows. You'll have to figure out how to

Re: How do I statically build a project using DUB?

2020-08-29 Thread Kirill via Digitalmars-d-learn
On Saturday, 29 August 2020 at 12:06:38 UTC, Andre Pany wrote: On Saturday, 29 August 2020 at 11:27:28 UTC, Kirill wrote: I need a stand-alone executable that does not require the user to install any libraries on their computer. Everything should be packed into the executable. I understand

Re: How do I statically build a project using DUB?

2020-08-29 Thread James Blachly via Digitalmars-d-learn
On Saturday, 29 August 2020 at 11:27:28 UTC, Kirill wrote: I need a stand-alone executable that does not require the user to install any libraries on their computer. Everything should be packed into the executable. I understand that I need to statically link all of the libraries I use in my

Re: How do I statically build a project using DUB?

2020-08-29 Thread Ferhat Kurtulmuş via Digitalmars-d-learn
On Saturday, 29 August 2020 at 11:27:28 UTC, Kirill wrote: I need a stand-alone executable that does not require the user to install any libraries on their computer. Everything should be packed into the executable. I understand that I need to statically link all of the libraries I use in my

Re: How do I statically build a project using DUB?

2020-08-29 Thread Andre Pany via Digitalmars-d-learn
On Saturday, 29 August 2020 at 11:27:28 UTC, Kirill wrote: I need a stand-alone executable that does not require the user to install any libraries on their computer. Everything should be packed into the executable. I understand that I need to statically link all of the libraries I use in my

How do I statically build a project using DUB?

2020-08-29 Thread Kirill via Digitalmars-d-learn
I need a stand-alone executable that does not require the user to install any libraries on their computer. Everything should be packed into the executable. I understand that I need to statically link all of the libraries I use in my project, but how do I do this? What do I need to add to

Re: How to organize a project with local scripts in subdirectories using dub?

2019-12-11 Thread Pavel Shkadzko via Digitalmars-d-learn
On Wednesday, 11 December 2019 at 16:06:30 UTC, drug wrote: Add to dub.json: "targetType": "executable" and it will build executable. Or rename evaluator.d to app.d It is confused that there is no app.d so it thinks that you build a library. I added "targetType" and now everything works

Re: How to organize a project with local scripts in subdirectories using dub?

2019-12-11 Thread drug via Digitalmars-d-learn
On 12/11/19 6:52 PM, Pavel Shkadzko wrote: It works like this, yes. However, by default it builds a "library" while I want to run "evaluator" as a script which uses other scripts by calling their functions. Doing: dub --compiler=ldc2 --single evaluator.d // throws an error

Re: How to organize a project with local scripts in subdirectories using dub?

2019-12-11 Thread Pavel Shkadzko via Digitalmars-d-learn
On Wednesday, 11 December 2019 at 13:00:32 UTC, drug wrote: I would restructure your folders this way: my_proj/ source/ script_1/runme_1.d script_2/runme_2.d evaluator.d then using `dub --compiler=ldc2` It works like this, yes. However, by default it builds

Re: How to organize a project with local scripts in subdirectories using dub?

2019-12-11 Thread drug via Digitalmars-d-learn
s kind of setup? (I am sorry for the absence of code formatting. I could not find any quick howto here) I would restructure your folders this way: my_proj/ source/ script_1/runme_1.d script_2/runme_2.d evaluator.d then using `dub --compiler=ldc2`

How to organize a project with local scripts in subdirectories using dub?

2019-12-11 Thread Pavel Shkadzko via Digitalmars-d-learn
I have the following project structure. my_proj/ script_1/runme_1.d script_2/runme_2.d evaluator.d The project has a library dependency: "dependencies": { "mir": "~>3.2.0", }, The "evaluator.d" script contains some general functions that convert dataset and pass it to

Re: using dub to compile plugins

2018-12-21 Thread Neia Neutuladh via Digitalmars-d-learn
On Fri, 21 Dec 2018 10:56:39 +, Atila Neves wrote: > I don't see how you can do this with dub, and I wouldn't attempt it > either. Just use make, and have make call dub for the main project (and > potentially any plugins that need it). Remember to make the dub targets > `.PHONY` since you

Re: using dub to compile plugins

2018-12-21 Thread Atila Neves via Digitalmars-d-learn
mous last words!) I could do this with a few simple rules in a Makefile, but I have no clue how to achieve this using dub. can someone show me a concrete example of doing this ? Ideally just dropping a new source file into the plugins source folder should produce a new .so the next time dub is run, wit

Re: using dub to compile plugins

2018-12-19 Thread Codifies via Digitalmars-d-learn
On Wednesday, 19 December 2018 at 16:31:57 UTC, Andre Pany wrote: On Wednesday, 19 December 2018 at 14:08:10 UTC, Codifies wrote: On Wednesday, 19 December 2018 at 13:14:20 UTC, Andre Pany wrote: On Wednesday, 19 December 2018 at 12:57:14 UTC, Codifies wrote: [...] You can use dub sub

Re: using dub to compile plugins

2018-12-19 Thread Andre Pany via Digitalmars-d-learn
On Wednesday, 19 December 2018 at 14:08:10 UTC, Codifies wrote: On Wednesday, 19 December 2018 at 13:14:20 UTC, Andre Pany wrote: On Wednesday, 19 December 2018 at 12:57:14 UTC, Codifies wrote: [...] You can use dub sub packages. Each plugin will be a dub package with its own dub descriptor

Re: using dub to compile plugins

2018-12-19 Thread Neia Neutuladh via Digitalmars-d-learn
On Wed, 19 Dec 2018 12:57:14 +, Codifies wrote: > I could do this with a few simple rules in a Makefile, but I have no > clue how to achieve this using dub. If you need dub, you can create a wrapper script that generates the dub file for the plugins directory. Make is a lot

Re: using dub to compile plugins

2018-12-19 Thread Codifies via Digitalmars-d-learn
On Wednesday, 19 December 2018 at 13:14:20 UTC, Andre Pany wrote: On Wednesday, 19 December 2018 at 12:57:14 UTC, Codifies wrote: [...] You can use dub sub packages. Each plugin will be a dub package with its own dub descriptor (sdl) file. For your main dub sdl you set targetType to None.

Re: using dub to compile plugins

2018-12-19 Thread Andre Pany via Digitalmars-d-learn
mous last words!) I could do this with a few simple rules in a Makefile, but I have no clue how to achieve this using dub. can someone show me a concrete example of doing this ? Ideally just dropping a new source file into the plugins source folder should produce a new .so the next time dub is run, wit

Re: using dub to compile plugins

2018-12-19 Thread Codifies via Digitalmars-d-learn
oh forgot to add just for extra pain while the main application won't need gtk, most of the plugins will...

using dub to compile plugins

2018-12-19 Thread Codifies via Digitalmars-d-learn
efile, but I have no clue how to achieve this using dub. can someone show me a concrete example of doing this ? Ideally just dropping a new source file into the plugins source folder should produce a new .so the next time dub is run, without having to explicitly add each plugin to the dub file...

Re: Using dub and rdmd together?

2018-07-11 Thread Timoses via Digitalmars-d-learn
On Wednesday, 11 July 2018 at 16:43:24 UTC, Seb wrote: I don't know of an easy way to do out of the box. However, with dmd's new -i option, it could be as easy as: --- dub fetch requests cat > test.d << EOF import std.stdio; import requests; void main() { auto content =

Re: Using dub and rdmd together?

2018-07-11 Thread Seb via Digitalmars-d-learn
On Wednesday, 11 July 2018 at 16:13:56 UTC, Matthew OConnor wrote: Hi, I'm new to D and trying to make some command line tools that are run with `#!/usr/bin/env rdmd`. But I would also like to reference external packages from dub. I know I can do this with: #!/usr/bin/env dub /+

Using dub and rdmd together?

2018-07-11 Thread Matthew OConnor via Digitalmars-d-learn
Hi, I'm new to D and trying to make some command line tools that are run with `#!/usr/bin/env rdmd`. But I would also like to reference external packages from dub. I know I can do this with: #!/usr/bin/env dub /+ dub.sdl: name "get" dependency "requests" version="~>0.3.2"

Re: how to link self made lib using dub

2018-07-06 Thread Flaze07 via Digitalmars-d-learn
On Friday, 6 July 2018 at 21:13:37 UTC, Timoses wrote: Shouldn't this be 'import output'? nah, because I didn't import source directly, I import experiment so in order to use it, I do source/output.d, which when importing module means, source.output and this '...\\experiment\\source\\'? (I'm

Re: how to link self made lib using dub

2018-07-06 Thread Timoses via Digitalmars-d-learn
On Friday, 6 July 2018 at 17:08:48 UTC, Flaze07 wrote: [...] then, I made a project, with this main in this path : Z:\programming\D\experimentLib\source\main.d it contains this module main; import std.stdio; import source.output; Shouldn't this be 'import output'? void main( string[]

how to link self made lib using dub

2018-07-06 Thread Flaze07 via Digitalmars-d-learn
std.stdio; writeln( msg ); } } and then I compiled it into library using dub project with this file in a path : Z:\programming\D\usefulFiles\experiment\dub.json { "name" : "experiment", "targetType": "library", "targetPath": "

Re: Need advice on using DUB registry

2017-04-02 Thread drug via Digitalmars-d-learn
02.04.2017 17:43, Eric пишет: On Sunday, 2 April 2017 at 04:14:56 UTC, rikki cattermole wrote: On 02/04/2017 2:37 AM, Eric wrote: I'm planning on some day putting a package in the DUB registry. My package is dependent on my "util" package which is a collection of stuff I use across all my

Re: Need advice on using DUB registry

2017-04-02 Thread Eric via Digitalmars-d-learn
On Sunday, 2 April 2017 at 04:14:56 UTC, rikki cattermole wrote: On 02/04/2017 2:37 AM, Eric wrote: I'm planning on some day putting a package in the DUB registry. My package is dependent on my "util" package which is a collection of stuff I use across all my projects. Does this mean I

Re: Need advice on using DUB registry

2017-04-01 Thread rikki cattermole via Digitalmars-d-learn
On 02/04/2017 2:37 AM, Eric wrote: I'm planning on some day putting a package in the DUB registry. My package is dependent on my "util" package which is a collection of stuff I use across all my projects. Does this mean I also have to put my util package in the DUB registry? Could I just make

Need advice on using DUB registry

2017-04-01 Thread Eric via Digitalmars-d-learn
I'm planning on some day putting a package in the DUB registry. My package is dependent on my "util" package which is a collection of stuff I use across all my projects. Does this mean I also have to put my util package in the DUB registry? Could I just make "util" a git sub module of the

Re: Using Dub

2017-01-16 Thread Russel Winder via Digitalmars-d-learn
On Mon, 2017-01-16 at 16:47 +, cym13 via Digitalmars-d-learn wrote: > […] > > What do you mean it failed? I did that on another computer to  > test and it works flawlessly for me. > > […] trying a settings.sdl file failed setting.json works. -- Russel.

Re: Using Dub

2017-01-16 Thread Russel Winder via Digitalmars-d-learn
On Mon, 2017-01-16 at 16:51 +, cym13 via Digitalmars-d-learn wrote: > […] > Oh, maybe you're on windows, in which case the settings.json file  > must be placed in either $ProgramData\dub or in $APPDATA\dub.  > Relevant lines of dub.d:  >

Re: Using Dub

2017-01-16 Thread cym13 via Digitalmars-d-learn
On Monday, 16 January 2017 at 16:47:29 UTC, cym13 wrote: On Monday, 16 January 2017 at 10:59:33 UTC, Russel Winder wrote: On Mon, 2017-01-16 at 10:47 +, cym13 via Digitalmars-d-learn wrote: On Monday, 16 January 2017 at 09:42:03 UTC, Russel Winder wrote: > On Sun, 2017-01-15 at 17:44

Re: Using Dub

2017-01-16 Thread cym13 via Digitalmars-d-learn
On Monday, 16 January 2017 at 10:59:33 UTC, Russel Winder wrote: On Mon, 2017-01-16 at 10:47 +, cym13 via Digitalmars-d-learn wrote: On Monday, 16 January 2017 at 09:42:03 UTC, Russel Winder wrote: > On Sun, 2017-01-15 at 17:44 +, cym13 via > Digitalmars-d-learn wrote: > > On Sunday,

Re: Using Dub

2017-01-16 Thread Dejan Lekic via Digitalmars-d-learn
On Monday, 16 January 2017 at 09:40:55 UTC, Russel Winder wrote: On the one hand Cargo works wonderfully with Rust so I had hoped Dub would work wonderfully with D. Sadly I am finding it doesn't. Possibly my fault, but still annoying. Cargo does not have multiple Rust compilers as an option.

Re: Using Dub

2017-01-16 Thread Russel Winder via Digitalmars-d-learn
On Mon, 2017-01-16 at 10:47 +, cym13 via Digitalmars-d-learn wrote: > On Monday, 16 January 2017 at 09:42:03 UTC, Russel Winder wrote: > > On Sun, 2017-01-15 at 17:44 +, cym13 via  > > Digitalmars-d-learn wrote: > > > On Sunday, 15 January 2017 at 13:23:25 UTC, Russel Winder  > > > wrote:

Re: Using Dub

2017-01-16 Thread cym13 via Digitalmars-d-learn
On Monday, 16 January 2017 at 09:42:03 UTC, Russel Winder wrote: On Sun, 2017-01-15 at 17:44 +, cym13 via Digitalmars-d-learn wrote: On Sunday, 15 January 2017 at 13:23:25 UTC, Russel Winder wrote: > Is there any way of setting dub to default to ldc2 rather > than dmd as the compiler of

Re: Using Dub

2017-01-16 Thread Russel Winder via Digitalmars-d-learn
On Sun, 2017-01-15 at 17:44 +, cym13 via Digitalmars-d-learn wrote: > On Sunday, 15 January 2017 at 13:23:25 UTC, Russel Winder wrote: > > Is there any way of setting dub to default to ldc2 rather than  > > dmd as the compiler of use? (I do not want to have to put  > > --compiler ldc2 on every

Re: Using Dub

2017-01-15 Thread Daniel N via Digitalmars-d-learn
On Sunday, 15 January 2017 at 13:23:25 UTC, Russel Winder wrote: Is there any way of setting dub to default to ldc2 rather than dmd as the compiler of use? (I do not want to have to put --compiler ldc2 on every dub command.) I have never used dub, but I know it's now also bundled with ldc2.

Using Dub

2017-01-15 Thread Russel Winder via Digitalmars-d-learn
Is there any way of setting dub to default to ldc2 rather than dmd as the compiler of use? (I do not want to have to put --compiler ldc2 on every dub command.) -- Russel. = Dr Russel Winder t: +44 20 7585 2200

Re: Simplest way to build a DMD compatible C lib, and how to link using DUB.

2016-12-23 Thread hardreset via Digitalmars-d-learn
On Saturday, 17 December 2016 at 04:58:45 UTC, Mike Parker wrote: On Friday, 16 December 2016 at 22:37:13 UTC, hardreset wrote: To be honest I was having some odd linking problems anyway. I initially wrapped the FT init function in plain D function and that kept causing "_FT_ not found"

Re: Simplest way to build a DMD compatible C lib, and how to link using DUB.

2016-12-16 Thread Mike Parker via Digitalmars-d-learn
On Friday, 16 December 2016 at 22:37:13 UTC, hardreset wrote: To be honest I was having some odd linking problems anyway. I initially wrapped the FT init function in plain D function and that kept causing "_FT_ not found" link errors. As soon as I took all the actual D functions out and

Re: Simplest way to build a DMD compatible C lib, and how to link using DUB.

2016-12-16 Thread hardreset via Digitalmars-d-learn
On Friday, 16 December 2016 at 00:40:07 UTC, Mike Parker wrote: On Thursday, 15 December 2016 at 20:34:47 UTC, hardreset wrote: On Thursday, 15 December 2016 at 18:30:14 UTC, hardreset wrote: I have pragma(lib,**fullpath**) in my freetype.d file, is that the correct way? Never mind,

Re: Simplest way to build a DMD compatible C lib, and how to link using DUB.

2016-12-15 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 15 December 2016 at 20:34:47 UTC, hardreset wrote: On Thursday, 15 December 2016 at 18:30:14 UTC, hardreset wrote: I have pragma(lib,**fullpath**) in my freetype.d file, is that the correct way? Never mind, figured it out, I needer to add "libs": ["libs/freetype27ST"] to

Re: Simplest way to build a DMD compatible C lib, and how to link using DUB.

2016-12-15 Thread hardreset via Digitalmars-d-learn
On Thursday, 15 December 2016 at 18:30:14 UTC, hardreset wrote: On Thursday, 15 December 2016 at 03:47:27 UTC, Mike Parker wrote: [1] https://github.com/DerelictOrg/DerelictFT Thanks, I'm trying the "-m32mscoff" method for now, but I get "error LNK2019: unresolved external symbol

Re: Simplest way to build a DMD compatible C lib, and how to link using DUB.

2016-12-15 Thread hardreset via Digitalmars-d-learn
On Thursday, 15 December 2016 at 03:47:27 UTC, Mike Parker wrote: On Wednesday, 14 December 2016 at 23:08:30 UTC, hardreset wrote: As Basile recommended, DerelictFT[1] will save you from the hassle of object formats. It's a dynamic binding, so you don't need to link with FreeType at all

Re: Simplest way to build a DMD compatible C lib, and how to link using DUB.

2016-12-14 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 14 December 2016 at 23:08:30 UTC, hardreset wrote: I built Freetype with MSVC13 and tried to link it but DMD didnt like the format, so what should compiler (free) should I use for building DMD compatible static libs? The MS linker produces COFF format. By default, DMD uses the

Re: Simplest way to build a DMD compatible C lib, and how to link using DUB.

2016-12-14 Thread Basile B. via Digitalmars-d-learn
On Wednesday, 14 December 2016 at 23:08:30 UTC, hardreset wrote: I built Freetype with MSVC13 and tried to link it but DMD didnt like the format, so what should compiler (free) should I use for building DMD compatible static libs? Once I've build the lib, made a di file, where do I put these

Simplest way to build a DMD compatible C lib, and how to link using DUB.

2016-12-14 Thread hardreset via Digitalmars-d-learn
I built Freetype with MSVC13 and tried to link it but DMD didnt like the format, so what should compiler (free) should I use for building DMD compatible static libs? Once I've build the lib, made a di file, where do I put these things in the dub directory structure? thanks,

Using dub to build tutorials

2016-08-29 Thread Resident_Tofu via Digitalmars-d-learn
Hello, everyone! I was directed here after asking around on reddit. (https://www.reddit.com/r/d_language/comments/500rdx/complete_beginner_to_game_dev_and_d/) To get straight to the point, I have practically no programming experience, but I did just finish going through Programming in D and I

Using dub configurations with libraries

2015-09-07 Thread FreeSlave via Digitalmars-d-learn
Let's say I have two dub packages: A and B. A is a library. B is library or application (does not matter) and depends on A. A has several configurations in dub.json. How to build the B package that way it will use non-default configuration of A?

How to make a standalone .a using dub?

2015-07-29 Thread Yuxuan Shui via Digitalmars-d-learn
Is there a way to have dub pack the library along with all its dependencies into a single .a?

Re: How to make a standalone .a using dub?

2015-07-29 Thread Yuxuan Shui via Digitalmars-d-learn
On Thursday, 30 July 2015 at 00:14:23 UTC, Yuxuan Shui wrote: Is there a way to have dub pack the library along with all its dependencies into a single .a? And if not, is there any D build system capable of doing this? reggae maybe?

Re: Using dub

2015-01-28 Thread Rikki Cattermole via Digitalmars-d-learn
On 28/01/2015 2:14 p.m., Joel wrote: On Wednesday, 28 January 2015 at 00:34:13 UTC, Joel wrote: On Tuesday, 27 January 2015 at 08:08:19 UTC, Joel wrote: Oope, yeah, and it ran. Thanks Rikki, I wiped off the dub installation. Now, no errors. The small program worked too. Actually I got this

Re: Using dub

2015-01-28 Thread Rikki Cattermole via Digitalmars-d-learn
On 28/01/2015 1:34 p.m., Joel wrote: On Tuesday, 27 January 2015 at 08:08:19 UTC, Joel wrote: Oope, yeah, and it ran. Thanks Rikki, I wiped off the dub installation. Now, no errors. The small program worked too. I don't now how to set up the dub executable to work with out doing stuff like

Re: Using dub

2015-01-28 Thread Joel via Digitalmars-d-learn
On Wednesday, 28 January 2015 at 23:48:52 UTC, Rikki Cattermole wrote: On 29/01/2015 11:27 a.m., Joel wrote: When I setup dub/dmd on my OSX install, I used the OSX packages and it should already be on the PATH variable. What packages? I'm new to Mac OS. Ohh, I was meaning a dmg. But ugh

Re: Using dub

2015-01-28 Thread Rikki Cattermole via Digitalmars-d-learn
On 29/01/2015 11:27 a.m., Joel wrote: When I setup dub/dmd on my OSX install, I used the OSX packages and it should already be on the PATH variable. What packages? I'm new to Mac OS. Ohh, I was meaning a dmg. But ugh looks like I lied, my bad, only had to do it once. Looks like I used

Re: Using dub

2015-01-28 Thread Rikki Cattermole via Digitalmars-d-learn
On 29/01/2015 1:24 p.m., Joel wrote: On Wednesday, 28 January 2015 at 23:48:52 UTC, Rikki Cattermole wrote: On 29/01/2015 11:27 a.m., Joel wrote: When I setup dub/dmd on my OSX install, I used the OSX packages and it should already be on the PATH variable. What packages? I'm new to Mac OS.

Re: Using dub

2015-01-28 Thread Joel via Digitalmars-d-learn
When I setup dub/dmd on my OSX install, I used the OSX packages and it should already be on the PATH variable. What packages? I'm new to Mac OS.

Re: Using dub

2015-01-28 Thread Joel via Digitalmars-d-learn
[0] http://brew.sh/ Do I just put 'brew dub'? First install brew then $ brew install dub From that it should just be dub to run. Don't forget to restart terminal afterwards or just rerun bash. If dub isn't found, PATH variable will need to be changed via .bashrc. But I'm doubting its

Re: Using dub

2015-01-27 Thread Joel via Digitalmars-d-learn
Oope, yeah, and it ran.

Re: Using dub

2015-01-27 Thread Joel via Digitalmars-d-learn
On Tuesday, 27 January 2015 at 07:44:12 UTC, Rikki Cattermole wrote: On 27/01/2015 8:40 p.m., Joel wrote: On Tuesday, 27 January 2015 at 07:25:18 UTC, Rikki Cattermole wrote: On 27/01/2015 8:03 p.m., Joel wrote: I'm having trouble using dub. Nothing seems to work (-h works though). I would

Re: Using dub

2015-01-27 Thread Joel via Digitalmars-d-learn
On Tuesday, 27 January 2015 at 08:08:19 UTC, Joel wrote: Oope, yeah, and it ran. Thanks Rikki, I wiped off the dub installation. Now, no errors. The small program worked too. I don't now how to set up the dub executable to work with out doing stuff like this - '../dub' (Mac OS 10.10.1)

Re: Using dub

2015-01-27 Thread Joel via Digitalmars-d-learn
On Wednesday, 28 January 2015 at 00:34:13 UTC, Joel wrote: On Tuesday, 27 January 2015 at 08:08:19 UTC, Joel wrote: Oope, yeah, and it ran. Thanks Rikki, I wiped off the dub installation. Now, no errors. The small program worked too. Actually I got this with dlangui, (I followed the

Using dub

2015-01-26 Thread Joel via Digitalmars-d-learn
I'm having trouble using dub. Nothing seems to work (-h works though). I would like an example or two of how to get an app going (stand alone for now). I'm using the Mac OS.

Re: Using dub

2015-01-26 Thread Rikki Cattermole via Digitalmars-d-learn
On 27/01/2015 8:03 p.m., Joel wrote: I'm having trouble using dub. Nothing seems to work (-h works though). I would like an example or two of how to get an app going (stand alone for now). I'm using the Mac OS. Lets use Devisualization.Window as an example. Assuming in a safe directory and dmd

Re: Using dub

2015-01-26 Thread Rikki Cattermole via Digitalmars-d-learn
On 27/01/2015 8:40 p.m., Joel wrote: On Tuesday, 27 January 2015 at 07:25:18 UTC, Rikki Cattermole wrote: On 27/01/2015 8:03 p.m., Joel wrote: I'm having trouble using dub. Nothing seems to work (-h works though). I would like an example or two of how to get an app going (stand alone for now

Re: Using dub

2015-01-26 Thread Joel via Digitalmars-d-learn
On Tuesday, 27 January 2015 at 07:25:18 UTC, Rikki Cattermole wrote: On 27/01/2015 8:03 p.m., Joel wrote: I'm having trouble using dub. Nothing seems to work (-h works though). I would like an example or two of how to get an app going (stand alone for now). I'm using the Mac OS. Lets use

Re: simple question about using dub to import CyberShadow's aeutils

2015-01-03 Thread Laeeth Isharc via Digitalmars-d-learn
On Saturday, 3 January 2015 at 12:08:16 UTC, Vladimir Panteleev wrote: On Saturday, 3 January 2015 at 11:58:48 UTC, Laeeth Isharc wrote: import ae.utils; ae.utils is a package, perhaps you meant to import ae.utils.xml? aha. schoolboy error on my part. thank you for your help, and

simple question about using dub to import CyberShadow's aeutils

2015-01-03 Thread Laeeth Isharc via Digitalmars-d-learn
Hi. I would like to use the XML parser from CyberShadow's ae.utils - I am building a tool to index RSS feeds in elasticsearch (something like rssriver but with more complete functionality). I am using dub to build the code. So far I just have an empty boilerplate app.d with the line import

Re: simple question about using dub to import CyberShadow's aeutils

2015-01-03 Thread Vladimir Panteleev via Digitalmars-d-learn
On Saturday, 3 January 2015 at 11:58:48 UTC, Laeeth Isharc wrote: import ae.utils; ae.utils is a package, perhaps you meant to import ae.utils.xml?

LuaD linker problems using dub

2014-02-23 Thread Soulsbane
Using dub I get the following: dub build --build=release luad: [luad] luadubtest: [luadubtest, luad] Target is up to date. Using existing build in /home/soulsbane/.dub/packages/luad-master/.dub/build/library-release-linux.posix-x86_64-dmd-B83FCD49839968DA975DFE86E5A741A0/. Use --force to force

Re: LuaD linker problems using dub

2014-02-23 Thread Jakob Ovrum
On Monday, 24 February 2014 at 01:19:44 UTC, Soulsbane wrote: Using dub I get the following: dub build --build=release luad: [luad] luadubtest: [luadubtest, luad] Target is up to date. Using existing build in /home/soulsbane/.dub/packages/luad-master/.dub/build/library-release-linux.posix

Re: LuaD linker problems using dub

2014-02-23 Thread Soulsbane
It is a DMD bug, fixed in 2.065[1]. [1] http://d.puremagic.com/issues/show_bug.cgi?id=12144 Oh my gosh! I can't thank you enough for the quick answer.

  1   2   >