You are not logged in.
Hello,
Lightspark is a new flash player for Flash 9 and more I would like to try. All is done for Ubuntu users, but for the others you have to compile the sources, that's what I am trying.
During the compilation, here is what I got :
[ 94%] Built target spark
Scanning dependencies of target lightspark
[ 97%] Building CXX object CMakeFiles/lightspark.dir/main.cpp.o
Linking CXX executable lightspark
/usr/bin/ld: cannot find -lLLVMLinker
collect2: ld a retourné 1 code d'état d'exécution
make[2]: *** [lightspark] Erreur 1
make[1]: *** [CMakeFiles/lightspark.dir/all] Erreur 2
make: *** [all] Erreur 2
As far as I searched on Google, the problem should be easy to fix, there is one name file to change or one packet to download. If this is really the problem, which file/packet ?
Lightspark wants the user to use cmake :
[zarmakuizz@zarok objs]$ cmake -DCMAKE-BUILD-TYPE=Release ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found assembler: /usr/bin/nasm
-- LLVM llvm-config found at: /usr/bin/llvm-config
-- LLVM version: 2.7
-- LLVM CXX flags: -I/usr/include -DNDEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O2 -fomit-frame-pointer -fno-exceptions -fno-rtti -fPIC -Woverloaded-virtual
-- LLVM LD flags: -L/usr/lib/llvm -lpthread -lffi -ldl -lm
-- LLVM core libs: -lLLVMLinker -lLLVMArchive -lLLVMBitWriter -lLLVMBitReader -lLLVMInstrumentation -lLLVMipo -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget -lLLVMMC -lLLVMCore -lLLVMSupport -lLLVMSystem
-- LLVM JIT libs: -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMMCParser -lLLVMX86AsmPrinter -lLLVMX86CodeGen -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMX86Info -lLLVMJIT -lLLVMExecutionEngine -lLLVMCodeGen -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget -lLLVMMC -lLLVMCore -lLLVMSupport -lLLVMSystem
-- LLVM JIT objs:
-- Found LLVM: /usr/include
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found CURL: /usr/lib/libcurl.so
-- Found ZLIB: /usr/lib/libz.so
-- checking for modules 'gl;libpcrecpp;libavcodec;libavutil;ftgl;x11'
-- found gl, version 7.7.1
-- found libpcrecpp, version 8.02
-- found libavcodec, version 52.67.0
-- found libavutil, version 50.15.2
-- found ftgl, version 2.1.3~rc5
-- found x11, version 1.3.3
-- Loaded CMakeASM-NASMInformation - ASM-NASM support is still experimental, please report issues
-- Configuring done
-- Generating done
-- Build files have been written to: /home/zarmakuizz/progra/lightspark-0.3.1/objs
When compiling :
[zarmakuizz@zarok objs]$ make
Scanning dependencies of target spark
[ 2%] Building CXX object CMakeFiles/spark.dir/swf.cpp.o
[ 5%] Building CXX object CMakeFiles/spark.dir/swftypes.cpp.o
/home/zarmakuizz/progra/lightspark-0.3.1/swftypes.cpp: In member function 'virtual void lightspark::FILLSTYLE::setFragmentProgram() const':
/home/zarmakuizz/progra/lightspark-0.3.1/swftypes.cpp:1268:25: attention : unused variable 'buffer'
/home/zarmakuizz/progra/lightspark-0.3.1/swftypes.cpp:1269:16: attention : unused variable 'grad_index'
/home/zarmakuizz/progra/lightspark-0.3.1/swftypes.cpp:1271:7: attention : unused variable 'index_l'
/home/zarmakuizz/progra/lightspark-0.3.1/swftypes.cpp:1273:7: attention : unused variable 'index_r'
[ 8%] Building CXX object CMakeFiles/spark.dir/tags.cpp.o
[ 10%] Building CXX object CMakeFiles/spark.dir/geometry.cpp.o
[ 13%] Building CXX object CMakeFiles/spark.dir/actions.cpp.o
[ 16%] Building CXX object CMakeFiles/spark.dir/frame.cpp.o
[ 18%] Building CXX object CMakeFiles/spark.dir/input.cpp.o
[ 21%] Building CXX object CMakeFiles/spark.dir/streams.cpp.o
[ 24%] Building CXX object CMakeFiles/spark.dir/tags_stub.cpp.o
[ 27%] Building CXX object CMakeFiles/spark.dir/logger.cpp.o
[ 29%] Building CXX object CMakeFiles/spark.dir/vm.cpp.o
[ 32%] Building CXX object CMakeFiles/spark.dir/asobjects.cpp.o
[ 35%] Building CXX object CMakeFiles/spark.dir/abc.cpp.o
[ 37%] Building CXX object CMakeFiles/spark.dir/abc_codesynt.cpp.o
/home/zarmakuizz/progra/lightspark-0.3.1/abc_codesynt.cpp: In member function 'lightspark::ASObject* (* lightspark::method_info::synt_method())(lightspark::call_context*)':
/home/zarmakuizz/progra/lightspark-0.3.1/abc_codesynt.cpp:1611:53: attention : passing NULL to non-pointer argument 2 of 'static llvm::Constant* llvm::ConstantInt::get(const llvm::Type*, uint64_t, bool)'
/home/zarmakuizz/progra/lightspark-0.3.1/abc_codesynt.cpp:2606:53: attention : passing NULL to non-pointer argument 2 of 'static llvm::Constant* llvm::ConstantInt::get(const llvm::Type*, uint64_t, bool)'
[ 40%] Building CXX object CMakeFiles/spark.dir/abc_opcodes.cpp.o
[ 43%] Building CXX object CMakeFiles/spark.dir/flashdisplay.cpp.o
/home/zarmakuizz/progra/lightspark-0.3.1/flashdisplay.cpp: In static member function 'static lightspark::ASObject* lightspark::Graphics::lineTo(lightspark::ASObject*, lightspark::ASObject* const*, unsigned int)':
/home/zarmakuizz/progra/lightspark-0.3.1/flashdisplay.cpp:1634:12: attention : unused variable 'th'
/home/zarmakuizz/progra/lightspark-0.3.1/flashdisplay.cpp:1637:6: attention : unused variable 'x'
/home/zarmakuizz/progra/lightspark-0.3.1/flashdisplay.cpp:1638:6: attention : unused variable 'y'
/home/zarmakuizz/progra/lightspark-0.3.1/flashdisplay.cpp: In static member function 'static lightspark::ASObject* lightspark::Graphics::drawCircle(lightspark::ASObject*, lightspark::ASObject* const*, unsigned int)':
/home/zarmakuizz/progra/lightspark-0.3.1/flashdisplay.cpp:1671:9: attention : unused variable 'x'
/home/zarmakuizz/progra/lightspark-0.3.1/flashdisplay.cpp:1672:9: attention : unused variable 'y'
/home/zarmakuizz/progra/lightspark-0.3.1/flashdisplay.cpp:1673:9: attention : unused variable 'radius'
/home/zarmakuizz/progra/lightspark-0.3.1/flashdisplay.cpp: In static member function 'static lightspark::ASObject* lightspark::Graphics::drawRect(lightspark::ASObject*, lightspark::ASObject* const*, unsigned int)':
/home/zarmakuizz/progra/lightspark-0.3.1/flashdisplay.cpp:1694:6: attention : unused variable 'x'
/home/zarmakuizz/progra/lightspark-0.3.1/flashdisplay.cpp:1695:6: attention : unused variable 'y'
/home/zarmakuizz/progra/lightspark-0.3.1/flashdisplay.cpp:1696:6: attention : unused variable 'width'
/home/zarmakuizz/progra/lightspark-0.3.1/flashdisplay.cpp:1697:6: attention : unused variable 'height'
[ 45%] Building CXX object CMakeFiles/spark.dir/flashevents.cpp.o
[ 48%] Building CXX object CMakeFiles/spark.dir/textfile.cpp.o
[ 51%] Building CXX object CMakeFiles/spark.dir/thread_pool.cpp.o
[ 54%] Building CXX object CMakeFiles/spark.dir/flashgeom.cpp.o
[ 56%] Building CXX object CMakeFiles/spark.dir/flashnet.cpp.o
[ 59%] Building CXX object CMakeFiles/spark.dir/flashsystem.cpp.o
[ 62%] Building CXX object CMakeFiles/spark.dir/flashutils.cpp.o
[ 64%] Building CXX object CMakeFiles/spark.dir/compat.cpp.o
[ 67%] Building CXX object CMakeFiles/spark.dir/abc_interpreter.cpp.o
[ 70%] Building CXX object CMakeFiles/spark.dir/flashexternal.cpp.o
[ 72%] Building CXX object CMakeFiles/spark.dir/flashtext.cpp.o
[ 75%] Building CXX object CMakeFiles/spark.dir/flashmedia.cpp.o
[ 78%] Building CXX object CMakeFiles/spark.dir/flv.cpp.o
[ 81%] Building CXX object CMakeFiles/spark.dir/netutils.cpp.o
[ 83%] Building CXX object CMakeFiles/spark.dir/timer.cpp.o
[ 86%] Building CXX object CMakeFiles/spark.dir/decoder.cpp.o
/home/zarmakuizz/progra/lightspark-0.3.1/decoder.cpp: In member function 'virtual bool lightspark::FFMpegDecoder::decodeData(uint8_t*, uint32_t)':
/home/zarmakuizz/progra/lightspark-0.3.1/decoder.cpp:365:2: attention : 'int avcodec_decode_video(AVCodecContext*, AVFrame*, int*, const uint8_t*, int)' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3448)
/home/zarmakuizz/progra/lightspark-0.3.1/decoder.cpp:365:69: attention : 'int avcodec_decode_video(AVCodecContext*, AVFrame*, int*, const uint8_t*, int)' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3448)
/home/zarmakuizz/progra/lightspark-0.3.1/decoder.cpp:372:2: attention : comparaison entre des expressions entières signée et non signée
[ 89%] Building CXX object CMakeFiles/spark.dir/threading.cpp.o
[ 91%] Building CXX object CMakeFiles/spark.dir/flashxml.cpp.o
/home/zarmakuizz/progra/lightspark-0.3.1/flashxml.cpp: In static member function 'static lightspark::ASObject* lightspark::XMLDocument::_constructor(lightspark::ASObject*, lightspark::ASObject* const*, unsigned int)':
/home/zarmakuizz/progra/lightspark-0.3.1/flashxml.cpp:46:15: attention : unused variable 'th'
[ 94%] Building ASM-NASM object CMakeFiles/spark.dir/fastpaths_64.asm.o
Linking CXX static library libspark.a
[ 94%] Built target spark
Scanning dependencies of target lightspark
[ 97%] Building CXX object CMakeFiles/lightspark.dir/main.cpp.o
Linking CXX executable lightspark
/usr/bin/ld: cannot find -lLLVMLinker
collect2: ld a retourné 1 code d'état d'exécution
make[2]: *** [lightspark] Erreur 1
make[1]: *** [CMakeFiles/lightspark.dir/all] Erreur 2
make: *** [all] Erreur 2
I don't know what to do to fix it
Any idea ?
Regards,
Zarmakuizz
Offline
Offline
Thanks !
The software does not work, but that is another problem…
Offline