Yake - Community Forum
September 09, 2010, 04:44:32 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to the YAKE Project Forums, the place for getting help, providing help and enjoying friendly discussions related to YAKE products.
 
   Home   Help Search Login Register  
Pages: 1 [2] 3 4   Go Down
  Print  
Author Topic: getting access violations.  (Read 14679 times)
ulao
Newbie
*
Posts: 39


View Profile
« Reply #15 on: June 21, 2008, 06:12:17 PM »

your files is broke..
Code:
#!/usr/bin/env python

# Author: David Goodger
# Contact: goodger@python.org
# Revision: $Revision: 3901 $
# Date: $Date: 2005-09-25 17:49:54 +0200 (Sun, 25 Sep 2005) $
# Copyright: This module has been placed in the public domain.

"""
A minimal front end to the Docutils Publisher, producing HTML.
"""

try:
    import locale
    locale.setlocale(locale.LC_ALL, '')
except:
    pass

from docutils.core import publish_cmdline, default_description


description = ('Generates (X)HTML documents from standalone reStructuredText '
               'sources.  ' + default_description)

publish_cmdline(writer_name='html', d


The one off the net files a t line 19

Code:
Traceback (most recent call last):
  File "D:\game dev stuff\yake\yake main\scripts\tools\rst2html.py", line 19, in
 <module>
    import docutils
ImportError: No module named docutils

Ok I download something called docutils and installed it. now when I run this downloaded rst2html.py file it sits at the command prompt. So what exactly is it attempting to do.
« Last Edit: June 21, 2008, 08:47:48 PM by ulao » Logged
cdkeito
Sr. Member
****
Posts: 381


View Profile WWW
« Reply #16 on: June 21, 2008, 10:28:45 PM »

download the one from the docutils on sourceforge, extract, run install.py and setup.py
the it'll run fine.

you can even use something like this in a .bat file:
Code:
cd ../../documentation/manual
G:\Yake\yake\yake\scripts\tools\rst2html.py --link-stylesheet --stylesheet yake-manual.css yake-manual.txt > yake-manual.html

i'm attaching a compiled manual, just made it. (rename it!)

for the api you need doxygen (there are frontends too)
Logged

ulao
Newbie
*
Posts: 39


View Profile
« Reply #17 on: June 22, 2008, 12:31:09 AM »

cdkeito you're a real sport man, thx for all your help. But let me retrace a few steps here..

one) you just game me a manual that I already have? That man is in the documentation folder I got when I downloaded yake.  Was all this python stuff to make the api and manual?

two) Are you telling me the solution to my error "C2061: syntax error : identifier 'YapMainState'." was in that manual? Because I sure dont see it.

three) let me recap here. I'm looking for a bare bones example that compiles, that is all. Ill take it from there and learn. All of the "good" examples I find include this yapp stuff that i'm told is depreciated. So if it is not too much trouble an example of hello world in yake 0.7.0 using raf would be wonderful.


cdkeito , thx again..




« Last Edit: June 22, 2008, 12:35:09 AM by ulao » Logged
cdkeito
Sr. Member
****
Posts: 381


View Profile WWW
« Reply #18 on: June 22, 2008, 10:22:55 AM »

1) all this python stuff is to build the manual, the one attached above. for the api you need doxygen

2) usually, for that type of error, you look into the api or the manual for a "where did it went wrong?" and specifics. Probably, you have read the 'YapMainState' in a tutorial on the wiki, sorry those tutos were wrote at yake 0.5, not all are updated to the new clean and refined yake' structure. Use those tutos only for a "how do you do this?"

3) i've already posted the base "bones" examples, minimalraf and the demoraf: these are your start point; if you want to add physics look into the physic sample for how to add it (very simple); if you want to add audio look into the audio sample for how to add it.
IF those doesn't suffice, just tell here what a "bone" example is for you, and i'll guide you to it.
Logged

ulao
Newbie
*
Posts: 39


View Profile
« Reply #19 on: June 22, 2008, 04:36:50 PM »

 Ok I think I see what you are referring to , there is a raf example in the yake files.

..\yake main\samples\raf\minimal

Seems to work, just getting

error LNK2019: unresolved external symbol

I'm guessing this is do to my project settings maybe a dll reference?
« Last Edit: June 22, 2008, 04:54:47 PM by ulao » Logged
cdkeito
Sr. Member
****
Posts: 381


View Profile WWW
« Reply #20 on: June 22, 2008, 06:25:35 PM »

a lib missing in the setup for the linker,
dlls are used at run time, libs at compile time...
Logged

ulao
Newbie
*
Posts: 39


View Profile
« Reply #21 on: June 22, 2008, 10:43:57 PM »

right, I had it in my head that yake was a dll based dev. Dont knw why.,..

any ways I'm looking in

../common/lib
../../dependencies/boost/stage/lib

also

../../common/lib/yake_base_d.lib


for libs. All the libs are there since the samples run. Any idea what lib I could be missing.

example of missing external.

"public: static float const yake::math::Math::HALF_PI"
« Last Edit: June 22, 2008, 11:07:31 PM by ulao » Logged
cdkeito
Sr. Member
****
Posts: 381


View Profile WWW
« Reply #22 on: June 22, 2008, 11:02:20 PM »

if i don't remember wrong it use yake_base.lib yake_raf.lib yake_scripting.lib (sorry i don't have it here...).
how to solve the problem? simple! search the api for that function and add it's lib.
try also to add the new yake_res.lib.
Logged

ulao
Newbie
*
Posts: 39


View Profile
« Reply #23 on: June 22, 2008, 11:21:46 PM »

Thx, all those files are in there including yake_res. I did search for the missing and they point to yake_base and yake_res. Since those files are added,  it must be a solution problem. This is kind of what I feared as there are upteen-million option in them.

update:

I was able to delete all flies in the samples solution put my yakedemo in there and I get the same errors. I guess its not the solution. The libs are in place..What did you mean by  the  "new" yake_res.lib. Is there a newer yake_res then the 7.0 download?


Dont know if this helps but ill list if for what its worth.

Code:
   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)
yakePCH.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)
yakePCH.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)
yakePCH.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)
yakePCH.obj : error LNK2019: unresolved external symbol "public: static class yake::math::Quaternion const yake::math::Quaternion::kIdentity" (?kIdentity@Quaternion@math@yake@@2V123@B) referenced in function "public: __thiscall yake::MakeStringVector::MakeStringVector(void)" (??0MakeStringVector@yake@@QAE@XZ)
testapp.obj : error LNK2001: unresolved external symbol "public: static class yake::math::Vector3 const yake::math::Vector3::kUnitY" (?kUnitY@Vector3@math@yake@@2V123@B)
yakePCH.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)
yakePCH.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)
yakePCH.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
« Last Edit: June 23, 2008, 02:38:34 AM by ulao » Logged
ulao
Newbie
*
Posts: 39


View Profile
« Reply #24 on: June 23, 2008, 12:34:59 PM »

cdkeito, I want to try to rebuild the lib's. Can I do that with one of the build cmd files?
Logged
psyclonist
Administrator
Hero Member
*****
Gender: Male
Posts: 2811



View Profile WWW
« Reply #25 on: June 23, 2008, 09:05:54 PM »

raf demos? There are more:

sampleRafMinimal
sampleRafDemo
sampleRafLuaDemo1
sampleRafLuaDemo2

But to get to your problem:
I wonder why yakePCH.obj is actually used... We've disabled PCH for quite a while.

Really, just linking to yake_base(_d).lib should be enough for getting the missing externals linked to. So I think it's the testapp's project setup.
Did you try a "clean all" + "rebuild all"?
Logged
cdkeito
Sr. Member
****
Posts: 381


View Profile WWW
« Reply #26 on: June 23, 2008, 11:03:24 PM »

question: where do you get your yake ? version ? and deps ?
Logged

ulao
Newbie
*
Posts: 39


View Profile
« Reply #27 on: June 24, 2008, 02:57:59 AM »

I believe from yake.org...

yake-0.7.0-win32.zip  file size 34,880 kb
yake-0.7.0-dependencies-vc80sp1.zip file size 20,538 kb

correct?


Quote
Really, just linking to yake_base(_d).lib should be enough for getting the missing externals linked to. So I think it's the testapp's project setup.
Did you try a "clean all" + "rebuild all"?
- Yes I try that after every lib change I make. Personally I feel its a project setting. I know this thread is long but you will find I started out with the samples and access violation. cdkeito did everything to help with no avail. So I decided to make a new project. Well problem is there is no sln example (not that I could find) So I just started coping setting from the samples. This is where I'm at. I include the dependencies and common folders.


Quote
Really, just linking to yake_base(_d).lib
- I'm assuming you're emphasizing the _d and its not actually yake_base(_d).lib  but rather yake_base_d.lib ?


I attached a screen shot, and also I just notice the dependencies\boost\libs folder is empty other then a property_tree folder, is that right?

FYI: "D:\game dev stuff\yake\yake main" is the folder I install yake in to.
« Last Edit: June 24, 2008, 03:23:45 AM by ulao » Logged
ulao
Newbie
*
Posts: 39


View Profile
« Reply #28 on: June 24, 2008, 03:30:32 AM »

going to re download just to be sure.


Ok that fixed the externals but one...

LINK : fatal error LNK1104: cannot open file 'libboost_thread-vc80-mt-gd-1_33_1.lib'

and I'm guessing its a boost thing no?
« Last Edit: June 24, 2008, 04:59:01 AM by ulao » Logged
psyclonist
Administrator
Hero Member
*****
Gender: Male
Posts: 2811



View Profile WWW
« Reply #29 on: June 24, 2008, 11:17:10 AM »

This means the dependencies were not properly extracted.
Please verify that the dependencies extracted from the ZIP match the folder structure in the Yake directory.
If you're unsure, extract into a seperate directory and copy them over to the Yake directory so that the directories match (and get merged).
Logged
Pages: 1 [2] 3 4   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.078 seconds with 18 queries.