Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AD-509] Update dev environment setup docs #6

Merged
merged 4 commits into from
Jan 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 31 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,45 @@
3. [WiX Installer (3.11)](https://wixtoolset.org/releases/)
1. Ensure to add path to WiX executables (e.g. `C:\Program Files (x86)\WiX Toolset v3.11\bin`)
4. Java **JDK** (version 8+ - 17 recommended)
1. Ensure to set JAVA_HOME
5. Run one of build scripts to create an initial compilation.
1. Ensure to set `JAVA_HOME`.
5. Boost Test Framework
1. Install via [VCPKG](https://vcpkg.io/en/getting-started.html) using `.\vcpkg install openssl:x64-windows boost-test:x64-windows boost-asio:x64-windows boost-chrono:x64-windows boost-interprocess:x64-windows boost-regex:x64-windows boost-system:x64-windows boost-thread:x64-windows`
6. Run one of the build scripts to create an initial compilation.
1. E.g.: `.\build_win_debug64.ps1`
2. Navigate to the `build\odbc\cmake` folder to use the generated solution file, `Ignite.C++.sln` to work on
source code development and testing.
6. More details in `src\DEVNOTES.txt`.
7. More details in `src\DEVNOTES.txt`.

### MacOS

1. Install deppendencies
1. brew install cmake
2. brew install openssl
3. brew install unixodbc
2. Run one of build scripts to create an initial compilation.
1. E.g.: `./buid_mac_release64.sh`
1. Install dependencies
1. `brew install cmake`
2. `brew install openssl`
3. `brew install unixodbc`
- You may need to unlink `libiodbc` if you already have this installed. Use `brew unlink libiodbc`.
4. `brew install boost`
alexey-temnikov marked this conversation as resolved.
Show resolved Hide resolved
5. Install Java **JDK** (version 8+ - 17 recommended)
- This can be done through Homebrew using `brew install --cask temurin<version>`.
- Ensure to set `JAVA_HOME`.
6. If creating a debug build (`./build_mac_debug64.sh`), install LLVM.
- To ensure LLVM and CMake are compatible, use the LLVM included with XCode by modifying the PATH with `export PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/:$PATH`.
2. Run one of the build scripts to create an initial compilation.
1. E.g.: `./build_mac_release64.sh`
2. Navigate to the `build/odbc/lib` folder to use the generated files.
3. Use Microsoft VS Code to work on source code devlopment and testing.
3. More details in `src\DEVNOTES.txt`.

### Linux

TBD

### Troubleshooting

#### Issue: MacOS build fails with error about iODBC header
##### Example error message
```
/Library/Frameworks/iODBC.framework/Headers/sqlext.h:82:10: fatal error: 'iODBC/sql.h' file not found
#include <iODBC/sql.h>
^~~~~~~~~~~~~
```
##### Fix
If you have installed the iODBC Driver Manager, the headers installed with it might be used instead of those from `unixodbc`. You may need to uninstall this driver manager and remove the `/Library/Frameworks/iODBC.framework/` directory.