Opensuse 12.1 compile problems

A fork of eePe. It's aim is to provide one tool that works with ALL firmwares!
Post Reply
sgofferj
Posts: 251
Joined: Tue Oct 09, 2012 5:11 pm
Country: -

Opensuse 12.1 compile problems

Post by sgofferj »

Hi,

I I just wanted to start tinkering with alternate firmwares but I don't get companion9x SVN/trunk compiled.

Problem:

Code: Select all

[100%] Building CXX object CMakeFiles/companion9x.dir/qrc_translations.cxx.o
Linking CXX executable companion9x
CMakeFiles/companion9x.dir/ersky9ximport.cpp.o: In function `Ersky9x::main_loop(void*)':
ersky9ximport.cpp:(.text+0x4bc): undefined reference to `Ersky9x::usbMassStorage()'
collect2: ld returned 1 exit status
make[2]: *** [companion9x] Error 1
make[1]: *** [CMakeFiles/companion9x.dir/all] Error 2
make: *** [all] Error 2
My system:
  • AMD Phenom2 X4, 8GB RAM
  • OpenSuSE 12.1
  • All dependencies should be installed (according to Wiki)
-Stefan

Romolo
9x Developer
Posts: 1109
Joined: Sat Dec 31, 2011 12:11 am
Country: -
Location: Massa (MS), Tuscany, Italy

Re: Opensuse 12.1 compile problems

Post by Romolo »

There is an issue in ersky9x which is fetched as external source

I gave the solution to Bertrand who has commit right also on ersky9x.
Will be fixed shortly.
User avatar
gohsthb
Posts: 1412
Joined: Wed Dec 28, 2011 2:32 pm
Country: -
Location: Naperville, IL

Re: Opensuse 12.1 compile problems

Post by gohsthb »

Does the same on my system. Ubuntu 12.04.
-Gohst
Romolo
9x Developer
Posts: 1109
Joined: Sat Dec 31, 2011 12:11 am
Country: -
Location: Massa (MS), Tuscany, Italy

Re: Opensuse 12.1 compile problems

Post by Romolo »

if you want to compile surround line 981 of ersky9x/ersky9x.cpp
with
#if !defined (SIMU)

#endif

here is the diff:
--- ersky9x.cpp (revision 120)
+++ ersky9x.cpp (working copy)
@@ -981,7 +981,9 @@
}
else
{
+#if !defined (SIMU)
usbMassStorage() ;
+#endif
}

#ifdef REVB
sgofferj
Posts: 251
Joined: Tue Oct 09, 2012 5:11 pm
Country: -

Re: Opensuse 12.1 compile problems

Post by sgofferj »

Works :).

sgofferj
Posts: 251
Joined: Tue Oct 09, 2012 5:11 pm
Country: -

Re: Opensuse 12.1 compile problems

Post by sgofferj »

And again broken... There was a notice box "Update available, check repo". I did svn up, tried to compile and

Code: Select all

[  1%] Generating companion9x_cs.qm
Updating '/usr/src/companion9x/src/companion9x_cs.qm'...
    Generated 1480 translation(s) (1475 finished and 5 unfinished)
    Ignored 9 untranslated source text(s)
[  1%] Generating radio.hxx, radio.cxx
[  2%] Generating er9x/stamp-er9x.h
1 out of 2 hunks FAILED -- saving rejects to file er9x/simpgmspace.cpp.rej
make[2]: *** [er9x/stamp-er9x.h] Error 1
make[1]: *** [CMakeFiles/companion9x.dir/all] Error 2
make: *** [all] Error 2
Deleted the dir, checked out full again, still same error...
Romolo
9x Developer
Posts: 1109
Joined: Sat Dec 31, 2011 12:11 am
Country: -
Location: Massa (MS), Tuscany, Italy

Re: Opensuse 12.1 compile problems

Post by Romolo »

Try to do a dos2unix on er9x.patch
sgofferj
Posts: 251
Joined: Tue Oct 09, 2012 5:11 pm
Country: -

Re: Opensuse 12.1 compile problems

Post by sgofferj »

Jeps, works :)
xnalpf
Posts: 12
Joined: Tue Sep 04, 2012 8:37 am
Country: -

Re: Opensuse 12.1 compile problems

Post by xnalpf »

I did the dos2unix and then got this error:

Code: Select all

In file included from /usr/src/companion9x/src/open9xv4import.cpp:41:0:                                                                                                                                   
/usr/src/companion9x/src/../open9x/menus.cpp: In function ‘bool Open9xV4::check(Open9xV4::uint8_t, Open9xV4::uint8_t, void (* const*)(Open9xV4::uint8_t), Open9xV4::uint8_t, Open9xV4::pm_uint8_t*, Open9xV4::uint8_t, Open9xV4::int8_t)’:
/usr/src/companion9x/src/../open9x/menus.cpp:367:51: error: no matching function for call to ‘min(Open9xV4::int8_t&, Open9xV4::uint8_t)’
/usr/src/companion9x/src/../open9x/menus.cpp:367:51: note: candidate is:
/usr/src/companion9x/src/../open9x/open9x.h:888:33: note: template<class t> t Open9xV4::min(t, t)
/usr/src/companion9x/src/../open9x/menus.cpp:488:51: error: no matching function for call to ‘min(Open9xV4::int8_t&, Open9xV4::uint8_t)’
/usr/src/companion9x/src/../open9x/menus.cpp:488:51: note: candidate is:
/usr/src/companion9x/src/../open9x/open9x.h:888:33: note: template<class t> t Open9xV4::min(t, t)
/usr/src/companion9x/src/../open9x/menus.cpp:499:51: error: no matching function for call to ‘min(Open9xV4::int8_t&, Open9xV4::uint8_t)’
/usr/src/companion9x/src/../open9x/menus.cpp:499:51: note: candidate is:
/usr/src/companion9x/src/../open9x/open9x.h:888:33: note: template<class t> t Open9xV4::min(t, t)
make[2]: *** [CMakeFiles/companion9x.dir/open9xv4import.cpp.o] Fehler 1
make[1]: *** [CMakeFiles/companion9x.dir/all] Fehler 2
make: *** [all] Fehler 2
Then I commented out the three calls to min(...) in open9x/menus.cpp and after that everything compiled well and works fine. I know the min() calls limit values to something valid so i might run into trouble - most propably when runing a tx simulation with open9x. But for reading and writing FW and setting up modells this is acceptable.
bertrand35
9x Developer
Posts: 2764
Joined: Fri Dec 30, 2011 11:11 pm
Country: -

Re: Opensuse 12.1 compile problems

Post by bertrand35 »

Please check with a fresh update, I did some more flash saving (on stock board) and fixed this error!
Bertrand.
xnalpf
Posts: 12
Joined: Tue Sep 04, 2012 8:37 am
Country: -

Re: Opensuse 12.1 compile problems

Post by xnalpf »

Excelent! Still need to do the dos2unix on the patch but then everything compiles fine. Thank you!
bertrand35
9x Developer
Posts: 2764
Joined: Fri Dec 30, 2011 11:11 pm
Country: -

Re: Opensuse 12.1 compile problems

Post by bertrand35 »

I should send the patch to Mike (or ask for commit rights as I have for ersky9x), it would avoid loosing time with this patch!
Bertrand.

Post Reply

Return to “companion9x”