ArtoolKit编译后示例项目源码位置咨询:无法找到可修改代码
Hey there! I’ve dealt with this exact head-scratcher when working with ARToolKit on Ubuntu, so let me walk you through the most likely places to find those sample source files:
Check the
samplesdirectory in your ARToolKit root folder
ARToolKit almost always stores its example project sources in a top-levelsamples(or sometimesexamples) directory, right alongside thebinandlibfolders you’re already seeing. Each subfolder here (likesimpleLite,simpleTest, ormultiMarker) corresponds directly to an executable in yourbinfolder—you’ll find.c/.cppfiles, makefiles, and resource files inside these subdirectories.Search for source files via terminal
If you’re still coming up empty, open a terminal in your ARToolKit root directory and run this command to hunt down all C/C++ source files:find . -name "*.c" -o -name "*.cpp"Look for filenames that match the executables in your
binfolder (e.g., if you havesimpleLiteinbin, look forsimpleLite.cin the results). This will point you straight to the source’s location, even if it’s tucked away in a less obvious subdirectory likesrc/examples.Double-check your download package
Since you grabbed the kit from the "Software y Extras" link, make sure you didn’t accidentally download a pre-built binary package that only includes compiled samples (without source). But since you ran./Configureandmakesuccessfully, you almost certainly have a full source package—so this is a last-resort check.
Once you locate the source files, you can modify them, re-run make from the ARToolKit root, and your updated executables will be rebuilt in the bin folder automatically.
内容的提问来源于stack exchange,提问作者coolest

