Compiling errors

Hi,
I have downloaded the last release 6.02/02,
and I tried to compile it on my mac,

this is what I got

ROOT/graf2d/cocoa/src/ROOTApplicationDelegate.mm:10:28: error: cannot initialize a parameter of type ‘id’ with an
lvalue of type ‘ROOTApplicationDelegate *’
[NSApp setDelegate : self];
^~~~
/System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h:109:47: note: passing argument to parameter ‘delegate’ here
@property (assign) id delegate NS_AVAILABLE(10_5, 2_0);
^
1 error generated.
make: *** [graf2d/cocoa/src/ROOTApplicationDelegate.o] Error 1

Hi,

can you paste the cmake/configure command you are using and its output?

Danilo

[quote=“dpiparo”]Hi,

can you paste the cmake/configure command you are using and its output?

Danilo[/quote]

./configure macosx64

make -j2

Thanks.

What about the output of configure?
Do you get the same error building with cmake?

Cheers,
Danilo

the log file is attached,
I did not try cmake because I do not have it installed

[quote=“dpiparo”]Thanks.

What about the output of configure?
Do you get the same error building with cmake?

Cheers,
Danilo[/quote]
log.txt (6.89 KB)

Hi,

can you confirm this is the good log? It’s not clear to me how minuit2 could be active by default.

Danilo

I activated minuit2 from the configure file (I edited the file)

[quote=“dpiparo”]Hi,

can you confirm this is the good log? It’s not clear to me how minuit2 could be active by default.

Danilo[/quote]

Hi,

could you try to configure/build in a clean directory w/o modifying any file?

Danilo

I got the same problem!

[quote=“dpiparo”]Hi,

could you try to configure/build in a clean directory w/o modifying any file?

Danilo[/quote]

Ok.
Can you paste the log of the non modified configure?

Danilo

Unable to find any JVMs matching version “(null)”.
No Java runtime present, try --request to install.
muhammads-mbp:ROOT alhroob$ --request to install
-bash: --request: command not found

[quote=“dpiparo”]Ok.
Can you paste the log of the non modified configure?

Danilo[/quote]
log.txt (6.86 KB)

[quote=“mhoroub”]Hi,
I have downloaded the last release 6.02/02,
and I tried to compile it on my mac,

this is what I got
[/quote]

Hi, this bug was fixed in July.

http://root.cern.ch/gitweb?p=root.git;a=history;f=graf2d/cocoa/src/ROOTApplicationDelegate.mm;h=380a2203b5bd236d9991b77263423803c21c9f0a;hb=71762c5fd26d5890d825e1031537bd63c4ae75ca

  1. http://root.cern.ch/gitweb?p=root.git;a=commit;h=47f55c73edf62d9e26c33a1c84834645dc5b83ed
  2. http://root.cern.ch/gitweb?p=root.git;a=commit;h=4bb93b64378041b013aba64af410a4b3308e18b7

I can also see this patches in the recent 6.02/02 tag.

So, please, update your source, if you can.

Hi,
I downloaded root from
root.cern.ch/drupal/content/prod … ersion-602
so it is the latest version you have,

I tried to configure and I received the same errors I mentioned before

[quote=“tpochep”][quote=“mhoroub”]Hi,
I have downloaded the last release 6.02/02,
and I tried to compile it on my mac,

this is what I got
[/quote]

Hi, this bug was fixed in July.

http://root.cern.ch/gitweb?p=root.git;a=history;f=graf2d/cocoa/src/ROOTApplicationDelegate.mm;h=380a2203b5bd236d9991b77263423803c21c9f0a;hb=71762c5fd26d5890d825e1031537bd63c4ae75ca

  1. http://root.cern.ch/gitweb?p=root.git;a=commit;h=47f55c73edf62d9e26c33a1c84834645dc5b83ed
  2. http://root.cern.ch/gitweb?p=root.git;a=commit;h=4bb93b64378041b013aba64af410a4b3308e18b7

I can also see this patches in the recent 6.02/02 tag.

So, please, update your source, if you can.[/quote]

[quote=“mhoroub”]Hi,
I downloaded root from
root.cern.ch/drupal/content/prod … ersion-602
so it is the latest version you have,
[/quote]

Yes, and if you, for example, download the ROOT source code “(100 mb)”, it contains the patches I’ve referred to, dealing EXACTLY with the problem you’ve described in your first message (invalid type conversion). So if you’re trying to compile something else instead, then … probably stop doing this and compile the code from the tar file you’ve downloaded.

P.S. the link is root.cern.ch/download/root_v6.02 … rce.tar.gz