Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error compiling on Mac OsX "unit Web.ApacheHTTP not found" (Alexandria) #551

Closed
surfzone-org opened this issue Apr 17, 2022 · 4 comments
Closed
Assignees
Labels
accepted Issue has been accepted and inserted in a future milestone need more info

Comments

@surfzone-org
Copy link

You get the error "unit Web.ApacheHTTP not found"

Changed on dmvcframework.inc

From:
{$IFNDEF MOBILE}
{$DEFINE WEBAPACHEHTTP}
{$ENDIF}

To:
{$IFNDEF MOBILE}
{$IFNDEF MACOS}
{$DEFINE WEBAPACHEHTTP}
{$ENDIF}
{$ENDIF}

and then, it works

@danieleteti danieleteti self-assigned this Apr 22, 2022
@danieleteti danieleteti added accepted Issue has been accepted and inserted in a future milestone need more info labels Apr 22, 2022
@danieleteti danieleteti added this to the 3.2.2-nitrogen milestone Apr 22, 2022
@danieleteti
Copy link
Owner

Did you check if it's a problem in the library path? I don't have a Mac. Can you check if the apache module can be created for Mac?

@danieleteti
Copy link
Owner

Any news?

@surfzone-org
Copy link
Author

Sorry Daniele, I did not view the repplys...

I found the issue in the client...

I develop a server compiled in Windows, and the develop a windows, android and macos client... the error raises in the macos client... I can try to compile a sample if compiles on macOs

@fastbike
Copy link
Contributor

Looks like there is an associated bug preventing MacOS compilation

function TWebContext.GetHostingFrameworkType: TMVCHostingFrameworkType;
begin
{$IFDEF WEBAPACHEHTTP}
  if FRequest.ClassType = TApacheRequest then
  begin
    Exit(hftApache);
  end
  else
  begin
{$IFNDEF LINUX}
    if FRequest.ClassType = TISAPIRequest then
    begin
      Exit(hftISAPI);
    end
    else
{$ENDIF}
{$ENDIF}
    begin
      Exit(hftIndy);
    end;
// add this condition compilation directive
{$IFDEF WEBAPACHEHTTP}
  end;
{$ENDIF}
end;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Issue has been accepted and inserted in a future milestone need more info
Projects
None yet
Development

No branches or pull requests

3 participants