Opened 16 years ago
Last modified 14 years ago
#1037 closed defect (wontfix)
experimental new linux build
Reported by: | ebo | Owned by: | ebo |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | ebo, |
Description
attached is an experimental qmake.pro build system for OpenModelica 1.4.5+. Please extract the attached tarball into a copy of the current trunk and then do "qmake" and "make". I will explain later what all it does, but I am currently having trouble with my net connection (blasted hurricane took out the connection and now whenever it rains it gets messed up...). Anyway, I wanted to try to get this out before it went down again...
Attachments (1)
Change History (3)
by , 16 years ago
Attachment: | qmake_files.tgz added |
---|
comment:1 by , 16 years ago
comment:2 by , 14 years ago
Using qmake instead of make is a huge dependency especially for MacOS. Regardless, the make system has been much improved since March 2009 and I think this bug is no longer needed (you no longer need to spend two days to get a Linux system to compile OMC; if you're using Ubuntu it pretty much just works).
Now that I have connection again for awhile...
While working to clean up the linux configuration and build scripts I realized that most, if not all, of the issues could be addressed by qmake. Since qmake was already used/required for OMShell and OMNoteBook, I wrote qmake.pro files for all of the libraries and compiler. The difficult part came in that qmake assumes that the projects and subprojects have a particular directory style which c_runtime and the compiler do not come close to following. In particular, it is assumed that each library and/or target is located in its own directory. There is however an *undocumented feature* which allows multiple qmake.pro files to reside in a directory if one of them is of type TEMPLATE=subdirs and different qmake.pro files are specified in the form: "c_runtime.file = libc_runtime.pro". With this I was able to build all the libraries and compiler without having to change the overall directory structure to conform to Qt's assumptions.
These experimental qmake.pro files do not install anything yet, but does place everything in the sandbox $(topdir)/build/*. Once we get the ebuilds polished up so that they work for the 3 major platforms I will finish the installation phase.
I am requesting comments and suggestions on this effort so that it may become generally useful to all.