Forum > Texturing and 2D Art

[question]edit m2 with blender

(1/5) > >>

doresain:
i find this http://www.ridiculousx.net/Projects/M2Mod.aspx
it should convert m2 to m2i (editable with blender) and back but i can't  find a binary m2mod.exe and i can't compile it on linux
can someone give me a link with compiled m2mod.exe? i want try to edit bloodelf models and add horn and wings from felbloodelf model!
tnks

edit: sorry wrong place, i should post in 3d model section

schlumpf:
If you're on linux, it wont be possible to use the binary anyway.

schlumpf:
Also, this should compile fine on Linux. It does on OSX. I changed some parts due to MSVC++ specific code. Should be working though. Only did M2Lib4.

http://d.pr/O1md

doresain:
don't compile on linux
errors:

--- Code: ---makrov-x64:~/Scaricati/O1md.M2Lib4$ make
Scanning dependencies of target M2Lib
[ 16%] Building CXX object CMakeFiles/M2Lib.dir/M2Lib/CM2.cpp.o
In file included from /home/doresain/Scaricati/O1md.M2Lib4/M2Lib/CM2I.h:5:0,
                 from /home/doresain/Scaricati/O1md.M2Lib4/M2Lib/CM2.h:9,
                 from /home/doresain/Scaricati/O1md.M2Lib4/M2Lib/CM2.cpp:1:
/home/doresain/Scaricati/O1md.M2Lib4/M2Lib/M2Types.h: In function ‘bool M2Lib::CompareFloatsSimilar(Float32, Float32, Float32)’:
/home/doresain/Scaricati/O1md.M2Lib4/M2Lib/M2Types.h:17:22: error: ‘abs’ was not declared in this scope
/home/doresain/Scaricati/O1md.M2Lib4/M2Lib/CM2.cpp: In member function ‘M2Lib::EError M2Lib::CM2::ImportM2Intermediate(Char8*, bool, bool, bool, bool, Float32, Float32, Float32, Float32, Float32, Float32)’:
/home/doresain/Scaricati/O1md.M2Lib4/M2Lib/CM2.cpp:823:70: error: ‘memcpy’ was not declared in this scope
/home/doresain/Scaricati/O1md.M2Lib4/M2Lib/CM2.cpp:832:70: error: ‘memcpy’ was not declared in this scope
/home/doresain/Scaricati/O1md.M2Lib4/M2Lib/CM2.cpp:839:61: error: ‘memcpy’ was not declared in this scope
make[2]: *** [CMakeFiles/M2Lib.dir/M2Lib/CM2.cpp.o] Errore 1
make[1]: *** [CMakeFiles/M2Lib.dir/all] Errore 2
make: *** [all] Errore 2

--- End code ---

with a win32 binary it should work with Wine on linux

schlumpf:
In your distribution, abs and memcpy are in other header files than they should be. man abs and man memcpy to see which ones. Then add #include <...> for the files. Should be #include <cstring> and #include <cstdlib>.

Navigation

[0] Message Index

[#] Next page

Go to full version