ssbssa / heob

Detects buffer overruns and memory leaks.
Boost Software License 1.0
156 stars 25 forks source link

Can't build this project with mingw32-make.exe #13

Closed p506738532 closed 6 years ago

p506738532 commented 6 years ago

environment:Win10,QT5.7.0-mingW. In cmd.exe,input the commond: D:\ProgramFiles\Qt\heob\heob-master\heob-master>D:\ProgramFiles\Qt\Qt5.7.0\Tools\mingw530_32\bin\mingw32-make.exe CPPFLAGS="-DNO_DWARFSTACK" There is an error when i input an "enter" Makefile:54: *** multiple target patterns. Stop. what's wrong with my operation? 3Q!

ssbssa commented 6 years ago

Well, I have never used mingw32-make.exe (I usually use the MSYS2 make), so I have to check what could be wrong here.

ssbssa commented 6 years ago

Where did you get the mingw32-make.exe?

p506738532 commented 6 years ago

soga,i didn't know where the make.exe is.MSYS2 is not installed in myy computer.can i compile the project with qt creator?

ssbssa commented 6 years ago

Yes, you can compile with qt creator, you have to use heob.qbs for that.

p506738532 commented 6 years ago

i have download qt-creator-mingw-5.7.0 and find it in "xx/tools/mingw32/bin" path.

p506738532 commented 6 years ago

but qt creator said can't find profile

ssbssa commented 6 years ago

what profile?

p506738532 commented 6 years ago

In qt creator ,Equivalent command line: D:\ProgramFiles\Qt\Qt5.7.0\Tools\QtCreator\bin\qbs.exe build -d D:\ProgramFiles\Qt\heob\heob-master\build-heob-Desktop_Qt_5_7_0_MinGW_CDB_32bit-Release -f D:\ProgramFiles\Qt\heob\heob-master\heob-master\heob.qbs --settings-dir C:\Users\Administrator\AppData\Roaming\QtProject\qtcreator --jobs 4 release profile:qtc_Desktop__a9a623b5 can‘t find profile:qtc_Desktop__a9a623b5

p506738532 commented 6 years ago

There is an error ":-1: error: Unknown or empty profile 'qtc_Desktop__a9a623b5'."when i open the heob.qbs with qt creator.

ssbssa commented 6 years ago

I will have to see if I can reproduce the error if I use the qt 5.7.0, because I have had no such problem with 5.9 - 5.11 so far.

p506738532 commented 6 years ago

heobbuilderror There is an error like this.

ssbssa commented 6 years ago

I'm downloading qt-mingw-5.7.0 right now, but is there some reason you don't use a newer qt version?

p506738532 commented 6 years ago

i am trying to build it with qt-5.9.0.

p506738532 commented 6 years ago

i have build it successfully with qt5.9.0. But I can't find the output .exe file.what should i config?

ssbssa commented 6 years ago

What build directory is configured, it should be in there.

p506738532 commented 6 years ago

After builed.there are two files in the "Build direction": qtc_Desktop__c4fafcbf-release.bg and qtc_Desktop__c4fafcbf-release.bg.lock.I don't know what is the output .exe file named.

ssbssa commented 6 years ago

Then the build probably didn't finish successfully, you should see some errors or at least warnings in the Issues pane.

p506738532 commented 6 years ago

there is some info Running Windows Runtime device detection. D:/ProgramFiles/Qt/Qt5.9.0/5.9.1/winrt_armv7_msvc2015/bin/winrtrunner.exe --list-devices No build graph exists yet for this configuration. Build done for configuration qtc_Desktop__a9a623b5-release. Build done for configuration qtc_Desktop__a9a623b5-release. Build done for configuration qtc_Desktop__a9a623b5-release. Build done for configuration qtc_Desktop__a9a623b5-release.

ssbssa commented 6 years ago

Are you trying to build it for armv7?

p506738532 commented 6 years ago

there are some warnings: D:\ProgramFiles\Qt\heob\heob-master\heob-master\heob.qbs:4: warning: Referenced directory 'D:/ProgramFiles/Qt/heob/heob-master/heob-master/dwarfstack/dwarfstack.qbs' does not contain a qbs file. D:\ProgramFiles\Qt\heob\heob-master\heob-master\heob.qbs:17: warning: Dependency 'dwarfstack' not found for product 'heob'. D:\ProgramFiles\Qt\heob\heob-master\heob-master\heob.qbs:6: warning: Product 'heob' had errors and was disabled.

ssbssa commented 6 years ago

Ok, that is good information, you don't have the dwarfstack git submodule.

p506738532 commented 6 years ago

no.I just want to build for my win10.

p506738532 commented 6 years ago

the dwarfstack is necessary?

ssbssa commented 6 years ago

If you want to use heob for mingw executables, yes.

In that case you should call in the heob directory: git submodule update --init

ssbssa commented 6 years ago

If you don't need it for mingw binaries, you can remove the references line from heob.qbs, and change the cpp.defines to: cpp.defines: [ "HEOB_VER=\"" + heob_ver + "\"", "NO_DWARFSTACK" ]

p506738532 commented 6 years ago

i am trying to download the dwarfstack.thank you very much!

ssbssa commented 6 years ago

Is there a special reason you need to compile heob yourself, and not use the release?

p506738532 commented 6 years ago

i didn't find the release at the beginning.so i want to built it .

ssbssa commented 6 years ago

Did you succeed, or do you still have some problems compiling?

p506738532 commented 6 years ago

i have built the heob32.exe and dwarfstack32.dll successfully.thanks again.

ssbssa commented 6 years ago

So I guess I can close this.

Feel free to reopen if you have further problems/questions.