oulan / firebreath

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

prepmac.sh fails because firebreath/src/3rdParty/boost/libs/thread has not been made #108

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Get a Mac running Mac OS X 10.6.5
2.  Check out firebreath into destination directory 
~/Documents/Programming/Projects/firebreath.
3.  Command ./prepmac.sh
4.  Whoops, I forgot to install CMake
5.  Download and install CMake 2.8 from disk image (.dmg)
6.  Command .prepmac.sh again.

What is the expected output?

Successful execcution of prepmac.sh

What do you see instead?

CMake Error at cmake/common.cmake:92 (add_subdirectory):
  add_subdirectory given source
  "/Users/jk/Documents/Programming/Projects/firebreath/src/3rdParty/boost/libs/thread"
  which is not an existing directory.
Call Stack (most recent call first):
  CMakeLists.txt:38 (add_boost_library)

WORKAROUND:

I found that, indeed, the missing path indicated in the error message did note 
exist.  3rdParty was the deepest existing directory.  So I created the three 
subdirectories boost/libs/thread.  After this, I re-ran prepmac.sh and this 
time it seemed to work, albeit with a warning: 

CMake Warning (dev) at cmake/common.cmake:92 (add_subdirectory):
  The source directory

    /Users/jk/Documents/Programming/Projects/firebreath/src/3rdParty/boost/libs/thread

  does not contain a CMakeLists.txt file.

  CMake does not support this case but it used to work accidentally and is
  being allowed for compatibility.

  Policy CMP0014 is not set: Input directories must have CMakeLists.txt.  Run
  "cmake --help-policy CMP0014" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
Call Stack (most recent call first):
  CMakeLists.txt:38 (add_boost_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

What version of FireBreath are you using? On what operating system and
browsers?

Please provide any additional information below.

Here is the entire transcript of my Terminal.app session:

MacMini2:~ jk$ python -V
Python 2.6.1
MacMini2:~ jk$ hg clone https://firebreath.googlecode.com/hg/ 
~/Documents/Programming/Projects/firebreath
requesting all changes
adding changesets
adding manifests
adding file changes
added 769 changesets with 11040 changes to 5900 files
updating working directory
515 files updated, 0 files merged, 0 files removed, 0 files unresolved
MacMini2:~ jk$ cd ~/Documents/Programming/Projects/firebreath
MacMini2:firebreath jk$ python fbgen.py
Plugin Name []: Sheep Systems Chrome Extension
Plugin Identifier [SheepSystemsChromeExtension]: 
com.sheepsystems.ChromeExtension
Invalid syntax: Identifier must be 3 or more alphanumeric characters 
(underscore allowed).
Plugin Identifier [SheepSystemsChromeExtension]: SSYCE^C
MacMini2:firebreath jk$ python fbgen.py
Plugin Name []: Sheep Systems NPAPI Plugin
Plugin Identifier [SheepSystemsNPAPIPlugin]: com.sheepsystems.plugin.npapi
Invalid syntax: Identifier must be 3 or more alphanumeric characters 
(underscore allowed).
Plugin Identifier [SheepSystemsNPAPIPlugin]: SheepSystemsNPAPIPlugin
Plugin Prefix [SSNP]: SSYNP
Plugin MIME type [application/x-sheepsystemsnpapiplugin]:                   
Plugin Description []: Allows Sheep Systems' apps to access bookmarks of some 
browsers while the browsers are running 
Company Name []: Sheep Systems
Company Identifier [SheepSystems]: 
Company Domain [sheepsystems.com]: 

Processing templates
fbgen/src/CMakeLists.txt
  Processed CMakeLists.txt
fbgen/src/Factory.cpp
  Processed Factory.cpp
Parent of 
/Users/jk/Documents/Programming/Projects/firebreath/projects/SheepSystemsNPAPIPl
ugin/Mac/bundle_template is 
/Users/jk/Documents/Programming/Projects/firebreath/projects/SheepSystemsNPAPIPl
ugin/Mac
Parent of 
/Users/jk/Documents/Programming/Projects/firebreath/projects/SheepSystemsNPAPIPl
ugin/Mac is 
/Users/jk/Documents/Programming/Projects/firebreath/projects/SheepSystemsNPAPIPl
ugin
Creating dir 
/Users/jk/Documents/Programming/Projects/firebreath/projects/SheepSystemsNPAPIPl
ugin/Mac
Parent of 
/Users/jk/Documents/Programming/Projects/firebreath/projects/SheepSystemsNPAPIPl
ugin/Mac/bundle_template is 
/Users/jk/Documents/Programming/Projects/firebreath/projects/SheepSystemsNPAPIPl
ugin/Mac
Creating dir 
/Users/jk/Documents/Programming/Projects/firebreath/projects/SheepSystemsNPAPIPl
ugin/Mac/bundle_template
fbgen/src/Mac/bundle_template/Info.plist
  Processed Mac/bundle_template/Info.plist
fbgen/src/Mac/bundle_template/InfoPlist.strings
  Processed Mac/bundle_template/InfoPlist.strings
fbgen/src/Mac/bundle_template/Localized.r
  Processed Mac/bundle_template/Localized.r
fbgen/src/Mac/np_macmain.cpp
  Processed Mac/np_macmain.cpp
fbgen/src/Mac/projectDef.cmake
  Processed Mac/projectDef.cmake
fbgen/src/PluginConfig.cmake
  Processed PluginConfig.cmake
fbgen/src/Template.cpp
  Processed Template.cpp
fbgen/src/Template.h
  Processed Template.h
fbgen/src/TemplateAPI.cpp
  Processed TemplateAPI.cpp
fbgen/src/TemplateAPI.h
  Processed TemplateAPI.h
Parent of 
/Users/jk/Documents/Programming/Projects/firebreath/projects/SheepSystemsNPAPIPl
ugin/Win is 
/Users/jk/Documents/Programming/Projects/firebreath/projects/SheepSystemsNPAPIPl
ugin
Creating dir 
/Users/jk/Documents/Programming/Projects/firebreath/projects/SheepSystemsNPAPIPl
ugin/Win
fbgen/src/Win/dllmain.cpp
  Processed Win/dllmain.cpp
fbgen/src/Win/np_winmain.cpp
  Processed Win/np_winmain.cpp
fbgen/src/Win/projectDef.cmake
  Processed Win/projectDef.cmake
Parent of 
/Users/jk/Documents/Programming/Projects/firebreath/projects/SheepSystemsNPAPIPl
ugin/Win/WiX is 
/Users/jk/Documents/Programming/Projects/firebreath/projects/SheepSystemsNPAPIPl
ugin/Win
Creating dir 
/Users/jk/Documents/Programming/Projects/firebreath/projects/SheepSystemsNPAPIPl
ugin/Win/WiX
fbgen/src/Win/WiX/TemplateInstaller.wxs
  Processed Win/WiX/TemplateInstaller.wxs
Parent of 
/Users/jk/Documents/Programming/Projects/firebreath/projects/SheepSystemsNPAPIPl
ugin/X11 is 
/Users/jk/Documents/Programming/Projects/firebreath/projects/SheepSystemsNPAPIPl
ugin
Creating dir 
/Users/jk/Documents/Programming/Projects/firebreath/projects/SheepSystemsNPAPIPl
ugin/X11
fbgen/src/X11/np_x11main.cpp
  Processed X11/np_x11main.cpp
fbgen/src/X11/projectDef.cmake
  Processed X11/projectDef.cmake
Done. Files placed in 
/Users/jk/Documents/Programming/Projects/firebreath/projects/SheepSystemsNPAPIPl
ugin
MacMini2:firebreath jk$ ./prepmac.sh
Using projects in: /Users/jk/Documents/Programming/Projects/firebreath/projects
Generating build files in: 
/Users/jk/Documents/Programming/Projects/firebreath/build
NOTE: The build files in 
/Users/jk/Documents/Programming/Projects/firebreath/build should *NEVER* be 
modified directly. Make changes in cmake and re-run this script.
~/Documents/Programming/Projects/firebreath/build 
~/Documents/Programming/Projects/firebreath
./prepmac.sh: line 10: cmake: command not found
CMake failed. Please check error messages
MacMini2:firebreath jk$ ./prepmac.sh
Using projects in: /Users/jk/Documents/Programming/Projects/firebreath/projects
Generating build files in: 
/Users/jk/Documents/Programming/Projects/firebreath/build
NOTE: The build files in 
/Users/jk/Documents/Programming/Projects/firebreath/build should *NEVER* be 
modified directly. Make changes in cmake and re-run this script.
~/Documents/Programming/Projects/firebreath/build 
~/Documents/Programming/Projects/firebreath
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler using: Xcode
-- Check for working C compiler using: Xcode -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler using: Xcode
-- Check for working CXX compiler using: Xcode -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- 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 
CMake Error at cmake/common.cmake:92 (add_subdirectory):
  add_subdirectory given source
  "/Users/jk/Documents/Programming/Projects/firebreath/src/3rdParty/boost/libs/thread"
  which is not an existing directory.
Call Stack (most recent call first):
  CMakeLists.txt:38 (add_boost_library)

Generating plugin configuration files in 
/Users/jk/Documents/Programming/Projects/firebreath/build/projects/SheepSystemsN
PAPIPlugin/gen
Generating project SheepSystemsNPAPIPlugin in 
/Users/jk/Documents/Programming/Projects/firebreath/build/projects/SheepSystemsN
PAPIPlugin
Creating Mac Browser Plugin project SheepSystemsNPAPIPlugin
-- Configuring incomplete, errors occurred!
CMake failed. Please check error messages

MacMini2:~ jk$ cd /Users/jk/Documents/Programming/Projects/firebreath/src/
MacMini2:src jk$ cd 3rdParty
MacMini2:3rdParty jk$ cd boost
-bash: cd: boost: No such file or directory
MacMini2:3rdParty jk$ ls
gecko-sdk       readme_boost.txt
MacMini2:3rdParty jk$ mkdir boost
MacMini2:3rdParty jk$ cd boost
MacMini2:boost jk$ mkdir libs
MacMini2:boost jk$ cd libs
MacMini2:libs jk$ mkdir thread

MacMini2:firebreath jk$ ./prepmac.sh
Using projects in: /Users/jk/Documents/Programming/Projects/firebreath/projects
Generating build files in: 
/Users/jk/Documents/Programming/Projects/firebreath/build
NOTE: The build files in 
/Users/jk/Documents/Programming/Projects/firebreath/build should *NEVER* be 
modified directly. Make changes in cmake and re-run this script.
~/Documents/Programming/Projects/firebreath/build 
~/Documents/Programming/Projects/firebreath
CMake Warning (dev) at cmake/common.cmake:92 (add_subdirectory):
  The source directory

    /Users/jk/Documents/Programming/Projects/firebreath/src/3rdParty/boost/libs/thread

  does not contain a CMakeLists.txt file.

  CMake does not support this case but it used to work accidentally and is
  being allowed for compatibility.

  Policy CMP0014 is not set: Input directories must have CMakeLists.txt.  Run
  "cmake --help-policy CMP0014" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
Call Stack (most recent call first):
  CMakeLists.txt:38 (add_boost_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

Generating plugin configuration files in 
/Users/jk/Documents/Programming/Projects/firebreath/build/projects/SheepSystemsN
PAPIPlugin/gen
Generating project SheepSystemsNPAPIPlugin in 
/Users/jk/Documents/Programming/Projects/firebreath/build/projects/SheepSystemsN
PAPIPlugin
Creating Mac Browser Plugin project SheepSystemsNPAPIPlugin
-- Configuring done
-- Generating done
-- Build files have been written to: 
/Users/jk/Documents/Programming/Projects/firebreath/build
~/Documents/Programming/Projects/firebreath
Patching XCode project 
/Users/jk/Documents/Programming/Projects/firebreath/build/projects/SheepSystemsN
PAPIPlugin/SheepSystemsNPAPIPlugin.xcodeproj/project.pbxproj with target 
SheepSystemsNPAPIPlugin
Patching XCode project 
/Users/jk/Documents/Programming/Projects/firebreath/build/FireBreath.xcodeproj/p
roject.pbxproj with target SheepSystemsNPAPIPlugin
MacMini2:firebreath jk$ 

Original issue reported on code.google.com by jerrykri...@gmail.com on 17 Nov 2010 at 5:18

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Just tried a fresh checkout of the default repository:
  hg clone https://firebreath.googlecode.com/hg/ firebreath
and it works fine for me. "hg --version" for me says:
  Mercurial Distributed SCM (version 1.4.3+20100201)

When doing the checkout there should be the line "pulling subrepo 
src/3rdParty/boost" in the output - that doesn't seem to be in your output, so 
there is something very strange going on.

What Mercurial version are you using?

Original comment by georg.fritzsche on 17 Nov 2010 at 5:38

GoogleCodeExporter commented 9 years ago
Yeah; this is more likely a problem with not using the latest version of 
Mercurial.  If you still can't get it working, try doing:

hg clone https://boost.firebreath.googlecode.com/hg/ boost in the src/3rdParty 
directory, which should get the firebreath boost libraries.

Original comment by taxilian on 17 Nov 2010 at 5:43

GoogleCodeExporter commented 9 years ago
Indeed, while you guys were replying, I was building and found no-go because 
the "boost" directories were empty.  Have Mercurial Distributed SCM (version 
1.2.1).  Will try your suggestions.  Thank you!

Original comment by jerrykri...@gmail.com on 17 Nov 2010 at 5:55

GoogleCodeExporter commented 9 years ago
I updated Mercurial to the latest 1.7.1, started over, and now Xcode build 
succeeds.  So, I guess this issue is closed unless you want to add a minimum 
Mercurial version to the docs, probably in here:

http://www.firebreath.org/display/documentation/Creating+a+New+Plugin+Project

See "make the assumption that you have already either checked Firebreath out of 
source control or otherwise obtained a copy"

Add: "If you check out with Mercurial, make sure you've got Mercurial version 
1.4.3 or later."

Thanks for the "insanely fast" help!

Original comment by jerrykri...@gmail.com on 17 Nov 2010 at 6:41

GoogleCodeExporter commented 9 years ago
I have updated the page as you suggest.  BTW, you could have done it yourself, 
and please feel free to do so to clarify anything that takes you time to figure 
out.

Good luck!

Original comment by taxilian on 17 Nov 2010 at 7:17