sponnusa / firebreath

Automatically exported from code.google.com/p/firebreath
0 stars 0 forks source link

Compile errors on mac os x 10.5.8 #57

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. prepmac.sh examples

cd buildex
cmake --build .
....

The following build commands failed:
FBTP_NpapiPlugin:
    CompileC buildex/projects/FBTestPlugin/NpapiPlugin/FireBreath.build/Debug/FBTP_NpapiPlugin.build/Objects-normal/i386/NpapiPluginMac.o /Users/nikita/Projects/firebreath/src/NpapiPlugin/Mac/NpapiPluginMac.cpp normal i386 c++ com.apple.compilers.gcc.4_0
FBTestPlugin:
    Ld /Users/nikita/Projects/firebreath/buildex/projects/FBTestPlugin/Debug/FBTestPlugin.plugin/Contents/MacOS/FBTestPlugin normal i386
(2 failures)

ojects/firebreath/examples/FBTestPlugin 
-I/Users/nikita/Projects/firebreath/src/3rdParty/gecko-sdk/includes 
-I/Users/nikita/Projects/firebreath/src/ActiveXPlugin 
-I/Users/nikita/Projects/firebreath/src/NpapiPlugin 
-I/Users/nikita/Projects/firebreath/src/ScriptingCore 
-I/Users/nikita/Projects/firebreath/src/PluginCore 
-I/Users/nikita/Projects/firebreath/src/PluginWindow 
-I/Users/nikita/Projects/firebreath/buildex/projects/FBTestPlugin/gen 
-I/opt/local/include -I/Users/nikita/Projects/firebreath/src/3rdParty/boost 
-I/Users/nikita/Projects/firebreath/buildex/projects/FBTestPlugin/NpapiPlugin/Fi
reBreath.build/Debug/FBTP_NpapiPlugin.build/DerivedSources/i386 
-I/Users/nikita/Projects/firebreath/buildex/projects/FBTestPlugin/NpapiPlugin/Fi
reBreath.build/Debug/FBTP_NpapiPlugin.build/DerivedSources -DXP_UNIX 
-DXP_MACOSX -DXP_UNIX -DXP_MACOSX -DXP_UNIX -DXP_MACOSX -c 
/Users/nikita/Projects/firebreath/src/NpapiPlugin/Mac/NpapiPluginMac.cpp -o 
/Users/nikita/Projects/firebreath/buildex/projects/FBTestPlugin/NpapiPlugin/Fire
Breath.build/Debug/FBTP_NpapiPlugin.build/Objects-normal/i386/NpapiPluginMac.o
/Users/nikita/Projects/firebreath/src/NpapiPlugin/Mac/NpapiPluginMac.cpp: In 
member function ‘int16_t 
FB::Npapi::NpapiPluginMac::HandleEventCocoa(void*)’:
/Users/nikita/Projects/firebreath/src/NpapiPlugin/Mac/NpapiPluginMac.cpp:391: 
error: ‘PluginWindowMacCocoa’ was not declared in this scope
/Users/nikita/Projects/firebreath/src/NpapiPlugin/Mac/NpapiPluginMac.cpp:391: 
error: ‘win’ was not declared in this scope
/Users/nikita/Projects/firebreath/src/NpapiPlugin/Mac/NpapiPluginMac.cpp:391: 
error: expected type-specifier before ‘PluginWindowMacCocoa’
/Users/nikita/Projects/firebreath/src/NpapiPlugin/Mac/NpapiPluginMac.cpp:391: 
error: expected `>' before ‘PluginWindowMacCocoa’
/Users/nikita/Projects/firebreath/src/NpapiPlugin/Mac/NpapiPluginMac.cpp:391: 
error: expected `(' before ‘PluginWindowMacCocoa’
/Users/nikita/Projects/firebreath/src/NpapiPlugin/Mac/NpapiPluginMac.cpp:391: 
error: expected primary-expression before ‘>’ token
/Users/nikita/Projects/firebreath/src/NpapiPlugin/Mac/NpapiPluginMac.cpp:391: 
error: expected `)' before ‘;’ token

I add
#include "Mac/PluginWindowMacCocoa.h"
then recieved next compile error: 

CompileC 
buildex/projects/FBTestPlugin/NpapiPlugin/FireBreath.build/Debug/FBTP_NpapiPlugi
n.build/Objects-normal/i386/NpapiPluginMac.o 
/Users/nikita/Projects/firebreath/src/NpapiPlugin/Mac/NpapiPluginMac.cpp normal 
i386 c++ com.apple.compilers.gcc.4_0
    cd /Users/nikita/Projects/firebreath
    /Developer/usr/bin/gcc-4.0 -x c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -DCMAKE_INTDIR="Debug" -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -gdwarf-2 -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/nikita/Projects/firebreath/buildex/projects/FBTestPlugin/NpapiPlugin/Debug -I/Users/nikita/Projects/firebreath/buildex/projects/FBTestPlugin/NpapiPlugin/Debug/include -I/Users/nikita/Projects/firebreath/examples/FBTestPlugin -I/Users/nikita/Projects/firebreath/src/3rdParty/gecko-sdk/includes -I/Users/nikita/Projects/firebreath/src/ActiveXPlugin -I/Users/nikita/Projects/firebreath/src/NpapiPlugin -I/Users/nikita/Projects/firebreath/src/ScriptingCore -I/Users/nikita/Projects/firebreath/src/PluginCore -I/Users/nikita/Projects/firebreath/src/PluginWindow -I/Users/nikita/Projects/firebreath/buildex/projects/FBTestPlugin/gen -I/opt/local/include -I/Users/nikita/Projects/firebreath/src/3rdParty/boost -I/Users/nikita/Projects/firebreath/buildex/projects/FBTestPlugin/NpapiPlugin/FireBreath.build/Debug/FBTP_NpapiPlugin.build/DerivedSources/i386 -I/Users/nikita/Projects/firebreath/buildex/projects/FBTestPlugin/NpapiPlugin/FireBreath.build/Debug/FBTP_NpapiPlugin.build/DerivedSources -DXP_UNIX -DXP_MACOSX -DXP_UNIX -DXP_MACOSX -DXP_UNIX -DXP_MACOSX -c /Users/nikita/Projects/firebreath/src/NpapiPlugin/Mac/NpapiPluginMac.cpp -o /Users/nikita/Projects/firebreath/buildex/projects/FBTestPlugin/NpapiPlugin/FireBreath.build/Debug/FBTP_NpapiPlugin.build/Objects-normal/i386/NpapiPluginMac.o
/Users/nikita/Projects/firebreath/src/NpapiPlugin/Mac/NpapiPluginMac.cpp: In 
member function ‘int16_t 
FB::Npapi::NpapiPluginMac::HandleEventCocoa(void*)’:
/Users/nikita/Projects/firebreath/src/NpapiPlugin/Mac/NpapiPluginMac.cpp:393: 
error: ‘class FB::PluginWindowMacCocoa’ has no member named 
‘HandleEvent’

Original issue reported on code.google.com by bignikita on 10 Aug 2010 at 11:02

GoogleCodeExporter commented 9 years ago
what version of xcode are you using?

Original comment by richarda...@gmail.com on 10 Aug 2010 at 12:50

GoogleCodeExporter commented 9 years ago
Aaron seems to have overlooked something there. For the moment add "set 
(FBMAC_USE_COCOA 0)" to "examples/FBTestPlugin/PluginConfig.cmake"

Original comment by georg.fritzsche on 10 Aug 2010 at 7:55

GoogleCodeExporter commented 9 years ago
Ah, of course. I'll get on this as soon as I can.

Original comment by amack...@gmail.com on 10 Aug 2010 at 9:13

GoogleCodeExporter commented 9 years ago
Xcode 3.1.4

Original comment by bignikita on 12 Aug 2010 at 5:11

GoogleCodeExporter commented 9 years ago
Should be fixed in trunk.

Original comment by taxilian on 24 Aug 2010 at 8:57

GoogleCodeExporter commented 9 years ago
The following works for me now and produces a fat binary which runs in both 32 
bit and 64 bit browsers:

hg clone https://firebreath.googlecode.com/hg/ firebreath
cd firebreath/
rm -rf examples/BasicMediaPlayer/
./prepmac.sh examples
cd buildex/
cmake --build . | tee build.log

Original comment by kalevlember@gmail.com on 24 Aug 2010 at 9:44