Compiling MASM using QT
-
Hello how can i enable masm for msvc? i need to compile .asm file
-
Hi
MASM has no so much to do with Qt.However, it should already be included in your VS installation.
https://docs.microsoft.com/en-us/cpp/assembler/masm/masm-for-x64-ml64-exe?view=msvc-160
-
Thanks for the reply sir but my problem is i dont know how do i compile inside the qt. but i know how to compile from VS
-
Thanks for the reply sir but my problem is i dont know how do i compile inside the qt. but i know how to compile from VS
Hi
Ah you mean to use it inside QCreator ? ( the IDE/editor)
You need to tell it about this new file type and setup to call masm.exe
like here
https://forum.qt.io/topic/74547/can-i-bind-asm-files-containing-x64-assembly-code-to-my-c-project/9 -
Hi
Ah you mean to use it inside QCreator ? ( the IDE/editor)
You need to tell it about this new file type and setup to call masm.exe
like here
https://forum.qt.io/topic/74547/can-i-bind-asm-files-containing-x64-assembly-code-to-my-c-project/9@mrjj Thanks sir i tried to search before i see your post and we found the same :D
https://forum.qt.io/topic/74547/can-i-bind-asm-files-containing-x64-assembly-code-to-my-c-project/3Its now working but do you know how i properly point my output file to its release directory? cause i found its generated obj file outside the release directory :D
ASM_FILES += \ spoofer.asm ml64.name = ML64 ${QMAKE_FILE_IN} ml64.input = ASM_FILES ml64.variable_out = OBJECTS ml64.commands = ML64 /c ${QMAKE_FILE_NAME} /Fo ${QMAKE_VAR_OBJECTS_DIR}${QMAKE_FILE_IN_BASE}$${first(QMAKE_EXT_OBJ)} ml64.output = ${QMAKE_FILE_IN_BASE}$${first(QMAKE_EXT_OBJ)} ml64.CONFIG += target_predeps
-
@mrjj Thanks sir i tried to search before i see your post and we found the same :D
https://forum.qt.io/topic/74547/can-i-bind-asm-files-containing-x64-assembly-code-to-my-c-project/3Its now working but do you know how i properly point my output file to its release directory? cause i found its generated obj file outside the release directory :D
ASM_FILES += \ spoofer.asm ml64.name = ML64 ${QMAKE_FILE_IN} ml64.input = ASM_FILES ml64.variable_out = OBJECTS ml64.commands = ML64 /c ${QMAKE_FILE_NAME} /Fo ${QMAKE_VAR_OBJECTS_DIR}${QMAKE_FILE_IN_BASE}$${first(QMAKE_EXT_OBJ)} ml64.output = ${QMAKE_FILE_IN_BASE}$${first(QMAKE_EXT_OBJ)} ml64.CONFIG += target_predeps
Hi
i think its the
ml64.output
you can try domessage($$ml64.output)
and see if that looks like the place.
then you might just need to append the release folder to itUpdate: nope i was wrong. it's only the filename.
Not sure it will like to have a path there.even if its not in the Release folder, it still links it ?
it seems you want it like this
https://stackoverflow.com/questions/30265674/qmake-extra-compilers-output-directory-msvcsomething like
ml64.output = ${QMAKE_VAR_OBJECTS_DIR}release/${QMAKE_FILE_IN_BASE}$${QMAKE_EXT_OBJ}se link how to handle debug and release