error while building

Added by packpro over 4 years ago

Hi,

I have errors while building. (i checked "WITH_QT" in CMake)

Error 719 error LNK2019: unresolved external symbol "__declspec(dllimport) public: class stlpx_std::basic_string<char,class stlpx_std::char_traits<char>,class stlpx_std::allocator<char> > _thiscall QString::toStdString(void)const " (_imp_?toStdString@QString@QBE?AV?$basic_string@DV?$char_traits@D@stlpx_std@V?$allocator@D@2@stlpx_std@XZ) referenced in function "private: void _thiscall CTile_browser_dlg::on_actionAddTile_triggered(bool)" (?on_actionAddTile_triggered@CTile_browser_dlg@AAEX_N@Z) tile_browser_dlg.obj
Error 720 error LNK2001: unresolved external symbol "__declspec(dllimport) public: class stlpx_std::basic_string<char,class stlpx_std::char_traits<char>,class stlpx_std::allocator<char> > __thiscall QString::toStdString(void)const " (__imp_?toStdString@QString
@QBE?AV?$basic_string@DV?$char_traits@D@stlpx_std@V?$allocator@D@2@stlpx_std@XZ) tile_edit_dlg.obj
Error 721 fatal error LNK1120: 1 unresolved externals D:\work\r_game\code\build\bin\Debug\tile_edit_qt.exe
Error 1131 error LNK2019: unresolved external symbol "__declspec(dllimport) public: class stlpx_std::basic_string<char,class stlpx_std::char_traits<char>,class stlpx_std::allocator<char> > __thiscall QString::toStdString(void)const " (__imp_?toStdString@QString
@QBE?AV?$basic_string@DV?$char_traits@D@stlpx_std@V?$allocator@D@2@stlpx_std@XZ) referenced in function "private: void __thiscall CWords_dicDlg::on_findButton_clicked(void)" (?on_findButton_clicked@CWords_dicDlg@AAEXXZ) words_dicDlg.obj
Error 1133 fatal error LNK1120: 1 unresolved externals D:\work\r_game\code\build\bin\Debug\words_dic_qt.exe
_thiscall QString::toStdString(void)const " (_imp?toStdString@QString@QBE?AV?$basic_string@DV?$char_traits@D@stlpx_std@V?$allocator@D@2@stlpx_std@XZ) direction_widget.obj
Error 1631 error LNK2001: unresolved external symbol "__declspec(dllimport) public: class stlpx_std::basic_string<char,class stlpx_std::char_traits<char>,class stlpx_std::allocator<char> > _thiscall QString::toStdString(void)const " (_imp_?toStdString@QString@QBE?AV?$basic_string@DV?$char_traits@D@stlpx_std@V?$allocator@D@2@stlpx_std@XZ) main_window.obj
Error 1632 fatal error LNK1120: 1 unresolved externals D:\work\r_game\code\build\bin\Debug\object_viewer_qt.exe

Regard!


Replies (21)

RE: error while building - Added by kervala over 4 years ago

Did you check : WITH_STLPORT and did you use external_stlport.7z ?

RE: error while building - Added by packpro over 4 years ago

yes. i checked WITH_STLPORT, and you use external_stlport.7z.

RE: error while building - Added by kervala over 4 years ago

What version of Qt are you using ? Molator compiled Qt with STLport, if you didn't use a Qt version compiled with STLport, it won't work :(

RE: error while building - Added by packpro over 4 years ago

Hi,

i used QT 4.7.0 (installing "qt-win-opensource-4.7.0-vs2008.exe").

follow links broken.

Molator's Downloads¶
Description Platform Date Version Link Size
Qt 4.6.3 Stlport Lib Win x86 Stlport 2010-08-04 - https://docs.google.com/leaf?id=0B3LX3q7MsUEGMGJiYmI1OGUtY2YzNy00YzVlLTk1NjMtMDU0MmY3ZDVlOTZi 56Mb
Qt 4.7.0 Stlport Lib Win x86 Stlport 2010-10-26 - https://docs.google.com/leaf?id=0B3LX3q7MsUEGZmU1M2EzZWUtZjVlNy00ZDE5LWE3OTAtZjlkYzlmYzk0Mzkw 57Mb

Do you offer an another link?

RE: error while building - Added by kervala over 4 years ago

The last one should be ok :)

RE: error while building - Added by packpro over 4 years ago

Hi,
I have error of connection.

--------------------------------------------------------------------------------------
The connection was reset

The connection to the server was reset while the page was loading.

  • The site could be temporarily unavailable or too busy. Try again in a few
    moments.
  • If you are unable to load any pages, check your computer's network
    connection.
  • If your computer or network is protected by a firewall or proxy, make sure
    that Firefox is permitted to access the Web.
    ---------------------------------------------------------------------------------------

Do you attatch "Qt 4.7.0 Stlport Lib Win x86 Stlport" file ?
Regard!

RE: error while building - Added by molator over 4 years ago

I have just checked my links, it's working.

Access might be forbidden in your country, i will upload it somewhere else.

Here you go a temporary link:
http://demo.ovh.com/fr/a336fc31d7555c9d273e06e9bc945078/

RE: error while building - Added by packpro over 4 years ago

molator,

I downloaded "qt-stlport-win-4.7.0-vs2008.7z" in "http://demo.ovh.com/fr/a336fc31d7555c9d273e06e9bc945078/".

Thank you!

RE: error while building - Added by molator over 4 years ago

You're welcome.

My build doesn't include everything, just what is needed to build the qt tools and to debug.

If you want to build your own lib:
http://dev.ryzom.com/wiki/ryzom/QtLibStlportWindows

It takes hours on my crapy machine.

I haven't much feedback about my build, so don't hesitate.

RE: error while building - Added by shuawinn over 4 years ago

Once you have got the STLPort file, where do you put it? in the R:/external folder?

RE: error while building - Added by molator over 4 years ago

You will have to setup QT as written in the following wiki:
http://dev.ryzom.com/wiki/ryzom/ObjectViewerQTStlportWindows

RE: error while building - Added by shuawinn over 4 years ago

I have QT 4.7.2 is that going to be an issue with compatibility?

RE: error while building - Added by molator over 4 years ago

If you're building ryzom with stlport (external_stlport),
you will need QT stlport lib which is not provided by Nokia.

You can't build the tools with NeL stlport and QT stl.
You can build with NeL and QT stl or NeL and QT stlport.

You can find QT stlport lib here:
http://dev.ryzom.com/wiki/ryzom/WindowsBinaries

and external with stl (not stlport) here:
http://sourceforge.net/projects/ryzom/files/external.7z/download

stlport improves the client on windows.

RE: error while building - Added by shuawinn over 4 years ago

Alright, so I'm not the best linker in the world.
I've searched the entire forum for help and I've found several walkthrough's to get the source code to just build, and I've tried all of them and can't seem to get one of them running. I'm sure they work, since it looks like some people here are getting theirs to compile, but I've downloaded all the source code, I have VS2008 pro, I have the QT stl port, I have the external zip file, and I've even followed the windows7 (x86) walkthrough. I don't suppose I can get a current version of how to get the source code to just build in cmake that is more direct?

RE: error while building - Added by molator over 4 years ago

You can't use external with QT stlport.

You've got 2 choices:
- external_stlport and QT stlport,
- external and QT stl (provided by Nokia)

QT is only required for the tools.
Are you building the tools ?

RE: error while building - Added by shuawinn over 4 years ago

I only need the structure of the game server, so if the tools are part of getting that structure working, I would like to use the tools.

RE: error while building - Added by molator over 4 years ago

You will need the tools to create a new content.

You might need to copy some binarie from QT stl (Nokia) to QT stlport to build Object Viewer Qt.
I didn't include the languistic binaries last time i buit QT stlport.
Will add it in the next build.

You will find the missing binaries in the bin folder of the official QT lib.

You can join us on IRC:
#ryzom in irc.freenode.net

RE: error while building - Added by shuawinn over 4 years ago

By new content do you mean like creating items inside the Ryzom world?

RE: error while building - Added by molator over 4 years ago

You will need 3dsmax for 3d data too.

RE: error while building - Added by shuawinn over 4 years ago

How do I use IRC?

(1-21/21)