Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register
  • Index
  • » Users
  • » rick_ba
  • » Profile

Posts

Posts

Jun-02-20 06:32:36
Asking if it is possible to speed up the compilation of OMEdit when only a file is modified
Category: Developer

Great! Just what I needed, I went from 42 min compilation time to 2 minutes.

Thank you very much.

Jun-01-20 10:07:13
Asking if it is possible to speed up the compilation of OMEdit when only a file is modified
Category: Developer

I'm compiling OMEdit for Windows in QtCreator with OMDev.

As an example, once I have compiled the original OMEdit code the first time, I make a change in OMEditLIB -> Mainwindow.cpp to add a new menu.

Now If I choose Make and then Debug (or if I specifically choose to compile Mainwindow.cpp), it takes a bit to compile but changes are not applied. I can only see the new menu if I perform Clean and then Build, but that takes a lot more time to finish.

Is there a way to speed up the process of compiling and testing when I am only modifying some specific files?

Thank you.

May-31-20 16:44:31
Error when trying to link OSG debug libraries even if installed
Category: Developer

Nice, that worked well. As you guessed I am not going to debug the OSG part so no problem.

Thank you.

May-31-20 13:52:47
Error when trying to link OSG debug libraries even if installed
Category: Developer

Hello.

I'm trying to compile OMEdit in debug mode by using QtCreator from OMDev in Windows (in Release it's working). I installed the Qt and OSG debug libraries by following the OMDev readme but I'm still having problems to link the OSG libraries. I'm compiling in x86 mode but I installed both x86 and x64 libraries.

For example, a part of the compilation line is the following:
-LE:\OMDev\tools\msys\mingw32\lib -llibosgd.dll
and the following files are present on disk:
e:\OMDev\tools\msys\mingw32\lib\libosgd.dll.a
e:\OMDev\tools\msys\mingw32\bin\libosgd.dll

I can't find why these libraries are not linking.

Below is the full error message as a reference.

Thank you.

Code:

mingw32-make[1]: Entering directory 'e:/dev/OpenModelica/OMEdit/OMEditGUI'

E:/OMDev/tools/msys/mingw32/bin/mingw32-make -f Makefile.Debug
mingw32-make[2]: Entering directory 'e:/dev/OpenModelica/OMEdit/OMEditGUI'
g++ -Wl,--stack,16777216,--enable-auto-import,--large-address-aware -Wl,-subsystem,windows -mthreads -o ..\bin\OMEdit.exe debug/rc_omedit_res.o debug/main.o  -lglu32 -lopengl32 -lgdi32 -luser32 -lmingw32 -lqtmaind -L..\bin -lOMEdit -LE:\OMDev\tools\msys\mingw32\lib -llibosgd.dll -llibosgViewerd.dll -llibOpenThreadsd.dll -llibosgDBd.dll -llibosgGAd.dll -L..\OMEditLIB\Debugger\Parser -lGDBMIParser -Le:\dev\OpenModelica\build\lib\omc -lomantlr3 -lOMPlot -lomqwt -lomopcua -lOpenModelicaCompiler -lomcruntime -lOpenModelicaRuntimeC -lfmilib -lModelicaExternalC -lomcgc -lpthread -lshlwapi -lws2_32 -Le:\dev\OpenModelica\build\bin -lOMSimulator -lqjson E:\OMDev\tools\msys\mingw32\lib\libQt5WebKitWidgetsd.dll.a E:\OMDev\tools\msys\mingw32\lib\libQt5WebKitd.dll.a E:\OMDev\tools\msys\mingw32\lib\libQt5Svgd.dll.a E:\OMDev\tools\msys\mingw32\lib\libQt5OpenGLd.dll.a E:\OMDev\tools\msys\mingw32\lib\libQt5PrintSupportd.dll.a E:\OMDev\tools\msys\mingw32\lib\libQt5Widgetsd.dll.a E:\OMDev\tools\msys\mingw32\lib\libQt5Guid.dll.a E:\OMDev\tools\msys\mingw32\lib\libQt5XmlPatternsd.dll.a E:\OMDev\tools\msys\mingw32\lib\libQt5Networkd.dll.a E:\OMDev\tools\msys\mingw32\lib\libQt5Xmld.dll.a E:\OMDev\tools\msys\mingw32\lib\libQt5Concurrentd.dll.a E:\OMDev\tools\msys\mingw32\lib\libQt5Cored.dll.a
E:/OMDev/tools/msys/mingw32/bin/../lib/gcc/i686-w64-mingw32/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -llibosgd.dll
E:/OMDev/tools/msys/mingw32/bin/../lib/gcc/i686-w64-mingw32/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -llibosgViewerd.dll
E:/OMDev/tools/msys/mingw32/bin/../lib/gcc/i686-w64-mingw32/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -llibOpenThreadsd.dll
E:/OMDev/tools/msys/mingw32/bin/../lib/gcc/i686-w64-mingw32/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -llibosgDBd.dll
E:/OMDev/tools/msys/mingw32/bin/../lib/gcc/i686-w64-mingw32/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -llibosgGAd.dll
collect2.exe: error: ld returned 1 exit status
Makefile.Debug:62: recipe for target '..\bin\OMEdit.exe' failed
mingw32-make[2]: *** [..\bin\OMEdit.exe] Error 1
mingw32-make[2]: Leaving directory 'e:/dev/OpenModelica/OMEdit/OMEditGUI'
Makefile:34: recipe for target 'debug' failed
mingw32-make[1]: *** [debug] Error 2
mingw32-make[1]: Leaving directory 'e:/dev/OpenModelica/OMEdit/OMEditGUI'
Makefile:82: recipe for target 'sub-OMEditGUI-make_first-ordered' failed
mingw32-make: *** [sub-OMEditGUI-make_first-ordered] Error 2

  • Index
  • » Users
  • » rick_ba
  • » Profile
You are here: