ogldev icon indicating copy to clipboard operation
ogldev copied to clipboard

Not compiled the project with 38-46

Open hays0503 opened this issue 10 years ago • 0 comments

Сборка проектов с 38 по 46 завершается с ошибкой вот лог сборки

make[1]: вход в каталог «/home/hays/Загрузки/ogldev-master/tutorial38»
g++ `Magick++-config --ldflags` -o tutorial38 mesh.o camera.o technique.o skinning_technique.o                     
pipeline.o math_3d.o texture.o main.o glut_backend.o -lglut -lGL -lGLEW -lassimp -lglfx `Magick++-               config --libs` `freetype-config --libs`    
main.o: In function `Tutorial38::Init()':
main.cpp:(.text._ZN10Tutorial384InitEv[_ZN10Tutorial384InitEv]+0x1f2): undefined reference to     `GetCurrentTimeMillis()'
main.o: In function `Tutorial38::RenderSceneCB()':
main.cpp:    (.text._ZN10Tutorial3813RenderSceneCBEv[_ZN10Tutorial3813RenderSceneCBEv]+0x9d):     undefined reference to `GetCurrentTimeMillis()'
collect2: error: ld returned 1 exit status
Makefile:13: ошибка выполнения рецепта для цели «tutorial38»
make[1]: *** [tutorial38] Ошибка 1
make[1]: выход из каталога «/home/hays/Загрузки/ogldev-master/tutorial38»
make[1]: вход в каталог «/home/hays/Загрузки/ogldev-master/tutorial39»
g++ `Magick++-config --ldflags` -o tutorial39 mesh.o camera.o silhouette_technique.o         lighting_technique.o pipeline.o technique.o math_3d.o texture.o main.o glut_backend.o -lglut -lGL -    lGLEW -lassimp -lglfx `Magick++-config --libs` `freetype-config --libs`
main.o: In function `Tutorial39::Init()':
main.cpp:(.text._ZN10Tutorial394InitEv[_ZN10Tutorial394InitEv]+0x201): undefined reference to     `GetCurrentTimeMillis()'
collect2: error: ld returned 1 exit status
Makefile:13: ошибка выполнения рецепта для цели «tutorial39»
make[1]: *** [tutorial39] Ошибка 1
make[1]: выход из каталога «/home/hays/Загрузки/ogldev-master/tutorial39»
make[1]: вход в каталог «/home/hays/Загрузки/ogldev-master/tutorial40»
g++ `Magick++-config --ldflags` -o tutorial40 mesh.o camera.o technique.o lighting_technique.o     pipeline.o null_technique.o math_3d.o texture.o shadow_volume_technique.o main.o glut_backend.o -    lglut -lGL -lGLEW -lassimp -lglfx `Magick++-config --libs` `freetype-config --libs`
main.o: In function `Tutorial40::Init()':
main.cpp:(.text._ZN10Tutorial404InitEv[_ZN10Tutorial404InitEv]+0x231): undefined reference to     `GetCurrentTimeMillis()'
collect2: error: ld returned 1 exit status
Makefile:13: ошибка выполнения рецепта для цели «tutorial40»
make[1]: *** [tutorial40] Ошибка 1
make[1]: выход из каталога «/home/hays/Загрузки/ogldev-master/tutorial40»
make[1]: вход в каталог «/home/hays/Загрузки/ogldev-master/tutorial41»
g++ -c -Wall `Magick++-config --cppflags` `freetype-config --cflags` -I../Include tutorial41.cpp -o     tutorial41.o
tutorial41.cpp: In function ‘int main(int, char**)’:
tutorial41.cpp:259:12: warning: deleting object of polymorphic class type ‘Tutorial41’ which has non-    virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
delete pApp;
^
g++ -c -Wall `Magick++-config --cppflags` `freetype-config --cflags` -I../Include     motion_blur_technique.cpp -o motion_blur_technique.o
g++ `Magick++-config --ldflags` -o tutorial41 skinning_technique.o intermediate_buffer.o tutorial41.o     motion_blur_technique.o -lglut -lGL -lGLEW -lassimp -lglfx `Magick++-config --libs` `freetype-config --libs`
skinning_technique.o: In function `SkinningTechnique::SkinningTechnique()':
skinning_technique.cpp:(.text+0x14): undefined reference to `Technique::Technique()'
skinning_technique.o: In function `SkinningTechnique::Init()':
skinning_technique.cpp:(.text+0x52): undefined reference to `Technique::Init()'
skinning_technique.cpp:(.text+0x7c): undefined reference to `Technique::AddShader(unsigned int, char const*)'
skinning_technique.cpp:(.text+0xa6): undefined reference to `Technique::AddShader(unsigned int, char const*)'
skinning_technique.cpp:(.text+0xc6): undefined reference to `Technique::Finalize()'
skinning_technique.cpp:(.text+0xeb): undefined reference to `Technique::GetUniformLocation(char const*)'
skinning_technique.cpp:(.text+0x10b): undefined reference to `Technique::GetUniformLocation(char const*)'
skinning_technique.cpp:(.text+0x12b): undefined reference to `Technique::GetUniformLocation(char const*)'
skinning_technique.cpp:(.text+0x14b): undefined reference to `Technique::GetUniformLocation(char const*)'
skinning_technique.cpp:(.text+0x16b): undefined reference to `Technique::GetUniformLocation(char const*)'
skinning_technique.o:skinning_technique.cpp:(.text+0x18b): more undefined references to `Technique::GetUniformLocation(char const*)' follow
skinning_technique.o: In function `SkinningTechnique::SetDirectionalLight(DirectionalLight const&)':
skinning_technique.cpp:(.text+0xf86): undefined reference to `Vector3f::Normalize()'
skinning_technique.o: In function `SkinningTechnique::SetSpotLights(unsigned int, SpotLight const*)':
skinning_technique.cpp:(.text+0x164b): undefined reference to `Vector3f::Normalize()'
skinning_technique.o: In function `SkinningTechnique::~SkinningTechnique()':
skinning_technique.cpp:(.text._ZN17SkinningTechniqueD2Ev[_ZN17SkinningTechniqueD5Ev]+0x1f): undefined reference to `Technique::~Technique()'
skinning_technique.o:(.rodata._ZTI17SkinningTechnique[_ZTI17SkinningTechnique]+0x10): undefined reference to `typeinfo for Technique'
tutorial41.o: In function `main':
tutorial41.cpp:(.text+0x35): undefined reference to `GLUTBackendInit(int, char**, bool, bool)'
tutorial41.cpp:(.text+0x4e): undefined reference to `GLUTBackendCreateWindow(unsigned int, unsigned int, bool, char const*)'
tutorial41.o: In function `Tutorial41::Tutorial41()':
tutorial41.cpp:(.text._ZN10Tutorial41C2Ev[_ZN10Tutorial41C5Ev]+0x34): undefined reference to `OgldevApp::OgldevApp()'
tutorial41.cpp:(.text._ZN10Tutorial41C2Ev[_ZN10Tutorial41C5Ev]+0x5f): undefined reference to `SkinnedMesh::SkinnedMesh()'
tutorial41.cpp:(.text._ZN10Tutorial41C2Ev[_ZN10Tutorial41C5Ev]+0x71): undefined reference to `SkinnedMesh::SkinnedMesh()'
tutorial41.cpp:(.text._ZN10Tutorial41C2Ev[_ZN10Tutorial41C5Ev]+0x21c): undefined reference to `SkinnedMesh::~SkinnedMesh()'
tutorial41.cpp:(.text._ZN10Tutorial41C2Ev[_ZN10Tutorial41C5Ev]+0x231): undefined reference to `SkinnedMesh::~SkinnedMesh()'
tutorial41.o: In function `Tutorial41::~Tutorial41()':
tutorial41.cpp:(.text._ZN10Tutorial41D2Ev[_ZN10Tutorial41D5Ev]+0xfd): undefined reference to `SkinnedMesh::~SkinnedMesh()'
tutorial41.cpp:(.text._ZN10Tutorial41D2Ev[_ZN10Tutorial41D5Ev]+0x10d): undefined reference to `SkinnedMesh::~SkinnedMesh()'
tutorial41.cpp:(.text._ZN10Tutorial41D2Ev[_ZN10Tutorial41D5Ev]+0x152): undefined reference to `SkinnedMesh::~SkinnedMesh()'
tutorial41.o:tutorial41.cpp:(.text._ZN10Tutorial41D2Ev[_ZN10Tutorial41D5Ev]+0x167): more undefined references to `SkinnedMesh::~SkinnedMesh()' follow
tutorial41.o: In function `Tutorial41::Init()':
tutorial41.cpp:(.text._ZN10Tutorial414InitEv[_ZN10Tutorial414InitEv]+0xa6): undefined reference to `Camera::Camera(int, int, Vector3f const&, Vector3f const&, Vector3f const&)'
tutorial41.cpp:(.text._ZN10Tutorial414InitEv[_ZN10Tutorial414InitEv]+0x14c): undefined reference to `Technique::Enable()'
tutorial41.cpp:(.text._ZN10Tutorial414InitEv[_ZN10Tutorial414InitEv]+0x20b): undefined reference to `Technique::Enable()'
tutorial41.cpp:(.text._ZN10Tutorial414InitEv[_ZN10Tutorial414InitEv]+0x26d): undefined reference to `SkinnedMesh::LoadMesh(std::string const&)'
tutorial41.cpp:(.text._ZN10Tutorial414InitEv[_ZN10Tutorial414InitEv]+0x2c4): undefined reference to `SkinnedMesh::BoneTransform(float, std::vector<Matrix4f, std::allocator<Matrix4f> >&)'
tutorial41.cpp:(.text._ZN10Tutorial414InitEv[_ZN10Tutorial414InitEv]+0x2ff): undefined reference to `SkinnedMesh::LoadMesh(std::string const&)'
tutorial41.o: In function `Tutorial41::Run()':
tutorial41.cpp:(.text._ZN10Tutorial413RunEv[_ZN10Tutorial413RunEv]+0x14): undefined reference to `GLUTBackendRun(ICallbacks*)'
tutorial41.o: In function `Tutorial41::RenderSceneCB()':
tutorial41.cpp:(.text._ZN10Tutorial4113RenderSceneCBEv[_ZN10Tutorial4113RenderSceneCBEv]+0x18): undefined reference to `OgldevApp::CalcFPS()'
tutorial41.cpp:(.text._ZN10Tutorial4113RenderSceneCBEv[_ZN10Tutorial4113RenderSceneCBEv]+0x28): undefined reference to `Camera::OnRender()'
tutorial41.cpp:(.text._ZN10Tutorial4113RenderSceneCBEv[_ZN10Tutorial4113RenderSceneCBEv]+0x50): undefined reference to `OgldevApp::RenderFPS()'
tutorial41.o: In function `Tutorial41::RenderPass()':
tutorial41.cpp:(.text._ZN10Tutorial4110RenderPassEv[_ZN10Tutorial4110RenderPassEv]+0x46): undefined reference to `Technique::Enable()'
tutorial41.cpp:(.text._ZN10Tutorial4110RenderPassEv[_ZN10Tutorial4110RenderPassEv]+0x62): undefined reference to `OgldevApp::GetRunningTime()'
tutorial41.cpp:(.text._ZN10Tutorial4110RenderPassEv[_ZN10Tutorial4110RenderPassEv]+0x8b): undefined reference to `SkinnedMesh::BoneTransform(float, std::vector<Matrix4f, std::allocator<Matrix4f> >&)'
tutorial41.cpp:(.text._ZN10Tutorial4110RenderPassEv[_ZN10Tutorial4110RenderPassEv]+0x237): undefined reference to `Pipeline::GetWVPTrans()'
tutorial41.cpp:(.text._ZN10Tutorial4110RenderPassEv[_ZN10Tutorial4110RenderPassEv]+0x25f): undefined reference to `Pipeline::GetWorldTrans()'
tutorial41.cpp:(.text._ZN10Tutorial4110RenderPassEv[_ZN10Tutorial4110RenderPassEv]+0x285): undefined reference to `SkinnedMesh::Render()'
tutorial41.o: In function `Tutorial41::MotionBlurPass()':
tutorial41.cpp:(.text._ZN10Tutorial4114MotionBlurPassEv[_ZN10Tutorial4114MotionBlurPassEv]+0x34): undefined reference to `Technique::Enable()'
tutorial41.cpp:(.text._ZN10Tutorial4114MotionBlurPassEv[_ZN10Tutorial4114MotionBlurPassEv]+0x46): undefined reference to `SkinnedMesh::Render()'
tutorial41.o: In function `Tutorial41::KeyboardCB(OGLDEV_KEY)':
tutorial41.cpp:(.text._ZN10Tutorial4110KeyboardCBE10OGLDEV_KEY[_ZN10Tutorial4110KeyboardCBE10OGLDEV_KEY]+0x1d): undefined reference to `GLUTBackendLeaveMainLoop()'
tutorial41.cpp:(.text._ZN10Tutorial4110KeyboardCBE10OGLDEV_KEY[_ZN10Tutorial4110KeyboardCBE10OGLDEV_KEY]+0x34): undefined reference to `Camera::OnKeyboard(OGLDEV_KEY)'
tutorial41.o: In function `Tutorial41::PassiveMouseCB(int, int)':
tutorial41.cpp:(.text._ZN10Tutorial4114PassiveMouseCBEii[_ZN10Tutorial4114PassiveMouseCBEii]+0x26): undefined reference to `Camera::OnMouse(int, int)'
motion_blur_technique.o: In function `MotionBlurTechnique::MotionBlurTechnique()':
motion_blur_technique.cpp:(.text+0x14): undefined reference to `Technique::Technique()'
motion_blur_technique.o: In function `MotionBlurTechnique::Init()':
motion_blur_technique.cpp:(.text+0x3a): undefined reference to `Technique::Init()'
motion_blur_technique.cpp:(.text+0x61): undefined reference to `Technique::AddShader(unsigned int, char const*)'
motion_blur_technique.cpp:(.text+0x88): undefined reference to `Technique::AddShader(unsigned int, char const*)'
motion_blur_technique.cpp:(.text+0xa2): undefined reference to `Technique::Finalize()'
motion_blur_technique.cpp:(.text+0xc1): undefined reference to `Technique::GetUniformLocation(char const*)'
motion_blur_technique.cpp:(.text+0xdb): undefined reference to `Technique::GetUniformLocation(char const*)'
motion_blur_technique.o: In function `MotionBlurTechnique::~MotionBlurTechnique()':
motion_blur_technique.cpp:(.text._ZN19MotionBlurTechniqueD2Ev[_ZN19MotionBlurTechniqueD5Ev]+0x1f): undefined reference to `Technique::~Technique()'
motion_blur_technique.o:(.rodata._ZTI19MotionBlurTechnique[_ZTI19MotionBlurTechnique]+0x10): undefined reference to `typeinfo for Technique'
collect2: error: ld returned 1 exit status
Makefile:13: ошибка выполнения рецепта для цели «tutorial41»
make[1]: *** [tutorial41] Ошибка 1
make[1]: выход из каталога «/home/hays/Загрузки/ogldev-master/tutorial41»
make[1]: вход в каталог «/home/hays/Загрузки/ogldev-master/tutorial42»
g++ -c -Wall `Magick++-config --cppflags` `freetype-config --cflags` -I../Include tutorial42.cpp -o tutorial42.o
g++ `Magick++-config --ldflags` -o tutorial42 shadow_map_technique.o lighting_technique.o shadow_map_fbo.o tutorial42.o -lglut -lGL -lGLEW -lassimp -lglfx `Magick++-config --libs` `freetype-config --libs`
shadow_map_technique.o: In function `ShadowMapTechnique::ShadowMapTechnique()':
shadow_map_technique.cpp:(.text+0x14): undefined reference to `Technique::Technique()'
shadow_map_technique.o: In function `ShadowMapTechnique::Init()':
shadow_map_technique.cpp:(.text+0x3a): undefined reference to `Technique::Init()'
shadow_map_technique.cpp:(.text+0x61): undefined reference to `Technique::AddShader(unsigned int, char const*)'
shadow_map_technique.cpp:(.text+0x88): undefined reference to `Technique::AddShader(unsigned int, char const*)'
shadow_map_technique.cpp:(.text+0xa2): undefined reference to `Technique::Finalize()'
shadow_map_technique.cpp:(.text+0xc1): undefined reference to `Technique::GetUniformLocation(char const*)'
shadow_map_technique.cpp:(.text+0xdb): undefined reference to `Technique::GetUniformLocation(char const*)'
shadow_map_technique.o: In function `ShadowMapTechnique::~ShadowMapTechnique()':
shadow_map_technique.cpp:(.text._ZN18ShadowMapTechniqueD2Ev[_ZN18ShadowMapTechniqueD5Ev]+0x1f): undefined reference to `Technique::~Technique()'
shadow_map_technique.o:(.rodata._ZTI18ShadowMapTechnique[_ZTI18ShadowMapTechnique]+0x10): undefined reference to `typeinfo for Technique'
lighting_technique.o: In function `LightingTechnique::LightingTechnique()':
lighting_technique.cpp:(.text+0x14): undefined reference to `Technique::Technique()'
lighting_technique.o: In function `LightingTechnique::Init()':
lighting_technique.cpp:(.text+0x52): undefined reference to `Technique::Init()'
lighting_technique.cpp:(.text+0x7c): undefined reference to `Technique::AddShader(unsigned int, char const*)'
lighting_technique.cpp:(.text+0xa6): undefined reference to `Technique::AddShader(unsigned int, char const*)'
lighting_technique.cpp:(.text+0xc6): undefined reference to `Technique::Finalize()'
lighting_technique.cpp:(.text+0xeb): undefined reference to `Technique::GetUniformLocation(char const*)'
lighting_technique.cpp:(.text+0x10b): undefined reference to `Technique::GetUniformLocation(char const*)'
lighting_technique.cpp:(.text+0x12b): undefined reference to `Technique::GetUniformLocation(char const*)'
lighting_technique.cpp:(.text+0x14b): undefined reference to `Technique::GetUniformLocation(char const*)'
lighting_technique.cpp:(.text+0x16b): undefined reference to `Technique::GetUniformLocation(char const*)'
lighting_technique.o:lighting_technique.cpp:(.text+0x18b): more undefined references to `Technique::GetUniformLocation(char const*)' follow
lighting_technique.o: In function `LightingTechnique::SetDirectionalLight(DirectionalLight const&)':
lighting_technique.cpp:(.text+0xf7e): undefined reference to `Vector3f::Normalize()'
lighting_technique.o: In function `LightingTechnique::SetSpotLights(unsigned int, SpotLight const*)':
lighting_technique.cpp:(.text+0x164d): undefined reference to `Vector3f::Normalize()'
lighting_technique.o: In function `LightingTechnique::~LightingTechnique()':
lighting_technique.cpp:(.text._ZN17LightingTechniqueD2Ev[_ZN17LightingTechniqueD5Ev]+0x1f): undefined reference to `Technique::~Technique()'
lighting_technique.o:(.rodata._ZTI17LightingTechnique[_ZTI17LightingTechnique]+0x10): undefined reference to `typeinfo for Technique'
tutorial42.o: In function `main':
tutorial42.cpp:(.text+0x54): undefined reference to `GLUTBackendInit(int, char**, bool, bool)'
tutorial42.cpp:(.text+0x6d): undefined reference to `GLUTBackendCreateWindow(unsigned int, unsigned int, bool, char const*)'
tutorial42.o: In function `Tutorial42::Tutorial42()':
tutorial42.cpp:(.text._ZN10Tutorial42C2Ev[_ZN10Tutorial42C5Ev]+0x34): undefined reference to `OgldevApp::OgldevApp()'
tutorial42.cpp:(.text._ZN10Tutorial42C2Ev[_ZN10Tutorial42C5Ev]+0x5f): undefined reference to `BasicMesh::BasicMesh()'
tutorial42.cpp:(.text._ZN10Tutorial42C2Ev[_ZN10Tutorial42C5Ev]+0x71): undefined reference to `BasicMesh::BasicMesh()'
tutorial42.cpp:(.text._ZN10Tutorial42C2Ev[_ZN10Tutorial42C5Ev]+0x1fc): undefined reference to `BasicMesh::~BasicMesh()'
tutorial42.cpp:(.text._ZN10Tutorial42C2Ev[_ZN10Tutorial42C5Ev]+0x211): undefined reference to `BasicMesh::~BasicMesh()'
tutorial42.o: In function `Tutorial42::~Tutorial42()':
tutorial42.cpp:(.text._ZN10Tutorial42D2Ev[_ZN10Tutorial42D5Ev]+0xeb): undefined reference to `BasicMesh::~BasicMesh()'
tutorial42.cpp:(.text._ZN10Tutorial42D2Ev[_ZN10Tutorial42D5Ev]+0xfb): undefined reference to `BasicMesh::~BasicMesh()'
tutorial42.cpp:(.text._ZN10Tutorial42D2Ev[_ZN10Tutorial42D5Ev]+0x129): undefined reference to `BasicMesh::~BasicMesh()'
tutorial42.o:tutorial42.cpp:(.text._ZN10Tutorial42D2Ev[_ZN10Tutorial42D5Ev]+0x13e): more undefined references to `BasicMesh::~BasicMesh()' follow
tutorial42.o: In function `Tutorial42::Init()':
tutorial42.cpp:(.text._ZN10Tutorial424InitEv[_ZN10Tutorial424InitEv]+0xdb): undefined reference to `Camera::Camera(int, int, Vector3f const&, Vector3f const&, Vector3f const&)'
tutorial42.cpp:(.text._ZN10Tutorial424InitEv[_ZN10Tutorial424InitEv]+0x14a): undefined reference to `Technique::Enable()'
tutorial42.cpp:(.text._ZN10Tutorial424InitEv[_ZN10Tutorial424InitEv]+0x243): undefined reference to `BasicMesh::LoadMesh(std::string const&)'
tutorial42.cpp:(.text._ZN10Tutorial424InitEv[_ZN10Tutorial424InitEv]+0x2b0): undefined reference to `Texture::Texture(unsigned int, std::string const&)'
tutorial42.cpp:(.text._ZN10Tutorial424InitEv[_ZN10Tutorial424InitEv]+0x2e6): undefined reference to `Texture::Load()'
tutorial42.cpp:(.text._ZN10Tutorial424InitEv[_ZN10Tutorial424InitEv]+0x32c): undefined reference to `BasicMesh::LoadMesh(std::string const&)'
tutorial42.o: In function `Tutorial42::Run()':
tutorial42.cpp:(.text._ZN10Tutorial423RunEv[_ZN10Tutorial423RunEv]+0x14): undefined reference to `GLUTBackendRun(ICallbacks*)'
tutorial42.o: In function `Tutorial42::RenderSceneCB()':
tutorial42.cpp:(.text._ZN10Tutorial4213RenderSceneCBEv[_ZN10Tutorial4213RenderSceneCBEv]+0x18): undefined reference to `OgldevApp::CalcFPS()'
tutorial42.cpp:(.text._ZN10Tutorial4213RenderSceneCBEv[_ZN10Tutorial4213RenderSceneCBEv]+0x48): undefined reference to `Camera::OnRender()'
tutorial42.cpp:(.text._ZN10Tutorial4213RenderSceneCBEv[_ZN10Tutorial4213RenderSceneCBEv]+0x70): undefined reference to `OgldevApp::RenderFPS()'
tutorial42.o: In function `Tutorial42::ShadowMapPass()':
tutorial42.cpp:(.text._ZN10Tutorial4213ShadowMapPassEv[_ZN10Tutorial4213ShadowMapPassEv]+0x59): undefined reference to `Technique::Enable()'
tutorial42.cpp:(.text._ZN10Tutorial4213ShadowMapPassEv[_ZN10Tutorial4213ShadowMapPassEv]+0x15d): undefined reference to `Pipeline::GetWVPTrans()'
tutorial42.cpp:(.text._ZN10Tutorial4213ShadowMapPassEv[_ZN10Tutorial4213ShadowMapPassEv]+0x189): undefined reference to `BasicMesh::Render()'
tutorial42.o: In function `Tutorial42::RenderPass()':
tutorial42.cpp:(.text._ZN10Tutorial4210RenderPassEv[_ZN10Tutorial4210RenderPassEv]+0x47): undefined reference to `Technique::Enable()'
tutorial42.cpp:(.text._ZN10Tutorial4210RenderPassEv[_ZN10Tutorial4210RenderPassEv]+0x15b): undefined reference to `Pipeline::GetWVPTrans()'
tutorial42.cpp:(.text._ZN10Tutorial4210RenderPassEv[_ZN10Tutorial4210RenderPassEv]+0x183): undefined reference to `Pipeline::GetWorldTrans()'
tutorial42.cpp:(.text._ZN10Tutorial4210RenderPassEv[_ZN10Tutorial4210RenderPassEv]+0x1fc): undefined reference to `Pipeline::GetWVPTrans()'
tutorial42.cpp:(.text._ZN10Tutorial4210RenderPassEv[_ZN10Tutorial4210RenderPassEv]+0x25c): undefined reference to `Texture::Bind(unsigned int)'
tutorial42.cpp:(.text._ZN10Tutorial4210RenderPassEv[_ZN10Tutorial4210RenderPassEv]+0x271): undefined reference to `BasicMesh::Render()'
tutorial42.cpp:(.text._ZN10Tutorial4210RenderPassEv[_ZN10Tutorial4210RenderPassEv]+0x34c): undefined reference to `Pipeline::GetWVPTrans()'
tutorial42.cpp:(.text._ZN10Tutorial4210RenderPassEv[_ZN10Tutorial4210RenderPassEv]+0x374): undefined reference to `Pipeline::GetWorldTrans()'
tutorial42.cpp:(.text._ZN10Tutorial4210RenderPassEv[_ZN10Tutorial4210RenderPassEv]+0x3ed): undefined reference to `Pipeline::GetWVPTrans()'
tutorial42.cpp:(.text._ZN10Tutorial4210RenderPassEv[_ZN10Tutorial4210RenderPassEv]+0x419): undefined reference to `BasicMesh::Render()'
tutorial42.o: In function `Tutorial42::KeyboardCB(OGLDEV_KEY)':
tutorial42.cpp:(.text._ZN10Tutorial4210KeyboardCBE10OGLDEV_KEY[_ZN10Tutorial4210KeyboardCBE10OGLDEV_KEY]+0x1d): undefined reference to `OgldevBackendLeaveMainLoop()'
tutorial42.cpp:(.text._ZN10Tutorial4210KeyboardCBE10OGLDEV_KEY[_ZN10Tutorial4210KeyboardCBE10OGLDEV_KEY]+0x34): undefined reference to `Camera::OnKeyboard(OGLDEV_KEY)'
tutorial42.o: In function `Tutorial42::PassiveMouseCB(int, int)':
tutorial42.cpp:(.text._ZN10Tutorial4214PassiveMouseCBEii[_ZN10Tutorial4214PassiveMouseCBEii]+0x26): undefined reference to `Camera::OnMouse(int, int)'
collect2: error: ld returned 1 exit status
Makefile:13: ошибка выполнения рецепта для цели «tutorial42»
make[1]: *** [tutorial42] Ошибка 1
make[1]: выход из каталога «/home/hays/Загрузки/ogldev-master/tutorial42»
make[1]: вход в каталог «/home/hays/Загрузки/ogldev-master/tutorial43»
g++ -c -Wall `Magick++-config --cppflags` `freetype-config --cflags` -I../Include mesh.cpp -o mesh.o
g++ -c -Wall `Magick++-config --cppflags` `freetype-config --cflags` -I../Include shadow_map_technique.cpp -o shadow_map_technique.o
shadow_map_technique.cpp: In member function ‘virtual bool ShadowMapTechnique::Init()’:
shadow_map_technique.cpp:49:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (m_WVPLocation == INVALID_UNIFORM_LOCATION ||
^
shadow_map_technique.cpp:50:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
m_WorldMatrixLocation == INVALID_UNIFORM_LOCATION ||
^
shadow_map_technique.cpp:51:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
m_lightWorldPosLoc == INVALID_UNIFORM_LOCATION) {
^
g++ -c -Wall `Magick++-config --cppflags` `freetype-config --cflags` -I../Include camera.cpp -o camera.o
g++ -c -Wall `Magick++-config --cppflags` `freetype-config --cflags` -I../Include lighting_technique.cpp -o lighting_technique.o
g++ -c -Wall `Magick++-config --cppflags` `freetype-config --cflags` -I../Include pipeline.cpp -o pipeline.o
g++ -c -Wall `Magick++-config --cppflags` `freetype-config --cflags` -I../Include math_3d.cpp -o math_3d.o
g++ -c -Wall `Magick++-config --cppflags` `freetype-config --cflags` -I../Include shadow_map_fbo.cpp -o shadow_map_fbo.o
g++ -c -Wall `Magick++-config --cppflags` `freetype-config --cflags` -I../Include main.cpp -o main.o
main.cpp: In member function ‘void Tutorial43::ShadowMapPass()’:
main.cpp:206:22: warning: variable ‘ProjInfo’ set but not used [-Wunused-but-set-variable]
PersProjInfo ProjInfo;
^
g++ -c -Wall `Magick++-config --cppflags` `freetype-config --cflags` -I../Include glut_backend.cpp -o glut_backend.o
g++ `Magick++-config --ldflags` -o tutorial43 mesh.o shadow_map_technique.o camera.o lighting_technique.o pipeline.o math_3d.o shadow_map_fbo.o main.o glut_backend.o -lglut -lGL -lGLEW -lassimp -lglfx `Magick++-config --libs` `freetype-config --libs`
mesh.o: In function `Mesh::InitMaterials(aiScene const*, std::string const&)':
mesh.cpp:(.text+0xf64): undefined reference to `Texture::Texture(unsigned int, std::string const&)'
mesh.cpp:(.text+0xfc8): undefined reference to `Texture::Load()'
mesh.o: In function `Mesh::Render()':
mesh.cpp:(.text+0x12b0): undefined reference to `Texture::Bind(unsigned int)'
mesh.o: In function `Mesh::Render(unsigned int, Matrix4f const*, Matrix4f const*)':
mesh.cpp:(.text+0x14a1): undefined reference to `Texture::Bind(unsigned int)'
shadow_map_technique.o: In function `ShadowMapTechnique::ShadowMapTechnique()':
shadow_map_technique.cpp:(.text+0x14): undefined reference to `Technique::Technique()'
shadow_map_technique.o: In function `ShadowMapTechnique::Init()':
shadow_map_technique.cpp:(.text+0x3a): undefined reference to `Technique::Init()'
shadow_map_technique.cpp:(.text+0x61): undefined reference to `Technique::AddShader(unsigned int, char const*)'
shadow_map_technique.cpp:(.text+0x88): undefined reference to `Technique::AddShader(unsigned int, char const*)'
shadow_map_technique.cpp:(.text+0xa5): undefined reference to `Technique::Finalize()'
shadow_map_technique.cpp:(.text+0xc4): undefined reference to `Technique::GetUniformLocation(char const*)'
shadow_map_technique.cpp:(.text+0xde): undefined reference to `Technique::GetUniformLocation(char const*)'
shadow_map_technique.cpp:(.text+0xf8): undefined reference to `Technique::GetUniformLocation(char const*)'
shadow_map_technique.o: In function `ShadowMapTechnique::~ShadowMapTechnique()':
shadow_map_technique.cpp:(.text._ZN18ShadowMapTechniqueD2Ev[_ZN18ShadowMapTechniqueD5Ev]+0x1f): undefined reference to `Technique::~Technique()'
shadow_map_technique.o:(.rodata._ZTI18ShadowMapTechnique[_ZTI18ShadowMapTechnique]+0x10): undefined reference to `typeinfo for Technique'
lighting_technique.o: In function `LightingTechnique::LightingTechnique()':
lighting_technique.cpp:(.text+0x14): undefined reference to `Technique::Technique()'
lighting_technique.o: In function `LightingTechnique::Init()':
lighting_technique.cpp:(.text+0x3a): undefined reference to `Technique::Init()'
lighting_technique.cpp:(.text+0x61): undefined reference to `Technique::AddShader(unsigned int, char const*)'
lighting_technique.cpp:(.text+0x88): undefined reference to `Technique::AddShader(unsigned int, char const*)'
lighting_technique.cpp:(.text+0xa5): undefined reference to `Technique::Finalize()'
lighting_technique.cpp:(.text+0xc7): undefined reference to `Technique::GetUniformLocation(char const*)'
lighting_technique.cpp:(.text+0xe1): undefined reference to `Technique::GetUniformLocation(char const*)'
lighting_technique.cpp:(.text+0xfb): undefined reference to `Technique::GetUniformLocation(char const*)'
lighting_technique.cpp:(.text+0x115): undefined reference to `Technique::GetUniformLocation(char const*)'
lighting_technique.cpp:(.text+0x12f): undefined reference to `Technique::GetUniformLocation(char const*)'
lighting_technique.o:lighting_technique.cpp:(.text+0x149): more undefined references to `Technique::GetUniformLocation(char const*)' follow
lighting_technique.o: In function `LightingTechnique::~LightingTechnique()':
lighting_technique.cpp:(.text._ZN17LightingTechniqueD2Ev[_ZN17LightingTechniqueD5Ev]+0x1f): undefined reference to `Technique::~Technique()'
lighting_technique.o:(.rodata._ZTI17LightingTechnique[_ZTI17LightingTechnique]+0x10): undefined reference to `typeinfo for Technique'
main.o: In function `Tutorial43::Init()':
main.cpp:(.text._ZN10Tutorial434InitEv[_ZN10Tutorial434InitEv]+0x127): undefined reference to `Technique::Enable()'
main.cpp:(.text._ZN10Tutorial434InitEv[_ZN10Tutorial434InitEv]+0x1aa): undefined reference to `Technique::Enable()'
main.cpp:(.text._ZN10Tutorial434InitEv[_ZN10Tutorial434InitEv]+0x350): undefined reference to `Texture::Texture(unsigned int, std::string const&)'
main.cpp:(.text._ZN10Tutorial434InitEv[_ZN10Tutorial434InitEv]+0x386): undefined reference to `Texture::Load()'
main.o: In function `Tutorial43::ShadowMapPass()':
main.cpp:(.text._ZN10Tutorial4313ShadowMapPassEv[_ZN10Tutorial4313ShadowMapPassEv]+0x3a): undefined reference to `Technique::Enable()'
main.o: In function `Tutorial43::RenderPass()':
main.cpp:(.text._ZN10Tutorial4310RenderPassEv[_ZN10Tutorial4310RenderPassEv]+0x6c): undefined reference to `Technique::Enable()'
main.cpp:(.text._ZN10Tutorial4310RenderPassEv[_ZN10Tutorial4310RenderPassEv]+0x11f): undefined reference to `Texture::Bind(unsigned int)'
collect2: error: ld returned 1 exit status
Makefile:13: ошибка выполнения рецепта для цели «tutorial43»
make[1]: *** [tutorial43] Ошибка 1
make[1]: выход из каталога «/home/hays/Загрузки/ogldev-master/tutorial43»
make[1]: вход в каталог «/home/hays/Загрузки/ogldev-master/tutorial44»
g++ -c -Wall `Magick++-config --cppflags` `freetype-config --cflags` -I../Include mesh.cpp -o mesh.o
g++ -c -Wall `Magick++-config --cppflags` `freetype-config --cflags` -I../Include lighting_technique.cpp -o lighting_technique.o
g++ -c -Wall `Magick++-config --cppflags` `freetype-config --cflags` -I../Include tutorial44.cpp -o tutorial44.o
tutorial44.cpp: In function ‘int main(int, char**)’:
tutorial44.cpp:178:10: warning: deleting object of polymorphic class type ‘Tutorial44’ which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
delete pApp;
^
tutorial44.cpp:185:12: warning: deleting object of polymorphic class type ‘Tutorial44’ which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
delete pApp;
^
g++ `Magick++-config --ldflags` -o tutorial44 mesh.o lighting_technique.o tutorial44.o -lglut -lGL -lGLEW -lassimp -lglfx `Magick++-config --libs` `freetype-config --libs`
mesh.o: In function `Mesh::InitMaterials(aiScene const*, std::string const&)':
mesh.cpp:(.text+0xf64): undefined reference to `Texture::Texture(unsigned int, std::string const&)'
mesh.cpp:(.text+0xfc8): undefined reference to `Texture::Load()'
mesh.o: In function `Mesh::Render()':
mesh.cpp:(.text+0x12a6): undefined reference to `Texture::Bind(unsigned int)'
mesh.o: In function `Mesh::Render(unsigned int, Matrix4f const*, Matrix4f const*)':
mesh.cpp:(.text+0x1497): undefined reference to `Texture::Bind(unsigned int)'
lighting_technique.o: In function `LightingTechnique::LightingTechnique()':
lighting_technique.cpp:(.text+0x14): undefined reference to `Technique::Technique()'
lighting_technique.o: In function `LightingTechnique::Init()':
lighting_technique.cpp:(.text+0x52): undefined reference to `Technique::Init()'
lighting_technique.cpp:(.text+0x7c): undefined reference to `Technique::AddShader(unsigned int, char const*)'
lighting_technique.cpp:(.text+0xa6): undefined reference to `Technique::AddShader(unsigned int, char const*)'
lighting_technique.cpp:(.text+0xc6): undefined reference to `Technique::Finalize()'
lighting_technique.cpp:(.text+0xeb): undefined reference to `Technique::GetUniformLocation(char const*)'
lighting_technique.cpp:(.text+0x10b): undefined reference to `Technique::GetUniformLocation(char const*)'
lighting_technique.cpp:(.text+0x12b): undefined reference to `Technique::GetUniformLocation(char const*)'
lighting_technique.cpp:(.text+0x14b): undefined reference to `Technique::GetUniformLocation(char const*)'
lighting_technique.cpp:(.text+0x16b): undefined reference to `Technique::GetUniformLocation(char const*)'
lighting_technique.o:lighting_technique.cpp:(.text+0x18b): more undefined references to `Technique::GetUniformLocation(char const*)' follow
lighting_technique.o: In function `LightingTechnique::SetDirectionalLight(DirectionalLight const&)':
lighting_technique.cpp:(.text+0xe74): undefined reference to `Vector3f::Normalize()'
lighting_technique.o: In function `LightingTechnique::SetSpotLights(unsigned int, SpotLight const*)':
lighting_technique.cpp:(.text+0x1539): undefined reference to `Vector3f::Normalize()'
lighting_technique.o: In function `LightingTechnique::~LightingTechnique()':
lighting_technique.cpp:(.text._ZN17LightingTechniqueD2Ev[_ZN17LightingTechniqueD5Ev]+0x1f): undefined reference to `Technique::~Technique()'
lighting_technique.o:(.rodata._ZTI17LightingTechnique[_ZTI17LightingTechnique]+0x10): undefined reference to `typeinfo for Technique'
tutorial44.o: In function `main':
tutorial44.cpp:(.text+0x3b): undefined reference to `OgldevBackendInit(OGLDEV_BACKEND_TYPE, int, char**, bool, bool)'
tutorial44.cpp:(.text+0x54): undefined reference to `OgldevBackendCreateWindow(unsigned int, unsigned int, bool, char const*)'
tutorial44.cpp:(.text+0x60): undefined reference to `OgldevBackendTerminate()'
tutorial44.cpp:(.text+0xc0): undefined reference to `OgldevBackendTerminate()'
tutorial44.cpp:(.text+0xf1): undefined reference to `OgldevBackendTerminate()'
tutorial44.o: In function `Tutorial44::Tutorial44()':
tutorial44.cpp:(.text._ZN10Tutorial44C2Ev[_ZN10Tutorial44C5Ev]+0x34): undefined reference to `OgldevApp::OgldevApp()'
tutorial44.o: In function `Tutorial44::Init()':
tutorial44.cpp:(.text._ZN10Tutorial444InitEv[_ZN10Tutorial444InitEv]+0xaa): undefined reference to `Camera::Camera(int, int, Vector3f const&, Vector3f const&, Vector3f const&)'
tutorial44.cpp:(.text._ZN10Tutorial444InitEv[_ZN10Tutorial444InitEv]+0xe0): undefined reference to `OgldevError(char const*, unsigned int, char const*)'
tutorial44.cpp:(.text._ZN10Tutorial444InitEv[_ZN10Tutorial444InitEv]+0xfa): undefined reference to `Technique::Enable()'
tutorial44.o: In function `Tutorial44::Run()':
tutorial44.cpp:(.text._ZN10Tutorial443RunEv[_ZN10Tutorial443RunEv]+0x14): undefined reference to `OgldevBackendRun(ICallbacks*)'
tutorial44.o: In function `Tutorial44::RenderSceneCB()':
tutorial44.cpp:(.text._ZN10Tutorial4413RenderSceneCBEv[_ZN10Tutorial4413RenderSceneCBEv]+0x1b): undefined reference to `Camera::OnRender()'
tutorial44.cpp:(.text._ZN10Tutorial4413RenderSceneCBEv[_ZN10Tutorial4413RenderSceneCBEv]+0x81): undefined reference to `Pipeline::GetWVPTrans()'
tutorial44.cpp:(.text._ZN10Tutorial4413RenderSceneCBEv[_ZN10Tutorial4413RenderSceneCBEv]+0xa9): undefined reference to `Pipeline::GetWorldTrans()'
tutorial44.cpp:(.text._ZN10Tutorial4413RenderSceneCBEv[_ZN10Tutorial4413RenderSceneCBEv]+0xe1): undefined reference to `OgldevApp::CalcFPS()'
tutorial44.cpp:(.text._ZN10Tutorial4413RenderSceneCBEv[_ZN10Tutorial4413RenderSceneCBEv]+0xe6): undefined reference to `OgldevBackendSwapBuffers()'
tutorial44.o: In function `Tutorial44::KeyboardCB(OGLDEV_KEY)':
tutorial44.cpp:(.text._ZN10Tutorial4410KeyboardCBE10OGLDEV_KEY[_ZN10Tutorial4410KeyboardCBE10OGLDEV_KEY]+0x1d): undefined reference to `OgldevBackendLeaveMainLoop()'
tutorial44.cpp:(.text._ZN10Tutorial4410KeyboardCBE10OGLDEV_KEY[_ZN10Tutorial4410KeyboardCBE10OGLDEV_KEY]+0x37): undefined reference to `Camera::OnKeyboard(OGLDEV_KEY)'
tutorial44.o: In function `Tutorial44::PassiveMouseCB(int, int)':
tutorial44.cpp:(.text._ZN10Tutorial4414PassiveMouseCBEii[_ZN10Tutorial4414PassiveMouseCBEii]+0x29): undefined reference to `Camera::OnMouse(int, int)'
collect2: error: ld returned 1 exit status
Makefile:13: ошибка выполнения рецепта для цели «tutorial44»
make[1]: *** [tutorial44] Ошибка 1
make[1]: выход из каталога «/home/hays/Загрузки/ogldev-master/tutorial44»
make[1]: вход в каталог «/home/hays/Загрузки/ogldev-master/tutorial45»
g++ -c -Wall `Magick++-config --cppflags` `freetype-config --cflags` -I../Include mesh.cpp -o mesh.o
g++ -c -Wall `Magick++-config --cppflags` `freetype-config --cflags` -I../Include lighting_technique.cpp -o lighting_technique.o
g++ -c -Wall `Magick++-config --cppflags` `freetype-config --cflags` -I../Include ssao_technique.cpp -o ssao_technique.o
g++ -c -Wall `Magick++-config --cppflags` `freetype-config --cflags` -I../Include tutorial45.cpp -o tutorial45.o
tutorial45.cpp: In function ‘int main(int, char**)’:
tutorial45.cpp:294:10: warning: deleting object of polymorphic class type ‘Tutorial45’ which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
delete pApp;
^
tutorial45.cpp:301:12: warning: deleting object of polymorphic class type ‘Tutorial45’ which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
delete pApp;
^
g++ -c -Wall `Magick++-config --cppflags` `freetype-config --cflags` -I../Include blur_tech.cpp -o blur_tech.o
g++ -c -Wall `Magick++-config --cppflags` `freetype-config --cflags` -I../Include geom_pass_tech.cpp -o geom_pass_tech.o
g++ `Magick++-config --ldflags` -o tutorial45 mesh.o lighting_technique.o ssao_technique.o tutorial45.o blur_tech.o geom_pass_tech.o ../Common/*.o -lglut -lGL -lGLEW -lassimp -lglfx `Magick++-config --libs` `freetype-config --libs` -lglfw
g++: error: ../Common/*.o: Нет такого файла или каталога
Makefile:14: ошибка выполнения рецепта для цели «tutorial45»
make[1]: *** [tutorial45] Ошибка 1
make[1]: выход из каталога «/home/hays/Загрузки/ogldev-master/tutorial45»
make[1]: вход в каталог «/home/hays/Загрузки/ogldev-master/tutorial46»
g++ -c -Wall `Magick++-config --cppflags` `freetype-config --cflags` -I../Include mesh.cpp -o mesh.o
g++ -c -Wall `Magick++-config --cppflags` `freetype-config --cflags` -I../Include lighting_technique.cpp -o lighting_technique.o
g++ -c -Wall `Magick++-config --cppflags` `freetype-config --cflags` -I../Include ssao_technique.cpp -o ssao_technique.o
g++ -c -Wall `Magick++-config --cppflags` `freetype-config --cflags` -I../Include tutorial46.cpp -o tutorial46.o
tutorial46.cpp: In function ‘int main(int, char**)’:
tutorial46.cpp:297:10: warning: deleting object of polymorphic class type ‘Tutorial46’ which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
delete pApp;
^
tutorial46.cpp:304:12: warning: deleting object of polymorphic class type ‘Tutorial46’ which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
delete pApp;
^
g++ -c -Wall `Magick++-config --cppflags` `freetype-config --cflags` -I../Include blur_tech.cpp -o blur_tech.o
g++ -c -Wall `Magick++-config --cppflags` `freetype-config --cflags` -I../Include geom_pass_tech.cpp -o geom_pass_tech.o
g++ `Magick++-config --ldflags` -o tutorial46 mesh.o lighting_technique.o ssao_technique.o tutorial46.o blur_tech.o geom_pass_tech.o ../Common/*.o -lglut -lGL -lGLEW -lassimp -lglfx `Magick++-config --libs` `freetype-config --libs` -lglfw
g++: error: ../Common/*.o: Нет такого файла или каталога
Makefile:14: ошибка выполнения рецепта для цели «tutorial46»
make[1]: *** [tutorial46] Ошибка 1
make[1]: выход из каталога «/home/hays/Загрузки/ogldev-master/tutorial46»
Makefile:4: ошибка выполнения рецепта для цели «all»
make: *** [all] Ошибка 2
hays@hays-pc:~/Загрузки/ogldev-master$ 

hays0503 avatar Jul 10 '15 08:07 hays0503