.o files not being generated on Linux
-
Hi everyone,
I'm trying to fix an issue I have.
To fix it on Windows I needed to link not only the .lib files I produced but also some .obj file, for example
QtInstallFolder\lib\objects-Release\Widgets_resources_1\.rcc\qrc_qstyle.cpp.objHowever when trying to apply this on Linux, the folder at "QtInstallFolder/lib/objects-Release/Widgets_resources_1" is empty.
My question is the following: Why are my .o file not being generated ? How can generate or access them ?
Here's my configure script:
configure -prefix QtInstallFolder -release -static -feature-relocatable -submodules qtbase,qtsvg -no-opengl -cmake-generator Ninja -accessibilityfollowed by
cmake --build . --parallel cmake --install .Thanks in advance for the help :)
-
Hi everyone,
I'm trying to fix an issue I have.
To fix it on Windows I needed to link not only the .lib files I produced but also some .obj file, for example
QtInstallFolder\lib\objects-Release\Widgets_resources_1\.rcc\qrc_qstyle.cpp.objHowever when trying to apply this on Linux, the folder at "QtInstallFolder/lib/objects-Release/Widgets_resources_1" is empty.
My question is the following: Why are my .o file not being generated ? How can generate or access them ?
Here's my configure script:
configure -prefix QtInstallFolder -release -static -feature-relocatable -submodules qtbase,qtsvg -no-opengl -cmake-generator Ninja -accessibilityfollowed by
cmake --build . --parallel cmake --install .Thanks in advance for the help :)
Hi,
There's no reason to have any
.ofiles in your installation folder. Static libraries end with.aon Linux. -
Hi,
There's no reason to have any
.ofiles in your installation folder. Static libraries end with.aon Linux. -
Hi everyone,
I'm trying to fix an issue I have.
To fix it on Windows I needed to link not only the .lib files I produced but also some .obj file, for example
QtInstallFolder\lib\objects-Release\Widgets_resources_1\.rcc\qrc_qstyle.cpp.objHowever when trying to apply this on Linux, the folder at "QtInstallFolder/lib/objects-Release/Widgets_resources_1" is empty.
My question is the following: Why are my .o file not being generated ? How can generate or access them ?
Here's my configure script:
configure -prefix QtInstallFolder -release -static -feature-relocatable -submodules qtbase,qtsvg -no-opengl -cmake-generator Ninja -accessibilityfollowed by
cmake --build . --parallel cmake --install .Thanks in advance for the help :)
@PLL3 said in .o files not being generated on Linux:
QtInstallFolder\lib\objects-Release\Widgets_resources_1\.rcc\qrc_qstyle.cpp.objthe folder at "QtInstallFolder/lib/objects-Release/Widgets_resources_1" is empty.
Is it? If
.ofiles are supposed to be inWidgets_resources_1\.rccdon't forget that under Linux directories beginning with.are "hidden", how did you checkWidgets_resources_1is empty?Use
findif you can't spot where.ofiles might be? Look at the compilation action lines to see what it is doing if you cannot find.ofiles you expect to be left around. -
@PLL3 said in .o files not being generated on Linux:
QtInstallFolder\lib\objects-Release\Widgets_resources_1\.rcc\qrc_qstyle.cpp.objthe folder at "QtInstallFolder/lib/objects-Release/Widgets_resources_1" is empty.
Is it? If
.ofiles are supposed to be inWidgets_resources_1\.rccdon't forget that under Linux directories beginning with.are "hidden", how did you checkWidgets_resources_1is empty?Use
findif you can't spot where.ofiles might be? Look at the compilation action lines to see what it is doing if you cannot find.ofiles you expect to be left around.@JonB said in .o files not being generated on Linux:
don't forget that under Linux directories beginning with . are "hidden"
Today I learned I guess. Evidently I'm not very familiar with Linux, I feel dumb now.
Second time you point me right to the solution thanks. I'd buy you a drink if I could :)
-
P PLL3 has marked this topic as solved on
-
@JonB said in .o files not being generated on Linux:
don't forget that under Linux directories beginning with . are "hidden"
Today I learned I guess. Evidently I'm not very familiar with Linux, I feel dumb now.
Second time you point me right to the solution thanks. I'd buy you a drink if I could :)
@PLL3
While PC/Windows/DOS has a "hidden" attribute on files/directories, to stop them being listed by default, Linux has no such file attribute. The convention is that programs likelsdo not list files/directories staring with., to allow user/programs to sort of hide files by default. Some desktop file explorers have an option to hide these (default is on), you can change that;lsaccepts a-aoption to list "all" files.findprints all filenames.The choice here of
.rccmay have only been with Windows, not Linux, in mind, I don't know.You don't have to feel dumb about this one :)