[Linux] Error when launching a nightly build: binary file
unbuntu 12.10, mscore is 775 after uncompressed
./mscore generates an error :
-rwxrwxr-x 1 olivier olivier 270462816 avril 10 18:01 mscore*
-rw-rw-r-- 1 olivier olivier 97400929 avril 10 22:47 mscore-2013-04-10-18-01-4f5befc.tar.bz2
olivier@chaumont02:~/Téléchargements$ ./mscore
bash: ./mscore : fichier binaire impossible à lancer
olivier@chaumont02:~/Téléchargements$
Do I miss something ?
Comments
May I suppose that you downloaded from http://prereleases.musescore.org/linux/nightly/
I just check that the file I uploaded there (from mint14) uncompresses in a mscore file which runs OK and is 270,5 Mo (270462816 octets)
@robert Can you confirm again that the build is 64bit build only? and then it will not run on a 32bit system? If it's the case, I will update the HTML page at http://prereleases.musescore.org/linux/nightly/ and state it.
@lasconic Indeed my Mint is 64bit. Is there any way to compile a dual use file ?
Just build it as 32bit. That way it should run on 32-bit and 64-bit Linux.
@ Jojo-Schmitz,
the script I use reads as follows
git pull
make revision
make
echo ******* | sudo -S make install
what should I modify ?
PS note that :
"make -h" returns
".................................
Ce logiciel est construit pour x86_64-pc-linux-gnu"
I guess you'd need to tell the compiler to generate 32-bit code and link against 32-bit libs.
A quick Google search indicated the use of "CFLAGS=-m32" should do the trick?
I have no knowledge of compilation tricks, and, for the next 3 weeks, have no time to investigate the numerous but not so clear links given by Google.
However I could copy some code lines in my script… if someone knows which
Try in a line before the make: export CFLAGS="-m32"
According to this:
http://www.cmake.org/Wiki/CMake_FAQ#How_do_I_use_a_different_compiler.3F
you can try to set the variables CC and CXX to force a compiler.
So you could try, before the make instructions:
export CC="gcc -m32"
export CXX="g++ -m32"
Ciao,
ABL
mscore-2013-04-11-17-49-1db1667.tar.bz2
is the last file uploaded without the
export CFLAGS="-m32"
line
I hope I hear about my next compilation
grazie to ABL for his suggestion
well, the CFLAGS hint was mine ;-)
@ jojo-Schmitz
Jawohl, und diesen benütze ich
aber es war auch http://musescore.org/fr/node/20743#comment-77566, den ich nicht benützte, doch ihn, daß ich seinen Vortrag gelesen hatte, kennenlassen wolte.
Gute Nacht !
I just compiled
mscore-2013-04-12-11-01-be3f703.tar.bz2
with the line
export CFLAGS="-m32"
it runs under my Mint14 (64 bits)
Could someone check if it runs under a 32 bits system ?
Thanks
I fear that it is still a 64bit binary.
I tried to launch it (be3f703) in my Mint 9.0 (Isadora) 32bit, but it did not work.
Here is the output of "file" command:
$ file mscore
mscore: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically
linked (uses shared libs), for GNU/Linux 2.6.24, not stripped
You can try "file mscore" on your pc to check if the binary file is 32 or 64bit.
Ciao,
ABL
Could well be that CFLAGS only influences the compile- but not the link step, so ABL's
export CC="gcc -m32"
export CXX="g++ -m32"
might be better? Possibly also adding
export LDFLAGS="-m32"
Hi lholivier
Are you still having trouble?
As there has been no further information, I close this.
Please post if you continue to have problems :).
Most probably still a valid issue, see http://musescore.org/en/node/22782
at the time my script no longer works. From sept 4th uploads are erroneous
I've posted on the developpers list
It just sprang to my mind, that MuseScore is C++, so it is not CFLAGS but CXXFLAGS (I believe).
Probably better would be ABL's CC and CXX settings.
I think this old report can be closed, since, thanks to robert leleu, 32bit Linux build are available since long. Please re-open if necessary.