Opened 18 years ago
Last modified 14 years ago
#98 closed defect (worksforme)
Compilation Error
Reported by: | elsheikh | Owned by: | elsheikh |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Parser | Version: | 1.4.5 |
Keywords: | Cc: | elsheikh, Adrian Pop |
Description
See comment.
Change History (12)
comment:1 by , 18 years ago
comment:2 by , 18 years ago
It works for me. Try do do a make clean. In eclipse just write clean in the text
box when building.
comment:3 by , 18 years ago
I think this is due to latest changes of the syntax.
You need to take the latest OMDev:
http://www.ida.liu.se/~adrpo/omc/omdev/mingw/
in order to be able to compile.
Also, delete all the .srz files from OpenModelica/Compiler/omc_release.
Cheers,
Adrian Pop/
comment:4 by , 18 years ago
Cleaning does not help
I dont need OMDev, because I am building on linux? Do you mean new rml compiler?
I have deleted all .srz files and I still get the same error msg.
comment:5 by , 18 years ago
Yes, take the latest rml from the subversion and compile it.
svn checkout svn://mir20.ida.liu.se/rml/trunk
I haven't got time to update the .tar.gz source package.
Regards,
Adrian Pop/
comment:7 by , 18 years ago
Yes I reinstalled the latest RML Compiler and it compiles now, though, I have
some problems with mosh compilation. I will look into the details of mosh
compilation later.
comment:8 by , 18 years ago
Mosh is very deprecated. If you use the socket interface of
Mosh, that is very unstable.
We should actually delete mosh from Subversion.
Try to compile OMShell and use that.
You will need to compile mico, and have a look at:
OMShell/README-UNIX.txt
Cheers,
Adrian Pop/
comment:9 by , 18 years ago
I did not notice OMShell at all, and dont know what is depricated and what is
not, as the README.CygwinOrLinux does not refer to OMShell at all, instead it
recommends the compilation of mosh by
$make mosh
OMShell does not compile with me. From the error msgs, I guess it needs the QT
library.
comment:10 by , 18 years ago
I have some difficulty to compile OMShell. I am somehow confused about which Qt
Version should be used. I see that some components of OpenModelica environments
require Qt4.
When I use Qt3, I get such errors:
ommandcompletion.h:61:24: error: QtCore/QHash: No such file or directory
commandcompletion.h:62:30: error: QtCore/QStringList: No such file or directory
commandcompletion.h:63:29: error: QtGui/QTextCursor: No such file or directory
commandcompletion.h:64:30: error: QtXml/QDomDocument: No such file or directory
...
I installed Qt4 in my system, and it has similar structure to the above log,
when I compile using the include files of Qt4, some of the sources get compiled,
but moc_commandcompletition.ccp does not :
g++ -c -pipe -Wall -W -O2 -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT
-DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/local/Trolltech/Qt-4.2.2/mkspecs/default
-I. -I../../../mico/include -I/usr/local/Trolltech/Qt-4.2.2/include
-I/usr/local/Trolltech/Qt-4.2.2/include/Qt -o moc_commandcompletion.o
moc_commandcompletion.cpp
moc_commandcompletion.cpp:15:34: error: private/qucomextra_p.h: No such file or
directory
This source code is not included within Qt4 but it exists already in
/include/qt3. When I included it, I get competability Errors:
moc_commandcompletion.cpp:17:2: error: #error "This file was generated using the
moc from 3.3.6. It"
moc_commandcompletion.cpp:18:2: error: #error "cannot be used with the include
files from this version of Qt."
moc_commandcompletion.cpp:19:2: error: #error "(The moc has changed too much.)"
...
What do I miss here?
comment:11 by , 18 years ago
First of all, qt4 is needed to compile OMShell.
The moc_* files are automatically generated by qmake.
Seems you are using qmake from qt3.
To see which version you have in the path:
$ qmake -v
This should tell you something like:
"Using Qt version 4.x.x in /usr/local/qt-4.x.x/lib
Then try to run qt4 provided qmake:
$ /path/to/qt4/bin/qmake OMShell.pro
$ make
I think this should get rid of your problem.
Hit us with more questions if this still doesn't work.
Cheers,
Adrian Pop/
comment:12 by , 14 years ago
Closing due to improved build system on Linux. Problem should not exist any longer.
I get the following log from make when I compile the latest trunk version
[2664-2666]
...
/software/rml2.3.6/x86-linux-gcc/bin/rmlc -c Absyn.mo
software/rml2.3.6/x86-linux-gcc/bin/rml -Eplain Absyn.mo
Util.mo:3069.1-3069.1 Error: syntax error found at EOF_SOFT
Error: ParseError
make[2]: * [Absyn.h] Error 1
...
I am using ubunto 6.06. The version 1.4.2 is compilable and I dont get such
error msgs.
Thanks in advance