How to relocate the example project?

Aperta
#477 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
38/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
cpp, python

Direzione di ricerca

Inizia dalla documentazione no_install_quickstart collegata, quindi confronta le relative istruzioni per lo spostamento con i file correnti boost-build.jam e Jamroot e con il Jamfile mostrato. Riproduci lo spostamento in una nuova cartella del progetto e analizza la regola run-test sconosciuta segnalata. Il lavoro è completato quando la documentazione corrisponde ai file correnti e fornisce una procedura di spostamento funzionante.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hello!
I've managed to build the example project but needed to relocate it to my project's folder. The documentation doesn't really reflect the current state of the code and I'm a bit lost when updating the jamfile to match this new folder.

Reading the currently available documentation it suggests changing some lines in the jamfile that point to the boost source folder, however as of boost 1.82.0 these lines don't exist in the jamfile anymore. In the docs we have

change the first path in boost-build.jam from
../../../../tools/build/src
to
/home/dave/boost_1_34_0/tools/build/src

and change the first path in Jamroot from
../../../..
to
/home/dave/boost_1_34_0

however the current jamfile looks like this

import python ;

project tutorial
  : requirements
    <location>.
    ;

python-extension hello_ext : hello.cpp ;

run-test hello : hello_ext hello.py ;

alias test : hello ;
explicit test ;

which results in an error when building,
ERROR: rule "run-test" unknown in module "Jamfile</home/userfolder/projectfolder>"
which I imagine stems from this misconfiguration as it builds fine in the original folder. I am not familiar enough with the jam build system and would appreciate some directions here.
Thanks in advance!

Lingua principale
C++
Stelle
537
Fork
223
Merge medio
11h 22m
PR unite (30g)
2

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di boostorg/python

Tutte le issue di boostorg/python

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.