smpq not working on windows7?

Bug #884203 reported by cmd.exe
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SMPQ
Fix Released
Undecided
Unassigned

Bug Description

enybody can fix it?

Revision history for this message
Pali (pali) wrote :

Please provide more informations, what does not working and where is problem.

Changed in smpq:
status: New → Incomplete
Revision history for this message
cmd.exe (rych-91) wrote :

smpq -l starcraft.mpq
program still in mem but no messages I seen...

I go in code and working on, why it's not working...

off topick...
I adapded SMPQ for Visual Studio 2010...
smpq-far-arclite.googlecode.com

Changed in smpq:
status: Incomplete → Opinion
status: Opinion → In Progress
Revision history for this message
Pali (pali) wrote :

First try to use precompiled version. Make sure that your mpq file is correct. Then try to use param -v (smpq -v -l file.mpq) to be more verbose.

To MSVC:

Revision history for this message
Pali (pali) wrote :

SMPQ use CMake build system and it also support MSVC, so no additional steps (for MSVC) is not needed. But if you have patch which fix some Windows support send me it.

And MSVC does not support (full) ANSI or C99 standard, so MSVC is not C compiler. SMPQ is written in C (some parts are in C++) so MSCV cannot working correctly. Consider to use real C compiler, for example gcc. This problem can be caused by this bad compiler.

Changed in smpq:
status: In Progress → New
Revision history for this message
cmd.exe (rych-91) wrote :

I try it...
C:\Program Files\Far2\Addons\Archivers\smpq -v (smpq -v -l BrooDat.mpq)
C:\Program Files\Far2\Addons\Archivers\smpq.EXE Error: No action specified

Program just not working, and not extract/listing/adding....

About next sobject:
MSVC have C compiler. Some days ago I build 7-zip.
You add many commands in MakeFile but it's not perfect, in VS I can jast rename main in main.c and linker will do everything...

On what version VC smpq depended? I use MSVC 10 and some steps needed...
MSVC10 can't use C99 standard but I fix it...(It's not problem for Me)
MSVC10 working perfect with ANSI... I't never been problem...

About's:
ANSI - http://msdn.microsoft.com/en-en/library/45aft37a.aspx
Like UNIX - http://msdn.microsoft.com/en-en/library/77859s1t.aspx

offtopick
I not like GCC it's not compiller. This is an environment for the development of error...
And I like UNIX but only how console...

Revision history for this message
Pali (pali) wrote :

> I try it...
> C:\Program Files\Far2\Addons\Archivers\smpq -v (smpq -v -l BrooDat.mpq)
> C:\Program Files\Far2\Addons\Archivers\smpq.EXE Error: No action specified
>
> Program just not working, and not extract/listing/adding....

smpq is application, so try to run:
smpq -v -l BrooDat.mpq
(not smpq -v (smpq -v -l BrooDat.mpq))!!

> On what version VC smpq depended? I use MSVC 10 and some steps needed...

smpq using CMake, which generate vcproj files. I do not know what versions cmake now support... Try cmake yourself with your MSVC 10.

Revision history for this message
cmd.exe (rych-91) wrote :

> smpq -v -l DrooDat.MPQ
I try it allredy... >_<

About next sobject.
CMake not work correct. I monualy did it all sorse in http://code.google.com/p/smpq-far-arclite/ and compilled version too...
And compiler haven't bug's... But have Many varring's about old function's used...

Revision history for this message
Pali (pali) wrote :

Did you tried precompiled version? What do you mean with "old functions"?

Revision history for this message
cmd.exe (rych-91) wrote :

Yes I did!

smpq -i BrooDat.mpq working perfect...

C:\Program Files\Far2\Addons\Archivers\smpq -i BrooDat.mpq
Archive name: BrooDat.mpq
Archive size: 30327026
Number of files in archive: 929
Maximum file count of archive: 4096
Hash table size: 4096
Block table size: 929
Sector size: 4096
Archive partial: No
Archive encryped: No
Archive signature: No signature

soty it's not old funcion's, it POSIX function's, there can't be bug...

Revision history for this message
cmd.exe (rych-91) wrote :

And about build SMPQ in VS10...
Thise function working perfect 2...

http://7x.rxfly.net/IMG/show.jpg

Revision history for this message
Pali (pali) wrote :

So it is working? Can be this bug closed?

Revision history for this message
cmd.exe (rych-91) wrote :

>So it is working? Can be this bug closed?
Only thise function working... >_< Bug.
What OS installed on youre PC? Ubuntu?

>smpq -i BrooDat.mpq working perfect...
I sed about only -i string, and can add -u -h -V and similar...

uh... SMPQ killed oledebagger in the non stop periud...
And debug my compilled version 2 (But show bug waht it's periud never stop)...
May be not found declarations for stop priud... I still do not understand it.

Revision history for this message
Pali (pali) wrote :

Yes I tested it on Ubuntu, but SMPQ is written to be compatible with all C and POSIX systems.

Revision history for this message
cmd.exe (rych-91) wrote :

Can you test it on Windows 7???

Revision history for this message
Pali (pali) wrote :

No, because I do not have Windows and this program is not designed for non POSIX OS...

Revision history for this message
Pali (pali) wrote :

Any progress? What is working and what not?

Revision history for this message
cmd.exe (rych-91) wrote : Re: [Bug 884203] Re: smpq not working on windows7?

2012/2/24 Pali <email address hidden>

> Any progress? What is working and what not?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/884203
>
> Title:
> smpq not working on windows7?
>
> Status in SMPQ:
> New
>
> Bug description:
> enybody can fix it?
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/smpq/+bug/884203/+subscriptions
>
there have derictor bug/ can be fixed in // for / and / for //

Revision history for this message
Pali (pali) wrote :

I read this bug again, but I was unable to determinate your problem.
So write where is problem and what is not working. Also write steps how to reproduce this problem.
Next, try if precompiled version 1.4 working.

Changed in smpq:
status: New → Incomplete
Revision history for this message
cmd.exe (rych-91) wrote :

Good and intresting updetes of code I see...
Soon lay out a little nuances as amended ...

Revision history for this message
cmd.exe (rych-91) wrote :

Hmmm.... I have bug in
code:
cmd line: %path%\smpq.exe -l mympq.mpq

if ( parchivesc - argc + i <= 0 ) {
parchives[0] = NULL; // hire I have bug parchives=0x00000000

helpme...

Revision history for this message
cmd.exe (rych-91) wrote :

I found...
if ( parchivesc - argc + i < =0 )
Needed...
if ( &parchivesc - argc + i < 0 )

Revision history for this message
cmd.exe (rych-91) wrote :

I have some updates...

cmd.exe (rych-91)
visibility: public → private
Revision history for this message
Pali (pali) wrote :

Now I commited some patches to bzr trunk. It should fix problems on Windows. I tested version from bzr trunk on Windows XP and creating and extracting worked without problems.

Bzr trunk code is here: https://code.launchpad.net/~pali/smpq/trunk

Revision history for this message
cmd.exe (rych-91) wrote :

thanks for good work!
I ended porting SMPQ in VisualStudio v10...
Program really working in windows platforms.
I test it in win7 all functionality working nice!
Some funk I update to StormLib 8.10

cmd.exe (rych-91)
Changed in smpq:
status: Incomplete → Fix Released
Revision history for this message
Pali (pali) wrote :

Please test if version from bzr trunk working fine on your platform. If yes I will release new version with my last patches.

Revision history for this message
Pali (pali) wrote :

I commited some changes to bzr branch which fix compatibility with ansi C90.

visibility: private → public
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.