RejectedSoftware Forums

Sign up

Error: conflicting Ddoc and obj generation options

Hi,

I have an executable projet that depend on a static library project. They are all in the same github repo:
https://github.com/bdeligny/DQuick.git on branch "dub"

My two package.json are:

Executable:
{

"name": "image",
"targetType": "executable",
"version" : "~master",
"sourcePaths": ["./"],
"importPaths": ["./"],
"dependencies": {
	"libdquick": {"version": "~master", "path": "../../dquick"},
},			

},

Library:
{

"name": "libdquick",
"version" : "~master",
"sourcePaths": ["./"],
"importPaths": ["./"],
"excludedSourceFiles": ["etc/derelict/build/build.d"],
"stringImportPaths": ["renderer2D/openGL"],
"buildRequirements": ["allowWarnings"],

}

But i get this error:
Error: conflicting Ddoc and obj generation options

If i check the dmd command line called by dub with -v option i get:
dmd -of.dub\build\application-debug-x86-dmd-DA39A3EE5E6B4B0D3255BFEF95601890AFD80709\image.exe -c -of.dub\build\application-debug-x86-dmd-DA39A3EE5E6B4B0D3255BFEF95601890AFD80709\image.obj -debug -g -wi -version=Haveimage -version=Havelibdquick -I.\ -I....\dquick -J....\dquick\renderer2D\openGL main.d ....\dquick\algorithms\atlas.d ....\dquick\algorithms\scheduler.d and then all the d files

Thanks in advance.

Re: Error: conflicting Ddoc and obj generation options

Note that the library compile fine on it's own.

Re: Error: conflicting Ddoc and obj generation options

On Wed, 04 Dec 2013 18:11:01 GMT, Bruno Deligny wrote:

Hi,

I have an executable projet that depend on a static library project. They are all in the same github repo:
https://github.com/bdeligny/DQuick.git on branch "dub"

My two package.json are:

(...)

But i get this error:
Error: conflicting Ddoc and obj generation options

If i check the dmd command line called by dub with -v option i get:
dmd -of.dub\build\application-debug-x86-dmd-DA39A3EE5E6B4B0D3255BFEF95601890AFD80709\image.exe -c -of.dub\build\application-debug-x86-dmd-DA39A3EE5E6B4B0D3255BFEF95601890AFD80709\image.obj -debug -g -wi -version=Haveimage -version=Havelibdquick -I.\ -I....\dquick -J....\dquick\renderer2D\openGL main.d ....\dquick\algorithms\atlas.d ....\dquick\algorithms\scheduler.d and then all the d files

Thanks in advance.

I've adjusted the files from the repository so that it works properly when registered in the registry - the library should always be in the root package.json file. It also cleans up a few other things. The problem that remains is that the API of the current "derelict" package (which is supposed to be replaced by separate "derelect-xxx" packages, but "derelict-il" is missing so far) seems to be a different version than the library expected (there are some compiler errors). But apart from that, everything seems to work nicely:

/package.json:

{
	"name": "dquick",
	"description": "A GUI library written in D.",
	"authors": ["Bruno Deligny", "Xavier Bigand"],
	"homepage": "https://github.com/D-Quick/DQuick",
	"license": "BSL-1.0",
	"sourcePaths": ["src/dquick"],
	"stringImportPaths": ["src/dquick/renderer2D/openGL"],
	"buildRequirements": ["allowWarnings"],
	
	"dependencies": {
		"gl3n": "~master",
		"derelict": "~master"
	},

	"configurations": [
		{
			"name": "library",
			"targetType": "library",
			"excludedSourceFiles": ["src/dquick/main.d"]
		},
		{
			"name": "unittest",
			"targetType": "executable",
			"mainSourceFile": "src/dquick/main.d"
		}
	]
}

/src/samples/image/package.json:

{
	"name": "image",
	"targetType": "executable",
	"dependencies": {
		"dquick": {"version": "~master", "path": "../../../"}
	},
	"mainSourceFile": "main.d",
	"sourcePaths": ["./"],
	"importPaths": ["./"]
}

One thing that I've removed is the explicit "version" field. It shouldn't normally be there, as the version is inferred from the branch/tag name.

Re: Error: conflicting Ddoc and obj generation options

Thank you but i have the same error with your modifications.
I have the same error if i try to build in unittest configuration.

On Fri, 06 Dec 2013 09:56:37 GMT, Sönke Ludwig wrote:

On Wed, 04 Dec 2013 18:11:01 GMT, Bruno Deligny wrote:

Hi,

I have an executable projet that depend on a static library project. They are all in the same github repo:
https://github.com/bdeligny/DQuick.git on branch "dub"

My two package.json are:

(...)

But i get this error:
Error: conflicting Ddoc and obj generation options

If i check the dmd command line called by dub with -v option i get:
dmd -of.dub\build\application-debug-x86-dmd-DA39A3EE5E6B4B0D3255BFEF95601890AFD80709\image.exe -c -of.dub\build\application-debug-x86-dmd-DA39A3EE5E6B4B0D3255BFEF95601890AFD80709\image.obj -debug -g -wi -version=Haveimage -version=Havelibdquick -I.\ -I....\dquick -J....\dquick\renderer2D\openGL main.d ....\dquick\algorithms\atlas.d ....\dquick\algorithms\scheduler.d and then all the d files

Thanks in advance.

I've adjusted the files from the repository so that it works properly when registered in the registry - the library should always be in the root package.json file. It also cleans up a few other things. The problem that remains is that the API of the current "derelict" package (which is supposed to be replaced by separate "derelect-xxx" packages, but "derelict-il" is missing so far) seems to be a different version than the library expected (there are some compiler errors). But apart from that, everything seems to work nicely:

/package.json:

{
	"name": "dquick",
	"description": "A GUI library written in D.",
	"authors": ["Bruno Deligny", "Xavier Bigand"],
	"homepage": "https://github.com/D-Quick/DQuick",
	"license": "BSL-1.0",
	"sourcePaths": ["src/dquick"],
	"stringImportPaths": ["src/dquick/renderer2D/openGL"],
	"buildRequirements": ["allowWarnings"],
	
	"dependencies": {
		"gl3n": "~master",
		"derelict": "~master"
	},

	"configurations": [
		{
			"name": "library",
			"targetType": "library",
			"excludedSourceFiles": ["src/dquick/main.d"]
		},
		{
			"name": "unittest",
			"targetType": "executable",
			"mainSourceFile": "src/dquick/main.d"
		}
	]
}

/src/samples/image/package.json:

{
	"name": "image",
	"targetType": "executable",
	"dependencies": {
		"dquick": {"version": "~master", "path": "../../../"}
	},
	"mainSourceFile": "main.d",
	"sourcePaths": ["./"],
	"importPaths": ["./"]
}

One thing that I've removed is the explicit "version" field. It shouldn't normally be there, as the version is inferred from the branch/tag name.

Re: Error: conflicting Ddoc and obj generation options

On Mon, 09 Dec 2013 19:51:36 GMT, Bruno Deligny wrote:

Thank you but i have the same error with your modifications.
I have the same error if i try to build in unittest configuration.

On Fri, 06 Dec 2013 09:56:37 GMT, Sönke Ludwig wrote:

On Wed, 04 Dec 2013 18:11:01 GMT, Bruno Deligny wrote:

Hi,

I have an executable projet that depend on a static library project. They are all in the same github repo:
https://github.com/bdeligny/DQuick.git on branch "dub"

My two package.json are:

(...)

But i get this error:
Error: conflicting Ddoc and obj generation options

If i check the dmd command line called by dub with -v option i get:
dmd -of.dub\build\application-debug-x86-dmd-DA39A3EE5E6B4B0D3255BFEF95601890AFD80709\image.exe -c -of.dub\build\application-debug-x86-dmd-DA39A3EE5E6B4B0D3255BFEF95601890AFD80709\image.obj -debug -g -wi -version=Haveimage -version=Havelibdquick -I.\ -I....\dquick -J....\dquick\renderer2D\openGL main.d ....\dquick\algorithms\atlas.d ....\dquick\algorithms\scheduler.d and then all the d files

Sorry, I've just now noticed that there are two "-of" flags output, not sure if that is what the error message refers to or why it doesn't error out for me, but it's now fixed on GIT master (14c0527).

Re: Error: conflicting Ddoc and obj generation options

On Wed, 11 Dec 2013 08:51:53 GMT, Sönke Ludwig wrote:

On Mon, 09 Dec 2013 19:51:36 GMT, Bruno Deligny wrote:

Thank you but i have the same error with your modifications.
I have the same error if i try to build in unittest configuration.

On Fri, 06 Dec 2013 09:56:37 GMT, Sönke Ludwig wrote:

On Wed, 04 Dec 2013 18:11:01 GMT, Bruno Deligny wrote:

Hi,

I have an executable projet that depend on a static library project. They are all in the same github repo:
https://github.com/bdeligny/DQuick.git on branch "dub"

My two package.json are:

(...)

But i get this error:
Error: conflicting Ddoc and obj generation options

If i check the dmd command line called by dub with -v option i get:
dmd -of.dub\build\application-debug-x86-dmd-DA39A3EE5E6B4B0D3255BFEF95601890AFD80709\image.exe -c -of.dub\build\application-debug-x86-dmd-DA39A3EE5E6B4B0D3255BFEF95601890AFD80709\image.obj -debug -g -wi -version=Haveimage -version=Havelibdquick -I.\ -I....\dquick -J....\dquick\renderer2D\openGL main.d ....\dquick\algorithms\atlas.d ....\dquick\algorithms\scheduler.d and then all the d files

Sorry, I've just now noticed that there are two "-of" flags output, not sure if that is what the error message refers to or why it doesn't error out for me, but it's now fixed on GIT master (14c0527).

I still have the error
dmd -c -of.dub\build\application-debug-x86-dmd-DA39A3EE5E6B4B0D3255BFEF95601890AFD80709\image.obj -debug -g -wi -version=Haveimage -version=Havedquick -I.\ -I.... -J....\dquick\renderer2D\openGL main.d ....\dquick\algorithms\atlas.d ....\dquick\algorithms\scheduler.d ...

Re: Error: conflicting Ddoc and obj generation options

Am 11.12.2013 21:01, schrieb Bruno Deligny:

On Wed, 11 Dec 2013 08:51:53 GMT, Sönke Ludwig wrote:

On Mon, 09 Dec 2013 19:51:36 GMT, Bruno Deligny wrote:

Thank you but i have the same error with your modifications.
I have the same error if i try to build in unittest configuration.

On Fri, 06 Dec 2013 09:56:37 GMT, Sönke Ludwig wrote:

On Wed, 04 Dec 2013 18:11:01 GMT, Bruno Deligny wrote:

Hi,

I have an executable projet that depend on a static library project. They are all in the same github repo:
https://github.com/bdeligny/DQuick.git on branch "dub"

My two package.json are:

(...)

But i get this error:
Error: conflicting Ddoc and obj generation options

If i check the dmd command line called by dub with -v option i get:
dmd -of.dub\build\application-debug-x86-dmd-DA39A3EE5E6B4B0D3255BFEF95601890AFD80709\image.exe -c -of.dub\build\application-debug-x86-dmd-DA39A3EE5E6B4B0D3255BFEF95601890AFD80709\image.obj -debug -g -wi -version=Haveimage -version=Havelibdquick -I.\ -I....\dquick -J....\dquick\renderer2D\openGL main.d ....\dquick\algorithms\atlas.d ....\dquick\algorithms\scheduler.d and then all the d files

Sorry, I've just now noticed that there are two "-of" flags output, not sure if that is what the error message refers to or why it doesn't error out for me, but it's now fixed on GIT master (14c0527).

I still have the error
dmd -c -of.dub\build\application-debug-x86-dmd-DA39A3EE5E6B4B0D3255BFEF95601890AFD80709\image.obj -debug -g -wi -version=Haveimage -version=Havedquick -I.\ -I.... -J....\dquick\renderer2D\openGL main.d ....\dquick\algorithms\atlas.d ....\dquick\algorithms\scheduler.d ...

Hm.. looks fine to me. Can you try to remove flags manually to see which
one (or two) causes the error?