[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
SMPlayer Support Forum • View topic - Static linking against Qt?

This forum is deprecated. Please visit https://github.com/smplayer-dev/smplayer/discussions

Static linking against Qt?

Forum to talk about the development of SMPlayer (code, patches...).

Re: Static linking against Qt?

Postby rvm » Sun Feb 19, 2012 11:52 pm

rvm
Site Admin
 
Posts: 3787
Joined: Wed Dec 23, 2009 1:25 am
Location: España

Re: Static linking against Qt?

Postby redxii » Mon Feb 20, 2012 12:13 am

Still works as jpeg in my static build.
Attachments
Untitled.png
Untitled.png (93.87 KiB) Viewed 3850 times
User avatar
redxii
 
Posts: 520
Joined: Thu Dec 24, 2009 7:06 pm

Re: Static linking against Qt?

Postby redxii » Mon Feb 20, 2012 3:29 am

Built 32-bit with Qt dlls + mingwm10.dll + zlib static but not libgcc. I using a different MinGW for 64-bit, the one with Qt doesn't seem to have that library as static. Qt's zlib conflicted with SMPlayer's zlib, trying to add both of them.

I'll try and see if I can use it with the same MinGW I use for MPlayer. I have like 3 MinGW installs.. one on the Qt site, mingw.org and mingw-w64.
User avatar
redxii
 
Posts: 520
Joined: Thu Dec 24, 2009 7:06 pm

Re: Static linking against Qt?

Postby redxii » Mon Feb 20, 2012 4:46 am

http://sourceforge.net/projects/smplaye ... z/download

This will run without mingwm10.dll, libgcc, zlib1.dll, qjpeg4.dll, and the rest of the Qt dlls. Size is 10MB.

I used:

configure -release -opensource -static -no-exceptions -qt-style-windowsxp -qt-style-windowsvista -phonon -qt-libjpeg -no-qt3support -no-webkit -no-script -no-scripttools -no-declarative -no-declarative-debug -no-phonon-backend -nomake examples -nomake demos -nomake tools

qmake (qmake.exe)
LFLAGS = -s -static

mkspecs\win32-g++:
QMAKE_CFLAGS_RELEASE = -Os
QMAKE_LFLAGS = -s -static
User avatar
redxii
 
Posts: 520
Joined: Thu Dec 24, 2009 7:06 pm

Re: Static linking against Qt?

Postby nikkho » Mon Feb 20, 2012 6:22 pm

I can confirm this latest build works perfectly too.

Thanks.
nikkho
 
Posts: 20
Joined: Sat Jan 30, 2010 3:21 pm

Previous

Return to Development

Who is online

Users browsing this forum: No registered users and 0 guests

cron