Alexandru,

> On 27 Jun 2024, at 09:51, Alexandru Croitor <alexandru.croi...@qt.io> wrote:
> 
> Your CMakeCache.txt suggests that openssl was indeed not found.

Can you please tell me where exactly do you see this?

> 
> I see you added --debug-find to the additional cmake options in your 
> screenshot. Why have you not shared the output?
> It should have added a lot of output for the various find_package / find_path 
> / find_library calls.
> 
> Please modify Additional CMake options to contain: --debug-find 
> --trace-redirect=trace.txt --trace-expand
> 
> Then click Reconfigure with Initial parameters, share the full cmake stdout 
> output, as well as the contents of the trace.txt file in the build directory.
> 
> Also, one thing I would try is to specify the OPENSSL_ROOT_DIR path with 
> forward slashes. So c:/Qt-Utils/openssl
> 
> And please share the directory layout of the c:/Qt-Utils/openssl directory.

Regarding the project configuration I have learned that:

- deleting the build dir is more effective to reflect changes to cmake 
configuration
- Inside CMakeCache.txt OPENSSL_ROOT_DIR was set to UNINITIALIZED and I have 
manually set it to PATH
- Inside CMakeCache.txt I have defined OPENSSL_INCLUDE_DIR to 
c:\Qt-Utils\openssl\include

After this changes, the cmake ran successful and I was able to build and run 
the example with my custom kit.

This seems like little quirks but makes me feel that CMake and Qt is still 
black magic! :)

Any advice based on this feedback?

Thank you!

Best regards,

Nuno

> 
>> On 27. Jun 2024, at 10:26, Nuno Santos <nuno.san...@imaginando.pt> wrote:
>> 
>> Alexandru, 
>> 
>> Thank you very much for your replies. 
>> 
>>> The attached files are not CMakeCache.txt. I said to check the value of 
>>> OpenSSL_DIR in CMakeCache.txt.
>>> CMakeError.log and CMakeOutput.log are most of the time useless for 
>>> troubleshooting.
>>> They have been superseded by CMakeFiles/CMakeConfigureLog.yaml.
>>> But in this case i don't think looking into that file would help.
>> 
>> Attached you will find CMakeCache.txt. As you can see everything is being 
>> specified.
>> 
>> 
>> In the mean time I’m using a kit compiled in another machine while I don’t 
>> fix the build problem.
>> 
>>> 
>>> The OPENSSL_ROOT_DIR var needs to be set as a cache variable. Either on the 
>>> command line as a -D option e.g. -DOPENSSL_ROOT_DIR=<path>, or via 
>>> cmake-gui app, or in Qt Creator as a project cache variable.
>>> 
>> 
>> That was the first thing I have tried, setting OPENSSL_ROOT_DIR to 
>> c:\Qt-Utils\openssl, and as you can see it is defined but it still fails.
>> 
>> <screenshot.jpg> 
>> What am I missing?
>> 
>> Thank you very much!
>> 
>> With my best regards,
>> 
>> Nuno
>> <CMakeCache.txt><scene-graph-cmake-output.txt>
> 

_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to