Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

Compiling SimulIDE under windows

5 posters

Go to page : Previous  1, 2, 3  Next

Go down  Message [Page 2 of 3]

26Compiling SimulIDE under windows - Page 2 Empty Re: Compiling SimulIDE under windows Fri Sep 03, 2021 8:21 am

arcachofo

arcachofo

I'm trying to compile SimulIDE under Windows using QT-Creator with gcc.
I always run into one Error:

"g++: fatal error: cannot specify -o with -c, -S or -E with multiple files
compilation terminated."

You can try to replace SOURCES and HEADERS in simulide.pro with this:
Code:
SOURCES += $$files( $$PWD/src/*.cpp, true ) \
           $$files( $$PWD/src/gpsim/*.cc, true )

HEADERS = $$files( $$PWD/src/*.h, true )

If you are compiling any version prior to 0.5.16, then use:
Code:
SOURCES += $$files( $$PWD/src/*.cpp, true ) \
           $$files( $$PWD/src/gpsim/*.cc, true ) \
           $$files( $$PWD/src/simavr/*.c, true )

HEADERS = $$files( $$PWD/src/*.h, true )

27Compiling SimulIDE under windows - Page 2 Empty Re: Compiling SimulIDE under windows Wed Oct 06, 2021 3:34 pm

kellneka



After encountering constant "undefined reference to elf_ /imp_" errors,
I tried to follow the instructions from @acebrian (Re: Compiling SimulIDE under windows Thu Feb 11, 2021 2:41 pm) to set up my environment under Windows.

Every time I start "qmake" the compiler gets stuck without any new compiler messages. Are there any general aspects regarding the setup of the environment that could create this kind of problem?


Best Regards

28Compiling SimulIDE under windows - Page 2 Empty Re: Compiling SimulIDE under windows Thu Oct 07, 2021 8:30 am

arcachofo

arcachofo

I have little idea about conpiling simulide in windows.
But it's dificult that someone can help without more information:

- Which branch are you compiling.
- What have you installed.
- What does mean: "Every time I start "qmake" the compiler gets stuck without any new compiler messages"
What messages do you get from qmake?
Where does it get stuck?

29Compiling SimulIDE under windows - Page 2 Empty Re: Compiling SimulIDE under windows Thu Oct 07, 2021 9:39 am

kellneka



I'm trying to compile build_xx, using Qt Creator with Qt 5.15.0, precompiled libelf.a and MinGW64 8.1.

Qmake creates the qmake.stach and then nothing more happens. No more messages from the compiler, nothing.

Compiler Output:

Starte: "C:\Qt\5.15.0\mingw81_64\bin\qmake.exe" C:\simulide\build_XX\SimulIDE_Build.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug"

Info: creating stash file C:\simulide\build-SimulIDE_Build-Desktop_Qt_5_15_0_MinGW_64_bit-Debug\.qmake.stash

30Compiling SimulIDE under windows - Page 2 Empty Re: Compiling SimulIDE under windows Thu Oct 07, 2021 2:39 pm

arcachofo

arcachofo

I think you should see something like this:

Starting: "C:\Qt\5.15.0\mingw81_64\bin\qmake.exe" C:\simulide\build_XX\SimulIDE_Build.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug"
Info: creating stash file C:\simulide\build-SimulIDE_Build-Desktop_Qt_5_15_0_MinGW_64_bit-Debug\.qmake.stash
Project MESSAGE: -----------------------------------
Project MESSAGE:
Project MESSAGE: SimulIDE_0.X.X for Windows
Project MESSAGE:
Project MESSAGE: Qt version: 5.15.0
Project MESSAGE:
Project MESSAGE: Destination Folder:
Project MESSAGE: C:\simulide\build-SimulIDE_Build-Desktop_Qt_5_15_0_MinGW_64_bit-Debug\executables\SimulIDE_0.X.X
Project MESSAGE: -----------------------------------
The process "C:\Qt\5.15.0\mingw81_64\bin\qmake.exe" exited normally.

It's weird that you don't get any error messages or notification that the process exited in any way..

31Compiling SimulIDE under windows - Page 2 Empty Re: Compiling SimulIDE under windows Thu Oct 07, 2021 3:18 pm

kellneka



Is there another way to follow what's going on beside the compiler window?

Could it be because qmake is searching for the files at a wrong place and then searches there infinitely without detecting any progress or error while doing so?

32Compiling SimulIDE under windows - Page 2 Empty Re: Compiling SimulIDE under windows Thu Oct 07, 2021 3:32 pm

arcachofo

arcachofo

Is there another way to follow what's going on beside the compiler window?

Could it be because qmake is searching for the files at a wrong place and then searches there infinitely without detecting any progress or error while doing so?
Do you see the files in "Edit" window?

Compiling SimulIDE under windows - Page 2 Qtcre10

33Compiling SimulIDE under windows - Page 2 Empty Re: Compiling SimulIDE under windows Thu Oct 07, 2021 3:46 pm

kellneka



yes

34Compiling SimulIDE under windows - Page 2 Empty Re: Compiling SimulIDE under windows Thu Oct 07, 2021 5:13 pm

arcachofo

arcachofo

Then must be something else...

What is in the folder: C:\simulide\build-SimulIDE_Build-Desktop_Qt_5_15_0_MinGW_64_bit-Debug\
Is there any Makefile or other folders?

35Compiling SimulIDE under windows - Page 2 Empty Re: Compiling SimulIDE under windows Thu Oct 07, 2021 5:16 pm

kellneka



Just the qmake.stash

---------------------------------
QMAKE_CXX.QT_COMPILER_STDCXX = 201402L
QMAKE_CXX.QMAKE_GCC_MAJOR_VERSION = 8
QMAKE_CXX.QMAKE_GCC_MINOR_VERSION = 1
QMAKE_CXX.QMAKE_GCC_PATCH_VERSION = 0
QMAKE_CXX.COMPILER_MACROS = \
QT_COMPILER_STDCXX \
QMAKE_GCC_MAJOR_VERSION \
QMAKE_GCC_MINOR_VERSION \
QMAKE_GCC_PATCH_VERSION
QMAKE_CXX.INCDIRS = \
C:/Qt/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++ \
C:/Qt/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/x86_64-w64-mingw32 \
C:/Qt/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/backward \
C:/Qt/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include \
C:/Qt/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include-fixed \
C:/Qt/Tools/mingw810_64/x86_64-w64-mingw32/include
QMAKE_CXX.LIBDIRS = \
C:/Qt/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0 \
C:/Qt/Tools/mingw810_64/lib/gcc \
C:/Qt/Tools/mingw810_64/x86_64-w64-mingw32/lib \
C:/Qt/Tools/mingw810_64/lib
------------------------------------

36Compiling SimulIDE under windows - Page 2 Empty Re: Compiling SimulIDE under windows Thu Oct 07, 2021 6:24 pm

arcachofo

arcachofo

Is there another way to follow what's going on beside the compiler window?
You can try to add -d to qmake additional arguments, this should show more information.
you can add more than one to get even mor information.

also -wall can show something...

37Compiling SimulIDE under windows - Page 2 Empty Re: Compiling SimulIDE under windows Thu Oct 07, 2021 7:01 pm

kellneka



I used -d -Wall.

The last message is:
C:\simulide\SimulIDE.pro:82: Error: QMAKE_CXXFLAGS := -fno-keep-inline-dllexport -Wno-unused-parameter -Wno-missing-field-initializers -Wno-implicit-fallthrough -fno-pic

→ After this message, nothing else happens.

38Compiling SimulIDE under windows - Page 2 Empty Re: Compiling SimulIDE under windows Thu Oct 07, 2021 7:22 pm

arcachofo

arcachofo

Where did you get simulide source code?



39Compiling SimulIDE under windows - Page 2 Empty Re: Compiling SimulIDE under windows Thu Oct 07, 2021 7:36 pm

kellneka



Through your instructions.

40Compiling SimulIDE under windows - Page 2 Empty Re: Compiling SimulIDE under windows Thu Oct 07, 2021 7:58 pm

arcachofo

arcachofo

Then you modified SimulIDE.pro?

41Compiling SimulIDE under windows - Page 2 Empty Re: Compiling SimulIDE under windows Fri Oct 08, 2021 7:12 am

kellneka



I checked.
I couldn't find any permanent changes in Simulide.pro from myself.

42Compiling SimulIDE under windows - Page 2 Empty Re: Compiling SimulIDE under windows Fri Oct 08, 2021 8:25 am

arcachofo

arcachofo

I don't understand why that error...
What happens if you just delete or comment-out line 82 in SimulIDE.pro?

43Compiling SimulIDE under windows - Page 2 Empty Re: Compiling SimulIDE under windows Fri Oct 08, 2021 8:46 am

kellneka



It goes through the operation System specific things.

It stops then at config += qt

------------
C:\simulide\SimulIDE.pro:122: Error: CONFIG := lex yacc debug exceptions depend_includepath testcase_targets import_plugins import_qpa_plugin windows file_copies qmake_use qt warn_on release link_prl debug_and_release debug_and_release_target precompile_header shared shared release no_plugin_manifest win32 mingw gcc debug qml_debug qt
------------

Also, I tried it with versions I downloaded from the website.
With 0.4.15 I get the same error.
With 0.4.14 I don't get these errors but end up with "undefined references"

44Compiling SimulIDE under windows - Page 2 Empty Re: Compiling SimulIDE under windows Fri Oct 08, 2021 10:32 am

arcachofo

arcachofo

All these errors look too weird for me, and qmake does not report them or exit...
I tend to think there is something wrong in your installation.

C:\simulide\SimulIDE.pro line 122 is: config += qt ?


It stops then at config += qt

------------
C:\simulide\SimulIDE.pro:122: Error: CONFIG := lex yacc debug exceptions depend_includepath testcase_targets import_plugins import_qpa_plugin windows file_copies qmake_use qt warn_on release link_prl debug_and_release debug_and_release_target precompile_header shared shared release no_plugin_manifest win32 mingw gcc debug qml_debug qt
------------

45Compiling SimulIDE under windows - Page 2 Empty Re: Compiling SimulIDE under windows Tue Oct 12, 2021 10:57 am

kellneka



After reinstalling everything and adding an definition for strsep I now managed to successfully compile the 0.4.14-SR4 Version of SimulIDE.

I think the problem was an second mingw installation.

With 0.4.15-SR7 the problem is still existing - wrong Qt version?


Thanks for the help.

46Compiling SimulIDE under windows - Page 2 Empty Re: Compiling SimulIDE under windows Tue Oct 12, 2021 8:54 pm

arcachofo

arcachofo

With 0.4.15-SR7 the problem is still existing - wrong Qt version?
The same thing with qmake getting stuck?

47Compiling SimulIDE under windows - Page 2 Empty Re: Compiling SimulIDE under windows Sat Oct 16, 2021 12:26 pm

kellneka



yes but just if I try to compile the newer 0.4.15 -SR7.

I'm using QT 5.15.0 and the same libelf library fore both.

48Compiling SimulIDE under windows - Page 2 Empty Re: Compiling SimulIDE under windows Sat Oct 16, 2021 9:12 pm

arcachofo

arcachofo

The main difference I can see is a few c++ flags.

Maybe you can try to use the same flags as 0.4.14:
SimulIDE.pro, at line 147, change this:
Code:
QMAKE_CXXFLAGS += -Wno-unused-parameter
QMAKE_CXXFLAGS += -Wno-missing-field-initializers
QMAKE_CXXFLAGS += -Wno-implicit-fallthrough
QMAKE_CXXFLAGS -= -fPIC
QMAKE_CXXFLAGS += -fno-pic
QMAKE_CXXFLAGS += -Ofast
QMAKE_CXXFLAGS_DEBUG -= -O
QMAKE_CXXFLAGS_DEBUG -= -O1
QMAKE_CXXFLAGS_DEBUG -= -O2
QMAKE_CXXFLAGS_DEBUG -= -O3
QMAKE_CXXFLAGS_DEBUG += -O0

By this:
Code:
QMAKE_CXXFLAGS += -Wno-unused-parameter
QMAKE_CXXFLAGS += -Wno-missing-field-initializers
QMAKE_CXXFLAGS += -Wno-implicit-fallthrough
QMAKE_CXXFLAGS -= -fPIC
QMAKE_CXXFLAGS += -fno-pic

49Compiling SimulIDE under windows - Page 2 Empty Re: Compiling SimulIDE under windows Tue Nov 02, 2021 7:32 pm

kellneka



I found the origin of the compiling problem I had with version 0.4.15 -SR7.

####################################

BUILD_DATE = $$system(date +\"\\\"%d-%m-%y\\\"\")

####################################

Without this I could compile normally.

arcachofo likes this post

50Compiling SimulIDE under windows - Page 2 Empty Re: Compiling SimulIDE under windows Thu Dec 29, 2022 2:40 am

acebrian



Updated instructions to compile current trunk branch under Windows:

----------------------------------------
# MSYS2
pacman -S make mingw-w64-x86_64-libelf bzr patch

cd /c/
bzr branch lp:simulide
cd /c/simulide
bzr bind lp:simulide

mkdir /c/simulide/build_XX/deps/
cp -a /mingw64/include/libelf/ /c/simulide/build_XX/deps/
cp -a /mingw64/lib/libelf.a /c/simulide/build_XX/deps/

cp -a /c/simulide/build_XX/ /c/simulide/build_release/

exit
----------------------------------------
# CMD
path=%PATH%;C:\msys64\usr\bin;C:\Qt\5.15.2\mingw81_64\bin;C:\Qt\Tools\mingw810_64\bin
cd C:\simulide
sed -i -e 's/^REV_NO = .*$/REV_NO = 1500/' SimulIDE.pro
sed -i -e 's/^BUILD_DATE = .*$/BUILD_DATE = 01-01-23/' SimulIDE.pro
cd C:\simulide\build_release
qmake
make -j8

cd executables\SimulIDE_
windeployqt --debug --plugindir plugins --no-quick-import --no-translations --no-system-d3d-compiler --no-webkit2 -no-virtualkeyboard -no-angle -no-opengl-sw .
rmdir /s /q plugins\bearer
rmdir /s /q plugins\imageformats
rmdir /s /q plugins\playlistformats
rmdir /s /q plugins\styles

exit
----------------------------------------

Replace 1500 and 01-01-23 with desired revision number and build date.

Sponsored content



Back to top  Message [Page 2 of 3]

Go to page : Previous  1, 2, 3  Next

Permissions in this forum:
You cannot reply to topics in this forum