Chuanhsing / wowmodelviewer

Automatically exported from code.google.com/p/wowmodelviewer
1 stars 2 forks source link

Lates svn fails to compile on Kubuntu 10.10 64bit #147

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Checkout SVN code
2. Run cmake and make
3. Get this output:
/home/jj/Downloads/wowmodelview-0.5.09d/wowmodelviewer/src/model.cpp: In member 
function ‘void Model::initCommon(MPQFile&)’:
/home/jj/Downloads/wowmodelview-0.5.09d/wowmodelviewer/src/model.cpp:669: 
error: ambiguous overload for ‘operator=’ in ‘tex = "Hair.blp"’
/usr/include/wx-2.8/wx/string.h:676: note: candidates are: wxString& 
wxString::operator=(int) <near match>
/usr/include/wx-2.8/wx/string.h:956: note:                 wxString& 
wxString::operator=(wxChar) <near match>
/usr/include/wx-2.8/wx/string.h:970: note:                 wxString& 
wxString::operator=(const wxWCharBuffer&) <near match>
/usr/include/wx-2.8/wx/string.h:660: note:                 wxString& 
wxString::operator=(const wxString&) <near match>
/home/jj/Downloads/wowmodelview-0.5.09d/wowmodelviewer/src/model.cpp:671: 
error: ambiguous overload for ‘operator=’ in ‘tex = "Body.blp"’
/usr/include/wx-2.8/wx/string.h:676: note: candidates are: wxString& 
wxString::operator=(int) <near match>
/usr/include/wx-2.8/wx/string.h:956: note:                 wxString& 
wxString::operator=(wxChar) <near match>
/usr/include/wx-2.8/wx/string.h:970: note:                 wxString& 
wxString::operator=(const wxWCharBuffer&) <near match>
/usr/include/wx-2.8/wx/string.h:660: note:                 wxString& 
wxString::operator=(const wxString&) <near match>
/home/jj/Downloads/wowmodelview-0.5.09d/wowmodelviewer/src/model.cpp:673: 
error: ambiguous overload for ‘operator=’ in ‘tex = "Fur.blp"’
/usr/include/wx-2.8/wx/string.h:676: note: candidates are: wxString& 
wxString::operator=(int) <near match>
/usr/include/wx-2.8/wx/string.h:956: note:                 wxString& 
wxString::operator=(wxChar) <near match>
/usr/include/wx-2.8/wx/string.h:970: note:                 wxString& 
wxString::operator=(const wxWCharBuffer&) <near match>
/usr/include/wx-2.8/wx/string.h:660: note:                 wxString& 
wxString::operator=(const wxString&) <near match>
make[2]: *** [CMakeFiles/wowmodelviewer.dir/model.cpp.o] Error 1
make[1]: *** [CMakeFiles/wowmodelviewer.dir/all] Error 2
make: *** [all] Error 2

What is the expected output? What do you see instead?
Expected output is to see make finish without errors and creating binaries

What version of the product are you using? On what operating system?
I checked out the latest svn codebase on Ubuntu 10.10 64 bit

Please provide any additional information like screenshot and log.txt
below.

cmake version 2.8.2
gcc compiler suite version 4.4.5

Original issue reported on code.google.com by Jon.Jah...@gmail.com on 4 Dec 2010 at 4:57

GoogleCodeExporter commented 9 years ago
Okay, I just submitted a fix for this. Let me know if r503 works for you.

Original comment by sephirot...@gmail.com on 4 Dec 2010 at 10:03

GoogleCodeExporter commented 9 years ago
Not quite done yet. :) I've registered and tossed my privacy just 'cause I love 
what you guys are doing.... Anyway- r503, make clean, make

Linking CXX static library libstorm.a
[ 85%] Built target storm
[ 85%] Building CXX object CMakeFiles/wowmodelviewer.dir/modelexport_3ds.cpp.o
In file included from /home/doug/src/wowmodelviewer/src/modelexport_3ds.cpp:5:
/home/build/src/wowmodelviewer/src/modelexport_3ds.h:135: error: ‘aligned’ 
was not declared in this scope
/home/build/src/wowmodelviewer/src/modelexport_3ds.h:145: error: conflicting 
declaration ‘MAX3DS_FACE __attribute_wxT’
/home/build/src/wowmodelviewer/src/modelexport_3ds.h:135: error: 
‘__attribute_wxT’ has a previous declaration as ‘MAX3DS_CHUNK 
__attribute_wxT’
/home/build/src/wowmodelviewer/src/modelexport_3ds.h:145: error: ‘aligned’ 
was not declared in this scope
/home/build/src/wowmodelviewer/src/modelexport_3ds.h:164: error: conflicting 
declaration ‘MAX3DS_HEADER __attribute_wxT’
/home/build/src/wowmodelviewer/src/modelexport_3ds.h:135: error: 
‘__attribute_wxT’ has a previous declaration as ‘MAX3DS_CHUNK 
__attribute_wxT’
/home/build/src/wowmodelviewer/src/modelexport_3ds.h:164: error: ‘aligned’ 
was not declared in this scope
make[2]: *** [CMakeFiles/wowmodelviewer.dir/modelexport_3ds.cpp.o] Error 1
make[1]: *** [CMakeFiles/wowmodelviewer.dir/all] Error 2
make: *** [all] Error 2

Ubuntu 10.04 LTS, updated religiously.
I've had related build errors since 500, usually involving wx* though not in 
the same stage/file. Stormlib builds with a few warnings, but relatively 
cleanly, then...

Original comment by justd...@socal.rr.com on 5 Dec 2010 at 1:07

GoogleCodeExporter commented 9 years ago
Same issue here;

In file included from /home/jj/wowmodelviewer/src/modelexport_3ds.cpp:5:        

/home/jj/wowmodelviewer/src/modelexport_3ds.h:135: error: ‘aligned’ was not 
declared in this scope
/home/jj/wowmodelviewer/src/modelexport_3ds.h:145: error: conflicting 
declaration ‘MAX3DS_FACE __attribute_wxT’
/home/jj/wowmodelviewer/src/modelexport_3ds.h:135: error: ‘__attribute_wxT’ 
has a previous declaration as ‘MAX3DS_CHUNK __attribute_wxT’
/home/jj/wowmodelviewer/src/modelexport_3ds.h:145: error: ‘aligned’ was not 
declared in this scope
/home/jj/wowmodelviewer/src/modelexport_3ds.h:164: error: conflicting 
declaration ‘MAX3DS_HEADER __attribute_wxT’
/home/jj/wowmodelviewer/src/modelexport_3ds.h:135: error: ‘__attribute_wxT’ 
has a previous declaration as ‘MAX3DS_CHUNK __attribute_wxT’
/home/jj/wowmodelviewer/src/modelexport_3ds.h:164: error: ‘aligned’ was not 
declared in this scope
make[2]: *** [CMakeFiles/wowmodelviewer.dir/modelexport_3ds.cpp.o] Error 1
make[1]: *** [CMakeFiles/wowmodelviewer.dir/all] Error 2
make: *** [all] Error 2

Original comment by Jon.Jah...@gmail.com on 5 Dec 2010 at 8:36

GoogleCodeExporter commented 9 years ago
After some tinkering I managed to get it to compile. The changes I made were 
altering line 126 in modelexport_3ds.h from
#define ALIGN_2_E __attribute_wxT((aligned(2)))
to
#define ALIGN_2_E __attribute__((aligned(2)))
and changing line 37 in mpq_stormlib.cpp from
SFileOpenPatchArchive(mpq_a, mpqArchives[j].fn_str(), locales[langID], 0);
to
SFileOpenPatchArchive(mpq_a, mpqArchives[j].fn_str(), locales[langID].fn_str(), 
0);

When running it everything works fine until it should show the main window, 
when it crashes. Not sure if this is the right place to post it, but I figured 
it might be related. Here's the error:

The program 'wowmodelviewer' received an X Window System error.
This probably reflects a bug in the program.
The error was 'GLXBadDrawable'.
  (Details: serial 21121 error_code 149 request_code 136 minor_code 11)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

It happens on line 208 in app.cpp, when the frame is shown.

Original comment by viktor@palmkvist.com on 5 Jan 2011 at 12:21

GoogleCodeExporter commented 9 years ago
committed, thanks

Original comment by chuanhsing on 6 Jan 2011 at 2:08

GoogleCodeExporter commented 9 years ago

Original comment by chuanhsing on 30 Mar 2011 at 1:09