Genio-The-Haiku-IDE / Genio

The Haiku IDE
Other
59 stars 9 forks source link

Makefile from App template does not work #410

Closed grexe closed 2 weeks ago

grexe commented 3 weeks ago

(using Genio dev build as of today)

When creating an App from the App template, the following stanza is included in the generated Makefile:

## Include the Makefile-Engine
#DEVEL_DIRECTORY := \
#   $(shell findpaths -r "makefile_engine" B_FIND_PATH_DEVELOP_DIRECTORY)
#include $(DEVEL_DIRECTORY)/etc/makefile-engine

Error: Failed to find path: No such file or directory Makefile:125: /etc/makefile-engine: No such file or directory make: *** No rule to make target '/etc/makefile-engine'. Stop.

This does not work and yields the following error message on Haiku hrev57755:

Instead, this one I cobbled together myself from the official Haiku examples and sources works (look closely - same same but different...):

## Include the Makefile-Engine
DEVEL_DIRECTORY = \
    $(shell findpaths -e B_FIND_PATH_DEVELOP_DIRECTORY etc/makefile-engine)
include $(DEVEL_DIRECTORY)
jackburton79 commented 3 weeks ago

Which template ? I just tried "Console application" and "App with Window" but they built correctly. On which platform, by the way ?

jackburton79 commented 3 weeks ago

I meant

Which template ? I just tried "Console application" and "App with Window" but they built correctly. On which platform, by the way ?

I meant: x64 or 32bit ?

grexe commented 3 weeks ago

I'm on x86_64

jackburton79 commented 3 weeks ago

Which template did you try which has this problem ?

grexe commented 3 weeks ago

App with Window.

nexus6-haiku commented 3 weeks ago

That makefile is exactly the same template used by the Tracker, btw. Could you check if that works?

jackburton79 commented 2 weeks ago

Sorry, cannot reproduce either on haiku beta4 and master, both 32 bit and 64 bit.

jackburton79 commented 2 weeks ago

Please reopen if you can provide a reproducible test case