Recipe to install Tango 9 from source on MacOS X high Sierra

@Reynald: You are right, good point. I've added https://github.com/tango-controls/TangoSourceDistribution/issues/73.
@Reynald and @t-b :

Thanks a lot, I progressed. I downloaded gnu-sed via Homebrew and I just changed the paths file for pointing used. It seems that it worked. Now, always in the "make all" the files are compiled , but two errors are found during the compilation, in the device.cpp file and in another file from libraries. As usual, I attach the two concerned screenshots.

By the way, guys, if you think that this is a real useless effort, please tell me. I am trying to compile on MacOS X in order to use all my resources in terms of memory and processors, as I cannot afford a linux machine for the moment.
Anyway, thank you so much for your help.

David
The line the compiler complains about is just a workaround for some older compilers. You should be able to just delete that line.
t-b
The line the compiler complains about is just a workaround for some older compilers. You should be able to just delete that line.

@t-b : you were right, as far is the first instantiation erro concerned, I commented the wrong lines and the compilation passed without any trouble. But I do not know ho to manage the second error, because it is a line in a LLVM general library file which is called by included files (tango.h and devasyn.h. Do I have to comment the line calling for <map> ? Or what else ?
Thanks a lot.

David
Hi David,

The compilation errors you're facing could be related to the C++ standard your LLVM clang compiler is using.
I would try to force the standard to C++11 using the CXXFLAGS env. variable.

Just modify or create the CXXFLAGS :
export CXXFLAGS="$CXXFLAGS -std=c++11"

then retry to compile the code
make clean; make all
.

BTW, I would recommend to compile the whole software chain using the same options (including the C++11 standard).

Good luck.
n.
Edited 4 years ago
Hi Nicolas,

I changed the CXXFLAGS as suggested , but still the error remains.
By the way, before I got other fatal error with jpegmmx.cpp, but in this case I disabled that part in during the ./configure process. Was I right ?

Still guys, I tried even to compile the same source on UBUNTU, but in this case I am stuck with OMNIORB4 installation from source, as there is some problems with python commands during the compilation due to several errors in idlpython.cpp. Do I have to create another thread ?

Sorry for all these questions ….

David
I suspect jpegmmx.cpp to make use of special CPU instructions and/or assembler routines. So it was a good idea to simply the compilation process by disabling the MMX functionalities.

Giving up on MacOS and switching to Linux is a good and reasonable idea smile

Concerning your OMNIORB4/Python problem. Is python or the the required python modules installed on your Ubuntu platform?
Could you please post the error details?
Hi,

It looks like Giacomo from Elettra managed to compile on OpenBSD. This might solve your issues on Mac OS X
Please refer to https://github.com/tango-controls/cppTango/issues/706 to get more details.
He will provide his patches soon.

Cheers,
Reynald
Rosenberg's Law: Software is easy to make, except when you want it to do something new.
Corollary: The only software that's worth making is software that does something new.
@Reynald,
which branch (or release) do you recommend to compile under macOS using cmake : 9-lts, 9.3.3, any other?
Thanks.
Edited 4 years ago
nleclercq
@Reynald,
which branch (or release) do you recommend to compile under macOS using cmake : 9-lts, 9.3.3, any other?
Thanks.

Well, for the moment, it doesn't compile it seems.
There is a PR https://github.com/tango-controls/cppTango/issues/711 to be able to compile on OpenBSD and which will probably solve some issues encountered when compiling on MacOS too.
This PR targets tango-9-lts but is not yet merged.

In the mean time, you can try with the branch created from https://github.com/tango-controls/cppTango/issues/711 PR:
https://github.com/bourtemb/cppTango/tree/delleceste-openbsd-fix-706

Do not hesitate to report the compilation errors, if any on Github.

Kind regards,
Reynald
Rosenberg's Law: Software is easy to make, except when you want it to do something new.
Corollary: The only software that's worth making is software that does something new.
 
Register or login to create to post a reply.