It is currently Fri Mar 29, 2024 10:59 am


All times are UTC [ DST ]


Forum rules


When asking for help, make sure you are using the latest stable version of Daphne with the latest DaphneLoader. "For sale", auction, or ebay links do not belong here. Legal discussion is discouraged.



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: compile daphne 1.0.4 ubuntu intepid
PostPosted: Wed Apr 15, 2009 7:19 pm 
Registered User
Registered  User

Joined: Wed Apr 15, 2009 6:22 pm
Posts: 3
Hi,
i use ubuntu interpid with kernel 2.6.27-11-generic (i686)

Error in src/ldp-out/pioneer.cpp:
Code:
...
pioneer.cpp: In member function 'virtual bool pioneer::init_player()':
pioneer.cpp:68: error: deprecated conversion from string constant to 'char*'
....

Fixed in src/io/serial.h at line 33:
Code:
void send_tx_string(const char *s);


Error in src /ldp-out/philips.cpp:
Code:
philips.cpp: In member function 'virtual int philips::get_search_result()':
philips.cpp:128: error: deprecated conversion from string constant to 'char*'

Fixed in /ldp-out/phillips.h at line 47:
Code:
bool check_result(const char *, Uint32, bool);

and in /ldp-out/phillips.cpp at line 202:
Code:
bool philips::check_result(const char *result_string, Uint32 timeout_val, bool watchquit)


im fail to find out how do i fix this:
Quote:
make[1]: Leaving directory `/home/wolfgang/.build/daphne/src/ldp-out'
make[1]: Entering directory `/home/wolfgang/.build/daphne/src/ldp-out'
g++ -O3 -march=i686 -fomit-frame-pointer -fexpensive-optimizations -funroll-loops `sdl-config --cflags` -DUNIX -DLINUX -DNATIVE_CPU_X86 -DUSE_MMX -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DUSE_OPENGL -Wall -Winline -Werror -c sony.cpp -o sony.o
g++ -O3 -march=i686 -fomit-frame-pointer -fexpensive-optimizations -funroll-loops `sdl-config --cflags` -DUNIX -DLINUX -DNATIVE_CPU_X86 -DUSE_MMX -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DUSE_OPENGL -Wall -Winline -Werror -c pioneer.cpp -o pioneer.o
g++ -O3 -march=i686 -fomit-frame-pointer -fexpensive-optimizations -funroll-loops `sdl-config --cflags` -DUNIX -DLINUX -DNATIVE_CPU_X86 -DUSE_MMX -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DUSE_OPENGL -Wall -Winline -Werror -c ld-v6000.cpp -o ld-v6000.o
g++ -O3 -march=i686 -fomit-frame-pointer -fexpensive-optimizations -funroll-loops `sdl-config --cflags` -DUNIX -DLINUX -DNATIVE_CPU_X86 -DUSE_MMX -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DUSE_OPENGL -Wall -Winline -Werror -c hitachi.cpp -o hitachi.o
g++ -O3 -march=i686 -fomit-frame-pointer -fexpensive-optimizations -funroll-loops `sdl-config --cflags` -DUNIX -DLINUX -DNATIVE_CPU_X86 -DUSE_MMX -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DUSE_OPENGL -Wall -Winline -Werror -c philips.cpp -o philips.o
g++ -O3 -march=i686 -fomit-frame-pointer -fexpensive-optimizations -funroll-loops `sdl-config --cflags` -DUNIX -DLINUX -DNATIVE_CPU_X86 -DUSE_MMX -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DUSE_OPENGL -Wall -Winline -Werror -c ldp.cpp -o ldp.o
cc1plus: warnings being treated as errors
/usr/include/c++/4.3/bits/stl_list.h: In constructor 'ldp::ldp()':
/usr/include/c++/4.3/bits/stl_list.h:417: error: inlining failed in call to 'std::list<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::~list()': call is unlikely and code size would grow
ldp.cpp:97: error: called from here
make[1]: *** [ldp.o] Error 1
make[1]: Leaving directory `/home/wolfgang/.build/daphne/src/ldp-out'
make: *** [sub] Error 2


Thanks.


Top
Offline Profile  
 
 Post subject:
PostPosted: Fri Apr 17, 2009 1:02 pm 
Registered User
Registered  User

Joined: Wed Apr 15, 2009 6:22 pm
Posts: 3
Ok, can i give more informations?
The change i do in serial.h, phillips.h and phillips.cpp are completely wrong?


Top
Offline Profile  
 
 Post subject:
PostPosted: Sat Apr 18, 2009 6:48 am 
DAPHNE Creator
DAPHNE Creator

Joined: Sat Jan 20, 2001 1:00 am
Posts: 2127
Location: Salt Lake City,Utah, USA
Daphne won't build on linux currently due to parallel port code changes we made for windows (and I haven't updated them for linux).

I will get around to fixing the linux build next time I want to do a linux update. But your changes look ok.


Top
Offline Profile  
 
 Post subject:
PostPosted: Sat Apr 18, 2009 7:05 am 
Registered User
Registered  User

Joined: Wed Apr 15, 2009 6:22 pm
Posts: 3
Thanks a lot :D
btw interpid use cpp-4.3.
I take a look into the gentoo ebuild and see the remove the Makefile -Werror option.
The also make some change in src/vldp2/libvo/video_out_null.c:
~line 82:
- if (g_in_info->prepare_frame(&g_yuv_buf[(int) id]))
+ if (g_in_info->prepare_frame(&g_yuv_buf[(long) id]))

~line 133
- g_in_info->display_frame(&g_yuv_buf[(int) id]);
+ g_in_info->display_frame(&g_yuv_buf[(long) id]);

~line 272
- *id = (int *) buffer_index; // THIS IS A LITTLE TRICKY
+ *id = (long *) buffer_index; // THIS IS A LITTLE TRICKY

I apply only the gentoo fixes to a original fresh source
and now it stop at the parallel point.
You say it and i have to wait :D
Code:
make[1]: Leaving directory `/home/wolfgang/.build/daphne/src/io'
make[1]: Entering directory `/home/wolfgang/.build/daphne/src/io'
g++ -O3 -march=i686 -fomit-frame-pointer -fexpensive-optimizations -funroll-loops `sdl-config --cflags` -DUNIX -DLINUX -DNATIVE_CPU_X86 -DUSE_MMX -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DUSE_OPENGL  -Wall -Winline -c input.cpp -o input.o
input.cpp: In function 'void input_enable(Uint8)':
input.cpp:817: warning: inlining failed in call to 'void add_coin_to_queue(bool, Uint8)': call is unlikely and code size would grow
input.cpp:781: warning: called from here
g++ -O3 -march=i686 -fomit-frame-pointer -fexpensive-optimizations -funroll-loops `sdl-config --cflags` -DUNIX -DLINUX -DNATIVE_CPU_X86 -DUSE_MMX -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DUSE_OPENGL  -Wall -Winline -c serial.cpp -o serial.o
g++ -O3 -march=i686 -fomit-frame-pointer -fexpensive-optimizations -funroll-loops `sdl-config --cflags` -DUNIX -DLINUX -DNATIVE_CPU_X86 -DUSE_MMX -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DUSE_OPENGL  -Wall -Winline -c conout.cpp -o conout.o
g++ -O3 -march=i686 -fomit-frame-pointer -fexpensive-optimizations -funroll-loops `sdl-config --cflags` -DUNIX -DLINUX -DNATIVE_CPU_X86 -DUSE_MMX -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DUSE_OPENGL  -Wall -Winline -c cmdline.cpp -o cmdline.o
g++ -O3 -march=i686 -fomit-frame-pointer -fexpensive-optimizations -funroll-loops `sdl-config --cflags` -DUNIX -DLINUX -DNATIVE_CPU_X86 -DUSE_MMX -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DUSE_OPENGL  -Wall -Winline -c conin.cpp -o conin.o
g++ -O3 -march=i686 -fomit-frame-pointer -fexpensive-optimizations -funroll-loops `sdl-config --cflags` -DUNIX -DLINUX -DNATIVE_CPU_X86 -DUSE_MMX -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DUSE_OPENGL  -Wall -Winline -c parallel.cpp -o parallel.o
parallel.cpp: In function 'bool par_init(int, ILogger*)':
parallel.cpp:31: error: 'short int par::m_base0 [3]' is private
parallel.cpp:121: error: within this context
parallel.cpp:32: error: 'short int par::m_base2 [3]' is private
parallel.cpp:122: error: within this context
parallel.cpp:31: error: 'short int par::m_base0 [3]' is private
parallel.cpp:127: error: within this context
parallel.cpp:129: error: 'm_uPortIdx' was not declared in this scope
parallel.cpp: In function 'int par_base0(int, unsigned char)':
parallel.cpp:139: error: 'm_uPortIdx' was not declared in this scope
parallel.cpp:31: error: 'short int par::m_base0 [3]' is private
parallel.cpp:141: error: within this context
parallel.cpp: In function 'int par_base2(int, unsigned char)':
parallel.cpp:149: error: 'm_uPortIdx' was not declared in this scope
parallel.cpp:32: error: 'short int par::m_base2 [3]' is private
parallel.cpp:151: error: within this context
make[1]: *** [parallel.o] Error 1
make[1]: Leaving directory `/home/wolfgang/.build/daphne/src/io'
make: *** [sub] Error 2


Top
Offline Profile  
 
 Post subject:
PostPosted: Sat May 02, 2009 12:36 am 
DAPHNE Creator
DAPHNE Creator

Joined: Sat Jan 20, 2001 1:00 am
Posts: 2127
Location: Salt Lake City,Utah, USA
I have fixed the parallel port code for linux.


Top
Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net