codekiddy2 / Visual-Studio-gtkmm

Visual Studio 2015 Projects to build gtkmm from nowhere up to gtkmm itself
32 stars 6 forks source link

Using gtkmm3.1.6 X64 binaries with vs2013 update 4. #1

Closed deltamish closed 9 years ago

deltamish commented 9 years ago

Hi,

I downloaded the copy of your binary package.. But when i set up include files and the property shett.. I get around 100 errors.. Saying something like

function returning function not allowed

identifier gsize is undefined identifier gint32 is undefined .........

can you please help me out here..

codekiddy2 commented 9 years ago

Hello deltamish,

I'm not sure how and why you get these errors since you didn't provide what procedure from the "readme" file you followed.

When you extract the binaries package there is a readme file offering 3 possible options to perform the initial setup.

Please make sure you read this file after extracting the package and then please carefully follow the "Option 2" from readme file and report results.

Can you confirm that "Option 2" works for you?

deltamish commented 9 years ago

Hi, That old project somehow got deleted I created a new project and just to know that i am on the right path.. After using "Add existing property file"

I go to vc++ directories and add each every subfolder inside the Include folder " right

codekiddy2 commented 9 years ago

After using "Add existing property file" there is nothing else you need to do, just make sure the property file is added to debug x64 configuration AND that you build debug x64 configuration.

You do not need to modify the property file at all. Just to make sure, we are talking about Option 2 here? ...

Does that work?

deltamish commented 9 years ago

Ohh okay.. I started fresh .. I added the property file and a basic script..

include

include

include<gtkmm\application.h>

using namespace Gtk;

int main(int argc, char* argv[]) { Glib::RefPtrGtk::Application app = Gtk::Application::create(argc, argv, "Test"); Window wind; wind.set_default_size(300, 300); Gtk::Main::run(wind); return 0; }

But i get following errors

Error 10 error LNK1120: 9 unresolved externals
Error 4 error LNK2019: unresolved external symbol "declspec(dllimport) protected: virtual thiscall Glib::ObjectBase::~ObjectBase(void)" (imp_??1ObjectBase@Glib@@MAE@XZ) referenced in function "public: void __thiscall Gtk::Window::`vbase destructor'(void)" (??_DWindow@Gtk@@QAEXXZ)
Error 3 error LNK2019: unresolved external symbol "
declspec(dllimport) public: thiscall sigc::trackable::~trackable(void)" (imp_??1trackable@sigc@@QAE@XZ) referenced in function "public: void __thiscall Gtk::Window::`vbase destructor'(void)" (??_DWindow@Gtk@@QAEXXZ)

.........

codekiddy2 commented 9 years ago

I still didn't get your confirmation if you use "Option 2" which says following:

OPTION 2: extract this package into C:\ so that you end up with C:\gtkmm3_debug_64_VS_2013\ and use provided property sheet gtkmm3-debug-x64.props to create and build new projects.

Did you do so?

codekiddy2 commented 9 years ago

BTW You should replace following:

Gtk::Main::run(wind); return 0;

with:

return app->run(wind);

deltamish commented 9 years ago

Hi,

Thank you soo much for trying to help me out..

I followed step 2 .. And i replaced Gtk::Main:;run(wind);

with

return app->run(wind);

But still i get the same errors

Thanks

On Thu, Jul 2, 2015 at 5:07 PM, codekiddy2 notifications@github.com wrote:

BTW You should replace following:

Gtk::Main::run(wind); return 0;

with:

return app->run(wind);

— Reply to this email directly or view it on GitHub https://github.com/codekiddy2/Visual-Studio-gtkmm/issues/1#issuecomment-118005729 .

codekiddy2 commented 9 years ago

Hi, sorry for delay...I had to go to work...

The errors you're are getting are linker errors, here are few tips/steps you can try out to fix this:

Other than that try to manually link libraries in project settings from the package until all unresolved externals go away. Make sure platform toolset is Visual Studio 2013 (v120) in project properties.

I hope that helps

deltamish commented 9 years ago

Hi, Thank you so much again

Looks like it was a problem with vs2013 itself.. Today when i opened it .It miraculously compiled without errors .But crashes saying that it couldnt Find gtkmm.dll

SO should i manually link the files or is there a cheap workaround.

Thanks

On Fri, Jul 3, 2015 at 5:08 AM, codekiddy2 notifications@github.com wrote:

Hi, sorry for delay...I had to go to work...

The errors you're are getting are linker errors, here are few tips/steps you can try out to fix this:

  • Make sure the package is extracted into C drive "C:\gtkmm3_debug_64_VS_2013\"
  • Create new project and add debug x64 configuration to project by using Configuration manager
  • Then add property sheet to debug x64 node in property manager
  • Make no other settings to project and hit build solution

Other than that try to manually link libraries in project settings from the package until all unresolved externals go away. Make sure platform toolset is Visual Studio 2013 (v120) in project properties.

I hope that helps

— Reply to this email directly or view it on GitHub https://github.com/codekiddy2/Visual-Studio-gtkmm/issues/1#issuecomment-118194035 .

codekiddy2 commented 9 years ago

gtkmm.dll and other dll's can't be found probably because they are not in PATH.

go to Control Panel\All Control Panel Items\System click on Advanced system settings then environment variables under "system variables" add C:\gtkmm3_debug_64_VS_2013\bin to PATH variable separating it with semicolon make sure not to delete existing entries from PATH

once done Visual Studio must be restarted for changes to take effect.

deltamish commented 9 years ago

Thanks It worked..

I was such an idiot and i never realized to add the folder to the path variable..

Thanks