How to relocate the example project?

Offen
#477 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
38/100
Issue-Typ
Dokumentation
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
cpp, python

Rechercherichtung

Beginnen Sie mit der verlinkten no_install_quickstart-Dokumentation, vergleichen Sie anschließend deren Anweisungen zum Verschieben mit den aktuellen Dateien boost-build.jam und Jamroot sowie der gezeigten Jamfile. Führen Sie das Verschieben in einen neuen Projektordner nach und untersuchen Sie die gemeldete unbekannte run-test-Regel. Als erledigt gilt, dass die Dokumentation mit den aktuellen Dateien übereinstimmt und ein funktionierendes Verfahren zum Verschieben beschreibt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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!

Vorherrschende Sprache
C++
Sterne
537
Forks
223
Ø Merge
11 Std. 22 Min.
Gemergte PRs (30 T.)
2

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus boostorg/python

Alle Issues in boostorg/python

Ähnliche Issues

Weitere Issues zu C++

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.