vmagnin / gtk-fortran

A GTK / Fortran binding, and its documentation in the Wiki tab.
GNU General Public License v3.0
255 stars 43 forks source link

Lots of unresolved external symbols #279

Open NdotA opened 11 months ago

NdotA commented 11 months ago

I doubt this is actually a bug - but I find myself unable to proceed.

My problem: Trying to execute the BAZAAR-example I get no less than 68 unresolved symbols. As far as I can see very basic ones like g-get_current_dir or gtk_button_new_with_label.

Maybe this is a result of the somewhat awkward installation process:

I want to install GTK-Fortran in a Windows 11 environment running Intel-Fortran using Visual Studio 2017. I followed the instructions https://yolegu.xyz/post/2022-05-11-fortran-gui-with-gtk-fortran-installation/ but I ran into problems in #3 Installation of GTK4. The build failed because a module named 'typer' was missing. To install GTK4 I then referred to the README - file in gvsbuild and followed these to the 'gvsbuild build gtk4' command to the Windows Power Shell. There was a lot of text messages, white, yellow, red, closing with the message that installation of glib failed. But I could spot this lib in the gtk-build folder under build and I thought to give it a try. I referred back to the instructions I used first to combine Fortran and GTK4 and finally tried to run the BAZAAR example. With the result already mentioned.

What to do?

Sorry for my clumsy descritption, but I may be somewhat of a specialist in power stations but not in software development and I am working on my own without any backup of some IT specialists.

If you could point me to a forum to resolve my newbie's problems all the better.

Thanks in advance Norbert

vmagnin commented 11 months ago

Welcome Norbert @NdotA

I fear I can not help you much, as I am not a Windows guru and do not use Visual Studio. And I have access to Win10 but not Win11.

It sounds like your GTK installation just failed. Concerning, the "typer" dependency, it is the first time I hear about it. In my Linux Ubuntu, I can see there is a python library called Typer but I don't know if it is related to yours:

Typer is a library for building CLI applications that users will love using and developers will love creating.

The only advice I can give you is to join the Fortran Discourse: https://fortran-lang.discourse.group/ There is a lot of people there using Windows and familiar with libraries installations, and Visual Studio and Intel Fortran configurations. Maybe someone will have an idea and can help.

NdotA commented 11 months ago

Thanks a lot. I will follow this link and see what can be done.

Cheers Norbert