groptics / GrOptics

2 stars 2 forks source link

Compilation error #1

Open ImenAlSamarai opened 6 years ago

ImenAlSamarai commented 6 years ago

Hello there, I'm trying to use this new master version of GrOptics, but the compilation failed. Information below. Thanks for your help, Imen

Evironment: anaconda3 with root 5.34, python 2.7, running on mac OS 10.13

Error message: Generating GrOpticsDict dictionary include/GRootWriter.h ... rootcint -v -f src/GrOpticsDict.cpp -c include/GRootWriter.h include/LinkDef.h Error: cannot open file "AvailabilityMacros.h" /Users/ImenAlSamarai/anaconda3/envs/p2r5_new/include/RConfig.h:384: Warning: Error occurred during reading source files Warning: Error occurred during dictionary source generation !!!Removing src/GrOpticsDict.cpp src/GrOpticsDict.h !!! Error: rootcint: error loading headers... make: *** [src/GrOpticsDict.cpp] Error 1

dukecld commented 6 years ago

Hi, I don’t have my macbook with me at the moment, but GrOptics compiles and runs ok on my office Linux box using Root 5.34/36 and gcc 4.9.2(Debian).

I’m guessing the problem is with python in anaconda versus the native version that comes with osx (or XCode?). Try removing the anaconda path setting in your .bashrc file or your .profile file and open a new window that does Not include anaconda3. Then, do a “make clean” in the GrOptics folder and a “make clean” in the ROBAST-telescope_factory directory. If I’m right, the code should compile ok.

If that doesn’t work, I suggest rebuilding root (and better to use root6) without the anaconda path. Perhaps root used the native python in the building process and is now looking for files it’s can’t find in the anaconda3 directories.

I’ll get back to you in the morning if I find any problems tonight in osx. Let me know if this works. Charlie

From: ImenAlSamarai [mailto:notifications@github.com] Sent: Monday, June 11, 2018 2:52 PM To: groptics/GrOptics GrOptics@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [groptics/GrOptics] Compilation error (#1)

Hello there, I'm trying to use this new master version of GrOptics, but the compilation failed. Information below. Thanks for your help, Imen

Evironment: anaconda3 with root 5.34, python 2.7, running on mac OS 10.13

Error message: Generating GrOpticsDict dictionary include/GRootWriter.h ... rootcint -v -f src/GrOpticsDict.cpp -c include/GRootWriter.h include/LinkDef.h Error: cannot open file "AvailabilityMacros.h" /Users/ImenAlSamarai/anaconda3/envs/p2r5_new/include/RConfig.h:384: Warning: Error occurred during reading source files Warning: Error occurred during dictionary source generation !!!Removing src/GrOpticsDict.cpp src/GrOpticsDict.h !!! Error: rootcint: error loading headers... make: *** [src/GrOpticsDict.cpp] Error 1

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_groptics_GrOptics_issues_1&d=DwMCaQ&c=HUrdOLg_tCr0UMeDjWLBOM9lLDRpsndbROGxEKQRFzk&r=4wD0ryVviL5JT9Npik5cq_P3XeBxig608iBQqpsOSsM&m=6bf4Qq1y_iwa-UxNJ-OcWwwO0kw_H0nlmicZpdoE8Fc&s=AO5VrNOyIcJ94ptDD0AKEmElLRGhfybi6ui0z51uYrc&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AFQ4C7QgoogERxpPvTzOjjuL0j7orqsoks5t7sprgaJpZM4UjS46&d=DwMCaQ&c=HUrdOLg_tCr0UMeDjWLBOM9lLDRpsndbROGxEKQRFzk&r=4wD0ryVviL5JT9Npik5cq_P3XeBxig608iBQqpsOSsM&m=6bf4Qq1y_iwa-UxNJ-OcWwwO0kw_H0nlmicZpdoE8Fc&s=UHUtbtB5zPaDXRhCF7efItRrBRDguU2MvU8KsPfgNsM&e=.

dukecld commented 6 years ago

Hi, As I suspected, I get compile errors using root6, osx10.13, and anaconda python link set. There were no errors using the native python in osx. I build root6 using the native python. If I remember correctly, I had compile errors for root6 with the anaconda3 link activated. So, I’m pretty sure that is your problem. Remove the anaconda3 link, do make clean’s in the ROBAST-telescope_factory directory and in the base GrOptics directory; then do a make in the GrOptics directory. Charlie

From: ImenAlSamarai [mailto:notifications@github.com] Sent: Monday, June 11, 2018 2:52 PM To: groptics/GrOptics GrOptics@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [groptics/GrOptics] Compilation error (#1)

Hello there, I'm trying to use this new master version of GrOptics, but the compilation failed. Information below. Thanks for your help, Imen

Evironment: anaconda3 with root 5.34, python 2.7, running on mac OS 10.13

Error message: Generating GrOpticsDict dictionary include/GRootWriter.h ... rootcint -v -f src/GrOpticsDict.cpp -c include/GRootWriter.h include/LinkDef.h Error: cannot open file "AvailabilityMacros.h" /Users/ImenAlSamarai/anaconda3/envs/p2r5_new/include/RConfig.h:384: Warning: Error occurred during reading source files Warning: Error occurred during dictionary source generation !!!Removing src/GrOpticsDict.cpp src/GrOpticsDict.h !!! Error: rootcint: error loading headers... make: *** [src/GrOpticsDict.cpp] Error 1

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_groptics_GrOptics_issues_1&d=DwMCaQ&c=HUrdOLg_tCr0UMeDjWLBOM9lLDRpsndbROGxEKQRFzk&r=4wD0ryVviL5JT9Npik5cq_P3XeBxig608iBQqpsOSsM&m=6bf4Qq1y_iwa-UxNJ-OcWwwO0kw_H0nlmicZpdoE8Fc&s=AO5VrNOyIcJ94ptDD0AKEmElLRGhfybi6ui0z51uYrc&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AFQ4C7QgoogERxpPvTzOjjuL0j7orqsoks5t7sprgaJpZM4UjS46&d=DwMCaQ&c=HUrdOLg_tCr0UMeDjWLBOM9lLDRpsndbROGxEKQRFzk&r=4wD0ryVviL5JT9Npik5cq_P3XeBxig608iBQqpsOSsM&m=6bf4Qq1y_iwa-UxNJ-OcWwwO0kw_H0nlmicZpdoE8Fc&s=UHUtbtB5zPaDXRhCF7efItRrBRDguU2MvU8KsPfgNsM&e=.