Grit with linux

Post Reply
melchior
Posts: 2
Joined: Sat Oct 24, 2009 10:27 pm

Grit with linux

Post by melchior » Sat Oct 24, 2009 10:30 pm

I downloaded grit 0.83. Is it supposed to work in linux? Wine throws an error, and compiling it using make doesn't work either...

WinterMute
Site Admin
Posts: 2003
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Grit with linux

Post by WinterMute » Mon Oct 26, 2009 1:59 am

grit is supplied with the devkitARM binaries in windows, osx & linux flavours, it builds quite easily on all platforms. What's the issue you're having?
Help keep devkitPro toolchains free, Donate today

Personal Blog

melchior
Posts: 2
Joined: Sat Oct 24, 2009 10:27 pm

Re: Grit with linux

Post by melchior » Mon Oct 26, 2009 8:24 pm

Argh, stupid. I tried typing grit in the terminal while in my home directory, and wondered why it didn't work...
I don't know why I thought that should do anything :S

Still, compiling from make doesn't work. Everything is fine until this stage:

Code: Select all

ar rcs libgrit.a build/cprs.o build/cprs_huff.o build/cprs_lz.o build/cprs_rle.o build/grit_core.o build/grit_misc.o build/grit_prep.o build/grit_shared.o build/grit_xp.o build/logger.o build/pathfun.o
g++ -MMD -MP -MF build/grit_main.d -g -O3 -Icldib -Ilibgit -DGRIT_VERSION=\"0.8.1\" -DGRIT_BUILD=\"20080512\"  -Icldib  -Ilibgrit  -Iextlib -c srcgrit/grit_main.cpp -o build/grit_main.o
srcgrit/grit_main.cpp: In function ‘int grit_parse_cprs(const char*, const strvec&)’:
srcgrit/grit_main.cpp:187: warning: deprecated conversion from string constant to ‘char*’
srcgrit/grit_main.cpp: In function ‘bool grit_parse_gfx(GritRec*, const strvec&)’:
srcgrit/grit_main.cpp:277: warning: deprecated conversion from string constant to ‘char*’
srcgrit/grit_main.cpp: In function ‘bool grit_parse_map(GritRec*, const strvec&)’:
srcgrit/grit_main.cpp:317: warning: deprecated conversion from string constant to ‘char*’
srcgrit/grit_main.cpp:334: warning: deprecated conversion from string constant to ‘char*’
srcgrit/grit_main.cpp: In function ‘bool grit_parse_file(GritRec*, const strvec&)’:
srcgrit/grit_main.cpp:358: warning: deprecated conversion from string constant to ‘char*’
srcgrit/grit_main.cpp:386: warning: deprecated conversion from string constant to ‘char*’
srcgrit/grit_main.cpp:390: warning: deprecated conversion from string constant to ‘char*’
srcgrit/grit_main.cpp:414: warning: deprecated conversion from string constant to ‘char*’
srcgrit/grit_main.cpp: In function ‘int grit_parse_log(GritRec*, const strvec&)’:
srcgrit/grit_main.cpp:449: warning: deprecated conversion from string constant to ‘char*’
srcgrit/grit_main.cpp: In function ‘bool grit_parse_shared(GritRec*, const strvec&)’:
srcgrit/grit_main.cpp:575: warning: deprecated conversion from string constant to ‘char*’
srcgrit/grit_main.cpp:576: warning: deprecated conversion from string constant to ‘char*’
srcgrit/grit_main.cpp: In function ‘void args_gather(strvec&, int, char**)’:
srcgrit/grit_main.cpp:793: error: no matching function for call to ‘std::vector<char*, std::allocator<char*> >::insert(char**, __gnu_cxx::__normal_iterator<char**, std::vector<char*, std::allocator<char*> > >, __gnu_cxx::__normal_iterator<char**, std::vector<char*, std::allocator<char*> > >)’
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../../include/c++/4.4.1/bits/vector.tcc:106: note: candidates are: __gnu_cxx::__normal_iterator<typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp, _Alloc> > std::vector<_Tp, _Alloc>::insert(__gnu_cxx::__normal_iterator<typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp, _Alloc> >, const _Tp&) [with _Tp = char*, _Alloc = std::allocator<char*>]
/usr/lib/gcc/i586-redhat-linux/4.4.1/../../../../include/c++/4.4.1/bits/stl_vector.h:850: note:                 void std::vector<_Tp, _Alloc>::insert(__gnu_cxx::__normal_iterator<typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp, _Alloc> >, size_t, const _Tp&) [with _Tp = char*, _Alloc = std::allocator<char*>]
make: *** [build/grit_main.o] Error 1

WinterMute
Site Admin
Posts: 2003
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Grit with linux

Post by WinterMute » Mon Oct 26, 2009 9:34 pm

Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests