kytulendu / wowmodelviewer

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

linux compilations issues #250

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello, thank to port to linux.

in make phase i get :

[ 85%] Building CXX object CMakeFiles/wowmodelviewer.dir/modelviewer.cpp.o
In file included from /wowmodelviewer/src/modelviewer.cpp:15:0:
/wowmodelviewer/src/app.h:192:0: warning: ignoring #pragma comment 
/wowmodelviewer/src/app.h:193:0: warning: ignoring #pragma comment 
/wowmodelviewer/src/app.h:194:0: warning: ignoring #pragma comment 
/wowmodelviewer/src/app.h:195:0: warning: ignoring #pragma comment 
/wowmodelviewer/src/app.h:196:0: warning: ignoring #pragma comment 
/wowmodelviewer/src/app.h:197:0: warning: ignoring #pragma comment 
In file included from /wowmodelviewer/src/modelviewer.cpp:15:0:
/wowmodelviewer/src/app.h:223:0: warning: ignoring #pragma comment 
In file included from /wowmodelviewer/src/app.h:228:0,
                 from /wowmodelviewer/src/modelviewer.cpp:15:
/wowmodelviewer/src/../bin_support/Icons/wmv.xpm:11165:2: warning: trigraph ??! 
ignored, use -trigraphs to enable
In file included from /wowmodelviewer/src/app.h:228:0,
                 from /wowmodelviewer/src/modelviewer.cpp:15:
/wowmodelviewer/src/../bin_support/Icons/wmv.xpm:22287:578: warning: trigraph 
??! ignored, use -trigraphs to enable
In file included from /wowmodelviewer/src/modelviewer.cpp:15:0:
/wowmodelviewer/src/app.h:222:57: note: #pragma message:      Adding library: 
cximagecrt.lib
/wowmodelviewer/src/modelviewer.cpp: In member function ‘void 
ModelViewer::InitMenu()’:
/wowmodelviewer/src/modelviewer.cpp:327:12: warning: comparison between signed 
and unsigned integer expressions
/wowmodelviewer/src/modelviewer.cpp: In member function ‘void 
ModelViewer::InitDatabase()’:
/wowmodelviewer/src/modelviewer.cpp:626:81: error: cannot pass objects of 
non-trivially-copyable type ‘class wxString’ through ‘...’
/wowmodelviewer/src/modelviewer.cpp: In member function ‘void 
ModelViewer::OnLightMenu(wxCommandEvent&)’:
/wowmodelviewer/src/modelviewer.cpp:1692:24: warning: comparison between signed 
and unsigned integer expressions
/wowmodelviewer/src/modelviewer.cpp:1721:24: warning: comparison between signed 
and unsigned integer expressions
/wowmodelviewer/src/modelviewer.cpp: In member function ‘void 
ModelViewer::ModelInfo()’:
/wowmodelviewer/src/modelviewer.cpp:2936:37: warning: comparison between signed 
and unsigned integer expressions
/wowmodelviewer/src/../bin_support/Icons/wmv.xpm: At global scope:
/wowmodelviewer/src/../bin_support/Icons/wmv.xpm:2:29: warning: ‘wmv_xpm’ 
defined but not used
make[2]: *** [CMakeFiles/wowmodelviewer.dir/modelviewer.cpp.o] Erreur 1
make[1]: *** [CMakeFiles/wowmodelviewer.dir/all] Erreur 2
make: *** [all] Erreur 2

the error was in /wowmodelviewer/src/modelviewer.cpp:626:81: error: cannot pass 
objects of non-trivially-copyable type ‘class wxString’ through ‘...’

i have comment the line to bypass the error.

the programme run, it s download french local file.
lot of button are miss placed.
never abble to see 3D model wowmodelviewer crash.

let me know if i can help by some testing.

Original issue reported on code.google.com by mmaur...@gmail.com on 13 Oct 2011 at 3:39

GoogleCodeExporter commented 9 years ago
Thanks for this compilation testing, I have in my to put WMV in a real portable 
way (at least between linux and windows, because having a MacOS environment is 
a quite bit more complicated - and expensive :P)
I think (and I already said it a few month ago) we have to leave visual, and 
port code to cmake / gcc / etc. 
I will spend a few time trying to successfully compile v0.7.0.x on both windows 
and linux, and writing some guidelines to use this in wiki.

Original comment by jeromn...@gmail.com on 13 Oct 2011 at 7:09

GoogleCodeExporter commented 9 years ago
I had fixed the compile error and only tested on Win and MacOS.

Original comment by chuanhsing on 14 Oct 2011 at 9:02

GoogleCodeExporter commented 9 years ago
for modelviewer.cpp 626: wxLogMessage(wxT("Trying to open %s file (for updating 
locale files)"),filename.c_str());

under linux nothing are displayed and the call to interfaceManager.Update(); 
crash the app.

I have try to debug , i not arrive, but i think for linux the video.Init() 
never used and never call. May be for that.

Original comment by mmaur...@gmail.com on 14 Oct 2011 at 3:12

GoogleCodeExporter commented 9 years ago
I am currently working in the way to have a fully portable WMV version. 
Compatibility is planed step by step, and can be followed / commented here :
- switch to cmake / mingw under windows : 
http://apoklipse.org:8080/browse/WMV-91
- allow compilation (and same functionnalities as windows)under linux : 
http://apoklipse.org:8080/browse/WMV-87
- allow compilation (and same functionnalities as windows) under Mac OS : 
v0.7.2.0 (no dedicated JIRA issue for the moment)

You can follow roadmap here :
http://apoklipse.org:8080/browse/WMV?selectedTab=com.atlassian.jira.plugin.syste
m.project%3Aroadmap-panel

Close this issue to "won't fix" here, feel free to comment / add issues on JIRA 
about code portability

Original comment by jeromn...@gmail.com on 22 Nov 2011 at 11:22