ulao
Newbie

Posts: 39
|
 |
« Reply #30 on: June 24, 2008, 12:11:21 PM » |
|
When i extracted my dependencies I got a dependency folder. and from what I read you just copy it over the existing one? I did some searching for that lib and its in ..\yake\dependencies\boost\stage\lib when i added this to my search folders I'm back to here Linking... Creating library ../../common/lib/testapp.lib and object ../../common/lib/testapp.exp testapp.obj : error LNK2001: unresolved external symbol "public: static float const yake::math::Math::HALF_PI" (?HALF_PI@Math@math@yake@@2MB) testapp.obj : error LNK2001: unresolved external symbol "public: static float const yake::math::Math::fDeg2Rad" (?fDeg2Rad@Math@math@yake@@2MB) testapp.obj : error LNK2001: unresolved external symbol "public: static float const yake::math::Math::fRad2Deg" (?fRad2Deg@Math@math@yake@@2MB) testapp.obj : error LNK2001: unresolved external symbol "public: static class yake::math::Quaternion const yake::math::Quaternion::kIdentity" (?kIdentity@Quaternion@math@yake@@2V123@B) testapp.obj : error LNK2001: unresolved external symbol "public: static class yake::math::Vector3 const yake::math::Vector3::kUnitY" (?kUnitY@Vector3@math@yake@@2V123@B) testapp.obj : error LNK2001: unresolved external symbol "public: static class yake::math::Vector3 const yake::math::Vector3::kUnitX" (?kUnitX@Vector3@math@yake@@2V123@B) testapp.obj : error LNK2001: unresolved external symbol "public: static class yake::math::Point3 const yake::math::Point3::kZero" (?kZero@Point3@math@yake@@2V123@B) testapp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl yake::raf::runApplication(class yake::raf::Application &)" (__imp_?runApplication@raf@yake@@YA_NAAVApplication@12@@Z) referenced in function _main testapp.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall yake::raf::Application::onInitialise(void)" (?onInitialise@Application@raf@yake@@MAE_NXZ) testapp.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall yake::raf::Application::onRun(void)" (?onRun@Application@raf@yake@@MAE_NXZ) testapp.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall yake::raf::Application::onShutdown(void)" (?onShutdown@Application@raf@yake@@MAE_NXZ) testapp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall yake::raf::RtMainState::~RtMainState(void)" (__imp_??1RtMainState@raf@yake@@UAE@XZ) referenced in function __unwindfunclet$??0TheMainState@@QAE@AAVApplication@raf@yake@@@Z$0 testapp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall yake::raf::RtMainState::enableInstantQuitByKey(enum yake::input::KeyCode)" (__imp_?enableInstantQuitByKey@RtMainState@raf@yake@@QAEXW4KeyCode@input@3@@Z) referenced in function "public: __thiscall TheMainState::TheMainState(class yake::raf::Application &)" (??0TheMainState@@QAE@AAVApplication@raf@yake@@@Z) testapp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall yake::raf::RtMainState::RtMainState(class yake::raf::Application &)" (__imp_??0RtMainState@raf@yake@@QAE@AAVApplication@12@@Z) referenced in function "public: __thiscall TheMainState::TheMainState(class yake::raf::Application &)" (??0TheMainState@@QAE@AAVApplication@raf@yake@@@Z) testapp.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall yake::raf::RtMainState::onEnter(void)" (?onEnter@RtMainState@raf@yake@@MAEXXZ) testapp.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall yake::raf::RtMainState::onStep(void)" (?onStep@RtMainState@raf@yake@@MAEXXZ) testapp.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall yake::raf::RtMainState::onExit(void)" (?onExit@RtMainState@raf@yake@@MAEXXZ) testapp.obj : error LNK2001: unresolved external symbol "protected: virtual class yake::graphics::ICamera * __thiscall yake::raf::RtMainState::onGetDefaultCamera(void)" (?onGetDefaultCamera@RtMainState@raf@yake@@MAEPAVICamera@graphics@3@XZ) testapp.obj : error LNK2001: unresolved external symbol "protected: virtual class yake::graphics::ICamera * __thiscall yake::raf::RtMainState::onCreateDefaultCamera(void)" (?onCreateDefaultCamera@RtMainState@raf@yake@@MAEPAVICamera@graphics@3@XZ) testapp.obj : error LNK2001: unresolved external symbol "protected: virtual class yake::graphics::IViewport * __thiscall yake::raf::RtMainState::onGetDefaultViewport(void)" (?onGetDefaultViewport@RtMainState@raf@yake@@MAEPAVIViewport@graphics@3@XZ) testapp.obj : error LNK2001: unresolved external symbol "protected: virtual class yake::graphics::IViewport * __thiscall yake::raf::RtMainState::onCreateDefaultViewport(void)" (?onCreateDefaultViewport@RtMainState@raf@yake@@MAEPAVIViewport@graphics@3@XZ) testapp.obj : error LNK2001: unresolved external symbol "protected: virtual class yake::SharedPtr<class yake::graphics::IWorld> __thiscall yake::raf::RtMainState::onGetDefaultWorld(void)" (?onGetDefaultWorld@RtMainState@raf@yake@@MAE?AV?$SharedPtr@VIWorld@graphics@yake@@@3@XZ) testapp.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall yake::raf::RtMainState::onDestroyScene(void)" (?onDestroyScene@RtMainState@raf@yake@@MAEXXZ) testapp.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall yake::raf::RtMainState::onQuitRequested(void)" (?onQuitRequested@RtMainState@raf@yake@@MAE_NXZ) testapp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) protected: class yake::graphics::ICamera * __thiscall yake::raf::RtMainState::getDefaultCamera(void)" (__imp_?getDefaultCamera@RtMainState@raf@yake@@IAEPAVICamera@graphics@3@XZ) referenced in function "protected: virtual void __thiscall TheMainState::onCreateScene(void)" (?onCreateScene@TheMainState@@MAEXXZ) testapp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) protected: class yake::graphics::IWorld * __thiscall yake::raf::RtMainState::getGraphicalWorld(void)" (__imp_?getGraphicalWorld@RtMainState@raf@yake@@IAEPAVIWorld@graphics@3@XZ) referenced in function "protected: virtual void __thiscall TheMainState::onCreateScene(void)" (?onCreateScene@TheMainState@@MAEXXZ) testapp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall yake::raf::Application::~Application(void)" (__imp_??1Application@raf@yake@@UAE@XZ) referenced in function "public: virtual __thiscall yake::raf::ExampleApplication<struct yake::raf::ApplicationConfiguration>::~ExampleApplication<struct yake::raf::ApplicationConfiguration>(void)" (??1?$ExampleApplication@UApplicationConfiguration@raf@yake@@@raf@yake@@UAE@XZ) testapp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) protected: __thiscall yake::raf::Application::Application(void)" (__imp_??0Application@raf@yake@@IAE@XZ) referenced in function "public: __thiscall yake::raf::ExampleApplication<struct yake::raf::ApplicationConfiguration>::ExampleApplication<struct yake::raf::ApplicationConfiguration>(void)" (??0?$ExampleApplication@UApplicationConfiguration@raf@yake@@@raf@yake@@QAE@XZ) testapp.obj : error LNK2001: unresolved external symbol "protected: virtual class yake::raf::ApplicationState * __thiscall yake::raf::Application::createMainState(void)" (?createMainState@Application@raf@yake@@MAEPAVApplicationState@23@XZ) ../../common/bin/testapp.dll : fatal error LNK1120: 29 unresolved externals Build log was saved at "file://d:\game dev stuff\yake\yake\common\obj\audio\Debug\BuildLog.htm" testapp - 30 error(s), 0 warning(s) ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ========== Oh the agony... .. when i build my libraries shoudl I have built in release mode as well as debug is is that neither here nor there?
|
|
|
|
« Last Edit: June 24, 2008, 12:30:03 PM by ulao »
|
Logged
|
|
|
|
|
psyclonist
|
 |
« Reply #31 on: June 24, 2008, 01:52:59 PM » |
|
Please attach the .vcproj for your project to this thread. (When replying open up "Additional Options..." below the edit box and use "Attach" to attach a file.)
|
|
|
|
|
Logged
|
|
|
|
ulao
Newbie

Posts: 39
|
 |
« Reply #32 on: June 24, 2008, 02:07:14 PM » |
|
ok here ya go this is the most recent I did with a new project name. I still get the errors above. my directory structure is now D:\game dev stuff\yake\yake\ {[ all yake files live here ]}, I created my own project folder on that directory. Off Topic, is the  and the neoAxis bunny  related? Do they share the same father,  - Oh bad thought ..
|
|
|
|
« Last Edit: June 24, 2008, 02:59:53 PM by ulao »
|
Logged
|
|
|
|
|
psyclonist
|
 |
« Reply #33 on: June 24, 2008, 02:43:11 PM » |
|
ok here ya go this is the most recent I did with a new project name. I still get the errors above.
You've defined YAKE_BASE_EXPORTS. This should only ever be defined by the base.vcproj project itself. If YAKE_BASE_EXPORTS is defined then instead of dllimport a dllexport will be used which results in the unresolved externals you're observing. Do they share the same father,
I doubt it. The 'psyclonist' avatar image I got with permission of the original artist way before the birth of NeoAxis. It depicts Max from Sam & Max by Steve Purcell. And I've no relation to NeoAxis whatsoever. Still, I can see that the 'inverted colours' scheme looks similar. But I can't read the mind(s) of the NeoAxis author(s). 
|
|
|
|
« Last Edit: June 24, 2008, 02:45:41 PM by psyclonist »
|
Logged
|
|
|
|
ulao
Newbie

Posts: 39
|
 |
« Reply #34 on: June 24, 2008, 02:54:02 PM » |
|
I doubt it. The 'psyclonist' avatar image I got with permission of the original artist way before the birth of NeoAxis. It depicts Max from Sam & Max by Steve Purcell. And I've no relation to NeoAxis whatsoever. Still, I can see that the 'inverted colours' scheme looks similar. But I can't read the mind(s) of the NeoAxis author(s). - haha ok.... Well actually the in game bunny is white. You've defined YAKE_BASE_EXPORTS. This should only ever be defined by the base.vcproj project itself. - rememebr i copied from samples.. I have no idea what setting to use, there is no documentation to even tell me what type of project to use. So I removed that line and did a clean , rebuild , with the same results. You are referring to the preprocessor definistion.
|
|
|
|
« Last Edit: June 24, 2008, 03:01:18 PM by ulao »
|
Logged
|
|
|
|
|
psyclonist
|
 |
« Reply #35 on: June 24, 2008, 03:00:13 PM » |
|
rememebr i copied from samples.. I have no idea what setting to use, there is no documentation to even tell me what type of project to use.
- In VC++ create an empty C++ program, make sure that you use the multi-threaded DLL target. - Include yake headers - Link to yake libraries That's pretty much it.  So I removed that line and did a clean , rebuild , with the same results. You are referring to the preprocessor definistion.
Yes, you've to remove this define from the preprocessor definition list of your <name>.vcproj. If you've copied that from a sample, please tell me which one because it's definitely wrong.
|
|
|
|
« Last Edit: June 24, 2008, 03:11:28 PM by psyclonist »
|
Logged
|
|
|
|
ulao
Newbie

Posts: 39
|
 |
« Reply #36 on: June 24, 2008, 03:02:54 PM » |
|
Ok let me try a new project. If you've copied that from a sample, please tell me which one because it's definitely wrong. From the samples the build.cmd made. - In VC++ create an empty C++ program, (32 console app, blank project ?) make sure that you use the multi-threaded DLL target. - Is ( multi-threaded debug DLL) ok .I dont see any target option. - Include yake headers - Link to yake libraries
|
|
|
|
« Last Edit: June 24, 2008, 03:28:52 PM by ulao »
|
Logged
|
|
|
|
ulao
Newbie

Posts: 39
|
 |
« Reply #37 on: June 24, 2008, 03:57:04 PM » |
|
Ok this is interesting I fi choose multi-thread MDd I get all the external errors. If i choose multi-thread MTd I get "LINK : fatal error LNK1104: cannot open file 'libboost_thread-vc80-mt-sgd-1_33_1.lib'" ?
I dont have a 'libboost_thread-vc80-mt-sgd-1_33_1.lib I have a 'libboost_thread-vc80-mt-gd-1_33_1.lib
|
|
|
|
|
Logged
|
|
|
|
|
psyclonist
|
 |
« Reply #38 on: June 24, 2008, 04:10:08 PM » |
|
Ok this is interesting I fi choose multi-thread MDd I get all the external errors. If i choose multi-thread MTd I get "LINK : fatal error LNK1104: cannot open file 'libboost_thread-vc80-mt-sgd-1_33_1.lib'" ?
I dont have a 'libboost_thread-vc80-mt-sgd-1_33_1.lib I have a 'libboost_thread-vc80-mt-gd-1_33_1.lib
This is as expected. You *have* to choose the "multi-threaded DLL" variant as all dependencies and Yake itself is build with this option.
|
|
|
|
|
Logged
|
|
|
|
ulao
Newbie

Posts: 39
|
 |
« Reply #39 on: June 24, 2008, 04:17:56 PM » |
|
This is as expected. You *have* to choose the "multi-threaded DLL" variant as all dependencies and Yake itself is build with this option. - That fine with me, but "multi-threaded DLL" gives me the externals problem, just as I get with the debug? Does anything need to be in for "additional dependencies". I have the lib folders in for additional library directories, but nothing for additional dependencies. attached latest vcproj file. here is my confi.h if that helps. // This file is auto-generated. Do not modify manually.
#ifndef YAKE_CONFIG_H #define YAKE_CONFIG_H
#define YAKE_DEBUG_DLL_SUFFIX "_d" #define YAKE_LIBFILE_PREFIX "yake_" #define YAKE_LUA_BINDINGS 1 #define YAKE_ENABLE_LUA_BASE 1 #define YAKE_ENABLE_LUA_MODEL 1 #define YAKE_ENABLE_LUA_TASK 1 #define YAKE_ENABLE_LUA_ENT 1 #define YAKE_ENABLE_LUA_PROPERTY 1 #define YAKE_ENABLE_LUA_GRAPHICS 1 #define YAKE_ENABLE_LUA_GRAPHICS_OGRE 1 #define YAKE_ENABLE_LUA_PHYSICS 1 #define YAKE_ENABLE_LUA_INPUT 1 #define YAKE_ENABLE_LUA_RAF 1 #define YAKE_ENABLE_LUA_RES 1
#endif This is out of date yes? -> http://www.yake.org/wiki/doku.php/quickstart:setting_up_an_application_on_pc_windows_with_vc_8_2005because i dont have any OgrePlugins
|
|
|
|
« Last Edit: June 25, 2008, 02:20:40 PM by ulao »
|
Logged
|
|
|
|
|
psyclonist
|
 |
« Reply #40 on: June 24, 2008, 07:04:33 PM » |
|
This is as expected. You *have* to choose the "multi-threaded DLL" variant as all dependencies and Yake itself is build with this option. - That fine with me, but "multi-threaded DLL" gives me the externals problem, just as I get with the debug? This is *not* what gives you the "unresolved externals". Remove YAKE_BASE_EXPORTS from your project's preprocessor definitions!
|
|
|
|
|
Logged
|
|
|
|
ulao
Newbie

Posts: 39
|
 |
« Reply #41 on: June 25, 2008, 12:23:56 AM » |
|
This is *not* what gives you the "unresolved externals". Remove YAKE_BASE_EXPORTS from your project's preprocessor definitions! - Why would you think I have not done that, I of course took you suggestion as I sated in post 34 ? Did I miss understand something? "So I removed that line and did a clean , rebuild , with the same results. " was a statement not a question. "You are referring to the preprocessor definition. " was meant to be a question (sorry for the confusion) Please I'm extremely interest in yake, I dont typically have issues with game engines this is just a unusual case. Post 39 is my current status. my preprocessor definitions is set to WIN32;_DEBUG;_CONSOLE runtime set to "multi-threaded DLL" just as you asked.
|
|
|
|
« Last Edit: June 25, 2008, 01:43:30 AM by ulao »
|
Logged
|
|
|
|
|
psyclonist
|
 |
« Reply #42 on: June 25, 2008, 01:59:39 PM » |
|
This is *not* what gives you the "unresolved externals". Remove YAKE_BASE_EXPORTS from your project's preprocessor definitions! - Why would you think I have not done that, I of course took you suggestion as I sated in post 34 ? Did I miss understand something? Just a misunderstanding, I think. Sorry if I sounded rude but I did not intend to. I'm not a native speaker but try to be as clear as possible, and friendly, of course.  my preprocessor definitions is set to WIN32;_DEBUG;_CONSOLE runtime set to "multi-threaded DLL" just as you asked.
For the 'Debug' build target the runtime should be set to the Debug variants, i.e. "multi-threaded Debug DLL". Still, the fact that you get unresolved externals for Yake's base lib (yake_base.lib in release mode, yake_base_d.lib in debug mode) is a strong indication that either your project's build settings are incorrect or that you failed to build Yake correctly on your machine. How big is your project (.vcproj + .h + .cpp) ? Is it just a plain C++ application with Yake? If yes and if like to, you could send it to me, e.g. via E-Mail, and I can have a look. Alternatively, we can also do a "remote support" session.
|
|
|
|
|
Logged
|
|
|
|
ulao
Newbie

Posts: 39
|
 |
« Reply #43 on: June 25, 2008, 02:20:22 PM » |
|
Just a misunderstanding, I think. Sorry if I sounded rude but I did not intend to. I'm not a native speaker but try to be as clear as possible, and friendly, of course. - thx for clearing the air on that one.. For the 'Debug' build target the runtime should be set to the Debug variants, i.e. "multi-threaded Debug DLL". - I tried that, it give me the same results. Still, the fact that you get unresolved externals for Yake's base lib (yake_base.lib in release mode, yake_base_d.lib in debug mode) is a strong indication that either your project's build settings are incorrect or that you failed to build Yake correctly on your machine. Yake correctly on your machine, has to be the reason. But its a no brainier right? Make confi.h, run the cmd with premake, build all? "remote support" session. is not an option at the moment, as i'm remote in the my box from work LOL.. ill zip up the files and email them to you. Oh and in case you wonder, I moved my release to lib/release debug to lib/debug.
|
|
|
|
« Last Edit: June 25, 2008, 09:00:58 PM by ulao »
|
Logged
|
|
|
|
ulao
Newbie

Posts: 39
|
 |
« Reply #44 on: July 03, 2008, 12:22:21 PM » |
|
Sent a couple PM's did you discover anything?
|
|
|
|
|
Logged
|
|
|
|
|