Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Os/2 #20

Closed
TeLLie opened this issue Aug 30, 2015 · 21 comments
Closed

Os/2 #20

TeLLie opened this issue Aug 30, 2015 · 21 comments

Comments

@TeLLie
Copy link

TeLLie commented Aug 30, 2015

Hello

I poorted Flacon to OS/2 using Qt 4.7.2 Gcc 4.9.2 and cmake 3.3.0

But when i try to run the test i get:

H:\flacon-1.0.1\build\tests>flacon_test.exe
********* Start testing of TestFlacon *********
Config: Using QTest library 4.7.3, Qt 4.7.3
FAIL! : TestFlacon::initTestCase() Program "shntool.exe" not found.
Loc: [H:/flacon-1.0.1/tests/testflacon.cpp(74)]
FAIL! : TestFlacon::initTestCase() Program "avconv.exe/ffmpeg.exe" not found.
Loc: [H:/flacon-1.0.1/tests/testflacon.cpp(84)]
PASS : TestFlacon::cleanupTestCase()
Totals: 1 passed, 2 failed, 0 skipped
********* Finished testing of TestFlacon *********

Also i see this behavior in the gui flacon..
Os2 starts it's progs through a .exe like shntool.exe

I change in the testflacon.cpp
QString shntool = settings->findProgram("shntool");
to
QString shntool = settings->findProgram("shntool.exe");

But it still don't notice the shntool.exe i have in path.

Any idea how to fix this ??

@SokoloffA
Copy link
Member

I added DEF_BINARY_EXT variable in the CMake file. CMake automatically detects OS, and if it is OS/2 then assign ".exe". I hope it should to help.

@TeLLie
Copy link
Author

TeLLie commented Sep 2, 2015

Hello,

Thankz for helping me in here :)
But i download the master branch and compile it, but ....

H:\flacon-master\build\tests>flacon_test.exe
********* Start testing of TestFlacon *********
Config: Using QTest library 4.7.3, Qt 4.7.3
FAIL! : TestFlacon::initTestCase() Program "shntool" not found.
Loc: [H:/flacon-master/tests/testflacon.cpp(74)]
FAIL! : TestFlacon::initTestCase() Program "avconv/ffmpeg" not found.
Loc: [H:/flacon-master/tests/testflacon.cpp(84)]
PASS : TestFlacon::cleanupTestCase()
Totals: 1 passed, 2 failed, 0 skipped
********* Finished testing of TestFlacon *********

Seems not to help...

@TeLLie
Copy link
Author

TeLLie commented Sep 2, 2015

Hi
Also when i load a wav or flac file notting seems to work, when i add flac file notting happens it seems..

see http://imagizer.imageshack.com/img673/5525/A7qiWk.png

@ranperry
Copy link

ranperry commented Sep 2, 2015

You need to specify a cue file.

On Wed, Sep 2, 2015 at 3:11 PM, TeLLie notifications@github.com wrote:

Hi
Also when i load a wav or flac file notting seems to work, when i add flac
file notting happens it seems..

see http://imagizer.imageshack.com/img673/5525/A7qiWk.png


Reply to this email directly or view it on GitHub
#20 (comment).

@SokoloffA
Copy link
Member

This is related with your previous problem. The flacon used shntool for
detecting supported audio files

среда, 2 сентября 2015 г. пользователь TeLLie написал:

Hi
Also when i load a wav or flac file notting seems to work, when i add flac
file notting happens it seems..

see http://imagizer.imageshack.com/img673/5525/A7qiWk.png


Reply to this email directly or view it on GitHub
#20 (comment).

Best regards,
Alexander.

@SokoloffA
Copy link
Member

But i download the master branch and compile it, but ....

You should rebuild the program from scratch - remove all built files and run cmake and make again.
If this not help, add following line at the end of CMakeLists.txt and show me output of cmake.

message(STATUS "CMAKE_SYSTEM_NAME:'${CMAKE_SYSTEM_NAME}'")

@TeLLie
Copy link
Author

TeLLie commented Sep 3, 2015

Hello,

On 3-09-15 13:32, Alexander Sokolov wrote:

But i download the master branch and compile it, but ....

You should rebuild the program from scratch - remove all built files and
run cmake and make again.
If this not help, add following line at the end of CMakeLists.txt and
show me output of cmake.

I tried again with cmake and make

This is output from cmake...

http://pastebin.com/kh1Fg051

|message(STATUS "CMAKE_SYSTEM_NAME:'${CMAKE_SYSTEM_NAME}'")
|


Reply to this email directly or view it on GitHub
#20 (comment).

With kind regards from the Netherlands,
Elbert & Nicole Pol

@SokoloffA
Copy link
Member

I create OS2 baranch with debuging output. Please build it an show me a output of cmake and flacon_test

@SokoloffA
Copy link
Member

And also, is shntool in PATH variabled directory?

@TeLLie
Copy link
Author

TeLLie commented Sep 3, 2015

Yes i have shntool.exe in path

@TeLLie
Copy link
Author

TeLLie commented Sep 3, 2015

Ok i build os2 package..
It's looking for wrong file name ...

See this output from the test

********* Start testing of TestFlacon *********
Config: Using QTest library 4.7.3, Qt 4.7.3
QDEBUG : TestFlacon::initTestCase() QString Settings::findProgram(const QString&) const -----------------------------
QDEBUG : TestFlacon::initTestCase() Paths: ("C", "\usr\libexec\bin;C", "\USR\SBIN;C", "\USR\BIN;c", "\usr\lib\qt4\bin;c", "\extras\bin;C", "\MPTN\BIN;C", "\IBMCOM;C", "\TCPIP\BIN;C", "\ECS\BIN;C", "\EMX\BIN;C", "\IBMGSK50\BIN;C", "\IBMGSK40\BIN;C", "\IBMGSK\BIN;C", "\OS2;C", "\OS2\SYSTEM;C", "\OS2\INSTALL;C", ";C", "\OS2\MDOS;C", "\OS2\APPS;C", "\PROGRAMS\OPENJDK6\BIN;C", "\MMOS2\FREEDB;C", "\MMOS2;C", "\MMOS2\MMPLAYER;C", "\PROGRAMS\4OS2;E", "\NDFS;C", "\OS2TK45\som\common;C", "\OS2TK45\som\bin;C", "\OS2TK45\bin;C", "\TOOLS\dfsee\bin;e", "\WATCOM\BINP;e", "\WATCOM\BINW;")
QDEBUG : TestFlacon::initTestCase() * File: "C/mp3gain.exe"
QDEBUG : TestFlacon::initTestCase() - exists: false
QDEBUG : TestFlacon::initTestCase() - isExecutable: false
QDEBUG : TestFlacon::initTestCase() * File: "/usr/libexec/bin;C/mp3gain.exe"
QDEBUG : TestFlacon::initTestCase() - exists: false
QDEBUG : TestFlacon::initTestCase() - isExecutable: false
QDEBUG : TestFlacon::initTestCase() * File: "/USR/SBIN;C/mp3gain.exe"
QDEBUG : TestFlacon::initTestCase() - exists: false
QDEBUG : TestFlacon::initTestCase() - isExecutable: false
QDEBUG : TestFlacon::initTestCase() * File: "/USR/BIN;c/mp3gain.exe"
QDEBUG : TestFlacon::initTestCase() - exists: false
QDEBUG : TestFlacon::initTestCase() - isExecutable: false
QDEBUG : TestFlacon::initTestCase() * File: "/usr/lib/qt4/bin;c/mp3gain.exe"
QDEBUG : TestFlacon::initTestCase() - exists: false
QDEBUG : TestFlacon::initTestCase() - isExecutable: false
QDEBUG : TestFlacon::initTestCase() * File: "/extras/bin;C/mp3gain.exe"

It should be like
QDEBUG : TestFlacon::initTestCase() * File: "/extras/bin;C/mp3gain.exe"
should be
QDEBUG : TestFlacon::initTestCase() * File: "c:/extras/bin/mp3gain.exe"

Here is full output:
pastebin.com/WNMQSkyP

@SokoloffA
Copy link
Member

Please, try new version from OS2 branch

@TeLLie
Copy link
Author

TeLLie commented Sep 3, 2015

I try new build and compile it, but now i get:

Scanning dependencies of target flacon
Scanning dependencies of target flacon_test
[ 42%] Building CXX object CMakeFiles/flacon.dir/tagset.cpp.obj
Syntax error: Unterminated quoted string
make[2]: *** [CMakeFiles/flacon.dir/tagset.cpp.obj] Error 2
make[2]: *** Waiting for unfinished jobs....
[ 42%] Building CXX object CMakeFiles/flacon.dir/main.cpp.obj
[ 43%] Building CXX object CMakeFiles/flacon.dir/disk.cpp.obj
Syntax error: Unterminated quoted string
make[2]: *** [CMakeFiles/flacon.dir/main.cpp.obj] Error 2
Syntax error: Unterminated quoted string
make[2]: *** [CMakeFiles/flacon.dir/disk.cpp.obj] Error 2
[ 43%] Building CXX object CMakeFiles/flacon.dir/project.cpp.obj
Syntax error: Unterminated quoted string
make[2]: * [CMakeFiles/flacon.dir/project.cpp.obj] Error 2
make[1]: * [CMakeFiles/flacon.dir/all] Error 2
make[1]: * Waiting for unfinished jobs....
[ 43%] Building CXX object tests/CMakeFiles/flacon_test.dir/testflacon.cpp.obj
[ 44%] Building CXX object tests/CMakeFiles/flacon_test.dir//tagset.cpp.obj
[ 45%] Building CXX object tests/CMakeFiles/flacon_test.dir//disk.cpp.obj
Syntax error: Unterminated quoted string
[ 45%] Building CXX object tests/CMakeFiles/flacon_test.dir/
/project.cpp.obj
make[2]: *** [tests/CMakeFiles/flacon_test.dir/testflacon.cpp.obj] Error 2
Syntax error: Unterminated quoted string
make[2]: * Waiting for unfinished jobs....
make[2]: * [tests/CMakeFiles/flacon_test.dir//tagset.cpp.obj] Error 2
Syntax error: Unterminated quoted string
[ 46%] Building CXX object tests/CMakeFiles/flacon_test.dir/
/settings.cpp.obj
make[2]: * [tests/CMakeFiles/flacon_test.dir//disk.cpp.obj] Error 2
Syntax error: Unterminated quoted string
make[2]: * [tests/CMakeFiles/flacon_test.dir//project.cpp.obj] Error 2
Syntax error: Unterminated quoted string
make[2]: * [tests/CMakeFiles/flacon_test.dir//settings.cpp.obj] Error 2
make[1]: *** [tests/CMakeFiles/flacon_test.dir/all] Error 2
make: *** [all] Error 2

@SokoloffA
Copy link
Member

Oh, sorry! Try new version from OS2 branch

@TeLLie
Copy link
Author

TeLLie commented Sep 4, 2015

Ok, now it;s building :)

pastebin.com/ehBjvkmR

@SokoloffA
Copy link
Member

And work?

@TeLLie
Copy link
Author

TeLLie commented Sep 4, 2015

Yes it finds now all the exe stuff in de extras/bin :)
Have to test more with the cue file etc..

@TeLLie
Copy link
Author

TeLLie commented Sep 4, 2015

Ok i have load a cue file and the i see:
File K:/Mp3/SnowiesFlacCollectie2375920133ScreensSN/Fallen Empires.cue contains several FILE tags.
These CUE files are not supported yet."
Where to find a proper cue file ?

@SokoloffA
Copy link
Member

Yes CUE files with several FILE tags not supported now. #13
I can't find free lossless music in the internet. But some bad guys use torrents for download files, only for testing sure.

@TeLLie
Copy link
Author

TeLLie commented Sep 4, 2015

Ok i found a cue file, see http://imagizer.imageshack.com/img912/8981/MI6oNH.png

But how to convert now and get info from database CDDB ?

I'm a bit confused in here, but that could be just me :)

@SokoloffA
Copy link
Member

As you can see, the program could not find the audio file for this CUE (yellow triangle icon) . For converting you need a pair of CUE and audio file. Every CUE-file has FILE tag that contains the name of the audio file. Unfortunately often this tag has incorrect filename. So the program tries to find the name of the audio file empirically. After that the program starts shntool to make sure that the file format is supported.
So, there may be several reasons:

  1. The audio file is missing or its name is not similar to the name of the CUE file. You can click an small button with ellipsis ad select audio by hand.
  2. The program incorrectly identifies the file type, perhaps because of an error in the program.

Send me at mail (sokoloff.a AT gmail.com) this CUE and the list of files in the directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants