Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Difficulty setting up gtkmm on windows using msys2
Difficulty setting up gtkmm on windows using msys2 [message #1826623] Mon, 27 April 2020 21:23 Go to next message
Simon Savard is currently offline Simon SavardFriend
Messages: 1
Registered: April 2020
Junior Member
Hi,
As the title suggests, I am having a hard time setting up Eclipse to use gtkmm from msys2.
I had previously been using Code::Blocks for C++ development and I would simply need to point the toolchain to the msys2 toolchain and add the `pkg-config gtkmm-3.0 --cflags` to the compile command and --libs to the linker and everything would work fine, gtkmm apps would compile and run.
I wish to move to Eclipse since it is favoured in my university so I wish to get familiar with it. However, getting gtkmm to work has been a hassle as I have searched many permutations of search terms and seen every links from the first 3 or so pages of google without success.
I realize that using back ticks will not work as Eclipse doesn't seem to be using the MinGW shell to run the commands.
What I have tried:
- Adding back ticks commands, the result is g++ telling me `pkg-config isn't a thing.
- Using the pkg-config support plugin, I had to manually select the pkg-config executable. The list would then contain all my packages but when i select one, the libs are added but not the includes.
- Verified that the correct toolchain is pointed at, added msys2's MinGW to the path. No success.
- Followed multiple videos/tutorials, resetting my settings each time to make sure they don't interfere but no success.

What I'm wondering is, is there another way to, say, make Eclipse use the MinGW shell to run commands? Or is there another way to install gtkmm that would be more conveniant to use with Eclipse? Msys2 was conveniant for Code::Blocks but I realize it might not be the case here. I'd like to avoid having to add all the include files manually to the project.

Using:
Windows 10 version 1909
Eclipse for C / C++ developers (20.03)
All 64 bits

Thank you very much for your support, I hope to use Eclipse more in the future for embedded development as well.

If I am missing any useful information I will make sure to provide them.
Re: Difficulty setting up gtkmm on windows using msys2 [message #1826634 is a reply to message #1826623] Tue, 28 April 2020 04:02 Go to previous message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
You really want make to run the desired shell.
GNU make uses the SHELL variable to determine the shell.
MinGW make might as well but you'll have to consult the MinGW docs to be sure.

Note: the SHELL variable is used by make in a rather strange way .
https://www.gnu.org/software/make/manual/html_node/Choosing-the-Shell.html
You may need to add -DSHELL=<whatever> to the make command to set it within the makefile.
The make command is in: Project --> Properties --> C/C++ Build.

Some places which might be helpful:
http://www.mingw.org/wiki/MSYS
http://www.mingw.org/wiki/HOWTO_Create_an_MSYS_Build_Environment
http://www.mingw.org/wiki/getting_started

[Updated on: Tue, 28 April 2020 04:09]

Report message to a moderator

Previous Topic:2019-12 "Problems ->Description " configuration ??
Next Topic:an ounce of prevention is worth a pound of cure - software updating 2019-12
Goto Forum:
  


Current Time: Thu Apr 25 20:18:42 GMT 2024

Powered by FUDForum. Page generated in 0.03126 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top