# Qt how to specify abi when compiling from source

• As I need the 3d features of qt but without using ANGLE, I compiled direct from the source as the tutorial of qt talks, but I noticed that after almost 3H compiling qt with jom it generated a 32bits version which is a problem because I need x64 for this project, so how to specify the abi? I compiled it as follows:

``````configure -debug-and-release -platform win32-msvc2017 -shared -opensource -opengl desktop -nomake examples -nomake tests

jom
``````

• Hi @Samuel-Ives,

did you open a 32 bit Visual Studio prompt by chance?

Regards

• Well I think the problem was this, it seems that the visual studio prompt I opened in the start menu was not specified as x86 or x64, it looks like they are in a subfolder called vc, I will try again with an x64 prompt and I will answer here if the problem was this.

When I run the jom command to compile, will it compile to the abi of the open prompt or will it compile to x64 if I open the prompt for x64?

• When I run the jom command to compile, will it compile to the abi of the open prompt or will it compile to x64 if I open the prompt for x64?

I really think that the resulting Qt library only depends on the compiler you are using. So if you have a x86 prompt, you get 32 bit libraries and programs; and for a x64 prompt you get 64 bit ones.

jom is just a replacement for nmake and calls the compiler and linker specified by the Visual Studio prompt.

PS: Don't forget to clean your build directory before rebuilding ;)

Regards

• @aha_1980

``````x86-windows-msvc2017-pe-64bit
``````

Thanks, it looks like the cause was actually the command prompt.

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.
{"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9440538287162781, "perplexity": 3285.0784664622734}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2019-22/segments/1558232256887.36/warc/CC-MAIN-20190522163302-20190522185302-00518.warc.gz"}